[PR #450] [MERGED] fix: accept local profile arrays in Noodle and Slurp #974

Closed
opened 2026-10-20 17:32:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/450
Author: @Gunterlie
Created: 8/20/2026
Status: ✅ Merged
Merged: 8/20/2026
Merged by: @Gunterlie

Base: staging ← Head: noodle-array-vs-object


📝 Commits (7)

  • 5e27a04 fix: accept local profile arrays in Noodle and Slurp
  • b41975a fix: preserve malformed profile wrappers
  • 3f37496 test: cover wrapped profile arrays
  • 317ce3c test: cover Slurp profile parsing
  • a723020 test: cover direct Slurp profile arrays
  • d257a7f fix: retry empty profile generation
  • 5f3b9d4 Merge remote-tracking branch 'origin/staging' into noodle-array-vs-object

📊 Changes

19 files changed (+408 additions, -278 deletions)

View changed files

➕ artifacts/noodle-1.2.6.zip (+0 -0)
➕ artifacts/noodle-1.2.7.zip (+0 -0)
➕ artifacts/slurp-1.0.11.zip (+0 -0)
➕ artifacts/slurp-1.0.12.zip (+0 -0)
📝 catalog/catalog.json (+16 -16)
📝 catalog/v2/catalog.json (+16 -16)
📝 catalog/v3/catalog.json (+16 -16)
📝 packages/noodle/client.js (+13 -13)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+120 -120)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-profiles.ts (+11 -5)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-profiles.service.ts (+19 -3)
📝 packages/slurp/client.js (+8 -8)
📝 packages/slurp/manifest.json (+5 -5)
📝 packages/slurp/server.mjs (+61 -61)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generated-profiles.ts (+11 -5)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-profiles.service.ts (+21 -3)
📝 scripts/build-feature-packages.mjs (+2 -2)
📝 tests/noodle-generated-refresh.regression.ts (+84 -0)

📄 Description

Linked issue

Closes #449

Why this change

Local KoboldCPP can return profile setup output as a top-level JSON array, including [] after an immediate EOS. Noodle and Slurp required an object wrapper and failed setup with Expected object, received array. The empty response also needs one bounded retry so an immediate EOS does not end profile setup immediately.

What changed

  • Accept top-level profile arrays and empty arrays.
  • Preserve explicit malformed wrapper values for top-level validation.
  • Keep per-row profile schema validation.
  • Retry profile generation once when the parsed response contains no profiles.
  • Apply the parser and retry behavior to Noodle and Slurp.
  • Release Noodle 1.2.7 and Slurp 1.0.12.
  • Rebuild bundles, ZIP artifacts, manifests, hashes, and catalog lanes.

Package and security impact

  • Affected package IDs: noodle, slurp.
  • Engine compatibility impact: None. Existing compatibility ranges remain unchanged.
  • New or changed permissions/entrypoints: None.
  • Restart, storage, update, or uninstall impact: Standard package update and restart. No storage migration.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

npm run check, catalog lane validation, locale validation, catalog validation, and git diff --check passed. Install, update, restart, offline, and uninstall were not manually tested.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Not applicable. This is a server-side response parser and retry update.

Summary by CodeRabbit

  • New Features

    • Updated Noodle to version 1.2.7.
    • Updated Slurp to version 1.0.12.
    • Refreshed package integrity and download metadata.
    • Added a retry when profile generation returns no usable profiles.
  • Bug Fixes

    • Improved generated-profile handling for wrapped and direct profile lists.
    • Preserved validation and rejection handling for malformed or invalid data.
  • Tests

    • Added regression coverage for empty, valid, malformed, wrapped, and unwrapped profile data.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/450 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `noodle-array-vs-object` --- ### 📝 Commits (7) - [`5e27a04`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5e27a0449f5a67427e6910037ab21f3a2223bad8) fix: accept local profile arrays in Noodle and Slurp - [`b41975a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b41975abc9f1d030ed4aa77f1ece21e5580b14c7) fix: preserve malformed profile wrappers - [`3f37496`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3f3749679187eed61de36451cfa63daa78cfc0c5) test: cover wrapped profile arrays - [`317ce3c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/317ce3c631194a0137bf995abac78d371e79f392) test: cover Slurp profile parsing - [`a723020`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a723020c81a1e1cf72283951bca15c753e2b53c1) test: cover direct Slurp profile arrays - [`d257a7f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d257a7fbabc4e1e6c83f293d2ecb74499c55b38a) fix: retry empty profile generation - [`5f3b9d4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5f3b9d41b4b4a13f7f688343a38c0272b53eda61) Merge remote-tracking branch 'origin/staging' into noodle-array-vs-object ### 📊 Changes **19 files changed** (+408 additions, -278 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.2.6.zip` (+0 -0) ➕ `artifacts/noodle-1.2.7.zip` (+0 -0) ➕ `artifacts/slurp-1.0.11.zip` (+0 -0) ➕ `artifacts/slurp-1.0.12.zip` (+0 -0) 📝 `catalog/catalog.json` (+16 -16) 📝 `catalog/v2/catalog.json` (+16 -16) 📝 `catalog/v3/catalog.json` (+16 -16) 📝 `packages/noodle/client.js` (+13 -13) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+120 -120) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-profiles.ts` (+11 -5) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-profiles.service.ts` (+19 -3) 📝 `packages/slurp/client.js` (+8 -8) 📝 `packages/slurp/manifest.json` (+5 -5) 📝 `packages/slurp/server.mjs` (+61 -61) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generated-profiles.ts` (+11 -5) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-profiles.service.ts` (+21 -3) 📝 `scripts/build-feature-packages.mjs` (+2 -2) 📝 `tests/noodle-generated-refresh.regression.ts` (+84 -0) </details> ### 📄 Description ## Linked issue Closes #449 ## Why this change Local KoboldCPP can return profile setup output as a top-level JSON array, including `[]` after an immediate EOS. Noodle and Slurp required an object wrapper and failed setup with `Expected object, received array`. The empty response also needs one bounded retry so an immediate EOS does not end profile setup immediately. ## What changed - Accept top-level profile arrays and empty arrays. - Preserve explicit malformed wrapper values for top-level validation. - Keep per-row profile schema validation. - Retry profile generation once when the parsed response contains no profiles. - Apply the parser and retry behavior to Noodle and Slurp. - Release Noodle 1.2.7 and Slurp 1.0.12. - Rebuild bundles, ZIP artifacts, manifests, hashes, and catalog lanes. ## Package and security impact - Affected package IDs: `noodle`, `slurp`. - Engine compatibility impact: None. Existing compatibility ranges remain unchanged. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: Standard package update and restart. No storage migration. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes `npm run check`, catalog lane validation, locale validation, catalog validation, and `git diff --check` passed. Install, update, restart, offline, and uninstall were not manually tested. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable. This is a server-side response parser and retry update. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated Noodle to version 1.2.7. - Updated Slurp to version 1.0.12. - Refreshed package integrity and download metadata. - Added a retry when profile generation returns no usable profiles. - **Bug Fixes** - Improved generated-profile handling for wrapped and direct profile lists. - Preserved validation and rejection handling for malformed or invalid data. - **Tests** - Added regression coverage for empty, valid, malformed, wrapped, and unwrapped profile data. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:32:53 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#974
No description provided.