@noodleseed/one 0.67.0 → 0.69.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.
- package/dist/agents.d.ts +10 -4
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +82 -26
- package/dist/agents.js.map +1 -1
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/analytics-ops.d.ts +3 -1
- package/dist/commands/analytics-ops.d.ts.map +1 -1
- package/dist/commands/analytics-ops.js +31 -5
- package/dist/commands/analytics-ops.js.map +1 -1
- package/dist/commands/catalog-data-resources.d.ts.map +1 -1
- package/dist/commands/catalog-data-resources.js +10 -0
- package/dist/commands/catalog-data-resources.js.map +1 -1
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +1 -0
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/envs-ops.d.ts +1 -0
- package/dist/commands/envs-ops.d.ts.map +1 -1
- package/dist/commands/envs-ops.js +49 -1
- package/dist/commands/envs-ops.js.map +1 -1
- package/dist/commands/project-setup.d.ts +3 -2
- package/dist/commands/project-setup.d.ts.map +1 -1
- package/dist/commands/project-setup.js +5 -5
- package/dist/commands/project-setup.js.map +1 -1
- package/dist/commands/resource-shared.d.ts +11 -0
- package/dist/commands/resource-shared.d.ts.map +1 -1
- package/dist/commands/resource-shared.js.map +1 -1
- package/dist/deploy.js +1 -1
- package/dist/deploy.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/skills-update.d.ts +7 -0
- package/dist/skills-update.d.ts.map +1 -1
- package/dist/skills-update.js +9 -3
- package/dist/skills-update.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +4 -0
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +9 -2
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +10 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/index.js +8 -13
- package/node_modules/@noodle-borg/agent-kit/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.js +4 -3
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-app-playbook-ref.d.ts +2 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-app-playbook-ref.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-app-playbook-ref.js +59 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-app-playbook-ref.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +7 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-connect-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-connect-refs.js +60 -20
- package/node_modules/@noodle-borg/agent-kit/dist/skill-connect-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts +1 -8
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js +14 -85
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-design-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-design-refs.js +2 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-design-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.d.ts +2 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js +114 -150
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-router.d.ts +17 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-router.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-router.js +160 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-router.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-server-playbook-ref.d.ts +2 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-server-playbook-ref.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-server-playbook-ref.js +61 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-server-playbook-ref.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-verification-ref.d.ts +2 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-verification-ref.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-verification-ref.js +72 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-verification-ref.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
- package/node_modules/@noodle-borg/authoring/dist/connection-types.d.ts +52 -0
- package/node_modules/@noodle-borg/authoring/dist/connection-types.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connection-types.js +35 -0
- package/node_modules/@noodle-borg/authoring/dist/connection-types.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.d.ts +26 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.js +63 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts +18 -7
- package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/connectors.js +26 -4
- package/node_modules/@noodle-borg/authoring/dist/connectors.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/gmail.d.ts +7 -0
- package/node_modules/@noodle-borg/authoring/dist/gmail.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/gmail.js +257 -0
- package/node_modules/@noodle-borg/authoring/dist/gmail.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts +2 -0
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js +2 -0
- package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/platform.d.ts +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react/native-components.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/recording.d.ts +2 -0
- package/node_modules/@noodle-borg/authoring/dist/recording.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/recording.js +6 -0
- package/node_modules/@noodle-borg/authoring/dist/recording.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js +4 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/package.json +1 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +43 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.js +4 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.d.ts +15 -0
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js +3 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.d.ts +3 -3
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.js +16 -17
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts +2 -4
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts +17 -5
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js +89 -0
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts +3 -2
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js +1 -0
- package/node_modules/@noodle-borg/compiler/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +66 -16
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +47 -4
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile.js +3 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.d.ts +6 -0
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.js +25 -0
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.js.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts +89 -0
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.js +42 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.js.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.js +5 -4
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.js.map +1 -1
- package/node_modules/@noodle-borg/external-credential-provider/README.md +18 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.d.ts +36 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.js +72 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.d.ts +82 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.js +126 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.d.ts +4 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.js +4 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.d.ts +15 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.js +24 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/package.json +33 -0
- package/node_modules/@noodle-borg/module/dist/contract.d.ts +14 -0
- package/node_modules/@noodle-borg/module/dist/contract.d.ts.map +1 -1
- package/node_modules/@noodle-borg/module/dist/contract.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/tool-interaction.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/tool-interaction.js +1 -8
- package/node_modules/@noodle-borg/protocol/dist/tool-interaction.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/map.d.ts +8 -4
- package/node_modules/@noodle-borg/runtime/dist/broker/map.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/map.js +35 -5
- package/node_modules/@noodle-borg/runtime/dist/broker/map.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts +34 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.js +38 -0
- package/node_modules/@noodle-borg/runtime/dist/broker/types.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.d.ts +28 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.js +143 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.d.ts +6 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.js +56 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/confirmation.js +71 -74
- package/node_modules/@noodle-borg/runtime/dist/confirmation.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts +3 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.d.ts +8 -0
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.js +89 -0
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.d.ts +2 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/execute.js +24 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.js +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/result.d.ts +8 -0
- package/node_modules/@noodle-borg/runtime/dist/result.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/result.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.d.ts +15 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.js +66 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.d.ts +13 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.js +26 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts +5 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-broker.js +43 -45
- package/node_modules/@noodle-borg/service/dist/credential-broker.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-probes.d.ts +13 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.js +88 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.d.ts +12 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.js +111 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.d.ts +82 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.js +184 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/index.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/index.js +1 -0
- package/node_modules/@noodle-borg/service/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry-state.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/registry-state.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry-state.js +27 -2
- package/node_modules/@noodle-borg/service/dist/registry-state.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry-types.d.ts +7 -0
- package/node_modules/@noodle-borg/service/dist/registry-types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.js +23 -27
- package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/contracts.d.ts +16 -0
- package/node_modules/@noodle-borg/service/dist/routes/contracts.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/contracts.js +16 -0
- package/node_modules/@noodle-borg/service/dist/routes/contracts.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.d.ts +19 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.js +16 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.d.ts +8 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.js +46 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/paths.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/paths.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/paths.js +3 -0
- package/node_modules/@noodle-borg/service/dist/routes/paths.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve-options.d.ts +8 -0
- package/node_modules/@noodle-borg/service/dist/serve-options.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.js +3 -0
- package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.js +13 -0
- package/node_modules/@noodle-borg/service/dist/service.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/environment-production.d.ts +9 -0
- package/node_modules/@noodle-borg/service/dist/store/environment-production.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/environment-production.js +2 -0
- package/node_modules/@noodle-borg/service/dist/store/environment-production.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/in-memory.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/in-memory.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/in-memory.js +31 -2
- package/node_modules/@noodle-borg/service/dist/store/in-memory.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/json-file.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/json-file.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/json-file.js +64 -2
- package/node_modules/@noodle-borg/service/dist/store/json-file.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.js +53 -7
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js +48 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.js +8 -2
- package/node_modules/@noodle-borg/service/dist/store/postgres.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/records.d.ts +5 -2
- package/node_modules/@noodle-borg/service/dist/store/records.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/records.js +18 -4
- package/node_modules/@noodle-borg/service/dist/store/records.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts +8 -2
- package/node_modules/@noodle-borg/service/dist/store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.js.map +1 -1
- package/node_modules/@noodle-borg/service/package.json +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Outcome-first product playbook for the build-server route. It owns behavioral sequencing and
|
|
2
|
+
// evidence requirements; syntax and exhaustive SDK detail stay in the existing technical refs.
|
|
3
|
+
export function renderBuildAnMcpServerReference() {
|
|
4
|
+
return [
|
|
5
|
+
'# Outcome',
|
|
6
|
+
'',
|
|
7
|
+
'Deliver the smallest useful Noodle Seed MCP server that turns a real user intent into a safe, typed result. Author only the configured TypeScript entrypoint, normally `src/server.ts`; keep the public authoring surface TypeScript-only and never hand-author generated manifests or connector IR.',
|
|
8
|
+
'',
|
|
9
|
+
'## Use when',
|
|
10
|
+
'',
|
|
11
|
+
'- The user asks to create or extend a headless MCP server, tools, resources, prompts, or connector-backed behavior.',
|
|
12
|
+
'- The requested result is primarily model-facing and does not require a widget or host-visible UI.',
|
|
13
|
+
'',
|
|
14
|
+
'## Do not use when',
|
|
15
|
+
'',
|
|
16
|
+
'- The primary outcome is an MCP App, widget, or visual interaction; select the App route.',
|
|
17
|
+
'- The task is only to diagnose existing failures, deploy, publish, embed, or report feedback; select that dedicated route.',
|
|
18
|
+
'- The idea has no conversational fit: static content, a dashboard, deep navigation, or a full existing app port should be narrowed to the few actions that are better said than clicked.',
|
|
19
|
+
'',
|
|
20
|
+
'## Required inputs',
|
|
21
|
+
'',
|
|
22
|
+
'Establish only the inputs needed for the requested stopping point. Follow `references/authoring-workflow.md` for the canonical discovery paths. Do not guess or invent a private schema, endpoint, authentication model, eligibility rule, or approval flow. If a required input is unavailable, state exactly what evidence is missing and stop before fabricating behavior.',
|
|
23
|
+
'',
|
|
24
|
+
'## Workflow',
|
|
25
|
+
'',
|
|
26
|
+
'1. **Confirm conversational fit.** Name one to three focused jobs where saying the request is easier than navigating the underlying system, and identify the data or action the model cannot provide by itself.',
|
|
27
|
+
'2. **Define the product contract.** For each job, write the user phrase, the intent-shaped tool or resource, its minimal typed input, the useful output, read/write effect, and backing operation. Design for user intent, not a 1:1 API endpoint wrapper.',
|
|
28
|
+
'3. **Choose the smallest implementation.** Use native tools, resources, or prompts for local/static behavior; add a connector only when external data or actions are required. Keep response output small and model-readable.',
|
|
29
|
+
'4. **Author in TypeScript.** Follow `references/authoring-workflow.md` for connector and flow patterns and `references/sdk-surface.md` for exact builders. These are this route’s complete canonical support set; use the router lookup catalog only when observed evidence names a different concern.',
|
|
30
|
+
'5. **Validate and repair.** Run `noodle validate --json`. Parse `error.errors[]`, repair the cited `path`, and rerun validation. Consult the lookup catalog only for the specific reported error code; do not open another reference speculatively.',
|
|
31
|
+
'6. **Run the local smoke.** After validation succeeds, run `noodle test --json` and repair any failure at that evidence layer.',
|
|
32
|
+
'7. **Prove external behavior.** For connector-backed reads, set credentials through the effective local target and run a safe representative `noodle tools call`. Confirm populated mapped fields from real output, not merely successful registration.',
|
|
33
|
+
'8. **Stop at the requested boundary.** Do not add an App, host test, hosted environment, publication work, or deployment unless the user requested that outcome. Deploy only when the selected route or the user explicitly requires it.',
|
|
34
|
+
'',
|
|
35
|
+
'## Verification evidence',
|
|
36
|
+
'',
|
|
37
|
+
'Report evidence as a ladder and claim only levels actually exercised:',
|
|
38
|
+
'',
|
|
39
|
+
'- **Authoring:** the requested TypeScript behavior exists with typed inputs and outputs.',
|
|
40
|
+
'- **Compilation:** `noodle validate --json` returned success.',
|
|
41
|
+
'- **Local smoke:** `noodle test --json` returned success.',
|
|
42
|
+
'- **Connector reality:** a representative safe read via `noodle tools call` returned populated mapped fields. This is required for connector-backed work.',
|
|
43
|
+
'- **Higher levels:** explicitly report host, deployment, and production checks as not run unless they were separately requested and evidenced.',
|
|
44
|
+
'',
|
|
45
|
+
'## Recovery paths',
|
|
46
|
+
'',
|
|
47
|
+
'- Validation failure: fix each structured error at its reported path, rerun validation, then resume at the next unproven layer.',
|
|
48
|
+
'- Tool registers but returns empty or `undefined` fields: inspect one sanitized real response, correct `${response...}` mappings, and rerun the same read.',
|
|
49
|
+
'- Credential unavailable: verify `secret(...)` naming and the effective local target; never inline or print the secret.',
|
|
50
|
+
'- Missing product input: ask for the smallest concrete example, schema, or rule that unblocks the selected job. Do not widen the build to compensate.',
|
|
51
|
+
'- Repeated failure at the same layer: stop after two evidence-backed repair attempts with the same failure signature and report the command, sanitized error, evidence already proven, and exact next action.',
|
|
52
|
+
'',
|
|
53
|
+
'## Stop conditions',
|
|
54
|
+
'',
|
|
55
|
+
'- Stop complete when the requested behavior passes validation and local smoke, and every connector-backed read has real-output evidence.',
|
|
56
|
+
"- Stop at the user's requested boundary; do not deploy unless the user requested deployment.",
|
|
57
|
+
'- Stop blocked when progress requires unavailable credentials, private schemas, external approval, or a live write the user has not approved.',
|
|
58
|
+
'- In the handoff, name what changed, what passed, what was not run, and any remaining risk without upgrading local evidence into a hosted or production claim.',
|
|
59
|
+
].join('\n');
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=skill-server-playbook-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-server-playbook-ref.js","sourceRoot":"","sources":["../src/skill-server-playbook-ref.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,+FAA+F;AAE/F,MAAM,UAAU,+BAA+B;IAC7C,OAAO;QACL,WAAW;QACX,EAAE;QACF,sSAAsS;QACtS,EAAE;QACF,aAAa;QACb,EAAE;QACF,qHAAqH;QACrH,oGAAoG;QACpG,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,2FAA2F;QAC3F,4HAA4H;QAC5H,0LAA0L;QAC1L,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,+WAA+W;QAC/W,EAAE;QACF,aAAa;QACb,EAAE;QACF,iNAAiN;QACjN,4PAA4P;QAC5P,+NAA+N;QAC/N,wSAAwS;QACxS,qPAAqP;QACrP,gIAAgI;QAChI,yPAAyP;QACzP,0OAA0O;QAC1O,EAAE;QACF,0BAA0B;QAC1B,EAAE;QACF,uEAAuE;QACvE,EAAE;QACF,0FAA0F;QAC1F,+DAA+D;QAC/D,2DAA2D;QAC3D,2JAA2J;QAC3J,gJAAgJ;QAChJ,EAAE;QACF,mBAAmB;QACnB,EAAE;QACF,iIAAiI;QACjI,4JAA4J;QAC5J,yHAAyH;QACzH,uJAAuJ;QACvJ,+MAA+M;QAC/M,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,0IAA0I;QAC1I,8FAA8F;QAC9F,+IAA+I;QAC/I,gKAAgK;KACjK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-verification-ref.d.ts","sourceRoot":"","sources":["../src/skill-verification-ref.ts"],"names":[],"mappings":"AAGA,wBAAgB,+BAA+B,IAAI,MAAM,CAoExD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Verification and recovery behavior for the diagnostic route. This file owns evidence ordering,
|
|
2
|
+
// bounded repair, and completion claims; symptom catalogs remain in the technical references.
|
|
3
|
+
export function renderVerifyAndRecoverReference() {
|
|
4
|
+
return [
|
|
5
|
+
'# Outcome',
|
|
6
|
+
'',
|
|
7
|
+
'Identify the first failing evidence layer, repair only that layer, rerun it, and report the highest level actually proven. A successful lower layer must never be presented as proof of a higher one.',
|
|
8
|
+
'',
|
|
9
|
+
'## Use when',
|
|
10
|
+
'',
|
|
11
|
+
'- The user asks to validate, test, diagnose, recover, or establish whether a local or hosted Noodle Seed project works.',
|
|
12
|
+
'- A command, connector, App, host integration, deployment, or production check is failing or has uncertain evidence.',
|
|
13
|
+
'',
|
|
14
|
+
'## Do not use when',
|
|
15
|
+
'',
|
|
16
|
+
'- The primary request is to design or build a new product capability; select its build route and use this playbook only if evidence fails.',
|
|
17
|
+
'- The user asks for a higher-risk external action rather than diagnosis. This route does not grant deployment, publication, live-write, or merge authority.',
|
|
18
|
+
'',
|
|
19
|
+
'## Required inputs',
|
|
20
|
+
'',
|
|
21
|
+
'Capture the requested evidence level, the exact command or user-visible symptom, sanitized machine output, the environment/target, and the last known passing layer. Do not broaden the goal beyond the level the user asked to prove.',
|
|
22
|
+
'',
|
|
23
|
+
'## Workflow',
|
|
24
|
+
'',
|
|
25
|
+
'Use this ordered evidence ladder. Start at the last known passing layer or the lowest plausible failure; never jump upward over an unproven dependency:',
|
|
26
|
+
'',
|
|
27
|
+
'1. **Compile** — the TypeScript build and authoring import surface are valid.',
|
|
28
|
+
'2. **Validate** — `noodle validate --json` accepts the Noodle contract.',
|
|
29
|
+
'3. **Local smoke** — `noodle test --json` starts the local runtime and exercises registration.',
|
|
30
|
+
'4. **Real API** — a representative safe `noodle tools call` proves connector credentials, transport, observed mapping, and populated data.',
|
|
31
|
+
'5. **App compliance** — `noodle check --json` and local devtools prove the App contract and intended states.',
|
|
32
|
+
'6. **Host** — the requested host connects, invokes the expected capability, and renders useful fallback/UI behavior.',
|
|
33
|
+
'7. **Deploy** — the requested hosted revision and configuration exist and report healthy at the deployment layer.',
|
|
34
|
+
'8. **Production health** — the live production endpoint and requested user journey are observed on the intended revision.',
|
|
35
|
+
'',
|
|
36
|
+
'For the first failing layer:',
|
|
37
|
+
'',
|
|
38
|
+
'1. Read the process exit code or status first. If machine JSON exists, parse it before reading human prose or editing files.',
|
|
39
|
+
'2. For validation envelopes, inspect every `error.errors[]` item and repair the field at its reported `path`. Use `references/agent-contract.md` for the envelope and `references/compile-errors.md` for the named error code.',
|
|
40
|
+
'3. Form one evidence-backed cause from the observed output. If the two canonical supports do not cover it, select one matching symptom from the router lookup catalog; do not scan every recovery path.',
|
|
41
|
+
'4. Make the smallest in-scope repair. Do not freeform re-edit adjacent code, change credentials, redeploy, or add product behavior without evidence and authority.',
|
|
42
|
+
'5. Rerun only the same evidence layer that failed. Once it passes, continue upward only to the user-requested level.',
|
|
43
|
+
'6. Stop after two evidence-backed repair attempts with the same failure signature, or immediately when the next action requires new authority or external state.',
|
|
44
|
+
'',
|
|
45
|
+
'## Verification evidence',
|
|
46
|
+
'',
|
|
47
|
+
'Report a compact ledger for every exercised layer: command/action, target, result, and the evidence it establishes. Claim only the highest contiguous passing layer.',
|
|
48
|
+
'',
|
|
49
|
+
'- Compile success does not prove runtime behavior.',
|
|
50
|
+
'- Validation and local smoke do not prove a real API mapping or credential path.',
|
|
51
|
+
'- Local evidence does not prove hosted or host behavior.',
|
|
52
|
+
'- Deployment existence does not prove production health or a user journey.',
|
|
53
|
+
'- Report every requested but unperformed or blocked higher layer as not run, with the reason.',
|
|
54
|
+
'',
|
|
55
|
+
'## Recovery paths',
|
|
56
|
+
'',
|
|
57
|
+
'- Compile/validation: repair the exact import, schema, or reported path, then rerun that command without freeform changes.',
|
|
58
|
+
'- Local boot/smoke: use the structured startup error to correct the effective target, config, or entrypoint before retrying.',
|
|
59
|
+
'- Real API: distinguish authentication, reachability, legitimate empty results, and broken response mappings before changing code.',
|
|
60
|
+
'- App: repair the cited contract or state in `noodle check --json`, then confirm it in devtools before attempting a host.',
|
|
61
|
+
'- Host/deployment/production: confirm revision, target, identity, and configuration independently; do not infer one from another.',
|
|
62
|
+
'- Repeated external failure: preserve passing evidence and report the sanitized failure, required authority or external state, owner, and exact next action.',
|
|
63
|
+
'',
|
|
64
|
+
'## Stop conditions',
|
|
65
|
+
'',
|
|
66
|
+
'- Stop complete when the user-requested evidence level and every dependency below it pass in the current target.',
|
|
67
|
+
'- Stop blocked when progress requires credentials, approval, host access, deployment authority, production access, or an external-state change not available in scope.',
|
|
68
|
+
'- Stop after two evidence-backed repair attempts with the same failure signature at one layer; do not hide repetition behind unrelated edits.',
|
|
69
|
+
'- Never claim fixed or working without rerunning the failed layer, and never upgrade compile, local, deployment, or stale historical evidence into a stronger claim.',
|
|
70
|
+
].join('\n');
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=skill-verification-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-verification-ref.js","sourceRoot":"","sources":["../src/skill-verification-ref.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,8FAA8F;AAE9F,MAAM,UAAU,+BAA+B;IAC7C,OAAO;QACL,WAAW;QACX,EAAE;QACF,uMAAuM;QACvM,EAAE;QACF,aAAa;QACb,EAAE;QACF,yHAAyH;QACzH,sHAAsH;QACtH,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,4IAA4I;QAC5I,6JAA6J;QAC7J,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,wOAAwO;QACxO,EAAE;QACF,aAAa;QACb,EAAE;QACF,yJAAyJ;QACzJ,EAAE;QACF,+EAA+E;QAC/E,yEAAyE;QACzE,gGAAgG;QAChG,4IAA4I;QAC5I,8GAA8G;QAC9G,sHAAsH;QACtH,mHAAmH;QACnH,2HAA2H;QAC3H,EAAE;QACF,8BAA8B;QAC9B,EAAE;QACF,8HAA8H;QAC9H,gOAAgO;QAChO,yMAAyM;QACzM,oKAAoK;QACpK,sHAAsH;QACtH,kKAAkK;QAClK,EAAE;QACF,0BAA0B;QAC1B,EAAE;QACF,sKAAsK;QACtK,EAAE;QACF,oDAAoD;QACpD,kFAAkF;QAClF,0DAA0D;QAC1D,4EAA4E;QAC5E,+FAA+F;QAC/F,EAAE;QACF,mBAAmB;QACnB,EAAE;QACF,4HAA4H;QAC5H,8HAA8H;QAC9H,oIAAoI;QACpI,2HAA2H;QAC3H,mIAAmI;QACnI,8JAA8J;QAC9J,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,kHAAkH;QAClH,wKAAwK;QACxK,+IAA+I;QAC/I,sKAAsK;KACvK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ConfigRef } from './config.js';
|
|
2
|
+
declare const connectionSourceBrand: unique symbol;
|
|
3
|
+
/** Credential source descriptors carry managed reference names only, never credential values. */
|
|
4
|
+
type ConnectionSourceShape = {
|
|
5
|
+
readonly kind: 'externalExchange';
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: 'managedSecret';
|
|
8
|
+
readonly secret: string;
|
|
9
|
+
readonly scopes?: readonly string[];
|
|
10
|
+
readonly audience?: string;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'clientCredentials';
|
|
13
|
+
readonly tokenUrl: string;
|
|
14
|
+
readonly clientId: string;
|
|
15
|
+
readonly clientSecret: string;
|
|
16
|
+
readonly scopes?: readonly string[];
|
|
17
|
+
readonly audience?: string;
|
|
18
|
+
readonly authMethod?: 'client_secret_basic' | 'client_secret_post';
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An opaque credential source created by one of the canonical source factories. The private brand keeps
|
|
22
|
+
* raw structural objects (and therefore accidental credential literals) out of `connection(...)`.
|
|
23
|
+
*/
|
|
24
|
+
export type ConnectionSource = ConnectionSourceShape & {
|
|
25
|
+
readonly [connectionSourceBrand]: true;
|
|
26
|
+
};
|
|
27
|
+
/** A deployment-owned external exchange connection. Provider lifecycle stays outside Core. */
|
|
28
|
+
export declare function externalExchange(): ConnectionSource;
|
|
29
|
+
/** A connection backed by one managed secret reference and any capabilities known for that secret. */
|
|
30
|
+
export declare function managedSecret(secret: ConfigRef, capabilities?: {
|
|
31
|
+
readonly scopes?: readonly string[];
|
|
32
|
+
readonly audience?: string;
|
|
33
|
+
}): ConnectionSource;
|
|
34
|
+
/** A connection whose short-lived bearer is minted from managed client-credentials references. */
|
|
35
|
+
export declare function clientCredentials(options: {
|
|
36
|
+
readonly tokenUrl: ConfigRef;
|
|
37
|
+
readonly clientId: ConfigRef;
|
|
38
|
+
readonly clientSecret: ConfigRef;
|
|
39
|
+
readonly scopes?: readonly string[];
|
|
40
|
+
readonly audience?: string;
|
|
41
|
+
readonly authMethod?: 'client_secret_basic' | 'client_secret_post';
|
|
42
|
+
}): ConnectionSource;
|
|
43
|
+
export interface ConnectionRef {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly source: ConnectionSource;
|
|
46
|
+
}
|
|
47
|
+
export interface ConnectionBinding<ProfileKey extends string = string> {
|
|
48
|
+
readonly profile: ProfileKey;
|
|
49
|
+
readonly connection: ConnectionRef;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=connection-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-types.d.ts","sourceRoot":"","sources":["../src/connection-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,QAAA,MAAM,qBAAqB,EAAE,OAAO,MAA0C,CAAC;AAE/E,iGAAiG;AACjG,KAAK,qBAAqB,GACtB;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GACrC;IACE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,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MAAM,EAAE,gBAAgB,CAAC;CACnC;AAED,MAAM,WAAW,iBAAiB,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM;IACnE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;CACpC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { serializeSecretRef, serializeVariableRef } from './config.js';
|
|
2
|
+
const connectionSourceBrand = Symbol('noodle.connectionSource');
|
|
3
|
+
function markConnectionSource(source) {
|
|
4
|
+
brandConnectionSource(source);
|
|
5
|
+
return source;
|
|
6
|
+
}
|
|
7
|
+
function brandConnectionSource(source) {
|
|
8
|
+
Object.defineProperty(source, connectionSourceBrand, { value: true });
|
|
9
|
+
}
|
|
10
|
+
/** A deployment-owned external exchange connection. Provider lifecycle stays outside Core. */
|
|
11
|
+
export function externalExchange() {
|
|
12
|
+
return markConnectionSource({ kind: 'externalExchange' });
|
|
13
|
+
}
|
|
14
|
+
/** A connection backed by one managed secret reference and any capabilities known for that secret. */
|
|
15
|
+
export function managedSecret(secret, capabilities = {}) {
|
|
16
|
+
return markConnectionSource({
|
|
17
|
+
kind: 'managedSecret',
|
|
18
|
+
secret: serializeSecretRef(secret, 'connection.source.secret'),
|
|
19
|
+
...(capabilities.scopes !== undefined ? { scopes: [...capabilities.scopes] } : {}),
|
|
20
|
+
...(capabilities.audience !== undefined ? { audience: capabilities.audience } : {}),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/** A connection whose short-lived bearer is minted from managed client-credentials references. */
|
|
24
|
+
export function clientCredentials(options) {
|
|
25
|
+
return markConnectionSource({
|
|
26
|
+
kind: 'clientCredentials',
|
|
27
|
+
tokenUrl: serializeVariableRef(options.tokenUrl, 'connection.source.tokenUrl'),
|
|
28
|
+
clientId: serializeVariableRef(options.clientId, 'connection.source.clientId'),
|
|
29
|
+
clientSecret: serializeSecretRef(options.clientSecret, 'connection.source.clientSecret'),
|
|
30
|
+
...(options.scopes !== undefined ? { scopes: [...options.scopes] } : {}),
|
|
31
|
+
...(options.audience !== undefined ? { audience: options.audience } : {}),
|
|
32
|
+
...(options.authMethod !== undefined ? { authMethod: options.authMethod } : {}),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=connection-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-types.js","sourceRoot":"","sources":["../src/connection-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEvE,MAAM,qBAAqB,GAAkB,MAAM,CAAC,yBAAyB,CAAC,CAAC;AA+B/E,SAAS,oBAAoB,CAC3B,MAAa;IAEb,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,qBAAqB,CAC5B,MAAa;IAEb,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,gBAAgB;IAC9B,OAAO,oBAAoB,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED,sGAAsG;AACtG,MAAM,UAAU,aAAa,CAC3B,MAAiB,EACjB,eAAoF,EAAE;IAEtF,OAAO,oBAAoB,CAAC;QAC1B,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,kBAAkB,CAAC,MAAM,EAAE,0BAA0B,CAAC;QAC9D,GAAG,CAAC,YAAY,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,GAAG,CAAC,YAAY,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpF,CAAC,CAAC;AACL,CAAC;AAED,kGAAkG;AAClG,MAAM,UAAU,iBAAiB,CAAC,OAOjC;IACC,OAAO,oBAAoB,CAAC;QAC1B,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,oBAAoB,CAAC,OAAO,CAAC,QAAQ,EAAE,4BAA4B,CAAC;QAC9E,QAAQ,EAAE,oBAAoB,CAAC,OAAO,CAAC,QAAQ,EAAE,4BAA4B,CAAC;QAC9E,YAAY,EAAE,kBAAkB,CAAC,OAAO,CAAC,YAAY,EAAE,gCAAgC,CAAC;QACxF,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxE,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ConnectionBinding, ConnectionRef, ConnectionSource } from './connection-types.js';
|
|
2
|
+
import type { ConnectorRef } from './connectors.js';
|
|
3
|
+
export { clientCredentials, externalExchange, managedSecret } from './connection-types.js';
|
|
4
|
+
/** Name one logical connection. The id is stable app configuration, not a provider account id. */
|
|
5
|
+
export declare function connection(id: string, source: ConnectionSource): ConnectionRef;
|
|
6
|
+
/** Bind a connector ref to one credential profile and logical connection. */
|
|
7
|
+
export interface BoundConnectorRef<ProfileKey extends string = string> extends ConnectorRef<ProfileKey> {
|
|
8
|
+
readonly binding: ConnectionBinding<ProfileKey>;
|
|
9
|
+
}
|
|
10
|
+
export declare function bind<ProfileKey extends string>(connector: ConnectorRef<ProfileKey>, options: {
|
|
11
|
+
readonly profile: NoInfer<ProfileKey>;
|
|
12
|
+
readonly connection: ConnectionRef;
|
|
13
|
+
}): BoundConnectorRef<ProfileKey>;
|
|
14
|
+
export type { ConnectionBinding, ConnectionRef, ConnectionSource } from './connection-types.js';
|
|
15
|
+
type ManifestV2ConnectorBinding = NonNullable<NonNullable<Extract<Manifest, {
|
|
16
|
+
manifestVersion: '2';
|
|
17
|
+
}>['connectors']>[string]['binding']>;
|
|
18
|
+
/** Internal manifest projection: clone readonly author inputs to the mutable generated schema shape. */
|
|
19
|
+
export declare function toManifestConnectionBinding(binding: ConnectionBinding): ManifestV2ConnectorBinding;
|
|
20
|
+
export declare function toManifestConnectorRef(connector: ConnectorRef): {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly version: string;
|
|
23
|
+
readonly binding?: ManifestV2ConnectorBinding;
|
|
24
|
+
};
|
|
25
|
+
import type { Manifest } from '@noodle-borg/compiler';
|
|
26
|
+
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3F,kGAAkG;AAClG,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,aAAa,CAK9E;AAED,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM,CACnE,SAAQ,YAAY,CAAC,UAAU,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CACjD;AAED,wBAAgB,IAAI,CAAC,UAAU,SAAS,MAAM,EAC5C,SAAS,EAAE,YAAY,CAAC,UAAU,CAAC,EACnC,OAAO,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAA;CAAE,GACrF,iBAAiB,CAAC,UAAU,CAAC,CAiB/B;AAED,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,KAAK,0BAA0B,GAAG,WAAW,CAC3C,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE;IAAE,eAAe,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAC1F,CAAC;AAEF,wGAAwG;AACxG,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,iBAAiB,GACzB,0BAA0B,CA2B5B;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,YAAY,GAAG;IAC/D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,0BAA0B,CAAC;CAC/C,CAQA;AAED,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export { clientCredentials, externalExchange, managedSecret } from './connection-types.js';
|
|
2
|
+
const NAME = /^[a-z0-9_]+$/;
|
|
3
|
+
/** Name one logical connection. The id is stable app configuration, not a provider account id. */
|
|
4
|
+
export function connection(id, source) {
|
|
5
|
+
if (!NAME.test(id)) {
|
|
6
|
+
throw new Error(`connection id "${id}" must use lowercase letters, numbers, and underscores`);
|
|
7
|
+
}
|
|
8
|
+
return { id, source };
|
|
9
|
+
}
|
|
10
|
+
export function bind(connector, options) {
|
|
11
|
+
if (!NAME.test(options.profile)) {
|
|
12
|
+
throw new Error(`credential profile "${options.profile}" must use lowercase letters, numbers, and underscores`);
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
id: connector.id,
|
|
16
|
+
version: connector.version,
|
|
17
|
+
operations: connector.operations,
|
|
18
|
+
...(connector.credentialProfiles !== undefined
|
|
19
|
+
? { credentialProfiles: connector.credentialProfiles }
|
|
20
|
+
: {}),
|
|
21
|
+
...(connector.definitions !== undefined ? { definitions: connector.definitions } : {}),
|
|
22
|
+
...(connector.httpDef !== undefined ? { httpDef: connector.httpDef } : {}),
|
|
23
|
+
binding: { profile: options.profile, connection: options.connection },
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Internal manifest projection: clone readonly author inputs to the mutable generated schema shape. */
|
|
27
|
+
export function toManifestConnectionBinding(binding) {
|
|
28
|
+
const source = binding.connection.source;
|
|
29
|
+
return {
|
|
30
|
+
profile: binding.profile,
|
|
31
|
+
connection: {
|
|
32
|
+
id: binding.connection.id,
|
|
33
|
+
source: source.kind === 'clientCredentials'
|
|
34
|
+
? {
|
|
35
|
+
kind: 'clientCredentials',
|
|
36
|
+
tokenUrl: source.tokenUrl,
|
|
37
|
+
clientId: source.clientId,
|
|
38
|
+
clientSecret: source.clientSecret,
|
|
39
|
+
...(source.scopes !== undefined ? { scopes: [...source.scopes] } : {}),
|
|
40
|
+
...(source.audience !== undefined ? { audience: source.audience } : {}),
|
|
41
|
+
...(source.authMethod !== undefined ? { authMethod: source.authMethod } : {}),
|
|
42
|
+
}
|
|
43
|
+
: source.kind === 'managedSecret'
|
|
44
|
+
? {
|
|
45
|
+
kind: 'managedSecret',
|
|
46
|
+
secret: source.secret,
|
|
47
|
+
...(source.scopes !== undefined ? { scopes: [...source.scopes] } : {}),
|
|
48
|
+
...(source.audience !== undefined ? { audience: source.audience } : {}),
|
|
49
|
+
}
|
|
50
|
+
: { kind: 'externalExchange' },
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function toManifestConnectorRef(connector) {
|
|
55
|
+
return {
|
|
56
|
+
id: connector.id,
|
|
57
|
+
version: connector.version,
|
|
58
|
+
...(connector.binding !== undefined
|
|
59
|
+
? { binding: toManifestConnectionBinding(connector.binding) }
|
|
60
|
+
: {}),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3F,MAAM,IAAI,GAAG,cAAc,CAAC;AAE5B,kGAAkG;AAClG,MAAM,UAAU,UAAU,CAAC,EAAU,EAAE,MAAwB;IAC7D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,EAAE,wDAAwD,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;AACxB,CAAC;AAQD,MAAM,UAAU,IAAI,CAClB,SAAmC,EACnC,OAAsF;IAEtF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,uBAAuB,OAAO,CAAC,OAAO,wDAAwD,CAC/F,CAAC;IACJ,CAAC;IACD,OAAO;QACL,EAAE,EAAE,SAAS,CAAC,EAAE;QAChB,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,UAAU,EAAE,SAAS,CAAC,UAAU;QAChC,GAAG,CAAC,SAAS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CAAC,CAAC,CAAC,EAAE,CAAC;oBACvE,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9E;gBACH,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,eAAe;oBAC/B,CAAC,CAAC;wBACE,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,MAAM,CAAC,MAAM;wBACrB,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBACtE,GAAG,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;qBACxE;oBACH,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE;SACrC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,SAAuB;IAK5D,OAAO;QACL,EAAE,EAAE,SAAS,CAAC,EAAE;QAChB,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,GAAG,CAAC,SAAS,CAAC,OAAO,KAAK,SAAS;YACjC,CAAC,CAAC,EAAE,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;YAC7D,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type JsonSchema, type OperationSignature } from '@noodle-borg/compiler';
|
|
2
|
-
import { type ConnectorFile, type HttpConnectorDef } from '@noodle-borg/connector-defs';
|
|
2
|
+
import { type ConnectorFile, type CredentialProfileDef, type HttpConnectorDef } from '@noodle-borg/connector-defs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { type ConfigRef } from './config.js';
|
|
5
|
+
import type { ConnectionBinding } from './connection-types.js';
|
|
5
6
|
/** What a builder accepts for an operation's input/output: Zod (canonical) or a raw JSON Schema object. */
|
|
6
7
|
type OperationIoOptions = z.ZodType | JsonSchema;
|
|
7
8
|
/**
|
|
@@ -80,8 +81,12 @@ export type HttpConnectorOptions = Omit<HttpConnectorDef['http'], 'baseUrl' | 'a
|
|
|
80
81
|
readonly baseUrl: string | ConfigRef;
|
|
81
82
|
readonly auth?: HttpAuthOptions;
|
|
82
83
|
} & {
|
|
84
|
+
readonly credentialProfiles?: HttpConnectorDef['credentialProfiles'];
|
|
83
85
|
readonly operations: Readonly<Record<string, HttpOperationOptionsWithRefs>>;
|
|
84
86
|
};
|
|
87
|
+
type DeclaredCredentialProfileKeys<Options extends HttpConnectorOptions> = Options extends {
|
|
88
|
+
readonly credentialProfiles: infer Profiles;
|
|
89
|
+
} ? Extract<keyof Profiles, string> : never;
|
|
85
90
|
export interface ConnectorOperationOptions {
|
|
86
91
|
readonly type: OperationSignature['type'];
|
|
87
92
|
/** Zod object schema (canonical) or a raw JSON Schema 2020-12 object. */
|
|
@@ -124,10 +129,13 @@ export interface ConnectorOpDefinition {
|
|
|
124
129
|
readonly limits?: ComputeLimits;
|
|
125
130
|
readonly calls?: Readonly<Record<string, string>>;
|
|
126
131
|
}
|
|
127
|
-
export interface ConnectorRef {
|
|
132
|
+
export interface ConnectorRef<CredentialProfileKey extends string = string> {
|
|
128
133
|
readonly id: string;
|
|
129
134
|
readonly version: string;
|
|
130
135
|
readonly operations: Readonly<Record<string, OperationSignature>>;
|
|
136
|
+
readonly binding?: ConnectionBinding<CredentialProfileKey>;
|
|
137
|
+
/** Credential profiles retained for type-safe binding; omitted for connectors without profiles. */
|
|
138
|
+
readonly credentialProfiles?: Readonly<Record<CredentialProfileKey, CredentialProfileDef>>;
|
|
131
139
|
/** Per-operation fulfilment (present for operations declared with `.compute()`), used to emit a catalog. */
|
|
132
140
|
readonly definitions?: Readonly<Record<string, ConnectorOpDefinition>>;
|
|
133
141
|
/** HTTP fulfilment (present for connectors declared with `.http()`), emitted to the catalog verbatim. */
|
|
@@ -144,24 +152,27 @@ export declare function connector(id: string): {
|
|
|
144
152
|
};
|
|
145
153
|
/** Validate a catalog document against the canonical schema, throwing a precise author-time error. */
|
|
146
154
|
export declare function validateCatalog(file: unknown): ConnectorFile;
|
|
147
|
-
export declare class ConnectorBuilder implements ConnectorRef {
|
|
155
|
+
export declare class ConnectorBuilder<CredentialProfileKey extends string = never> implements ConnectorRef<CredentialProfileKey> {
|
|
148
156
|
readonly id: string;
|
|
149
157
|
readonly version: string;
|
|
150
158
|
readonly operations: Readonly<Record<string, OperationSignature>>;
|
|
151
159
|
readonly definitions: Readonly<Record<string, ConnectorOpDefinition>>;
|
|
152
160
|
readonly httpDef?: HttpConnectorDef;
|
|
153
|
-
|
|
161
|
+
readonly credentialProfiles?: Readonly<Record<CredentialProfileKey, CredentialProfileDef>>;
|
|
162
|
+
constructor(id: string, version: string, operations?: Readonly<Record<string, OperationSignature>>, definitions?: Readonly<Record<string, ConnectorOpDefinition>>, httpDef?: HttpConnectorDef, credentialProfiles?: Readonly<Record<CredentialProfileKey, CredentialProfileDef>>);
|
|
163
|
+
/** Declare the credential profiles supported by a curated signature ref or compute connector. */
|
|
164
|
+
credentials<const Profiles extends Readonly<Record<string, CredentialProfileDef>>>(profiles: Profiles): ConnectorBuilder<Extract<keyof Profiles, string>>;
|
|
154
165
|
/** Declare an operation by signature only (fulfilment supplied elsewhere, e.g. a catalog by `id@version`). */
|
|
155
|
-
operation(name: string, options: ConnectorOperationOptions): ConnectorBuilder
|
|
166
|
+
operation(name: string, options: ConnectorOperationOptions): ConnectorBuilder<CredentialProfileKey>;
|
|
156
167
|
/**
|
|
157
168
|
* Declare this as an **HTTP connector**: transport (`baseUrl`/`allowedOrigins`), `bearer`/`apiKey` auth
|
|
158
169
|
* naming a secret reference, and `${...}`-mapped operations. The connector carries its own fulfilment
|
|
159
170
|
* (mirroring how `.compute()` carries its `code`) and is emitted to the catalog when `.use()`/
|
|
160
171
|
* `.provides()`-d. The typed options are validated against the canonical schema at author time.
|
|
161
172
|
*/
|
|
162
|
-
http(options:
|
|
173
|
+
http<const Options extends HttpConnectorOptions>(options: Options): ConnectorBuilder<DeclaredCredentialProfileKeys<Options>>;
|
|
163
174
|
/** Declare a sandboxed-compute operation: `run` is your function, shipped as the connector's `code`. */
|
|
164
|
-
compute(name: string, options: ComputeOperationOptions): ConnectorBuilder
|
|
175
|
+
compute(name: string, options: ComputeOperationOptions): ConnectorBuilder<CredentialProfileKey>;
|
|
165
176
|
}
|
|
166
177
|
export {};
|
|
167
178
|
//# sourceMappingURL=connectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../src/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../src/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAyD,MAAM,aAAa,CAAC;AACpG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,2GAA2G;AAC3G,KAAK,kBAAkB,GAAG,CAAC,CAAC,OAAO,GAAG,UAAU,CAAC;AAoCjD;;;;GAIG;AACH,KAAK,eAAe,GAChB;IAAE,QAAQ,CAAC,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BAAgB,CAAC;IACpC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;gBAGhF,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACxB,UAAU,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAM,EAC7D,WAAW,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAM,EACjE,OAAO,CAAC,EAAE,gBAAgB,EAC1B,kBAAkB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;IAcnF,iGAAiG;IACjG,WAAW,CAAC,KAAK,CAAC,QAAQ,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,EAC/E,QAAQ,EAAE,QAAQ,GACjB,gBAAgB,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,CAAC,CAAC;IAmBpD,8GAA8G;IAC9G,SAAS,CACP,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,yBAAyB,GACjC,gBAAgB,CAAC,oBAAoB,CAAC;IAkBzC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,CAAC,OAAO,SAAS,oBAAoB,EAC7C,OAAO,EAAE,OAAO,GACf,gBAAgB,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IA0C3D,wGAAwG;IACxG,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,gBAAgB,CAAC,oBAAoB,CAAC;CA6BhG"}
|
|
@@ -48,7 +48,8 @@ export class ConnectorBuilder {
|
|
|
48
48
|
operations;
|
|
49
49
|
definitions;
|
|
50
50
|
httpDef;
|
|
51
|
-
|
|
51
|
+
credentialProfiles;
|
|
52
|
+
constructor(id, version, operations = {}, definitions = {}, httpDef, credentialProfiles) {
|
|
52
53
|
this.id = id;
|
|
53
54
|
this.version = version;
|
|
54
55
|
this.operations = operations;
|
|
@@ -56,6 +57,20 @@ export class ConnectorBuilder {
|
|
|
56
57
|
// Assign conditionally (not `= undefined`) to satisfy exactOptionalPropertyTypes.
|
|
57
58
|
if (httpDef !== undefined)
|
|
58
59
|
this.httpDef = httpDef;
|
|
60
|
+
const declaredProfiles = credentialProfiles ?? httpDef?.credentialProfiles;
|
|
61
|
+
if (declaredProfiles !== undefined) {
|
|
62
|
+
this.credentialProfiles = declaredProfiles;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** Declare the credential profiles supported by a curated signature ref or compute connector. */
|
|
66
|
+
credentials(profiles) {
|
|
67
|
+
if (this.httpDef !== undefined) {
|
|
68
|
+
throw new Error(`connector "${this.id}" is HTTP — declare credentialProfiles inside .http(...)`);
|
|
69
|
+
}
|
|
70
|
+
if (this.credentialProfiles !== undefined) {
|
|
71
|
+
throw new Error(`connector "${this.id}" already declares credential profiles`);
|
|
72
|
+
}
|
|
73
|
+
return new ConnectorBuilder(this.id, this.version, this.operations, this.definitions, undefined, { ...profiles });
|
|
59
74
|
}
|
|
60
75
|
/** Declare an operation by signature only (fulfilment supplied elsewhere, e.g. a catalog by `id@version`). */
|
|
61
76
|
operation(name, options) {
|
|
@@ -66,7 +81,7 @@ export class ConnectorBuilder {
|
|
|
66
81
|
input: toOperationIoSchema(options.input, 'input', `${this.id}.${name}`),
|
|
67
82
|
output: toOperationIoSchema(options.output, 'output', `${this.id}.${name}`),
|
|
68
83
|
},
|
|
69
|
-
}, this.definitions, this.httpDef);
|
|
84
|
+
}, this.definitions, this.httpDef, this.credentialProfiles);
|
|
70
85
|
}
|
|
71
86
|
/**
|
|
72
87
|
* Declare this as an **HTTP connector**: transport (`baseUrl`/`allowedOrigins`), `bearer`/`apiKey` auth
|
|
@@ -75,6 +90,9 @@ export class ConnectorBuilder {
|
|
|
75
90
|
* `.provides()`-d. The typed options are validated against the canonical schema at author time.
|
|
76
91
|
*/
|
|
77
92
|
http(options) {
|
|
93
|
+
if (this.credentialProfiles !== undefined) {
|
|
94
|
+
throw new Error(`connector "${this.id}" already uses .credentials(...) — HTTP connectors declare credentialProfiles inside .http(...)`);
|
|
95
|
+
}
|
|
78
96
|
if (Object.keys(this.definitions).length > 0) {
|
|
79
97
|
throw new Error(`connector "${this.id}" already has .compute() operations — a connector is HTTP or compute, not both`);
|
|
80
98
|
}
|
|
@@ -84,6 +102,9 @@ export class ConnectorBuilder {
|
|
|
84
102
|
id: this.id,
|
|
85
103
|
version: this.version,
|
|
86
104
|
kind: 'custom',
|
|
105
|
+
...(options.credentialProfiles !== undefined
|
|
106
|
+
? { credentialProfiles: options.credentialProfiles }
|
|
107
|
+
: {}),
|
|
87
108
|
http,
|
|
88
109
|
operations,
|
|
89
110
|
};
|
|
@@ -118,7 +139,7 @@ export class ConnectorBuilder {
|
|
|
118
139
|
...(options.limits ? { limits: options.limits } : {}),
|
|
119
140
|
...(options.calls ? { calls: options.calls } : {}),
|
|
120
141
|
},
|
|
121
|
-
});
|
|
142
|
+
}, undefined, this.credentialProfiles);
|
|
122
143
|
}
|
|
123
144
|
}
|
|
124
145
|
function rejectUnsafeActionRetry(id, options) {
|
|
@@ -133,8 +154,9 @@ function normalizeHttpOptions(id, options) {
|
|
|
133
154
|
for (const [name, operation] of Object.entries(options.operations)) {
|
|
134
155
|
operations[name] = normalizeOperation(id, name, operation);
|
|
135
156
|
}
|
|
157
|
+
const { credentialProfiles: _credentialProfiles, ...httpOptions } = options;
|
|
136
158
|
const normalized = {
|
|
137
|
-
...
|
|
159
|
+
...httpOptions,
|
|
138
160
|
baseUrl: normalizeVariableOrString(options.baseUrl, `connectors.${id}.http.baseUrl`),
|
|
139
161
|
...(options.allowedOrigins !== undefined ? { allowedOrigins: options.allowedOrigins } : {}),
|
|
140
162
|
...(options.auth !== undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../src/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,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;YACzC,GAAG;YACH,mBAAmB,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;SAC5C,CAAC,CACH,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAC7F,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,EAAgD;IACpE,MAAM,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;IACjC,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IACjE,+EAA+E;IAC/E,OAAO,YAAY,GAAG,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ConnectorBuilder } from './connectors.js';
|
|
2
|
+
/**
|
|
3
|
+
* Build Noodle's curated Gmail REST connector. It declares transport and credential requirements only;
|
|
4
|
+
* applications bind it to one or more logical connections with `bind(...)`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function gmailConnector(): ConnectorBuilder<'user_oauth'>;
|
|
7
|
+
//# sourceMappingURL=gmail.d.ts.map
|