@squadrules/mcp 4.8.6
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/LICENSE +22 -0
- package/README.md +350 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/bootstrap.d.ts +10 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +61 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/cli/api-client.d.ts +112 -0
- package/dist/cli/api-client.d.ts.map +1 -0
- package/dist/cli/api-client.js +259 -0
- package/dist/cli/api-client.js.map +1 -0
- package/dist/cli/auth-error.d.ts +19 -0
- package/dist/cli/auth-error.d.ts.map +1 -0
- package/dist/cli/auth-error.js +123 -0
- package/dist/cli/auth-error.js.map +1 -0
- package/dist/cli/client-factory.d.ts +14 -0
- package/dist/cli/client-factory.d.ts.map +1 -0
- package/dist/cli/client-factory.js +53 -0
- package/dist/cli/client-factory.js.map +1 -0
- package/dist/cli/commands/attest.d.ts +6 -0
- package/dist/cli/commands/attest.d.ts.map +1 -0
- package/dist/cli/commands/attest.js +55 -0
- package/dist/cli/commands/attest.js.map +1 -0
- package/dist/cli/commands/begin.d.ts +6 -0
- package/dist/cli/commands/begin.d.ts.map +1 -0
- package/dist/cli/commands/begin.js +27 -0
- package/dist/cli/commands/begin.js.map +1 -0
- package/dist/cli/commands/cli-train.d.ts +6 -0
- package/dist/cli/commands/cli-train.d.ts.map +1 -0
- package/dist/cli/commands/cli-train.js +276 -0
- package/dist/cli/commands/cli-train.js.map +1 -0
- package/dist/cli/commands/delete-metadata.d.ts +3 -0
- package/dist/cli/commands/delete-metadata.d.ts.map +1 -0
- package/dist/cli/commands/delete-metadata.js +3 -0
- package/dist/cli/commands/delete-metadata.js.map +1 -0
- package/dist/cli/commands/delete.d.ts +6 -0
- package/dist/cli/commands/delete.d.ts.map +1 -0
- package/dist/cli/commands/delete.js +24 -0
- package/dist/cli/commands/delete.js.map +1 -0
- package/dist/cli/commands/export.d.ts +21 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +109 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/login.d.ts +16 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/login.js +226 -0
- package/dist/cli/commands/login.js.map +1 -0
- package/dist/cli/commands/logout.d.ts +6 -0
- package/dist/cli/commands/logout.d.ts.map +1 -0
- package/dist/cli/commands/logout.js +17 -0
- package/dist/cli/commands/logout.js.map +1 -0
- package/dist/cli/commands/search.d.ts +6 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/search.js +25 -0
- package/dist/cli/commands/search.js.map +1 -0
- package/dist/cli/commands/serve.d.ts +18 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/serve.js +165 -0
- package/dist/cli/commands/serve.js.map +1 -0
- package/dist/cli/commands/spaces.d.ts +6 -0
- package/dist/cli/commands/spaces.d.ts.map +1 -0
- package/dist/cli/commands/spaces.js +25 -0
- package/dist/cli/commands/spaces.js.map +1 -0
- package/dist/cli/commands/token.d.ts +6 -0
- package/dist/cli/commands/token.d.ts.map +1 -0
- package/dist/cli/commands/token.js +45 -0
- package/dist/cli/commands/token.js.map +1 -0
- package/dist/cli/commands/update.d.ts +6 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +88 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/config-file-internals.d.ts +23 -0
- package/dist/cli/config-file-internals.d.ts.map +1 -0
- package/dist/cli/config-file-internals.js +45 -0
- package/dist/cli/config-file-internals.js.map +1 -0
- package/dist/cli/config-file-write.d.ts +10 -0
- package/dist/cli/config-file-write.d.ts.map +1 -0
- package/dist/cli/config-file-write.js +168 -0
- package/dist/cli/config-file-write.js.map +1 -0
- package/dist/cli/config-file.d.ts +30 -0
- package/dist/cli/config-file.d.ts.map +1 -0
- package/dist/cli/config-file.js +200 -0
- package/dist/cli/config-file.js.map +1 -0
- package/dist/cli/config.d.ts +13 -0
- package/dist/cli/config.d.ts.map +1 -0
- package/dist/cli/config.js +24 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/download-export-ref.d.ts +7 -0
- package/dist/cli/download-export-ref.d.ts.map +1 -0
- package/dist/cli/download-export-ref.js +19 -0
- package/dist/cli/download-export-ref.js.map +1 -0
- package/dist/cli/fetch-error.d.ts +18 -0
- package/dist/cli/fetch-error.d.ts.map +1 -0
- package/dist/cli/fetch-error.js +38 -0
- package/dist/cli/fetch-error.js.map +1 -0
- package/dist/cli/format-next-call.d.ts +2 -0
- package/dist/cli/format-next-call.d.ts.map +1 -0
- package/dist/cli/format-next-call.js +63 -0
- package/dist/cli/format-next-call.js.map +1 -0
- package/dist/cli/index.d.ts +6 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +8 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/keyring.d.ts +73 -0
- package/dist/cli/keyring.d.ts.map +1 -0
- package/dist/cli/keyring.js +257 -0
- package/dist/cli/keyring.js.map +1 -0
- package/dist/cli/oauth-refresh.d.ts +32 -0
- package/dist/cli/oauth-refresh.d.ts.map +1 -0
- package/dist/cli/oauth-refresh.js +91 -0
- package/dist/cli/oauth-refresh.js.map +1 -0
- package/dist/cli/output.d.ts +10 -0
- package/dist/cli/output.d.ts.map +1 -0
- package/dist/cli/output.js +23 -0
- package/dist/cli/output.js.map +1 -0
- package/dist/cli/program.d.ts +3 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli/program.js +64 -0
- package/dist/cli/program.js.map +1 -0
- package/dist/cli/resolve-api-base.d.ts +7 -0
- package/dist/cli/resolve-api-base.d.ts.map +1 -0
- package/dist/cli/resolve-api-base.js +14 -0
- package/dist/cli/resolve-api-base.js.map +1 -0
- package/dist/cli/rewrite-login-url.d.ts +7 -0
- package/dist/cli/rewrite-login-url.d.ts.map +1 -0
- package/dist/cli/rewrite-login-url.js +34 -0
- package/dist/cli/rewrite-login-url.js.map +1 -0
- package/dist/cli/safe-http-url.d.ts +8 -0
- package/dist/cli/safe-http-url.d.ts.map +1 -0
- package/dist/cli/safe-http-url.js +28 -0
- package/dist/cli/safe-http-url.js.map +1 -0
- package/dist/cli/skill-zip-local-write.d.ts +22 -0
- package/dist/cli/skill-zip-local-write.d.ts.map +1 -0
- package/dist/cli/skill-zip-local-write.js +69 -0
- package/dist/cli/skill-zip-local-write.js.map +1 -0
- package/dist/cli/upload-guards.d.ts +7 -0
- package/dist/cli/upload-guards.d.ts.map +1 -0
- package/dist/cli/upload-guards.js +96 -0
- package/dist/cli/upload-guards.js.map +1 -0
- package/dist/config/adapter-markdown-size-limits.d.ts +20 -0
- package/dist/config/adapter-markdown-size-limits.d.ts.map +1 -0
- package/dist/config/adapter-markdown-size-limits.js +26 -0
- package/dist/config/adapter-markdown-size-limits.js.map +1 -0
- package/dist/config/env-alias.d.ts +56 -0
- package/dist/config/env-alias.d.ts.map +1 -0
- package/dist/config/env-alias.js +112 -0
- package/dist/config/env-alias.js.map +1 -0
- package/dist/config/export-download-settings.d.ts +4 -0
- package/dist/config/export-download-settings.d.ts.map +1 -0
- package/dist/config/export-download-settings.js +45 -0
- package/dist/config/export-download-settings.js.map +1 -0
- package/dist/config/export-zip-settings.d.ts +16 -0
- package/dist/config/export-zip-settings.d.ts.map +1 -0
- package/dist/config/export-zip-settings.js +28 -0
- package/dist/config/export-zip-settings.js.map +1 -0
- package/dist/config.d.ts +165 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +321 -0
- package/dist/config.js.map +1 -0
- package/dist/constants/builtin-search-meta.d.ts +14 -0
- package/dist/constants/builtin-search-meta.d.ts.map +1 -0
- package/dist/constants/builtin-search-meta.js +32 -0
- package/dist/constants/builtin-search-meta.js.map +1 -0
- package/dist/embed-docs/mem/README.md +140 -0
- package/dist/embed-docs/mem/adapter-migration.md +202 -0
- package/dist/embed-docs/mem/bulk-insert-adapters-via-cli.md +152 -0
- package/dist/embed-docs/mem/challenge-type-guide.md +278 -0
- package/dist/embed-docs/mem/create-new-protocol.md +346 -0
- package/dist/embed-docs/mem/phase-critic-guide.md +199 -0
- package/dist/embed-docs/mem/phase-critic.md +210 -0
- package/dist/embed-docs/mem/protocol-linking-guide.md +231 -0
- package/dist/embed-docs/mem/refine-search.md +93 -0
- package/dist/embed-docs/mem/skill-format-guide.md +280 -0
- package/dist/http/bearer-validate.d.ts +25 -0
- package/dist/http/bearer-validate.d.ts.map +1 -0
- package/dist/http/bearer-validate.js +173 -0
- package/dist/http/bearer-validate.js.map +1 -0
- package/dist/http/export-skill-zip-http.d.ts +5 -0
- package/dist/http/export-skill-zip-http.d.ts.map +1 -0
- package/dist/http/export-skill-zip-http.js +29 -0
- package/dist/http/export-skill-zip-http.js.map +1 -0
- package/dist/http/http-api-attest.d.ts +7 -0
- package/dist/http/http-api-attest.d.ts.map +1 -0
- package/dist/http/http-api-attest.js +33 -0
- package/dist/http/http-api-attest.js.map +1 -0
- package/dist/http/http-api-begin-step.d.ts +8 -0
- package/dist/http/http-api-begin-step.d.ts.map +1 -0
- package/dist/http/http-api-begin-step.js +33 -0
- package/dist/http/http-api-begin-step.js.map +1 -0
- package/dist/http/http-api-begin.d.ts +9 -0
- package/dist/http/http-api-begin.d.ts.map +1 -0
- package/dist/http/http-api-begin.js +34 -0
- package/dist/http/http-api-begin.js.map +1 -0
- package/dist/http/http-api-delete.d.ts +7 -0
- package/dist/http/http-api-delete.d.ts.map +1 -0
- package/dist/http/http-api-delete.js +33 -0
- package/dist/http/http-api-delete.js.map +1 -0
- package/dist/http/http-api-dump.d.ts +8 -0
- package/dist/http/http-api-dump.d.ts.map +1 -0
- package/dist/http/http-api-dump.js +50 -0
- package/dist/http/http-api-dump.js.map +1 -0
- package/dist/http/http-api-me.d.ts +7 -0
- package/dist/http/http-api-me.d.ts.map +1 -0
- package/dist/http/http-api-me.js +43 -0
- package/dist/http/http-api-me.js.map +1 -0
- package/dist/http/http-api-routes.d.ts +13 -0
- package/dist/http/http-api-routes.d.ts.map +1 -0
- package/dist/http/http-api-routes.js +32 -0
- package/dist/http/http-api-routes.js.map +1 -0
- package/dist/http/http-api-snapshot.d.ts +4 -0
- package/dist/http/http-api-snapshot.d.ts.map +1 -0
- package/dist/http/http-api-snapshot.js +35 -0
- package/dist/http/http-api-snapshot.js.map +1 -0
- package/dist/http/http-api-spaces.d.ts +8 -0
- package/dist/http/http-api-spaces.d.ts.map +1 -0
- package/dist/http/http-api-spaces.js +28 -0
- package/dist/http/http-api-spaces.js.map +1 -0
- package/dist/http/http-api-train-json.d.ts +8 -0
- package/dist/http/http-api-train-json.d.ts.map +1 -0
- package/dist/http/http-api-train-json.js +153 -0
- package/dist/http/http-api-train-json.js.map +1 -0
- package/dist/http/http-api-train-raw.d.ts +8 -0
- package/dist/http/http-api-train-raw.d.ts.map +1 -0
- package/dist/http/http-api-train-raw.js +199 -0
- package/dist/http/http-api-train-raw.js.map +1 -0
- package/dist/http/http-api-update.d.ts +7 -0
- package/dist/http/http-api-update.d.ts.map +1 -0
- package/dist/http/http-api-update.js +33 -0
- package/dist/http/http-api-update.js.map +1 -0
- package/dist/http/http-auth-callback.d.ts +12 -0
- package/dist/http/http-auth-callback.d.ts.map +1 -0
- package/dist/http/http-auth-callback.js +175 -0
- package/dist/http/http-auth-callback.js.map +1 -0
- package/dist/http/http-auth-middleware.d.ts +29 -0
- package/dist/http/http-auth-middleware.d.ts.map +1 -0
- package/dist/http/http-auth-middleware.js +285 -0
- package/dist/http/http-auth-middleware.js.map +1 -0
- package/dist/http/http-auth-oidc-redirect.d.ts +24 -0
- package/dist/http/http-auth-oidc-redirect.d.ts.map +1 -0
- package/dist/http/http-auth-oidc-redirect.js +80 -0
- package/dist/http/http-auth-oidc-redirect.js.map +1 -0
- package/dist/http/http-client-registration-proxy.d.ts +3 -0
- package/dist/http/http-client-registration-proxy.d.ts.map +1 -0
- package/dist/http/http-client-registration-proxy.js +146 -0
- package/dist/http/http-client-registration-proxy.js.map +1 -0
- package/dist/http/http-error-handlers.d.ts +7 -0
- package/dist/http/http-error-handlers.d.ts.map +1 -0
- package/dist/http/http-error-handlers.js +50 -0
- package/dist/http/http-error-handlers.js.map +1 -0
- package/dist/http/http-export-artifact-download-routes.d.ts +4 -0
- package/dist/http/http-export-artifact-download-routes.d.ts.map +1 -0
- package/dist/http/http-export-artifact-download-routes.js +49 -0
- package/dist/http/http-export-artifact-download-routes.js.map +1 -0
- package/dist/http/http-export-download-routes.d.ts +5 -0
- package/dist/http/http-export-download-routes.d.ts.map +1 -0
- package/dist/http/http-export-download-routes.js +35 -0
- package/dist/http/http-export-download-routes.js.map +1 -0
- package/dist/http/http-health-routes.d.ts +9 -0
- package/dist/http/http-health-routes.d.ts.map +1 -0
- package/dist/http/http-health-routes.js +106 -0
- package/dist/http/http-health-routes.js.map +1 -0
- package/dist/http/http-mcp-cors.d.ts +3 -0
- package/dist/http/http-mcp-cors.d.ts.map +1 -0
- package/dist/http/http-mcp-cors.js +27 -0
- package/dist/http/http-mcp-cors.js.map +1 -0
- package/dist/http/http-mcp-handler.d.ts +19 -0
- package/dist/http/http-mcp-handler.d.ts.map +1 -0
- package/dist/http/http-mcp-handler.js +291 -0
- package/dist/http/http-mcp-handler.js.map +1 -0
- package/dist/http/http-metrics-middleware.d.ts +7 -0
- package/dist/http/http-metrics-middleware.d.ts.map +1 -0
- package/dist/http/http-metrics-middleware.js +56 -0
- package/dist/http/http-metrics-middleware.js.map +1 -0
- package/dist/http/http-route-errors.d.ts +3 -0
- package/dist/http/http-route-errors.d.ts.map +1 -0
- package/dist/http/http-route-errors.js +26 -0
- package/dist/http/http-route-errors.js.map +1 -0
- package/dist/http/http-server-config.d.ts +13 -0
- package/dist/http/http-server-config.d.ts.map +1 -0
- package/dist/http/http-server-config.js +67 -0
- package/dist/http/http-server-config.js.map +1 -0
- package/dist/http/http-server-startup.d.ts +9 -0
- package/dist/http/http-server-startup.d.ts.map +1 -0
- package/dist/http/http-server-startup.js +26 -0
- package/dist/http/http-server-startup.js.map +1 -0
- package/dist/http/http-server.d.ts +4 -0
- package/dist/http/http-server.d.ts.map +1 -0
- package/dist/http/http-server.js +47 -0
- package/dist/http/http-server.js.map +1 -0
- package/dist/http/http-ui-static.d.ts +9 -0
- package/dist/http/http-ui-static.d.ts.map +1 -0
- package/dist/http/http-ui-static.js +88 -0
- package/dist/http/http-ui-static.js.map +1 -0
- package/dist/http/http-well-known.d.ts +23 -0
- package/dist/http/http-well-known.d.ts.map +1 -0
- package/dist/http/http-well-known.js +167 -0
- package/dist/http/http-well-known.js.map +1 -0
- package/dist/http/http-www-authenticate.d.ts +11 -0
- package/dist/http/http-www-authenticate.d.ts.map +1 -0
- package/dist/http/http-www-authenticate.js +42 -0
- package/dist/http/http-www-authenticate.js.map +1 -0
- package/dist/http/mcp-audit-emit.d.ts +30 -0
- package/dist/http/mcp-audit-emit.d.ts.map +1 -0
- package/dist/http/mcp-audit-emit.js +98 -0
- package/dist/http/mcp-audit-emit.js.map +1 -0
- package/dist/http/mcp-ui-offerings-auth-jsonrpc.d.ts +10 -0
- package/dist/http/mcp-ui-offerings-auth-jsonrpc.d.ts.map +1 -0
- package/dist/http/mcp-ui-offerings-auth-jsonrpc.js +28 -0
- package/dist/http/mcp-ui-offerings-auth-jsonrpc.js.map +1 -0
- package/dist/http/oidc-profile-claims.d.ts +77 -0
- package/dist/http/oidc-profile-claims.d.ts.map +1 -0
- package/dist/http/oidc-profile-claims.js +257 -0
- package/dist/http/oidc-profile-claims.js.map +1 -0
- package/dist/http/oidc-scopes.d.ts +3 -0
- package/dist/http/oidc-scopes.d.ts.map +1 -0
- package/dist/http/oidc-scopes.js +21 -0
- package/dist/http/oidc-scopes.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +159 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-apps/activate-widget-html.d.ts +6 -0
- package/dist/mcp-apps/activate-widget-html.d.ts.map +1 -0
- package/dist/mcp-apps/activate-widget-html.js +29 -0
- package/dist/mcp-apps/activate-widget-html.js.map +1 -0
- package/dist/mcp-apps/activate-widget-inline-css.d.ts +2 -0
- package/dist/mcp-apps/activate-widget-inline-css.d.ts.map +1 -0
- package/dist/mcp-apps/activate-widget-inline-css.js +185 -0
- package/dist/mcp-apps/activate-widget-inline-css.js.map +1 -0
- package/dist/mcp-apps/activate-widget-inline-script.d.ts +2 -0
- package/dist/mcp-apps/activate-widget-inline-script.d.ts.map +1 -0
- package/dist/mcp-apps/activate-widget-inline-script.js +452 -0
- package/dist/mcp-apps/activate-widget-inline-script.js.map +1 -0
- package/dist/mcp-apps/forward-widget-html.d.ts +6 -0
- package/dist/mcp-apps/forward-widget-html.d.ts.map +1 -0
- package/dist/mcp-apps/forward-widget-html.js +34 -0
- package/dist/mcp-apps/forward-widget-html.js.map +1 -0
- package/dist/mcp-apps/forward-widget-inline-css.d.ts +2 -0
- package/dist/mcp-apps/forward-widget-inline-css.d.ts.map +1 -0
- package/dist/mcp-apps/forward-widget-inline-css.js +170 -0
- package/dist/mcp-apps/forward-widget-inline-css.js.map +1 -0
- package/dist/mcp-apps/forward-widget-inline-script.d.ts +2 -0
- package/dist/mcp-apps/forward-widget-inline-script.d.ts.map +1 -0
- package/dist/mcp-apps/forward-widget-inline-script.js +520 -0
- package/dist/mcp-apps/forward-widget-inline-script.js.map +1 -0
- package/dist/mcp-apps/kairos-logo-embedded.d.ts +3 -0
- package/dist/mcp-apps/kairos-logo-embedded.d.ts.map +1 -0
- package/dist/mcp-apps/kairos-logo-embedded.js +3 -0
- package/dist/mcp-apps/kairos-logo-embedded.js.map +1 -0
- package/dist/mcp-apps/kairos-server-ui-capability.d.ts +12 -0
- package/dist/mcp-apps/kairos-server-ui-capability.d.ts.map +1 -0
- package/dist/mcp-apps/kairos-server-ui-capability.js +13 -0
- package/dist/mcp-apps/kairos-server-ui-capability.js.map +1 -0
- package/dist/mcp-apps/kairos-ui-constants.d.ts +97 -0
- package/dist/mcp-apps/kairos-ui-constants.d.ts.map +1 -0
- package/dist/mcp-apps/kairos-ui-constants.js +100 -0
- package/dist/mcp-apps/kairos-ui-constants.js.map +1 -0
- package/dist/mcp-apps/list-offerings-for-ui.d.ts +42 -0
- package/dist/mcp-apps/list-offerings-for-ui.d.ts.map +1 -0
- package/dist/mcp-apps/list-offerings-for-ui.js +214 -0
- package/dist/mcp-apps/list-offerings-for-ui.js.map +1 -0
- package/dist/mcp-apps/mcp-widget-chrome-inline-css.d.ts +6 -0
- package/dist/mcp-apps/mcp-widget-chrome-inline-css.d.ts.map +1 -0
- package/dist/mcp-apps/mcp-widget-chrome-inline-css.js +99 -0
- package/dist/mcp-apps/mcp-widget-chrome-inline-css.js.map +1 -0
- package/dist/mcp-apps/mcp-widget-presentation-inject.d.ts +5 -0
- package/dist/mcp-apps/mcp-widget-presentation-inject.d.ts.map +1 -0
- package/dist/mcp-apps/mcp-widget-presentation-inject.js +8 -0
- package/dist/mcp-apps/mcp-widget-presentation-inject.js.map +1 -0
- package/dist/mcp-apps/register-activate-ui-resources.d.ts +4 -0
- package/dist/mcp-apps/register-activate-ui-resources.d.ts.map +1 -0
- package/dist/mcp-apps/register-activate-ui-resources.js +33 -0
- package/dist/mcp-apps/register-activate-ui-resources.js.map +1 -0
- package/dist/mcp-apps/register-forward-ui-resources.d.ts +4 -0
- package/dist/mcp-apps/register-forward-ui-resources.d.ts.map +1 -0
- package/dist/mcp-apps/register-forward-ui-resources.js +33 -0
- package/dist/mcp-apps/register-forward-ui-resources.js.map +1 -0
- package/dist/mcp-apps/register-spaces-ui-resources.d.ts +4 -0
- package/dist/mcp-apps/register-spaces-ui-resources.d.ts.map +1 -0
- package/dist/mcp-apps/register-spaces-ui-resources.js +33 -0
- package/dist/mcp-apps/register-spaces-ui-resources.js.map +1 -0
- package/dist/mcp-apps/spaces-mcp-app-widget-html.d.ts +14 -0
- package/dist/mcp-apps/spaces-mcp-app-widget-html.d.ts.map +1 -0
- package/dist/mcp-apps/spaces-mcp-app-widget-html.js +409 -0
- package/dist/mcp-apps/spaces-mcp-app-widget-html.js.map +1 -0
- package/dist/mcp-apps/spaces-widget-html.d.ts +22 -0
- package/dist/mcp-apps/spaces-widget-html.d.ts.map +1 -0
- package/dist/mcp-apps/spaces-widget-html.js +65 -0
- package/dist/mcp-apps/spaces-widget-html.js.map +1 -0
- package/dist/mcp-apps/widget-inline-minify.d.ts +4 -0
- package/dist/mcp-apps/widget-inline-minify.d.ts.map +1 -0
- package/dist/mcp-apps/widget-inline-minify.js +16 -0
- package/dist/mcp-apps/widget-inline-minify.js.map +1 -0
- package/dist/me-response.d.ts +19 -0
- package/dist/me-response.d.ts.map +1 -0
- package/dist/me-response.js +2 -0
- package/dist/me-response.js.map +1 -0
- package/dist/metrics-server.d.ts +14 -0
- package/dist/metrics-server.d.ts.map +1 -0
- package/dist/metrics-server.js +41 -0
- package/dist/metrics-server.js.map +1 -0
- package/dist/resources/docs-resources.d.ts +2 -0
- package/dist/resources/docs-resources.d.ts.map +1 -0
- package/dist/resources/docs-resources.js +47 -0
- package/dist/resources/docs-resources.js.map +1 -0
- package/dist/resources/embedded-mcp-resources.d.ts +85 -0
- package/dist/resources/embedded-mcp-resources.d.ts.map +1 -0
- package/dist/resources/embedded-mcp-resources.js +154 -0
- package/dist/resources/embedded-mcp-resources.js.map +1 -0
- package/dist/resources/mem-dir-utils.d.ts +6 -0
- package/dist/resources/mem-dir-utils.d.ts.map +1 -0
- package/dist/resources/mem-dir-utils.js +44 -0
- package/dist/resources/mem-dir-utils.js.map +1 -0
- package/dist/resources/mem-resources-boot.d.ts +11 -0
- package/dist/resources/mem-resources-boot.d.ts.map +1 -0
- package/dist/resources/mem-resources-boot.js +127 -0
- package/dist/resources/mem-resources-boot.js.map +1 -0
- package/dist/resources/mem-uuid-mapper.d.ts +9 -0
- package/dist/resources/mem-uuid-mapper.d.ts.map +1 -0
- package/dist/resources/mem-uuid-mapper.js +63 -0
- package/dist/resources/mem-uuid-mapper.js.map +1 -0
- package/dist/resources/prompt-resources.d.ts +8 -0
- package/dist/resources/prompt-resources.d.ts.map +1 -0
- package/dist/resources/prompt-resources.js +56 -0
- package/dist/resources/prompt-resources.js.map +1 -0
- package/dist/resources/resource-bootstrap.d.ts +7 -0
- package/dist/resources/resource-bootstrap.d.ts.map +1 -0
- package/dist/resources/resource-bootstrap.js +33 -0
- package/dist/resources/resource-bootstrap.js.map +1 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +102 -0
- package/dist/server.js.map +1 -0
- package/dist/services/activate-refinement-store.d.ts +9 -0
- package/dist/services/activate-refinement-store.d.ts.map +1 -0
- package/dist/services/activate-refinement-store.js +46 -0
- package/dist/services/activate-refinement-store.js.map +1 -0
- package/dist/services/adapter-layer-count.d.ts +19 -0
- package/dist/services/adapter-layer-count.d.ts.map +1 -0
- package/dist/services/adapter-layer-count.js +23 -0
- package/dist/services/adapter-layer-count.js.map +1 -0
- package/dist/services/adapter-navigation.d.ts +15 -0
- package/dist/services/adapter-navigation.d.ts.map +1 -0
- package/dist/services/adapter-navigation.js +102 -0
- package/dist/services/adapter-navigation.js.map +1 -0
- package/dist/services/code-block-processor.d.ts +40 -0
- package/dist/services/code-block-processor.d.ts.map +1 -0
- package/dist/services/code-block-processor.js +169 -0
- package/dist/services/code-block-processor.js.map +1 -0
- package/dist/services/embedding/audit.d.ts +35 -0
- package/dist/services/embedding/audit.d.ts.map +1 -0
- package/dist/services/embedding/audit.js +146 -0
- package/dist/services/embedding/audit.js.map +1 -0
- package/dist/services/embedding/bm25-tokenizer.d.ts +21 -0
- package/dist/services/embedding/bm25-tokenizer.d.ts.map +1 -0
- package/dist/services/embedding/bm25-tokenizer.js +47 -0
- package/dist/services/embedding/bm25-tokenizer.js.map +1 -0
- package/dist/services/embedding/config.d.ts +11 -0
- package/dist/services/embedding/config.d.ts.map +1 -0
- package/dist/services/embedding/config.js +32 -0
- package/dist/services/embedding/config.js.map +1 -0
- package/dist/services/embedding/health.d.ts +5 -0
- package/dist/services/embedding/health.d.ts.map +1 -0
- package/dist/services/embedding/health.js +112 -0
- package/dist/services/embedding/health.js.map +1 -0
- package/dist/services/embedding/providers.d.ts +24 -0
- package/dist/services/embedding/providers.d.ts.map +1 -0
- package/dist/services/embedding/providers.js +331 -0
- package/dist/services/embedding/providers.js.map +1 -0
- package/dist/services/embedding/service.d.ts +41 -0
- package/dist/services/embedding/service.d.ts.map +1 -0
- package/dist/services/embedding/service.js +272 -0
- package/dist/services/embedding/service.js.map +1 -0
- package/dist/services/embedding/types.d.ts +17 -0
- package/dist/services/embedding/types.d.ts.map +1 -0
- package/dist/services/embedding/types.js +2 -0
- package/dist/services/embedding/types.js.map +1 -0
- package/dist/services/execution-trace-store.d.ts +54 -0
- package/dist/services/execution-trace-store.d.ts.map +1 -0
- package/dist/services/execution-trace-store.js +248 -0
- package/dist/services/execution-trace-store.js.map +1 -0
- package/dist/services/export-artifact-download-capability-store.d.ts +19 -0
- package/dist/services/export-artifact-download-capability-store.d.ts.map +1 -0
- package/dist/services/export-artifact-download-capability-store.js +15 -0
- package/dist/services/export-artifact-download-capability-store.js.map +1 -0
- package/dist/services/export-artifact-download-capability.d.ts +19 -0
- package/dist/services/export-artifact-download-capability.d.ts.map +1 -0
- package/dist/services/export-artifact-download-capability.js +79 -0
- package/dist/services/export-artifact-download-capability.js.map +1 -0
- package/dist/services/export-download-capability-store.d.ts +20 -0
- package/dist/services/export-download-capability-store.d.ts.map +1 -0
- package/dist/services/export-download-capability-store.js +15 -0
- package/dist/services/export-download-capability-store.js.map +1 -0
- package/dist/services/export-download-capability.d.ts +20 -0
- package/dist/services/export-download-capability.d.ts.map +1 -0
- package/dist/services/export-download-capability.js +81 -0
- package/dist/services/export-download-capability.js.map +1 -0
- package/dist/services/forward-runtime-store.d.ts +21 -0
- package/dist/services/forward-runtime-store.d.ts.map +1 -0
- package/dist/services/forward-runtime-store.js +58 -0
- package/dist/services/forward-runtime-store.js.map +1 -0
- package/dist/services/id-generator.d.ts +66 -0
- package/dist/services/id-generator.d.ts.map +1 -0
- package/dist/services/id-generator.js +112 -0
- package/dist/services/id-generator.js.map +1 -0
- package/dist/services/key-value-store-factory.d.ts +8 -0
- package/dist/services/key-value-store-factory.d.ts.map +1 -0
- package/dist/services/key-value-store-factory.js +16 -0
- package/dist/services/key-value-store-factory.js.map +1 -0
- package/dist/services/key-value-store.d.ts +28 -0
- package/dist/services/key-value-store.d.ts.map +1 -0
- package/dist/services/key-value-store.js +6 -0
- package/dist/services/key-value-store.js.map +1 -0
- package/dist/services/memory/activation-pattern-payload.d.ts +8 -0
- package/dist/services/memory/activation-pattern-payload.d.ts.map +1 -0
- package/dist/services/memory/activation-pattern-payload.js +89 -0
- package/dist/services/memory/activation-pattern-payload.js.map +1 -0
- package/dist/services/memory/activation-search-backfill.d.ts +3 -0
- package/dist/services/memory/activation-search-backfill.d.ts.map +1 -0
- package/dist/services/memory/activation-search-backfill.js +89 -0
- package/dist/services/memory/activation-search-backfill.js.map +1 -0
- package/dist/services/memory/activation-search-fields.d.ts +20 -0
- package/dist/services/memory/activation-search-fields.d.ts.map +1 -0
- package/dist/services/memory/activation-search-fields.js +57 -0
- package/dist/services/memory/activation-search-fields.js.map +1 -0
- package/dist/services/memory/adapter-builder.d.ts +4 -0
- package/dist/services/memory/adapter-builder.d.ts.map +1 -0
- package/dist/services/memory/adapter-builder.js +229 -0
- package/dist/services/memory/adapter-builder.js.map +1 -0
- package/dist/services/memory/adapter-contract-blocks.d.ts +25 -0
- package/dist/services/memory/adapter-contract-blocks.d.ts.map +1 -0
- package/dist/services/memory/adapter-contract-blocks.js +98 -0
- package/dist/services/memory/adapter-contract-blocks.js.map +1 -0
- package/dist/services/memory/artifact-metadata.d.ts +7 -0
- package/dist/services/memory/artifact-metadata.d.ts.map +1 -0
- package/dist/services/memory/artifact-metadata.js +70 -0
- package/dist/services/memory/artifact-metadata.js.map +1 -0
- package/dist/services/memory/memory-accessors.d.ts +13 -0
- package/dist/services/memory/memory-accessors.d.ts.map +1 -0
- package/dist/services/memory/memory-accessors.js +32 -0
- package/dist/services/memory/memory-accessors.js.map +1 -0
- package/dist/services/memory/qdrant-point-to-memory.d.ts +8 -0
- package/dist/services/memory/qdrant-point-to-memory.d.ts.map +1 -0
- package/dist/services/memory/qdrant-point-to-memory.js +79 -0
- package/dist/services/memory/qdrant-point-to-memory.js.map +1 -0
- package/dist/services/memory/store-adapter-default-handler.d.ts +10 -0
- package/dist/services/memory/store-adapter-default-handler.d.ts.map +1 -0
- package/dist/services/memory/store-adapter-default-handler.js +190 -0
- package/dist/services/memory/store-adapter-default-handler.js.map +1 -0
- package/dist/services/memory/store-adapter-header-handler.d.ts +9 -0
- package/dist/services/memory/store-adapter-header-handler.d.ts.map +1 -0
- package/dist/services/memory/store-adapter-header-handler.js +156 -0
- package/dist/services/memory/store-adapter-header-handler.js.map +1 -0
- package/dist/services/memory/store-adapter-helpers.d.ts +41 -0
- package/dist/services/memory/store-adapter-helpers.d.ts.map +1 -0
- package/dist/services/memory/store-adapter-helpers.js +180 -0
- package/dist/services/memory/store-adapter-helpers.js.map +1 -0
- package/dist/services/memory/store-adapter.d.ts +29 -0
- package/dist/services/memory/store-adapter.d.ts.map +1 -0
- package/dist/services/memory/store-adapter.js +88 -0
- package/dist/services/memory/store-adapter.js.map +1 -0
- package/dist/services/memory/store-artifact.d.ts +5 -0
- package/dist/services/memory/store-artifact.d.ts.map +1 -0
- package/dist/services/memory/store-artifact.js +252 -0
- package/dist/services/memory/store-artifact.js.map +1 -0
- package/dist/services/memory/store-init.d.ts +3 -0
- package/dist/services/memory/store-init.d.ts.map +1 -0
- package/dist/services/memory/store-init.js +289 -0
- package/dist/services/memory/store-init.js.map +1 -0
- package/dist/services/memory/store-methods.d.ts +29 -0
- package/dist/services/memory/store-methods.d.ts.map +1 -0
- package/dist/services/memory/store-methods.js +241 -0
- package/dist/services/memory/store-methods.js.map +1 -0
- package/dist/services/memory/store-title-similarity-search.d.ts +16 -0
- package/dist/services/memory/store-title-similarity-search.d.ts.map +1 -0
- package/dist/services/memory/store-title-similarity-search.js +50 -0
- package/dist/services/memory/store-title-similarity-search.js.map +1 -0
- package/dist/services/memory/store.d.ts +40 -0
- package/dist/services/memory/store.d.ts.map +1 -0
- package/dist/services/memory/store.js +122 -0
- package/dist/services/memory/store.js.map +1 -0
- package/dist/services/memory/validate-adapter-markdown-size.d.ts +24 -0
- package/dist/services/memory/validate-adapter-markdown-size.d.ts.map +1 -0
- package/dist/services/memory/validate-adapter-markdown-size.js +95 -0
- package/dist/services/memory/validate-adapter-markdown-size.js.map +1 -0
- package/dist/services/memory/validate-protocol-structure.d.ts +21 -0
- package/dist/services/memory/validate-protocol-structure.d.ts.map +1 -0
- package/dist/services/memory/validate-protocol-structure.js +171 -0
- package/dist/services/memory/validate-protocol-structure.js.map +1 -0
- package/dist/services/memory-store.d.ts +36 -0
- package/dist/services/memory-store.d.ts.map +1 -0
- package/dist/services/memory-store.js +183 -0
- package/dist/services/memory-store.js.map +1 -0
- package/dist/services/metrics/agent-metrics.d.ts +12 -0
- package/dist/services/metrics/agent-metrics.d.ts.map +1 -0
- package/dist/services/metrics/agent-metrics.js +34 -0
- package/dist/services/metrics/agent-metrics.js.map +1 -0
- package/dist/services/metrics/anomaly-metrics.d.ts +3 -0
- package/dist/services/metrics/anomaly-metrics.d.ts.map +1 -0
- package/dist/services/metrics/anomaly-metrics.js +9 -0
- package/dist/services/metrics/anomaly-metrics.js.map +1 -0
- package/dist/services/metrics/embedding-metrics.d.ts +12 -0
- package/dist/services/metrics/embedding-metrics.d.ts.map +1 -0
- package/dist/services/metrics/embedding-metrics.js +41 -0
- package/dist/services/metrics/embedding-metrics.js.map +1 -0
- package/dist/services/metrics/export-metrics.d.ts +21 -0
- package/dist/services/metrics/export-metrics.d.ts.map +1 -0
- package/dist/services/metrics/export-metrics.js +50 -0
- package/dist/services/metrics/export-metrics.js.map +1 -0
- package/dist/services/metrics/http-metrics.d.ts +12 -0
- package/dist/services/metrics/http-metrics.d.ts.map +1 -0
- package/dist/services/metrics/http-metrics.js +41 -0
- package/dist/services/metrics/http-metrics.js.map +1 -0
- package/dist/services/metrics/mcp-metrics.d.ts +16 -0
- package/dist/services/metrics/mcp-metrics.d.ts.map +1 -0
- package/dist/services/metrics/mcp-metrics.js +55 -0
- package/dist/services/metrics/mcp-metrics.js.map +1 -0
- package/dist/services/metrics/memory-metrics.d.ts +10 -0
- package/dist/services/metrics/memory-metrics.d.ts.map +1 -0
- package/dist/services/metrics/memory-metrics.js +28 -0
- package/dist/services/metrics/memory-metrics.js.map +1 -0
- package/dist/services/metrics/qdrant-metrics.d.ts +11 -0
- package/dist/services/metrics/qdrant-metrics.d.ts.map +1 -0
- package/dist/services/metrics/qdrant-metrics.js +35 -0
- package/dist/services/metrics/qdrant-metrics.js.map +1 -0
- package/dist/services/metrics/registry.d.ts +9 -0
- package/dist/services/metrics/registry.d.ts.map +1 -0
- package/dist/services/metrics/registry.js +19 -0
- package/dist/services/metrics/registry.js.map +1 -0
- package/dist/services/metrics/system-metrics.d.ts +10 -0
- package/dist/services/metrics/system-metrics.d.ts.map +1 -0
- package/dist/services/metrics/system-metrics.js +35 -0
- package/dist/services/metrics/system-metrics.js.map +1 -0
- package/dist/services/oidc-state-store.d.ts +29 -0
- package/dist/services/oidc-state-store.d.ts.map +1 -0
- package/dist/services/oidc-state-store.js +42 -0
- package/dist/services/oidc-state-store.js.map +1 -0
- package/dist/services/proof-of-work-store.d.ts +66 -0
- package/dist/services/proof-of-work-store.d.ts.map +1 -0
- package/dist/services/proof-of-work-store.js +141 -0
- package/dist/services/proof-of-work-store.js.map +1 -0
- package/dist/services/qdrant/connection.d.ts +24 -0
- package/dist/services/qdrant/connection.d.ts.map +1 -0
- package/dist/services/qdrant/connection.js +126 -0
- package/dist/services/qdrant/connection.js.map +1 -0
- package/dist/services/qdrant/index.d.ts +3 -0
- package/dist/services/qdrant/index.d.ts.map +1 -0
- package/dist/services/qdrant/index.js +4 -0
- package/dist/services/qdrant/index.js.map +1 -0
- package/dist/services/qdrant/initialization.d.ts +26 -0
- package/dist/services/qdrant/initialization.d.ts.map +1 -0
- package/dist/services/qdrant/initialization.js +179 -0
- package/dist/services/qdrant/initialization.js.map +1 -0
- package/dist/services/qdrant/listing.d.ts +26 -0
- package/dist/services/qdrant/listing.d.ts.map +1 -0
- package/dist/services/qdrant/listing.js +88 -0
- package/dist/services/qdrant/listing.js.map +1 -0
- package/dist/services/qdrant/memory-retrieval.d.ts +54 -0
- package/dist/services/qdrant/memory-retrieval.d.ts.map +1 -0
- package/dist/services/qdrant/memory-retrieval.js +278 -0
- package/dist/services/qdrant/memory-retrieval.js.map +1 -0
- package/dist/services/qdrant/memory-store.d.ts +16 -0
- package/dist/services/qdrant/memory-store.d.ts.map +1 -0
- package/dist/services/qdrant/memory-store.js +108 -0
- package/dist/services/qdrant/memory-store.js.map +1 -0
- package/dist/services/qdrant/memory-updates.d.ts +8 -0
- package/dist/services/qdrant/memory-updates.d.ts.map +1 -0
- package/dist/services/qdrant/memory-updates.js +205 -0
- package/dist/services/qdrant/memory-updates.js.map +1 -0
- package/dist/services/qdrant/protocol.d.ts +16 -0
- package/dist/services/qdrant/protocol.d.ts.map +1 -0
- package/dist/services/qdrant/protocol.js +48 -0
- package/dist/services/qdrant/protocol.js.map +1 -0
- package/dist/services/qdrant/quality.d.ts +14 -0
- package/dist/services/qdrant/quality.d.ts.map +1 -0
- package/dist/services/qdrant/quality.js +99 -0
- package/dist/services/qdrant/quality.js.map +1 -0
- package/dist/services/qdrant/resources.d.ts +7 -0
- package/dist/services/qdrant/resources.d.ts.map +1 -0
- package/dist/services/qdrant/resources.js +123 -0
- package/dist/services/qdrant/resources.js.map +1 -0
- package/dist/services/qdrant/reward-propagation.d.ts +7 -0
- package/dist/services/qdrant/reward-propagation.d.ts.map +1 -0
- package/dist/services/qdrant/reward-propagation.js +62 -0
- package/dist/services/qdrant/reward-propagation.js.map +1 -0
- package/dist/services/qdrant/search.d.ts +22 -0
- package/dist/services/qdrant/search.d.ts.map +1 -0
- package/dist/services/qdrant/search.js +76 -0
- package/dist/services/qdrant/search.js.map +1 -0
- package/dist/services/qdrant/service.d.ts +96 -0
- package/dist/services/qdrant/service.d.ts.map +1 -0
- package/dist/services/qdrant/service.js +107 -0
- package/dist/services/qdrant/service.js.map +1 -0
- package/dist/services/qdrant/snapshots.d.ts +19 -0
- package/dist/services/qdrant/snapshots.d.ts.map +1 -0
- package/dist/services/qdrant/snapshots.js +130 -0
- package/dist/services/qdrant/snapshots.js.map +1 -0
- package/dist/services/qdrant/types.d.ts +39 -0
- package/dist/services/qdrant/types.d.ts.map +1 -0
- package/dist/services/qdrant/types.js +2 -0
- package/dist/services/qdrant/types.js.map +1 -0
- package/dist/services/qdrant/undici-compat.d.ts +8 -0
- package/dist/services/qdrant/undici-compat.d.ts.map +1 -0
- package/dist/services/qdrant/undici-compat.js +23 -0
- package/dist/services/qdrant/undici-compat.js.map +1 -0
- package/dist/services/qdrant/utils.d.ts +20 -0
- package/dist/services/qdrant/utils.d.ts.map +1 -0
- package/dist/services/qdrant/utils.js +121 -0
- package/dist/services/qdrant/utils.js.map +1 -0
- package/dist/services/redis-cache.d.ts +50 -0
- package/dist/services/redis-cache.d.ts.map +1 -0
- package/dist/services/redis-cache.js +237 -0
- package/dist/services/redis-cache.js.map +1 -0
- package/dist/services/redis.d.ts +46 -0
- package/dist/services/redis.d.ts.map +1 -0
- package/dist/services/redis.js +272 -0
- package/dist/services/redis.js.map +1 -0
- package/dist/services/reward-evals.d.ts +29 -0
- package/dist/services/reward-evals.d.ts.map +1 -0
- package/dist/services/reward-evals.js +116 -0
- package/dist/services/reward-evals.js.map +1 -0
- package/dist/services/reward-metrics.d.ts +20 -0
- package/dist/services/reward-metrics.d.ts.map +1 -0
- package/dist/services/reward-metrics.js +72 -0
- package/dist/services/reward-metrics.js.map +1 -0
- package/dist/services/stats/bonuses.d.ts +28 -0
- package/dist/services/stats/bonuses.d.ts.map +1 -0
- package/dist/services/stats/bonuses.js +96 -0
- package/dist/services/stats/bonuses.js.map +1 -0
- package/dist/services/stats/healer.d.ts +6 -0
- package/dist/services/stats/healer.d.ts.map +1 -0
- package/dist/services/stats/healer.js +24 -0
- package/dist/services/stats/healer.js.map +1 -0
- package/dist/services/stats/model-stats.d.ts +53 -0
- package/dist/services/stats/model-stats.d.ts.map +1 -0
- package/dist/services/stats/model-stats.js +238 -0
- package/dist/services/stats/model-stats.js.map +1 -0
- package/dist/services/stats/protocol.d.ts +11 -0
- package/dist/services/stats/protocol.d.ts.map +1 -0
- package/dist/services/stats/protocol.js +55 -0
- package/dist/services/stats/protocol.js.map +1 -0
- package/dist/services/stats/scoring.d.ts +19 -0
- package/dist/services/stats/scoring.d.ts.map +1 -0
- package/dist/services/stats/scoring.js +102 -0
- package/dist/services/stats/scoring.js.map +1 -0
- package/dist/services/stats/types.d.ts +39 -0
- package/dist/services/stats/types.d.ts.map +1 -0
- package/dist/services/stats/types.js +8 -0
- package/dist/services/stats/types.js.map +1 -0
- package/dist/squadrules-mcp-4.8.6.tgz +0 -0
- package/dist/stdio/stdio-server.d.ts +3 -0
- package/dist/stdio/stdio-server.d.ts.map +1 -0
- package/dist/stdio/stdio-server.js +12 -0
- package/dist/stdio/stdio-server.js.map +1 -0
- package/dist/tools/activate.d.ts +11 -0
- package/dist/tools/activate.d.ts.map +1 -0
- package/dist/tools/activate.js +228 -0
- package/dist/tools/activate.js.map +1 -0
- package/dist/tools/activate_schema.d.ts +73 -0
- package/dist/tools/activate_schema.d.ts.map +1 -0
- package/dist/tools/activate_schema.js +102 -0
- package/dist/tools/activate_schema.js.map +1 -0
- package/dist/tools/artifact-catalog.d.ts +17 -0
- package/dist/tools/artifact-catalog.d.ts.map +1 -0
- package/dist/tools/artifact-catalog.js +82 -0
- package/dist/tools/artifact-catalog.js.map +1 -0
- package/dist/tools/artifact-mime.d.ts +9 -0
- package/dist/tools/artifact-mime.d.ts.map +1 -0
- package/dist/tools/artifact-mime.js +40 -0
- package/dist/tools/artifact-mime.js.map +1 -0
- package/dist/tools/artifact-relative-path.d.ts +7 -0
- package/dist/tools/artifact-relative-path.d.ts.map +1 -0
- package/dist/tools/artifact-relative-path.js +29 -0
- package/dist/tools/artifact-relative-path.js.map +1 -0
- package/dist/tools/delete.d.ts +6 -0
- package/dist/tools/delete.d.ts.map +1 -0
- package/dist/tools/delete.js +103 -0
- package/dist/tools/delete.js.map +1 -0
- package/dist/tools/delete_schema.d.ts +19 -0
- package/dist/tools/delete_schema.d.ts.map +1 -0
- package/dist/tools/delete_schema.js +25 -0
- package/dist/tools/delete_schema.js.map +1 -0
- package/dist/tools/dump.d.ts +9 -0
- package/dist/tools/dump.d.ts.map +1 -0
- package/dist/tools/dump.js +171 -0
- package/dist/tools/dump.js.map +1 -0
- package/dist/tools/dump_schema.d.ts +18 -0
- package/dist/tools/dump_schema.d.ts.map +1 -0
- package/dist/tools/dump_schema.js +18 -0
- package/dist/tools/dump_schema.js.map +1 -0
- package/dist/tools/export-resolve-adapter.d.ts +7 -0
- package/dist/tools/export-resolve-adapter.d.ts.map +1 -0
- package/dist/tools/export-resolve-adapter.js +37 -0
- package/dist/tools/export-resolve-adapter.js.map +1 -0
- package/dist/tools/export-reward-jsonl.d.ts +64 -0
- package/dist/tools/export-reward-jsonl.d.ts.map +1 -0
- package/dist/tools/export-reward-jsonl.js +118 -0
- package/dist/tools/export-reward-jsonl.js.map +1 -0
- package/dist/tools/export-selection.d.ts +8 -0
- package/dist/tools/export-selection.d.ts.map +1 -0
- package/dist/tools/export-selection.js +59 -0
- package/dist/tools/export-selection.js.map +1 -0
- package/dist/tools/export-skill-items.d.ts +14 -0
- package/dist/tools/export-skill-items.d.ts.map +1 -0
- package/dist/tools/export-skill-items.js +42 -0
- package/dist/tools/export-skill-items.js.map +1 -0
- package/dist/tools/export-source.d.ts +8 -0
- package/dist/tools/export-source.d.ts.map +1 -0
- package/dist/tools/export-source.js +82 -0
- package/dist/tools/export-source.js.map +1 -0
- package/dist/tools/export-telemetry.d.ts +14 -0
- package/dist/tools/export-telemetry.d.ts.map +1 -0
- package/dist/tools/export-telemetry.js +80 -0
- package/dist/tools/export-telemetry.js.map +1 -0
- package/dist/tools/export.d.ts +14 -0
- package/dist/tools/export.d.ts.map +1 -0
- package/dist/tools/export.js +261 -0
- package/dist/tools/export.js.map +1 -0
- package/dist/tools/export_schema.d.ts +84 -0
- package/dist/tools/export_schema.d.ts.map +1 -0
- package/dist/tools/export_schema.js +123 -0
- package/dist/tools/export_schema.js.map +1 -0
- package/dist/tools/forward-helpers.d.ts +8 -0
- package/dist/tools/forward-helpers.d.ts.map +1 -0
- package/dist/tools/forward-helpers.js +22 -0
- package/dist/tools/forward-helpers.js.map +1 -0
- package/dist/tools/forward-register.d.ts +8 -0
- package/dist/tools/forward-register.d.ts.map +1 -0
- package/dist/tools/forward-register.js +52 -0
- package/dist/tools/forward-register.js.map +1 -0
- package/dist/tools/forward-tool-error.d.ts +3 -0
- package/dist/tools/forward-tool-error.d.ts.map +1 -0
- package/dist/tools/forward-tool-error.js +9 -0
- package/dist/tools/forward-tool-error.js.map +1 -0
- package/dist/tools/forward-trace.d.ts +8 -0
- package/dist/tools/forward-trace.d.ts.map +1 -0
- package/dist/tools/forward-trace.js +187 -0
- package/dist/tools/forward-trace.js.map +1 -0
- package/dist/tools/forward-view.d.ts +55 -0
- package/dist/tools/forward-view.d.ts.map +1 -0
- package/dist/tools/forward-view.js +279 -0
- package/dist/tools/forward-view.js.map +1 -0
- package/dist/tools/forward.d.ts +5 -0
- package/dist/tools/forward.d.ts.map +1 -0
- package/dist/tools/forward.js +206 -0
- package/dist/tools/forward.js.map +1 -0
- package/dist/tools/forward_schema.d.ts +274 -0
- package/dist/tools/forward_schema.d.ts.map +1 -0
- package/dist/tools/forward_schema.js +309 -0
- package/dist/tools/forward_schema.js.map +1 -0
- package/dist/tools/kairos-challenge-display.d.ts +4 -0
- package/dist/tools/kairos-challenge-display.d.ts.map +1 -0
- package/dist/tools/kairos-challenge-display.js +86 -0
- package/dist/tools/kairos-challenge-display.js.map +1 -0
- package/dist/tools/kairos-genesis-proof-hash.d.ts +3 -0
- package/dist/tools/kairos-genesis-proof-hash.d.ts.map +1 -0
- package/dist/tools/kairos-genesis-proof-hash.js +4 -0
- package/dist/tools/kairos-genesis-proof-hash.js.map +1 -0
- package/dist/tools/kairos-uri.d.ts +28 -0
- package/dist/tools/kairos-uri.d.ts.map +1 -0
- package/dist/tools/kairos-uri.js +105 -0
- package/dist/tools/kairos-uri.js.map +1 -0
- package/dist/tools/local-artifact-dir-contract.d.ts +16 -0
- package/dist/tools/local-artifact-dir-contract.d.ts.map +1 -0
- package/dist/tools/local-artifact-dir-contract.js +24 -0
- package/dist/tools/local-artifact-dir-contract.js.map +1 -0
- package/dist/tools/mcp-contract-match.d.ts +21 -0
- package/dist/tools/mcp-contract-match.d.ts.map +1 -0
- package/dist/tools/mcp-contract-match.js +78 -0
- package/dist/tools/mcp-contract-match.js.map +1 -0
- package/dist/tools/mcp-loose-input-schema.d.ts +8 -0
- package/dist/tools/mcp-loose-input-schema.d.ts.map +1 -0
- package/dist/tools/mcp-loose-input-schema.js +10 -0
- package/dist/tools/mcp-loose-input-schema.js.map +1 -0
- package/dist/tools/mcp-runtime-error.d.ts +19 -0
- package/dist/tools/mcp-runtime-error.d.ts.map +1 -0
- package/dist/tools/mcp-runtime-error.js +34 -0
- package/dist/tools/mcp-runtime-error.js.map +1 -0
- package/dist/tools/mcp-tool-input-teaching.d.ts +12 -0
- package/dist/tools/mcp-tool-input-teaching.d.ts.map +1 -0
- package/dist/tools/mcp-tool-input-teaching.js +259 -0
- package/dist/tools/mcp-tool-input-teaching.js.map +1 -0
- package/dist/tools/next-missing-proof-payload.d.ts +24 -0
- package/dist/tools/next-missing-proof-payload.d.ts.map +1 -0
- package/dist/tools/next-missing-proof-payload.js +36 -0
- package/dist/tools/next-missing-proof-payload.js.map +1 -0
- package/dist/tools/next-pow-challenge-shape.d.ts +4 -0
- package/dist/tools/next-pow-challenge-shape.d.ts.map +1 -0
- package/dist/tools/next-pow-challenge-shape.js +49 -0
- package/dist/tools/next-pow-challenge-shape.js.map +1 -0
- package/dist/tools/next-pow-helpers.d.ts +9 -0
- package/dist/tools/next-pow-helpers.d.ts.map +1 -0
- package/dist/tools/next-pow-helpers.js +259 -0
- package/dist/tools/next-pow-helpers.js.map +1 -0
- package/dist/tools/next-previous-step.d.ts +36 -0
- package/dist/tools/next-previous-step.d.ts.map +1 -0
- package/dist/tools/next-previous-step.js +134 -0
- package/dist/tools/next-previous-step.js.map +1 -0
- package/dist/tools/next-proof-types.d.ts +45 -0
- package/dist/tools/next-proof-types.d.ts.map +1 -0
- package/dist/tools/next-proof-types.js +2 -0
- package/dist/tools/next-proof-types.js.map +1 -0
- package/dist/tools/next.d.ts +9 -0
- package/dist/tools/next.d.ts.map +1 -0
- package/dist/tools/next.js +205 -0
- package/dist/tools/next.js.map +1 -0
- package/dist/tools/next_schema.d.ts +148 -0
- package/dist/tools/next_schema.d.ts.map +1 -0
- package/dist/tools/next_schema.js +99 -0
- package/dist/tools/next_schema.js.map +1 -0
- package/dist/tools/review-evidence-check.d.ts +12 -0
- package/dist/tools/review-evidence-check.d.ts.map +1 -0
- package/dist/tools/review-evidence-check.js +23 -0
- package/dist/tools/review-evidence-check.js.map +1 -0
- package/dist/tools/reward.d.ts +9 -0
- package/dist/tools/reward.d.ts.map +1 -0
- package/dist/tools/reward.js +133 -0
- package/dist/tools/reward.js.map +1 -0
- package/dist/tools/reward_schema.d.ts +61 -0
- package/dist/tools/reward_schema.d.ts.map +1 -0
- package/dist/tools/reward_schema.js +42 -0
- package/dist/tools/reward_schema.js.map +1 -0
- package/dist/tools/search.d.ts +11 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/tools/search.js +197 -0
- package/dist/tools/search.js.map +1 -0
- package/dist/tools/search_output.d.ts +55 -0
- package/dist/tools/search_output.d.ts.map +1 -0
- package/dist/tools/search_output.js +161 -0
- package/dist/tools/search_output.js.map +1 -0
- package/dist/tools/search_schema.d.ts +32 -0
- package/dist/tools/search_schema.d.ts.map +1 -0
- package/dist/tools/search_schema.js +47 -0
- package/dist/tools/search_schema.js.map +1 -0
- package/dist/tools/shell-challenge-invocation.d.ts +32 -0
- package/dist/tools/shell-challenge-invocation.d.ts.map +1 -0
- package/dist/tools/shell-challenge-invocation.js +113 -0
- package/dist/tools/shell-challenge-invocation.js.map +1 -0
- package/dist/tools/skill-export/artifact-files.d.ts +18 -0
- package/dist/tools/skill-export/artifact-files.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-files.js +67 -0
- package/dist/tools/skill-export/artifact-files.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/default-rules.d.ts +4 -0
- package/dist/tools/skill-export/artifact-sanitization/default-rules.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/default-rules.js +6 -0
- package/dist/tools/skill-export/artifact-sanitization/default-rules.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/extension-mime-map.d.ts +12 -0
- package/dist/tools/skill-export/artifact-sanitization/extension-mime-map.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/extension-mime-map.js +25 -0
- package/dist/tools/skill-export/artifact-sanitization/extension-mime-map.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/index.d.ts +5 -0
- package/dist/tools/skill-export/artifact-sanitization/index.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/index.js +4 -0
- package/dist/tools/skill-export/artifact-sanitization/index.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/normalize-mime.d.ts +3 -0
- package/dist/tools/skill-export/artifact-sanitization/normalize-mime.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/normalize-mime.js +9 -0
- package/dist/tools/skill-export/artifact-sanitization/normalize-mime.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/rules/extension-mime-consistency.d.ts +7 -0
- package/dist/tools/skill-export/artifact-sanitization/rules/extension-mime-consistency.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/rules/extension-mime-consistency.js +54 -0
- package/dist/tools/skill-export/artifact-sanitization/rules/extension-mime-consistency.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/run-sanitization.d.ts +7 -0
- package/dist/tools/skill-export/artifact-sanitization/run-sanitization.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/run-sanitization.js +22 -0
- package/dist/tools/skill-export/artifact-sanitization/run-sanitization.js.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/types.d.ts +22 -0
- package/dist/tools/skill-export/artifact-sanitization/types.d.ts.map +1 -0
- package/dist/tools/skill-export/artifact-sanitization/types.js +7 -0
- package/dist/tools/skill-export/artifact-sanitization/types.js.map +1 -0
- package/dist/tools/skill-export/assemble-skill-item.d.ts +21 -0
- package/dist/tools/skill-export/assemble-skill-item.d.ts.map +1 -0
- package/dist/tools/skill-export/assemble-skill-item.js +68 -0
- package/dist/tools/skill-export/assemble-skill-item.js.map +1 -0
- package/dist/tools/skill-export/build-skill-md.d.ts +9 -0
- package/dist/tools/skill-export/build-skill-md.d.ts.map +1 -0
- package/dist/tools/skill-export/build-skill-md.js +20 -0
- package/dist/tools/skill-export/build-skill-md.js.map +1 -0
- package/dist/tools/skill-export/derive-metadata.d.ts +29 -0
- package/dist/tools/skill-export/derive-metadata.d.ts.map +1 -0
- package/dist/tools/skill-export/derive-metadata.js +81 -0
- package/dist/tools/skill-export/derive-metadata.js.map +1 -0
- package/dist/tools/skill-export/enumerate-space-adapters.d.ts +16 -0
- package/dist/tools/skill-export/enumerate-space-adapters.d.ts.map +1 -0
- package/dist/tools/skill-export/enumerate-space-adapters.js +45 -0
- package/dist/tools/skill-export/enumerate-space-adapters.js.map +1 -0
- package/dist/tools/skill-export/scan-diagnostics.d.ts +9 -0
- package/dist/tools/skill-export/scan-diagnostics.d.ts.map +1 -0
- package/dist/tools/skill-export/scan-diagnostics.js +20 -0
- package/dist/tools/skill-export/scan-diagnostics.js.map +1 -0
- package/dist/tools/skill-export/sha256.d.ts +2 -0
- package/dist/tools/skill-export/sha256.d.ts.map +1 -0
- package/dist/tools/skill-export/sha256.js +5 -0
- package/dist/tools/skill-export/sha256.js.map +1 -0
- package/dist/tools/skill-export/sha256sums.d.ts +14 -0
- package/dist/tools/skill-export/sha256sums.d.ts.map +1 -0
- package/dist/tools/skill-export/sha256sums.js +32 -0
- package/dist/tools/skill-export/sha256sums.js.map +1 -0
- package/dist/tools/skill-export/types.d.ts +26 -0
- package/dist/tools/skill-export/types.d.ts.map +1 -0
- package/dist/tools/skill-export/types.js +5 -0
- package/dist/tools/skill-export/types.js.map +1 -0
- package/dist/tools/skill-export/zip-bundle.d.ts +28 -0
- package/dist/tools/skill-export/zip-bundle.d.ts.map +1 -0
- package/dist/tools/skill-export/zip-bundle.js +54 -0
- package/dist/tools/skill-export/zip-bundle.js.map +1 -0
- package/dist/tools/spaces.d.ts +44 -0
- package/dist/tools/spaces.d.ts.map +1 -0
- package/dist/tools/spaces.js +205 -0
- package/dist/tools/spaces.js.map +1 -0
- package/dist/tools/spaces_schema.d.ts +36 -0
- package/dist/tools/spaces_schema.d.ts.map +1 -0
- package/dist/tools/spaces_schema.js +46 -0
- package/dist/tools/spaces_schema.js.map +1 -0
- package/dist/tools/tool-registry.d.ts +496 -0
- package/dist/tools/tool-registry.d.ts.map +1 -0
- package/dist/tools/tool-registry.js +86 -0
- package/dist/tools/tool-registry.js.map +1 -0
- package/dist/tools/train-artifact-adapter-uri.d.ts +3 -0
- package/dist/tools/train-artifact-adapter-uri.d.ts.map +1 -0
- package/dist/tools/train-artifact-adapter-uri.js +27 -0
- package/dist/tools/train-artifact-adapter-uri.js.map +1 -0
- package/dist/tools/train-mime.d.ts +3 -0
- package/dist/tools/train-mime.d.ts.map +1 -0
- package/dist/tools/train-mime.js +18 -0
- package/dist/tools/train-mime.js.map +1 -0
- package/dist/tools/train-output-adapter-uri.d.ts +8 -0
- package/dist/tools/train-output-adapter-uri.d.ts.map +1 -0
- package/dist/tools/train-output-adapter-uri.js +29 -0
- package/dist/tools/train-output-adapter-uri.js.map +1 -0
- package/dist/tools/train-store.d.ts +15 -0
- package/dist/tools/train-store.d.ts.map +1 -0
- package/dist/tools/train-store.js +111 -0
- package/dist/tools/train-store.js.map +1 -0
- package/dist/tools/train.d.ts +11 -0
- package/dist/tools/train.d.ts.map +1 -0
- package/dist/tools/train.js +310 -0
- package/dist/tools/train.js.map +1 -0
- package/dist/tools/train_schema.d.ts +60 -0
- package/dist/tools/train_schema.d.ts.map +1 -0
- package/dist/tools/train_schema.js +196 -0
- package/dist/tools/train_schema.js.map +1 -0
- package/dist/tools/tune-cache-invalidation.d.ts +8 -0
- package/dist/tools/tune-cache-invalidation.d.ts.map +1 -0
- package/dist/tools/tune-cache-invalidation.js +12 -0
- package/dist/tools/tune-cache-invalidation.js.map +1 -0
- package/dist/tools/tune-execute.d.ts +4 -0
- package/dist/tools/tune-execute.d.ts.map +1 -0
- package/dist/tools/tune-execute.js +293 -0
- package/dist/tools/tune-execute.js.map +1 -0
- package/dist/tools/tune-messages.d.ts +6 -0
- package/dist/tools/tune-messages.d.ts.map +1 -0
- package/dist/tools/tune-messages.js +14 -0
- package/dist/tools/tune-messages.js.map +1 -0
- package/dist/tools/tune-verify.d.ts +16 -0
- package/dist/tools/tune-verify.d.ts.map +1 -0
- package/dist/tools/tune-verify.js +18 -0
- package/dist/tools/tune-verify.js.map +1 -0
- package/dist/tools/tune.d.ts +9 -0
- package/dist/tools/tune.d.ts.map +1 -0
- package/dist/tools/tune.js +54 -0
- package/dist/tools/tune.js.map +1 -0
- package/dist/tools/tune_schema.d.ts +27 -0
- package/dist/tools/tune_schema.d.ts.map +1 -0
- package/dist/tools/tune_schema.js +61 -0
- package/dist/tools/tune_schema.js.map +1 -0
- package/dist/tools/update.d.ts +5 -0
- package/dist/tools/update.d.ts.map +1 -0
- package/dist/tools/update.js +69 -0
- package/dist/tools/update.js.map +1 -0
- package/dist/tools/update_schema.d.ts +21 -0
- package/dist/tools/update_schema.d.ts.map +1 -0
- package/dist/tools/update_schema.js +24 -0
- package/dist/tools/update_schema.js.map +1 -0
- package/dist/types/index.d.ts +60 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +21 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/memory.d.ts +114 -0
- package/dist/types/memory.d.ts.map +1 -0
- package/dist/types/memory.js +2 -0
- package/dist/types/memory.js.map +1 -0
- package/dist/ui/assets/AccountPage-DBrqe8KI.js +1 -0
- package/dist/ui/assets/ChallengeCard-gY-n7rwI.js +1 -0
- package/dist/ui/assets/ErrorAlert-BQMph5Nh.js +1 -0
- package/dist/ui/assets/HomePage-DIKsxKaH.js +1 -0
- package/dist/ui/assets/KairosPage-n5qbiyxb.js +1 -0
- package/dist/ui/assets/NotFoundPage-Dz-PKC4R.js +1 -0
- package/dist/ui/assets/ProtocolDetailPage-C20Yd3q6.js +1 -0
- package/dist/ui/assets/ProtocolEditPage-hc87ZsgM.js +5 -0
- package/dist/ui/assets/RichTextEditor-uun0UIVc.js +1 -0
- package/dist/ui/assets/RunGuidedPage-BbyHZjPU.js +1 -0
- package/dist/ui/assets/RunsPage-BijmxS6f.js +1 -0
- package/dist/ui/assets/SkillBundlePage-BsndXJaC.js +1 -0
- package/dist/ui/assets/SpaceSelect-DDhPkDXU.js +1 -0
- package/dist/ui/assets/StepFlowGraph-DsL5lsIq.js +1 -0
- package/dist/ui/assets/SurfaceCard-CRidnDLP.js +1 -0
- package/dist/ui/assets/api-BgTb-tmJ.js +1 -0
- package/dist/ui/assets/export-skill-zip-CIyOWxuI.js +4 -0
- package/dist/ui/assets/index-D7zMHqYN.js +8 -0
- package/dist/ui/assets/index-fBTJW4Qq.css +2 -0
- package/dist/ui/assets/kairos-mcp-DNiKVgiO.svg +24 -0
- package/dist/ui/assets/react-CR5VJ85Q.js +9 -0
- package/dist/ui/assets/rolldown-runtime-hePW80VL.js +1 -0
- package/dist/ui/assets/tiptap-74Cp-fci.js +204 -0
- package/dist/ui/assets/useRunSession-062hqhcN.js +1 -0
- package/dist/ui/assets/vendor-DGTQ2S8W.js +31 -0
- package/dist/ui/favicon.svg +24 -0
- package/dist/ui/index.html +39 -0
- package/dist/ui/logo.svg +24 -0
- package/dist/utils/audit-log-events.d.ts +6 -0
- package/dist/utils/audit-log-events.d.ts.map +1 -0
- package/dist/utils/audit-log-events.js +59 -0
- package/dist/utils/audit-log-events.js.map +1 -0
- package/dist/utils/audit-mcp-summary.d.ts +25 -0
- package/dist/utils/audit-mcp-summary.d.ts.map +1 -0
- package/dist/utils/audit-mcp-summary.js +172 -0
- package/dist/utils/audit-mcp-summary.js.map +1 -0
- package/dist/utils/audit-secret-patterns.d.ts +9 -0
- package/dist/utils/audit-secret-patterns.d.ts.map +1 -0
- package/dist/utils/audit-secret-patterns.js +24 -0
- package/dist/utils/audit-secret-patterns.js.map +1 -0
- package/dist/utils/build-version.d.ts +15 -0
- package/dist/utils/build-version.d.ts.map +1 -0
- package/dist/utils/build-version.js +46 -0
- package/dist/utils/build-version.js.map +1 -0
- package/dist/utils/concurrency-limit.d.ts +19 -0
- package/dist/utils/concurrency-limit.d.ts.map +1 -0
- package/dist/utils/concurrency-limit.js +78 -0
- package/dist/utils/concurrency-limit.js.map +1 -0
- package/dist/utils/dump-markdown.d.ts +16 -0
- package/dist/utils/dump-markdown.d.ts.map +1 -0
- package/dist/utils/dump-markdown.js +62 -0
- package/dist/utils/dump-markdown.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +20 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +43 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/global-error-handlers.d.ts +7 -0
- package/dist/utils/global-error-handlers.d.ts.map +1 -0
- package/dist/utils/global-error-handlers.js +61 -0
- package/dist/utils/global-error-handlers.js.map +1 -0
- package/dist/utils/kairos-local-artifact-dirs.d.ts +13 -0
- package/dist/utils/kairos-local-artifact-dirs.d.ts.map +1 -0
- package/dist/utils/kairos-local-artifact-dirs.js +35 -0
- package/dist/utils/kairos-local-artifact-dirs.js.map +1 -0
- package/dist/utils/kairos-user-dirs.d.ts +62 -0
- package/dist/utils/kairos-user-dirs.d.ts.map +1 -0
- package/dist/utils/kairos-user-dirs.js +165 -0
- package/dist/utils/kairos-user-dirs.js.map +1 -0
- package/dist/utils/log-core.d.ts +11 -0
- package/dist/utils/log-core.d.ts.map +1 -0
- package/dist/utils/log-core.js +78 -0
- package/dist/utils/log-core.js.map +1 -0
- package/dist/utils/mcp-tool-doc-runtime.d.ts +6 -0
- package/dist/utils/mcp-tool-doc-runtime.d.ts.map +1 -0
- package/dist/utils/mcp-tool-doc-runtime.js +16 -0
- package/dist/utils/mcp-tool-doc-runtime.js.map +1 -0
- package/dist/utils/memory-body.d.ts +7 -0
- package/dist/utils/memory-body.d.ts.map +1 -0
- package/dist/utils/memory-body.js +25 -0
- package/dist/utils/memory-body.js.map +1 -0
- package/dist/utils/memory-store-utils.d.ts +14 -0
- package/dist/utils/memory-store-utils.d.ts.map +1 -0
- package/dist/utils/memory-store-utils.js +83 -0
- package/dist/utils/memory-store-utils.js.map +1 -0
- package/dist/utils/normalize-redis-url.d.ts +2 -0
- package/dist/utils/normalize-redis-url.d.ts.map +1 -0
- package/dist/utils/normalize-redis-url.js +18 -0
- package/dist/utils/normalize-redis-url.js.map +1 -0
- package/dist/utils/protected-space-write-guard.d.ts +3 -0
- package/dist/utils/protected-space-write-guard.d.ts.map +1 -0
- package/dist/utils/protected-space-write-guard.js +14 -0
- package/dist/utils/protected-space-write-guard.js.map +1 -0
- package/dist/utils/protocol-slug.d.ts +39 -0
- package/dist/utils/protocol-slug.d.ts.map +1 -0
- package/dist/utils/protocol-slug.js +74 -0
- package/dist/utils/protocol-slug.js.map +1 -0
- package/dist/utils/qdrant-collection-utils.d.ts +11 -0
- package/dist/utils/qdrant-collection-utils.d.ts.map +1 -0
- package/dist/utils/qdrant-collection-utils.js +65 -0
- package/dist/utils/qdrant-collection-utils.js.map +1 -0
- package/dist/utils/qdrant-query-utils.d.ts +6 -0
- package/dist/utils/qdrant-query-utils.d.ts.map +1 -0
- package/dist/utils/qdrant-query-utils.js +23 -0
- package/dist/utils/qdrant-query-utils.js.map +1 -0
- package/dist/utils/qdrant-utils.d.ts +5 -0
- package/dist/utils/qdrant-utils.d.ts.map +1 -0
- package/dist/utils/qdrant-utils.js +5 -0
- package/dist/utils/qdrant-utils.js.map +1 -0
- package/dist/utils/qdrant-vector-management.d.ts +25 -0
- package/dist/utils/qdrant-vector-management.d.ts.map +1 -0
- package/dist/utils/qdrant-vector-management.js +284 -0
- package/dist/utils/qdrant-vector-management.js.map +1 -0
- package/dist/utils/qdrant-vector-types.d.ts +31 -0
- package/dist/utils/qdrant-vector-types.d.ts.map +1 -0
- package/dist/utils/qdrant-vector-types.js +49 -0
- package/dist/utils/qdrant-vector-types.js.map +1 -0
- package/dist/utils/resolve-space-param.d.ts +28 -0
- package/dist/utils/resolve-space-param.d.ts.map +1 -0
- package/dist/utils/resolve-space-param.js +97 -0
- package/dist/utils/resolve-space-param.js.map +1 -0
- package/dist/utils/space-display.d.ts +12 -0
- package/dist/utils/space-display.d.ts.map +1 -0
- package/dist/utils/space-display.js +45 -0
- package/dist/utils/space-display.js.map +1 -0
- package/dist/utils/space-filter.d.ts +22 -0
- package/dist/utils/space-filter.d.ts.map +1 -0
- package/dist/utils/space-filter.js +35 -0
- package/dist/utils/space-filter.js.map +1 -0
- package/dist/utils/structured-logger.d.ts +53 -0
- package/dist/utils/structured-logger.d.ts.map +1 -0
- package/dist/utils/structured-logger.js +297 -0
- package/dist/utils/structured-logger.js.map +1 -0
- package/dist/utils/tenant-context.d.ts +93 -0
- package/dist/utils/tenant-context.d.ts.map +1 -0
- package/dist/utils/tenant-context.js +247 -0
- package/dist/utils/tenant-context.js.map +1 -0
- package/dist/utils/uri-builder.d.ts +37 -0
- package/dist/utils/uri-builder.d.ts.map +1 -0
- package/dist/utils/uri-builder.js +60 -0
- package/dist/utils/uri-builder.js.map +1 -0
- package/dist/utils/version-compare.d.ts +10 -0
- package/dist/utils/version-compare.d.ts.map +1 -0
- package/dist/utils/version-compare.js +31 -0
- package/dist/utils/version-compare.js.map +1 -0
- package/dist/utils/zod-to-jsonschema.d.ts +4 -0
- package/dist/utils/zod-to-jsonschema.d.ts.map +1 -0
- package/dist/utils/zod-to-jsonschema.js +25 -0
- package/dist/utils/zod-to-jsonschema.js.map +1 -0
- package/package.json +240 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: "4.8.6"
|
|
3
|
+
slug: challenge-type-guide
|
|
4
|
+
title: Challenge Type Selection Guide
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Challenge Type Selection Guide
|
|
10
|
+
|
|
11
|
+
Decision rules, JSON formats, interpreter selection, and anti-patterns for
|
|
12
|
+
choosing KAIROS challenge types. Loaded by protocol-authoring agents during
|
|
13
|
+
drafting and review.
|
|
14
|
+
|
|
15
|
+
## Activation Patterns
|
|
16
|
+
|
|
17
|
+
**Typically invoked by:** `create-new-protocol` and
|
|
18
|
+
`phase-critic`.
|
|
19
|
+
|
|
20
|
+
**Can be invoked directly when agent needs:**
|
|
21
|
+
- "challenge type reference" / "which challenge type to use"
|
|
22
|
+
- "how to write shell challenges" / "challenge format"
|
|
23
|
+
- "interpreter selection for challenges"
|
|
24
|
+
|
|
25
|
+
**Trigger pattern:** **challenge** + (type | format | selection | guide).
|
|
26
|
+
|
|
27
|
+
**Must Never:**
|
|
28
|
+
- Be used as an execution protocol.
|
|
29
|
+
- Select `comment` merely because it is easy.
|
|
30
|
+
|
|
31
|
+
**Must Always:**
|
|
32
|
+
- Be consulted before assigning challenge types to protocol steps.
|
|
33
|
+
- Choose the strongest observable contract available.
|
|
34
|
+
- Match challenge choice to the mode of the step: ask, decide, act, verify, or review.
|
|
35
|
+
|
|
36
|
+
**Good trigger examples:**
|
|
37
|
+
- drafting a new protocol and need challenge types → load this
|
|
38
|
+
- reviewing challenge type selection in a draft → load this
|
|
39
|
+
|
|
40
|
+
**Bad trigger examples:**
|
|
41
|
+
- "Create a new protocol" → use `create-new-protocol`
|
|
42
|
+
- "Review my protocol draft" → use `phase-critic`
|
|
43
|
+
|
|
44
|
+
## Core Rules
|
|
45
|
+
|
|
46
|
+
`comment` is the challenge type of **last resort**. If a step produces any
|
|
47
|
+
observable artifact — a file, a git state change, an API response, or an exit
|
|
48
|
+
code — use `shell` or `mcp` instead.
|
|
49
|
+
|
|
50
|
+
**Mode before challenge type:**
|
|
51
|
+
- **clarify / approve** → `user_input`
|
|
52
|
+
- **call a KAIROS / MCP tool** → `mcp`
|
|
53
|
+
- **execute or verify local state** → `shell`
|
|
54
|
+
- **pure reasoning with no observable artifact** → `comment`
|
|
55
|
+
|
|
56
|
+
### Decision Tree
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
Does the step call an MCP tool?
|
|
60
|
+
├─ YES → Is the step a chain link to another adapter?
|
|
61
|
+
│ ├─ YES → "mcp" with tool_name + arguments (forward + slug URI)
|
|
62
|
+
│ └─ NO → "mcp" with tool_name only
|
|
63
|
+
└─ NO → Does the step produce or verify a file, command result, or system state?
|
|
64
|
+
├─ YES → "shell"
|
|
65
|
+
└─ NO → Does the step require human approval or choice?
|
|
66
|
+
├─ YES → "user_input"
|
|
67
|
+
└─ NO → "comment" only if there is no stronger observable contract
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Challenge JSON Formats
|
|
71
|
+
|
|
72
|
+
**shell**
|
|
73
|
+
```json
|
|
74
|
+
{"contract":{"type":"shell","shell":{"cmd":"<command>","timeout_seconds":30},"required":true}}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**mcp**
|
|
78
|
+
```json
|
|
79
|
+
{"contract":{"type":"mcp","mcp":{"tool_name":"<tool>"},"required":true}}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**mcp with arguments (chain link)**
|
|
83
|
+
```json
|
|
84
|
+
{"contract":{"type":"mcp","mcp":{"tool_name":"forward","arguments":{"uri":"kairos://adapter/<slug>"}},"required":true}}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Use the `arguments` form when the step's purpose is to invoke a specific
|
|
88
|
+
adapter via `forward`. The server validates that `solution.mcp.arguments`
|
|
89
|
+
is a superset of the contract's `mcp.arguments` (subset/deep matching),
|
|
90
|
+
proving the agent called the correct target — not just any `forward` call.
|
|
91
|
+
|
|
92
|
+
**user_input**
|
|
93
|
+
```json
|
|
94
|
+
{"contract":{"type":"user_input","user_input":{"prompt":"<specific question>"},"required":true}}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**comment**
|
|
98
|
+
```json
|
|
99
|
+
{"contract":{"type":"comment","comment":{"min_length":50},"required":true}}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Solution JSON Formats
|
|
103
|
+
|
|
104
|
+
Every solution, regardless of type, follows the same envelope:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"type": "<challenge_type>",
|
|
109
|
+
"outcome": "success | failure | skipped",
|
|
110
|
+
"evidence": { /* type-specific proof data */ },
|
|
111
|
+
"nonce": "<echo from contract>",
|
|
112
|
+
"proof_hash": "<echo from contract>"
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**shell solution**
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"type": "shell",
|
|
120
|
+
"outcome": "success",
|
|
121
|
+
"evidence": {
|
|
122
|
+
"exit_code": 0,
|
|
123
|
+
"stdout": "...",
|
|
124
|
+
"stderr": "",
|
|
125
|
+
"duration_seconds": 1.2
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**mcp solution**
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"type": "mcp",
|
|
134
|
+
"outcome": "success",
|
|
135
|
+
"evidence": {
|
|
136
|
+
"tool_name": "activate",
|
|
137
|
+
"arguments": { "query": "example search" },
|
|
138
|
+
"response": { "choices": [...] }
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**user_input solution**
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"type": "user_input",
|
|
147
|
+
"outcome": "success",
|
|
148
|
+
"evidence": {
|
|
149
|
+
"confirmation": "agreed. proceed",
|
|
150
|
+
"timestamp": "2026-05-18T14:49:00Z"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**comment solution**
|
|
156
|
+
```json
|
|
157
|
+
{
|
|
158
|
+
"type": "comment",
|
|
159
|
+
"outcome": "success",
|
|
160
|
+
"evidence": {
|
|
161
|
+
"text": "Verified all 78 issues now have repo: labels."
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Compatibility
|
|
167
|
+
|
|
168
|
+
The server also accepts older solution shapes where data is placed directly
|
|
169
|
+
under the type key (e.g. `{ "type": "shell", "shell": { "exit_code": 0 } }`)
|
|
170
|
+
instead of inside an `evidence` envelope. Always use the unified envelope with
|
|
171
|
+
`outcome` and `evidence` for new protocols.
|
|
172
|
+
|
|
173
|
+
## Interpreter Selection
|
|
174
|
+
|
|
175
|
+
| Task | Use bash | Use perl | Use python3 |
|
|
176
|
+
|---|---|---|---|
|
|
177
|
+
| File exists, tool installed, git state | yes | no | no |
|
|
178
|
+
| Simple content grep | yes | no | no |
|
|
179
|
+
| Multi-line regex | no | yes | no |
|
|
180
|
+
| Paragraph processing | no | yes | no |
|
|
181
|
+
| JSON validation | maybe | yes | yes |
|
|
182
|
+
| YAML / complex data structure checks | no | no | yes |
|
|
183
|
+
|
|
184
|
+
**Rule of thumb:** if bash requires `while read`, `grep | awk`, or heavy quote
|
|
185
|
+
escaping, rewrite in Perl. If you need imports for data formats, use Python.
|
|
186
|
+
|
|
187
|
+
```json
|
|
188
|
+
{"contract":{"type":"comment","comment":{"min_length":30},"required":true}}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Security and Working Directory Rules
|
|
192
|
+
|
|
193
|
+
Use `$KAIROS_LOCAL_ARTIFACT_DIR` as the base directory for local handoff
|
|
194
|
+
artifacts. File paths within it are provided as variables by the invoking agent
|
|
195
|
+
to avoid collisions between parallel sessions.
|
|
196
|
+
|
|
197
|
+
**Rules:**
|
|
198
|
+
- all file paths in shell challenges reference variables (e.g., `$DRAFT_FILE`,
|
|
199
|
+
`$VERDICT_FILE`) set by the parent agent — never hardcode filenames
|
|
200
|
+
- the parent agent constructs collision-free paths under
|
|
201
|
+
`$KAIROS_LOCAL_ARTIFACT_DIR` (e.g., with a session ID or random suffix)
|
|
202
|
+
- when using KAIROS MCP, the latest `activate` / `forward` / `next` response field `kairos_local_artifact_dir` is an ordered array of URI hints (`project://<rel>`, `user://<rel>`); pick one (`project://` when you have exactly one project context, otherwise `user://`), resolve on your machine, and `export KAIROS_LOCAL_ARTIFACT_DIR="<absolute>"` if your shell does not already define it
|
|
203
|
+
- if the server-returned path is not usable on your local filesystem, resolve
|
|
204
|
+
locally to `$PROJECT_DIR/.local/kairos/work` and keep it stable for the run
|
|
205
|
+
- prerequisites create the directory
|
|
206
|
+
- Reward Signal cleans it up
|
|
207
|
+
- never write credentials or secrets to files
|
|
208
|
+
|
|
209
|
+
```json
|
|
210
|
+
{"contract":{"type":"comment","comment":{"min_length":30},"required":true}}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
## Composition Patterns
|
|
214
|
+
|
|
215
|
+
**Multi-check compound command**
|
|
216
|
+
- chain with `&&`
|
|
217
|
+
- let the first failure stop execution
|
|
218
|
+
|
|
219
|
+
**Agent-readable shell status**
|
|
220
|
+
- use when failure can produce no output, especially `test`, quiet `grep`,
|
|
221
|
+
JSON probes, pipelines, or commands that redirect stderr
|
|
222
|
+
- empty stdout or stderr is not success; success is the real process status
|
|
223
|
+
reported as `solution.shell.exit_code`
|
|
224
|
+
- print the final status marker to stderr when stdout is machine-readable
|
|
225
|
+
- preserve the original status exactly:
|
|
226
|
+
```bash
|
|
227
|
+
( set -o pipefail; <command> ); rc=$?; printf '\nKAIROS_SHELL_EXIT=%s\n' "$rc" >&2; exit "$rc"
|
|
228
|
+
```
|
|
229
|
+
- keep `&&` inside `<command>` for ordered checks; use the final
|
|
230
|
+
`; rc=$?; ...` trailer only to capture, print, and return the process status
|
|
231
|
+
- do not use `<command> || echo ERROR && false`; shell operators group
|
|
232
|
+
left-to-right, so that form can fail after a successful command and it loses
|
|
233
|
+
the original status
|
|
234
|
+
|
|
235
|
+
**Freeze-then-verify**
|
|
236
|
+
- step N writes checksum
|
|
237
|
+
- step N+1 verifies checksum before publish
|
|
238
|
+
|
|
239
|
+
**Write-then-grep**
|
|
240
|
+
- subagent writes a verdict file
|
|
241
|
+
- main agent checks the first line for `PASS`
|
|
242
|
+
|
|
243
|
+
**Phase-batch with critic**
|
|
244
|
+
- batch related TODO items into one phase
|
|
245
|
+
- verify hard artifacts with shell
|
|
246
|
+
- then call `phase-critic` for adversarial review
|
|
247
|
+
|
|
248
|
+
**Dry-run before execution**
|
|
249
|
+
- dry-run command
|
|
250
|
+
- human review
|
|
251
|
+
- real command
|
|
252
|
+
|
|
253
|
+
**Chain-link via forward + slug**
|
|
254
|
+
- layer N's contract requires `forward` with a specific adapter slug
|
|
255
|
+
- agent calls `forward` to start the next adapter (new `execution_id`)
|
|
256
|
+
- next adapter runs its own layer chain through to `reward`
|
|
257
|
+
- use when the protocol exceeds 350 lines or needs multi-path routing
|
|
258
|
+
- NOT a replacement for layers — layers remain the primary unit of work
|
|
259
|
+
- example contract:
|
|
260
|
+
```json
|
|
261
|
+
{"contract":{"type":"mcp","mcp":{"tool_name":"forward","arguments":{"uri":"kairos://adapter/implement-plan"}},"required":true}}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
```json
|
|
265
|
+
{"contract":{"type":"comment","comment":{"min_length":30},"required":true}}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Reward Signal
|
|
269
|
+
|
|
270
|
+
Only reachable after all prior steps are solved.
|
|
271
|
+
|
|
272
|
+
The agent can now:
|
|
273
|
+
1. pick the correct challenge type for each protocol step
|
|
274
|
+
2. match challenge type to the step's mode
|
|
275
|
+
3. choose the right interpreter
|
|
276
|
+
4. apply working-directory and security rules
|
|
277
|
+
5. preserve real shell statuses for silent checks
|
|
278
|
+
6. use stronger verification patterns instead of weak narrative checks
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: create-new-protocol
|
|
3
|
+
version: "4.8.6"
|
|
4
|
+
title: Create / Review / Refactor KAIROS Protocol
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Create / Review / Refactor KAIROS Protocol
|
|
10
|
+
|
|
11
|
+
> **Note to the agent:** KAIROS protocols are interfaces for AI agents — you
|
|
12
|
+
> are the primary user. When you author a protocol, you design behaviour for
|
|
13
|
+
> yourself and others. Write for them: single source of truth (never duplicate
|
|
14
|
+
> rules), explicit over implicit (agents fill ambiguity with hallucination),
|
|
15
|
+
> phases teach modes (each step teaches its cognitive mode), truth over fluency
|
|
16
|
+
> (a protocol that reads well but causes wrong behaviour is worse than one that
|
|
17
|
+
> reads rough but executes correctly).
|
|
18
|
+
|
|
19
|
+
## Activation Patterns
|
|
20
|
+
|
|
21
|
+
KAIROS authoring lifecycle — create, review, or update adapters / protocols / workflows.
|
|
22
|
+
In this context, those words refer to the same stored artifact and can be treated
|
|
23
|
+
as synonyms. Supports three operations:
|
|
24
|
+
|
|
25
|
+
- **create** — draft and train a new adapter / protocol from scratch.
|
|
26
|
+
- **review** — audit an existing adapter, family, or bundle for structural issues,
|
|
27
|
+
missing cross-references, chaining gaps, DRY violations, stale guidance, or
|
|
28
|
+
agent-hostile ambiguity. Read-only.
|
|
29
|
+
- **update** — apply specific corrections to an existing adapter / protocol and
|
|
30
|
+
re-train. Also triggered by: edit, fix, modify, change, improve, patch, refactor.
|
|
31
|
+
|
|
32
|
+
**Run this protocol when the user says ANY of:**
|
|
33
|
+
|
|
34
|
+
- "create a new KAIROS protocol" / "create new protocol adapter"
|
|
35
|
+
- "register personal KAIROS adapter" / "register a personal adapter"
|
|
36
|
+
- "train adapter into personal" / "train protocol into personal"
|
|
37
|
+
- "train a workflow" / "register a new adapter" / "create a new workflow"
|
|
38
|
+
- "review protocol" / "audit adapters" / "check protocol families for gaps"
|
|
39
|
+
- "update adapter" / "edit adapter" / "fix protocol" / "modify adapter"
|
|
40
|
+
- "patch protocol" / "refactor protocol" / "change adapter" / "improve adapter"
|
|
41
|
+
- "create new protocol" (when `activate` found no match and user confirms)
|
|
42
|
+
|
|
43
|
+
**Trigger pattern:** **create** / **train** / **register** / **review** /
|
|
44
|
+
**audit** / **fix** / **update** / **edit** / **modify** / **change** /
|
|
45
|
+
**improve** / **patch** / **refactor** / **correct** +
|
|
46
|
+
(protocol / adapter / workflow).
|
|
47
|
+
|
|
48
|
+
**Must Never:**
|
|
49
|
+
- Run when the user only asked to execute an existing protocol.
|
|
50
|
+
- Mutate adapters during a `review` operation.
|
|
51
|
+
- Optimise only for pretty wording; this protocol designs agent behaviour.
|
|
52
|
+
- Treat "update", "edit", or "modify an existing adapter" as the **update**
|
|
53
|
+
operation — never as create.
|
|
54
|
+
|
|
55
|
+
**Must Always:**
|
|
56
|
+
- Infer `{operation}` from trigger: create / review / update.
|
|
57
|
+
When the user says "update", "edit", "modify", or "fix" → operation is **update**.
|
|
58
|
+
- Optimise for truth, low ambiguity, explicit sequencing, and user-need alignment.
|
|
59
|
+
- Design or review phase transitions explicitly: discovery, clarification,
|
|
60
|
+
ideation, planning, execution, validation, review, handoff.
|
|
61
|
+
- Include Activation Patterns as the first H2 and Reward Signal as the last H2
|
|
62
|
+
in any newly drafted adapter.
|
|
63
|
+
- Enforce the 350-line limit per file.
|
|
64
|
+
|
|
65
|
+
**Good trigger examples:**
|
|
66
|
+
- "Create a new KAIROS protocol for code review" → run this protocol (create)
|
|
67
|
+
- "No match found; I want to create a new protocol" → run this protocol (create)
|
|
68
|
+
- "Review all v4 protocol families for missing cross-references" → run this protocol (review)
|
|
69
|
+
- "Update the MR adapter to include a review step" → run this protocol (update)
|
|
70
|
+
- "Edit the phase-critic adapter triggers" → run this protocol (update)
|
|
71
|
+
- "Refactor the MR adapter to be less ambiguous" → run this protocol (update)
|
|
72
|
+
|
|
73
|
+
**Bad trigger examples:**
|
|
74
|
+
- "Run the standardise project protocol" → use activate / forward
|
|
75
|
+
- "Search for deployment protocol" → use activate
|
|
76
|
+
- "Create an MR" → use the MR adapter, not this protocol
|
|
77
|
+
|
|
78
|
+
## Preflight Dependencies
|
|
79
|
+
|
|
80
|
+
Before running authoring actions, verify dependency and auth readiness for this
|
|
81
|
+
run:
|
|
82
|
+
|
|
83
|
+
1. Required MCP tools are available and reachable: `activate`, `forward`,
|
|
84
|
+
`reward`, and the operation-dependent tool (`train`, `export`, or `tune`).
|
|
85
|
+
2. Required CLI tools for planned shell steps are installed and callable.
|
|
86
|
+
3. Required auth/session state is valid for the target MCP server.
|
|
87
|
+
|
|
88
|
+
If any check fails, stop before main execution and ask the user to choose one:
|
|
89
|
+
- proceed with AI-assisted setup and then resume
|
|
90
|
+
- abort this protocol run now
|
|
91
|
+
|
|
92
|
+
Do not continue to intent confirmation until preflight passes.
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{"contract":{"type":"comment","comment":{"min_length":80},"required":true}}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Confirm Intent
|
|
99
|
+
|
|
100
|
+
Infer `{operation}` from the user's trigger:
|
|
101
|
+
|
|
102
|
+
| Signal | Operation |
|
|
103
|
+
|---|---|
|
|
104
|
+
| "create", "new", "train", no match from activate | **create** |
|
|
105
|
+
| "review", "audit", "check", "gaps", "cross-references" | **review** |
|
|
106
|
+
| "update", "edit", "fix", "modify", "change", "improve", "patch", "refactor", "add missing", "correct" | **update** |
|
|
107
|
+
|
|
108
|
+
For `create`: ask whether to create a new protocol or refine the search.
|
|
109
|
+
For `review`: ask which adapter(s), family, or bundle to review.
|
|
110
|
+
For `update`: ask which adapter to update and what the issue is.
|
|
111
|
+
|
|
112
|
+
```json
|
|
113
|
+
{"contract":{"type":"user_input","user_input":{"prompt":"Confirm operation and target"},"required":true}}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Gather Requirements
|
|
117
|
+
|
|
118
|
+
### For `create` — collect details for a new protocol
|
|
119
|
+
|
|
120
|
+
**1. Determine the pattern:**
|
|
121
|
+
|
|
122
|
+
| Signal | Pattern |
|
|
123
|
+
|---|---|
|
|
124
|
+
| One workflow, no variants | **Standalone** — one protocol, all steps inline |
|
|
125
|
+
| Multiple issue types / output formats / media | **Router + Extensions** — router classifies, routes via `activate` |
|
|
126
|
+
| Domain has a decision tree | **Router + Extensions** |
|
|
127
|
+
| Single workflow but exceeds 350 lines or too complex for weaker models | **Chain** — split into sequential adapters linked via `forward` + slug |
|
|
128
|
+
| Reference material needed by steps | Extract to a separate file, not a protocol |
|
|
129
|
+
|
|
130
|
+
**2. Collect per protocol:**
|
|
131
|
+
|
|
132
|
+
- **Title** — clear, descriptive H1.
|
|
133
|
+
- **User problem** — what real problem does this solve?
|
|
134
|
+
- **Agent behaviour** — what behaviour should this create in the agent?
|
|
135
|
+
- **Mode map** — which steps are for discovery, clarification, ideation,
|
|
136
|
+
planning, execution, validation, review, or handoff?
|
|
137
|
+
- **Steps** — each H2 must earn its place and end with a challenge.
|
|
138
|
+
- **Challenge type per step** — use the strongest observable contract possible.
|
|
139
|
+
- **Domain reference** — guides / docs the protocol should load.
|
|
140
|
+
- **Existing protocols** — reuse, compose, or extract shared content.
|
|
141
|
+
- **DRY / size check** — extract duplicated content; split if >350 lines.
|
|
142
|
+
- **Chain position** — entry, middle, or exit? What slug does the previous link forward to?
|
|
143
|
+
- **Failure analysis** — where would a weaker agent misread this protocol?
|
|
144
|
+
|
|
145
|
+
**3. If Router pattern:** variants, classification questions, forbidden types,
|
|
146
|
+
and which parts stay in the router vs extensions.
|
|
147
|
+
|
|
148
|
+
**4. If Chain pattern:** Load `protocol-linking-guide` for full rules
|
|
149
|
+
(`forward` with `kairos://adapter/protocol-linking-guide`). Collect: chain
|
|
150
|
+
links and concerns, minimum number of links, entry point (matched by
|
|
151
|
+
`activate`), and artifacts flowing between links.
|
|
152
|
+
|
|
153
|
+
### For `review` — audit existing adapters against this checklist
|
|
154
|
+
|
|
155
|
+
Export target adapter(s). For each adapter, check:
|
|
156
|
+
|
|
157
|
+
1. **User-need fit** — does the adapter solve a real user problem, or merely
|
|
158
|
+
mirror literal wording?
|
|
159
|
+
2. **Mode / phase clarity** — are discovery, clarification, ideation,
|
|
160
|
+
execution, validation, and review clearly separated?
|
|
161
|
+
3. **Cross-reference completeness** — are all required related adapters linked?
|
|
162
|
+
4. **Adapter handoff gaps** — does it hand off where another adapter should own
|
|
163
|
+
the work?
|
|
164
|
+
5. **DRY violations** — is policy content duplicated instead of linked?
|
|
165
|
+
6. **Contract coverage** — does every executable H2 have the right contract?
|
|
166
|
+
7. **Truth-first behaviour** — does it reduce guessing, fake certainty, and
|
|
167
|
+
silent assumption-making?
|
|
168
|
+
8. **Activation pattern accuracy** — do triggers match what users actually say?
|
|
169
|
+
9. **Structure compliance** — first H2 Activation Patterns, last H2 Reward
|
|
170
|
+
Signal, no duplicate H2s, under 350 lines.
|
|
171
|
+
10. **Sibling consistency** — are equivalent steps present across sibling
|
|
172
|
+
adapters in the same family?
|
|
173
|
+
11. **Chained adapter families** (when applicable) — extension adapters include
|
|
174
|
+
`chain_root` and a prerequisite clause pointing at the root; parent adapters
|
|
175
|
+
use explicit `forward` when the next adapter slug is already known; reserve
|
|
176
|
+
`activate` for ambiguous runtime discovery (see `protocol-linking-guide`,
|
|
177
|
+
**Chaining Back and Forward**).
|
|
178
|
+
12. **Phase-critic integration** — does the adapter include phase-critic chain
|
|
179
|
+
links at major phase boundaries? Does each phase-critic invocation have a
|
|
180
|
+
FAIL gate shell contract (`grep -qi '^PASS$'` on the verdict file)? Are
|
|
181
|
+
solution checks restricted to irreversible remote mutations (see
|
|
182
|
+
`phase-critic-guide`)?
|
|
183
|
+
|
|
184
|
+
### For `update` — identify the specific issue
|
|
185
|
+
|
|
186
|
+
Export the target adapter, read the current markdown, identify the exact gap or
|
|
187
|
+
error, and plan the minimal change. Do not alter unrelated layers.
|
|
188
|
+
|
|
189
|
+
Summarise gathered requirements or findings.
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{"contract":{"type":"comment","comment":{"min_length":80},"required":true}}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Draft Markdown
|
|
196
|
+
|
|
197
|
+
### For `create` — draft new adapter markdown
|
|
198
|
+
|
|
199
|
+
Draft the full markdown for `train`.
|
|
200
|
+
|
|
201
|
+
### For `review` — draft findings report
|
|
202
|
+
|
|
203
|
+
Write a structured gap report to `$REVIEW_FINDINGS_FILE` (an absolute path
|
|
204
|
+
provided by the invoking agent or chosen by you under
|
|
205
|
+
`$KAIROS_LOCAL_ARTIFACT_DIR` with a session-unique segment). For each finding
|
|
206
|
+
include:
|
|
207
|
+
|
|
208
|
+
- adapter title
|
|
209
|
+
- gap type
|
|
210
|
+
- severity
|
|
211
|
+
- why the issue matters for AI-agent behaviour
|
|
212
|
+
- specific recommended fix
|
|
213
|
+
|
|
214
|
+
### For `update` — draft corrected adapter markdown
|
|
215
|
+
|
|
216
|
+
Apply the identified change and show a diff-style summary of what changed.
|
|
217
|
+
|
|
218
|
+
### Shared drafting rules (all operations)
|
|
219
|
+
|
|
220
|
+
**Core KAIROS rule — right mode at the right time:**
|
|
221
|
+
|
|
222
|
+
Every protocol must help the agent recognise whether the current step is for
|
|
223
|
+
exploration, clarification, ideation, planning, execution, validation, review,
|
|
224
|
+
or handoff. Do not blur those modes.
|
|
225
|
+
|
|
226
|
+
**Truth over fluency:**
|
|
227
|
+
|
|
228
|
+
Design protocols to reduce guessing and fake certainty. Prefer explicit prompts,
|
|
229
|
+
explicit stop conditions, explicit uncertainty escalation, and observable
|
|
230
|
+
verification over narrative reassurance.
|
|
231
|
+
|
|
232
|
+
**User need over literal phrasing:**
|
|
233
|
+
|
|
234
|
+
The protocol should help the agent provide what the user actually needs, not
|
|
235
|
+
just echo the wording used in the request.
|
|
236
|
+
|
|
237
|
+
**DRY:**
|
|
238
|
+
|
|
239
|
+
Shared content across protocols must live in one place. If two protocols share
|
|
240
|
+
>50% of their body, extract shared logic.
|
|
241
|
+
|
|
242
|
+
**350-line maximum per file:**
|
|
243
|
+
|
|
244
|
+
No protocol file may exceed 350 lines. If it grows beyond that, split it into
|
|
245
|
+
linked adapters or extract a reference file.
|
|
246
|
+
|
|
247
|
+
**Generic-first — create generic, link from detailed:**
|
|
248
|
+
|
|
249
|
+
Create protocols from generic to detailed. The generic adapter must stand alone.
|
|
250
|
+
Extensions should contain only the delta.
|
|
251
|
+
|
|
252
|
+
**Slug convention — deterministic protocol linking:**
|
|
253
|
+
|
|
254
|
+
Every protocol gets a short, unique, lowercase-hyphenated `slug`.
|
|
255
|
+
|
|
256
|
+
**Artifacts:**
|
|
257
|
+
|
|
258
|
+
Store scripts or config blobs as artifacts via `train` (set `mime`,
|
|
259
|
+
`artifact_name`, `adapter_uri`). Retrieve with `export` using
|
|
260
|
+
`kairos://artifact/{uuid}`.
|
|
261
|
+
|
|
262
|
+
**Protocol structure:** H1 title, first H2 Activation Patterns, second H2
|
|
263
|
+
Preflight Dependencies, middle H2s one per step with JSON contract block, last
|
|
264
|
+
H2 Reward Signal. Frontmatter: `slug` (required), `version` (optional),
|
|
265
|
+
`chain_root` (required for mid-chain adapters).
|
|
266
|
+
|
|
267
|
+
**Challenge types:** Load `challenge-type-guide` for decision rules and JSON
|
|
268
|
+
formats (`forward` with `kairos://adapter/challenge-type-guide`).
|
|
269
|
+
|
|
270
|
+
**Phase-critic and mutation gates:** Load `phase-critic-guide` for placement,
|
|
271
|
+
FAIL gate, and solution check rules (`forward` with `kairos://adapter/phase-critic-guide`).
|
|
272
|
+
|
|
273
|
+
**If Router pattern:** draft the router and each extension as separate files.
|
|
274
|
+
|
|
275
|
+
Post the full drafted markdown.
|
|
276
|
+
|
|
277
|
+
```json
|
|
278
|
+
{"contract":{"type":"comment","comment":{"min_length":120},"required":true}}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Phase-Critic Review (create and update only)
|
|
282
|
+
|
|
283
|
+
For `create` and `update`: run phase-critic against the drafted markdown before
|
|
284
|
+
presenting to the user. This is the quality gate — the agent owns content, the
|
|
285
|
+
critic owns quality.
|
|
286
|
+
|
|
287
|
+
1. Invoke phase-critic via `forward` with `kairos://adapter/phase-critic`.
|
|
288
|
+
Provide the drafted markdown as `input_file`, the slug as
|
|
289
|
+
`calling_protocol_slug`, and "structural compliance and agent behaviour"
|
|
290
|
+
as `verification_target`.
|
|
291
|
+
2. Run the FAIL gate shell contract on the verdict file:
|
|
292
|
+
|
|
293
|
+
```json
|
|
294
|
+
{"contract":{"type":"shell","shell":{"cmd":"head -1 \"$VERDICT_FILE\" | grep -qi '^PASS$'","timeout_seconds":5},"required":true}}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
3. If FAIL: address findings, re-invoke phase-critic. Do NOT proceed.
|
|
298
|
+
4. If PASS: capture the verdict file path for the `review_evidence` field
|
|
299
|
+
in the `train` call below.
|
|
300
|
+
|
|
301
|
+
For `review`: skip this step (read-only operation).
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{"contract":{"type":"comment","comment":{"min_length":80},"required":true}}
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## User Review
|
|
308
|
+
|
|
309
|
+
For `create`: present the drafted protocol(s) and the phase-critic verdict.
|
|
310
|
+
User acknowledges (informational, not an approval gate).
|
|
311
|
+
|
|
312
|
+
For `review`: present the findings report and ask which findings to act on.
|
|
313
|
+
|
|
314
|
+
For `update`: present the corrected markdown, change summary, and critic verdict.
|
|
315
|
+
|
|
316
|
+
```json
|
|
317
|
+
{"contract":{"type":"user_input","user_input":{"prompt":"Acknowledge the draft and verdict (create/update) or review findings"},"required":true}}
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
## FinaliseOperation
|
|
321
|
+
|
|
322
|
+
For `create`: call `train` with the drafted markdown and `review_evidence`
|
|
323
|
+
from the phase-critic step. Use `force_update: false` unless overwrite was
|
|
324
|
+
explicitly requested.
|
|
325
|
+
|
|
326
|
+
For `review`: do not call `train`. Save the findings report only if requested.
|
|
327
|
+
|
|
328
|
+
For `update`: call `train` with `force_update: true`, `review_evidence` from
|
|
329
|
+
the phase-critic step, and update the corresponding repo file.
|
|
330
|
+
|
|
331
|
+
Report the outcome: adapter URI(s) for create / update, or findings summary for
|
|
332
|
+
review.
|
|
333
|
+
|
|
334
|
+
```json
|
|
335
|
+
{"contract":{"type":"comment","comment":{"min_length":80},"required":true}}
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
## Reward Signal
|
|
339
|
+
|
|
340
|
+
Protocol complete when:
|
|
341
|
+
- `create` — adapter(s) stored via `train` (with review_evidence) and URI(s) reported
|
|
342
|
+
- `review` — findings report delivered and acknowledged
|
|
343
|
+
- `update` — corrected adapter trained with `force_update: true` + review_evidence, repo file updated
|
|
344
|
+
|
|
345
|
+
A successful result means the resulting KAIROS adapter is more truthful,
|
|
346
|
+
phase-aware, agent-readable, and aligned with human–AI harmony.
|