@noodleseed/agent-kit 0.100.0 → 0.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/manifest.json +369 -369
  2. package/package.json +1 -1
  3. package/skills/claude-code/SKILL.md +1 -1
  4. package/skills/claude-code/authoring-mcp-servers/SKILL.md +1 -1
  5. package/skills/claude-code/authoring-mcp-servers/references/authoring-workflow.md +15 -3
  6. package/skills/claude-code/authoring-mcp-servers/references/sdk-surface.md +2 -1
  7. package/skills/claude-code/building-mcp-apps/SKILL.md +1 -1
  8. package/skills/claude-code/connecting-apis-to-mcp/SKILL.md +1 -1
  9. package/skills/claude-code/connecting-apis-to-mcp/references/authoring-workflow.md +15 -3
  10. package/skills/claude-code/creating-product-agent-guides/SKILL.md +1 -1
  11. package/skills/claude-code/debugging-mcp-delivery/SKILL.md +1 -1
  12. package/skills/claude-code/deploying-mcp-services/SKILL.md +1 -1
  13. package/skills/claude-code/designing-mcp-products/SKILL.md +1 -1
  14. package/skills/claude-code/designing-mcp-products/references/authoring-workflow.md +15 -3
  15. package/skills/claude-code/embedding-mcp-assistants/SKILL.md +1 -1
  16. package/skills/claude-code/embedding-mcp-assistants/references/authoring-workflow.md +15 -3
  17. package/skills/claude-code/examples/acme-bistro/README.md +15 -48
  18. package/skills/claude-code/examples/acme-bistro/src/server.ts +58 -16
  19. package/skills/claude-code/examples/acme-bistro/test/server.test.ts +4 -4
  20. package/skills/claude-code/examples/acme-tasks/README.md +11 -11
  21. package/skills/claude-code/examples/gmail-multi-account/README.md +53 -31
  22. package/skills/claude-code/executing-noodle-plans/SKILL.md +1 -1
  23. package/skills/claude-code/publishing-mcp-integrations/SKILL.md +1 -1
  24. package/skills/claude-code/references/authoring-workflow.md +15 -3
  25. package/skills/claude-code/references/compile-errors.md +2 -0
  26. package/skills/claude-code/references/sdk-surface.md +2 -1
  27. package/skills/claude-code/reporting-noodle-feedback/SKILL.md +1 -1
  28. package/skills/claude-code/verifying-mcp-delivery/SKILL.md +1 -1
  29. package/skills/claude-code/wrapping-existing-applications/SKILL.md +1 -1
  30. package/skills/claude-code/wrapping-existing-applications/references/authoring-workflow.md +15 -3
  31. package/skills/codex/SKILL.md +1 -1
  32. package/skills/codex/authoring-mcp-servers/SKILL.md +1 -1
  33. package/skills/codex/authoring-mcp-servers/references/authoring-workflow.md +15 -3
  34. package/skills/codex/authoring-mcp-servers/references/sdk-surface.md +2 -1
  35. package/skills/codex/building-mcp-apps/SKILL.md +1 -1
  36. package/skills/codex/connecting-apis-to-mcp/SKILL.md +1 -1
  37. package/skills/codex/connecting-apis-to-mcp/references/authoring-workflow.md +15 -3
  38. package/skills/codex/creating-product-agent-guides/SKILL.md +1 -1
  39. package/skills/codex/debugging-mcp-delivery/SKILL.md +1 -1
  40. package/skills/codex/deploying-mcp-services/SKILL.md +1 -1
  41. package/skills/codex/designing-mcp-products/SKILL.md +1 -1
  42. package/skills/codex/designing-mcp-products/references/authoring-workflow.md +15 -3
  43. package/skills/codex/embedding-mcp-assistants/SKILL.md +1 -1
  44. package/skills/codex/embedding-mcp-assistants/references/authoring-workflow.md +15 -3
  45. package/skills/codex/examples/acme-bistro/README.md +15 -48
  46. package/skills/codex/examples/acme-bistro/src/server.ts +58 -16
  47. package/skills/codex/examples/acme-bistro/test/server.test.ts +4 -4
  48. package/skills/codex/examples/acme-tasks/README.md +11 -11
  49. package/skills/codex/examples/gmail-multi-account/README.md +53 -31
  50. package/skills/codex/executing-noodle-plans/SKILL.md +1 -1
  51. package/skills/codex/publishing-mcp-integrations/SKILL.md +1 -1
  52. package/skills/codex/references/authoring-workflow.md +15 -3
  53. package/skills/codex/references/compile-errors.md +2 -0
  54. package/skills/codex/references/sdk-surface.md +2 -1
  55. package/skills/codex/reporting-noodle-feedback/SKILL.md +1 -1
  56. package/skills/codex/verifying-mcp-delivery/SKILL.md +1 -1
  57. package/skills/codex/wrapping-existing-applications/SKILL.md +1 -1
  58. package/skills/codex/wrapping-existing-applications/references/authoring-workflow.md +15 -3
@@ -3,7 +3,7 @@ name: verifying-mcp-delivery
3
3
  description: "Use when proving a Noodle Seed MCP project works at a named compile, local, connector, App, host, deployment, or production evidence level."
4
4
  ---
5
5
 
6
- <!-- noodle-skill version:0.100.0 hash:292253cbaed9a3c5 -->
6
+ <!-- noodle-skill version:0.101.0 hash:292253cbaed9a3c5 -->
7
7
 
8
8
  # verifying-mcp-delivery
9
9
 
@@ -3,7 +3,7 @@ name: wrapping-existing-applications
3
3
  description: "Use when an existing application has no stable usable API and needs a read-only, identity-first Noodle Seed integration plan before implementation."
4
4
  ---
5
5
 
6
- <!-- noodle-skill version:0.100.0 hash:379ab9f64878f1fe -->
6
+ <!-- noodle-skill version:0.101.0 hash:379ab9f64878f1fe -->
7
7
 
8
8
  # wrapping-existing-applications
9
9
 
@@ -42,9 +42,9 @@ Author in `server.ts`, then `noodle validate` → fix cited errors (see `compile
42
42
 
43
43
  ## Connectors
44
44
 
45
- Declare connectors as data, not imperative code:
45
+ Declare typed connectors:
46
46
 
47
- - **HTTP**: `connector("id").version("1.0.0").http({ baseUrl, allowedOrigins, auth, operations })` with per-operation `request`/`response` mapping using `${args...}` / `${response...}` expressions.
47
+ - **HTTP**: `connector("id").version("1.0.0").http({ baseUrl, allowedOrigins, auth, operations })`; map request/response with `${args...}` / `${response...}`. Use `${execution.id}` for provider idempotency, never model input. Optional `evidence: { outcome: "${response.execution_outcome}", reference: "${response.id}" }` classifies completed/rejected/accepted/unknown; reference is a bounded opaque ID, never a bearer URL or payload. No automatic action retry.
48
48
  - **MCP**: `connector("id").version("1.0.0").mcp({ endpoint, allowedOrigins, auth?, operations })` where each operation freezes the separate upstream `tool` wire name plus input/output schema. Import with `noodle import mcp`; do not hand-copy a live surface or call `tools/list` at runtime.
49
49
  - **Compute**: `connector("id").version("1.0.0").compute(name, { input, output, calls?, run })` — a self-contained, sandboxed function (no imports/closure capture) that may call allowlisted operations via `callOperation`.
50
50
 
@@ -58,6 +58,7 @@ not imported or forwarded. The runtime opens one guarded session for one operati
58
58
  credential, and closes it; it does not act as an agent for upstream sampling, roots, or elicitation.
59
59
 
60
60
  HTTP connector auth variants: `bearer` (`{ kind: "bearer", secret: secret("API_TOKEN") }`), `apiKey` (`{ kind: "apiKey", header: "X-API-Key", secret: secret("API_KEY") }`), `clientCredentials`, `delegatedOAuth`, `delegatedSessionCookie`, and `delegatedTokenExchange` (per-user calls to your own API — see "Delegated downstream auth" below). Use managed `secret(...)` / `variable(...)` refs for all values that differ by org/app/env.
61
+ An application-owned adapter may require its own service credential in addition to the operator account credential. Declare `http.transportAuth: { kind: "apiKey", header: "X-Adapter-Key", secret: secret("ADAPTER_SERVICE_KEY") }` alongside bound account credential profiles; the credential broker supplies the two independently. Never put either credential in tool arguments or ordinary headers, and never reuse an inbound MCP bearer. This capability does not imply a provider requires two credentials.
61
62
 
62
63
  When one connector needs independently selectable accounts, declare catalog `credentialProfiles` plus each operation’s accepted `credentials.profiles`, then bind each `server.use` alias with `bind(connector, { profile, connection: connection("logical_id", managedSecret(secret("NAME"), { scopes, audience })) })`. The alias is the stable account boundary; never put provider account ids, labels, or credential values in it. `gmailConnector()` is the curated Gmail catalog helper; reuse it under independent aliases and accept canonical `accounts` arrays in tools (one account for writes, or an explicitly ordered supported combination for reads). See the bundled `gmail-multi-account` flagship. Bound managed secrets are supported by hosted execution. For deployed-server access to Google APIs, use `googleWorkloadIdentity({ provider: variable("GOOGLE_WIF_PROVIDER"), access: { kind: "direct" } })`, or add `serviceAccountImpersonation` with a managed service-account email. This is keyless Google Workload Identity Federation: exact Google scopes/audience come from the catalog operation, while `noodle auth google prepare|status|doctor|revoke` owns operator lifecycle. See the bundled `google-bigquery` flagship. `externalExchange()` is runnable only when the deployment operator injects an exact HTTPS provider endpoint/origin/audience and durable shared subject-pin store through service ports; Noodle sends a short-lived platform-signed deployment workload assertion and accepts only a bounded bearer response. Provider implementations must consume assertion replay ids through durable shared atomic storage across instances and restarts. There is intentionally no hosted enrollment or provider CRUD surface yet. The provider wire contract is public, but its conformance kit is workspace/source-only and is not an installable npm package. Bound `clientCredentials(...)` remains fail-closed until its provider slice lands.
63
64
 
@@ -408,6 +409,12 @@ Adapt the representative arguments and assertions when business contracts change
408
409
 
409
410
  Author managed config as `secret("NAME")` / `variable("NAME")` and operate it with `noodle secrets set` / `noodle variables set` (scoped org/app/env). Never inline secret values in `server.ts`, tests, or generated files.
410
411
 
412
+ For business-editable configuration, declare `const notice = variable("SERVICE_NOTICE", { schema: z.string().max(500), default: "Welcome", portal: { label: "Service notice", group: "Guest experience" }, requiredFor: ["show_menu"] })` and register it in `server(..., { variables: [notice], ... }, tools)`. Use the same ref in ordinary fulfilment/connector arguments. The default is reusable safe intent; each business supplies its own values without editing source. Only explicit `portal` metadata exposes a setting. Name-only references and declared variables without `portal` remain technical configuration; secrets remain credential slots. See the bundled `acme-bistro` source.
413
+
414
+ Business schemas must be bounded: booleans, finite bounded numbers, bounded text, string enums, bounded arrays, and closed objects. Put defaults in the declaration, not inside Zod schema defaults; custom transforms/refinements and arbitrary schema code cannot run in the shared runtime. `requiredFor` names existing tools whose invocation needs the value; unresolved settings must leave only dependent capabilities unavailable. Publisher compilation does not require a future buyer’s values. Application code enforces business rules server-side; exposing a control or placing the rule in a prompt is insufficient.
415
+
416
+ For an installed application, use the same `noodle variables list|resolve|set|delete` family with `--installation <id> --org <org> --runtime cloud|other`; do not combine it with app/env/scope flags or secrets. Inspection shows schema metadata, provenance, readiness and revision without saved values. Set inputs are JSON (including quotes for strings), read the current projection and save atomically; `--expected-revision <digest>` pins an explicit prior inspection. Delete resets to the current declared default or unset state. Business-administrator permission is required for mutations, conflicts never retry writes, and mutation output excludes values.
417
+
411
418
  ## Embedded assistant
412
419
 
413
420
  To place the same server tools inside a SaaS web app, declare `assistant: embeddedAssistant(...)` alongside the one server-level brand kit. Read `embedded-assistant.md` before integrating: it owns the HTTPS-origin rule, managed model configuration, required deploy-before-client sequence, customer-backend exchange, browser mount, and verification checklist.
@@ -445,8 +452,13 @@ The managed crawler and managed index are the defaults and need no configuration
445
452
  ## Managed collections
446
453
 
447
454
  Use `managedCollection(name, { title, description, schemaVersion, record })` when an application needs reusable typed intent for business records that Noodle may later hold. Pass it through `server(..., { collections: [...] }, definitions)`. `record` is one bounded, closed Zod object; names use lowercase letters, numbers, and underscores. Keep payment-card, credentials, passport/government identity, health, and biometric fields out of this surface.
455
+ Native record controls are independent: `management: { assignment: true }`, `{ notes: true }`, both, or neither. Status is an ordinary application field such as `progress: z.enum(["received", "reviewing", "handled"]).default("received")`; no framework transition graph exists. Declare `publicFields` explicitly (default empty), `editableFields` for authorized staff (default all schema properties), optional field labels/help, `summaryFields`, `filterFields` and `sortFields`. References must name actual fields and filters/sorts select scalars. Public callers cannot set staff-only fields; a required private field needs a valid creation default. Staff updates merge only admitted fields and revalidate the complete record. See the notes-only `acme-bistro` collection.
456
+ Operator record queries use `noodle solutions records list --filters '[{"field":"progress","value":"received"}]' --sort-field progress`. Only declared scalar equality/sort fields apply. Payload queries scan at most 10,000 candidates; narrow `--created-at-from`/`--created-at-to` if the API returns `query_limit_exceeded`. Ordinary listing/export has no such scan cap. Cursor reuse requires unchanged query/schema and anchor revision. An administrator can explicitly migrate an eligible historical request with `records migrate-schema ... --expected-revision N`; never implement read-time rewrites.
457
+
458
+ Omitting `source` makes Noodle authoritative for the collection. To project a read-only collection from an outside system, bind an HTTP connector in `server(..., { use: [...] })` and add `source: { connector: connector.ref(), scan: "scan_operation" }`. The compiler requires the exact normalized scan contract and the same record schema. Noodle ingests a one-way replica; create, update, and delete in the outside system remain ordinary application tools with their own confirmation and policy.
448
459
 
449
- This declaration compiles schema metadata only. It does not create a submit tool, grant access, select retention or residency, provision storage, or make records available to MCP or the embedded assistant. Operators bind lifecycle and authority separately. Until the service intake path is shipped, keep live business operations on their existing connector tools.
460
+ For an explicitly authored native operation, bind `use: { records: noodlePlatform.records.v1 }` and call `connectors.records.submitRecord({ collection: "guest_requests", payload: input })` from an ordinary confirmed tool. Submission accepts only public fields and returns a receipt. `createRecord`, `getRecord`, `listRecords`, `updateRecord`, and `deleteRecord` require a verified platform caller with a live business grant; updates/deletes require the current revision. `updateRecord({ collection, id, expectedRevision, patch, unset: ["optional_field"] })` removes named optional editable fields; omitted keys stay unchanged, `null` is data, and overlap with `patch`, required fields or undeclared fields is rejected. Runtime identity supplies write idempotency and admission; never accept those controls as model arguments. An uninstalled collection is unavailable, including during local tool execution.
461
+ A collection declaration does not create a submit tool, grant access, select retention or residency, provision storage, or expose records to MCP or an embedded assistant. Operators activate the definition and configure lifecycle, access, and any external binding. A connector does not become a collection unless the app explicitly supplies the source contract, and an external collection never becomes a writable mirror.
450
462
 
451
463
  ## Boundaries
452
464