memory-journal-mcp 8.0.1 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +278 -353
- package/dist/audit/audit-logger.d.ts +89 -0
- package/dist/audit/audit-logger.d.ts.map +1 -0
- package/dist/audit/audit-resource.d.ts +28 -0
- package/dist/audit/audit-resource.d.ts.map +1 -0
- package/dist/audit/index.d.ts +12 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/interceptor.d.ts +44 -0
- package/dist/audit/interceptor.d.ts.map +1 -0
- package/dist/audit/types.d.ts +68 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/auth/auth-context.d.ts +42 -0
- package/dist/auth/auth-context.d.ts.map +1 -0
- package/dist/auth/authorization-server-discovery.d.ts +90 -0
- package/dist/auth/authorization-server-discovery.d.ts.map +1 -0
- package/dist/auth/errors.d.ts +90 -0
- package/dist/auth/errors.d.ts.map +1 -0
- package/dist/auth/index.d.ts +16 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/middleware.d.ts +77 -0
- package/dist/auth/middleware.d.ts.map +1 -0
- package/dist/auth/oauth-resource-server.d.ts +73 -0
- package/dist/auth/oauth-resource-server.d.ts.map +1 -0
- package/dist/auth/scope-map.d.ts +14 -0
- package/dist/auth/scope-map.d.ts.map +1 -0
- package/dist/auth/scopes.d.ts +112 -0
- package/dist/auth/scopes.d.ts.map +1 -0
- package/dist/auth/token-validator.d.ts +64 -0
- package/dist/auth/token-validator.d.ts.map +1 -0
- package/dist/auth/transport-agnostic.d.ts +47 -0
- package/dist/auth/transport-agnostic.d.ts.map +1 -0
- package/dist/auth/types.d.ts +256 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/validation.d.ts +15 -0
- package/dist/auth/validation.d.ts.map +1 -0
- package/dist/chunk-4FZCHFB5.js +216 -0
- package/dist/chunk-D2FY6XS5.js +313 -0
- package/dist/chunk-E6IQP6PE.js +252 -0
- package/dist/chunk-FZLB6NAV.js +746 -0
- package/dist/chunk-LE6ZWUPK.js +2667 -0
- package/dist/chunk-SGJU2DHU.js +2102 -0
- package/dist/chunk-T7SROBBV.js +34066 -0
- package/dist/chunk-Y6MMKR2Z.js +3766 -0
- package/dist/cli/commands/admin.d.ts +123 -0
- package/dist/cli/commands/admin.d.ts.map +1 -0
- package/dist/cli/commands/analytics.d.ts +21 -0
- package/dist/cli/commands/analytics.d.ts.map +1 -0
- package/dist/cli/commands/entry-payload.d.ts +38 -0
- package/dist/cli/commands/entry-payload.d.ts.map +1 -0
- package/dist/cli/commands/entry.d.ts +130 -0
- package/dist/cli/commands/entry.d.ts.map +1 -0
- package/dist/cli/commands/exec.d.ts +31 -0
- package/dist/cli/commands/exec.d.ts.map +1 -0
- package/dist/cli/commands/io.d.ts +76 -0
- package/dist/cli/commands/io.d.ts.map +1 -0
- package/dist/cli/commands/project.d.ts +6 -0
- package/dist/cli/commands/project.d.ts.map +1 -0
- package/dist/cli/commands/search.d.ts +30 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/serve.d.ts +84 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/visualize.d.ts +20 -0
- package/dist/cli/commands/visualize.d.ts.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +9 -0
- package/dist/cli/option-groups.d.ts +18 -0
- package/dist/cli/option-groups.d.ts.map +1 -0
- package/dist/cli/program.d.ts +7 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli/schemas.d.ts +648 -0
- package/dist/cli/schemas.d.ts.map +1 -0
- package/dist/cli/server-options-builder.d.ts +13 -0
- package/dist/cli/server-options-builder.d.ts.map +1 -0
- package/dist/cli.js +9 -433
- package/dist/codemode/api/git-api.d.ts +9 -0
- package/dist/codemode/api/git-api.d.ts.map +1 -0
- package/dist/codemode/api/group-factory.d.ts +30 -0
- package/dist/codemode/api/group-factory.d.ts.map +1 -0
- package/dist/codemode/api/index.d.ts +10 -0
- package/dist/codemode/api/index.d.ts.map +1 -0
- package/dist/codemode/api/journal-api.d.ts +39 -0
- package/dist/codemode/api/journal-api.d.ts.map +1 -0
- package/dist/codemode/api/key-normalizer.d.ts +8 -0
- package/dist/codemode/api/key-normalizer.d.ts.map +1 -0
- package/dist/codemode/api/param-normalizer.d.ts +15 -0
- package/dist/codemode/api/param-normalizer.d.ts.map +1 -0
- package/dist/codemode/api/project-registry-ops.d.ts +26 -0
- package/dist/codemode/api/project-registry-ops.d.ts.map +1 -0
- package/dist/codemode/api/sandbox-bindings.d.ts +25 -0
- package/dist/codemode/api/sandbox-bindings.d.ts.map +1 -0
- package/dist/codemode/api/types.d.ts +21 -0
- package/dist/codemode/api/types.d.ts.map +1 -0
- package/dist/codemode/api-constants.d.ts +6 -0
- package/dist/codemode/api-constants.d.ts.map +1 -0
- package/dist/codemode/auto-return.d.ts +25 -0
- package/dist/codemode/auto-return.d.ts.map +1 -0
- package/dist/codemode/constants/examples-and-params.d.ts +31 -0
- package/dist/codemode/constants/examples-and-params.d.ts.map +1 -0
- package/dist/codemode/constants/method-aliases.d.ts +8 -0
- package/dist/codemode/constants/method-aliases.d.ts.map +1 -0
- package/dist/codemode/index.d.ts +12 -0
- package/dist/codemode/index.d.ts.map +1 -0
- package/dist/codemode/normalizers/domain-tool-interceptions.d.ts +6 -0
- package/dist/codemode/normalizers/domain-tool-interceptions.d.ts.map +1 -0
- package/dist/codemode/normalizers/entry-and-search-interceptions.d.ts +6 -0
- package/dist/codemode/normalizers/entry-and-search-interceptions.d.ts.map +1 -0
- package/dist/codemode/normalizers/generic-interceptions.d.ts +6 -0
- package/dist/codemode/normalizers/generic-interceptions.d.ts.map +1 -0
- package/dist/codemode/normalizers/github-and-backup-interceptions.d.ts +6 -0
- package/dist/codemode/normalizers/github-and-backup-interceptions.d.ts.map +1 -0
- package/dist/codemode/normalizers/shared-utils.d.ts +31 -0
- package/dist/codemode/normalizers/shared-utils.d.ts.map +1 -0
- package/dist/codemode/param-normalizer.d.ts +11 -0
- package/dist/codemode/param-normalizer.d.ts.map +1 -0
- package/dist/codemode/proxy-helpers.d.ts +34 -0
- package/dist/codemode/proxy-helpers.d.ts.map +1 -0
- package/dist/codemode/proxy-namespaces.d.ts +30 -0
- package/dist/codemode/proxy-namespaces.d.ts.map +1 -0
- package/dist/codemode/sandbox-factory.d.ts +52 -0
- package/dist/codemode/sandbox-factory.d.ts.map +1 -0
- package/dist/codemode/security.d.ts +54 -0
- package/dist/codemode/security.d.ts.map +1 -0
- package/dist/codemode/type-generator.d.ts +11 -0
- package/dist/codemode/type-generator.d.ts.map +1 -0
- package/dist/codemode/types.d.ts +165 -0
- package/dist/codemode/types.d.ts.map +1 -0
- package/dist/codemode/worker/mj-shim-domains.d.ts +15 -0
- package/dist/codemode/worker/mj-shim-domains.d.ts.map +1 -0
- package/dist/codemode/worker/mj-shim-proxy.d.ts +18 -0
- package/dist/codemode/worker/mj-shim-proxy.d.ts.map +1 -0
- package/dist/codemode/worker/namespace-shims.d.ts +32 -0
- package/dist/codemode/worker/namespace-shims.d.ts.map +1 -0
- package/dist/codemode/worker/node-shims.d.ts +65 -0
- package/dist/codemode/worker/node-shims.d.ts.map +1 -0
- package/dist/codemode/worker/prototype-hardening.d.ts +18 -0
- package/dist/codemode/worker/prototype-hardening.d.ts.map +1 -0
- package/dist/codemode/worker/result-compactor.d.ts +20 -0
- package/dist/codemode/worker/result-compactor.d.ts.map +1 -0
- package/dist/codemode/worker/sandbox-globals.d.ts +19 -0
- package/dist/codemode/worker/sandbox-globals.d.ts.map +1 -0
- package/dist/codemode/worker-api-proxy.d.ts +12 -0
- package/dist/codemode/worker-api-proxy.d.ts.map +1 -0
- package/dist/codemode/worker-result-proxy.d.ts +12 -0
- package/dist/codemode/worker-result-proxy.d.ts.map +1 -0
- package/dist/codemode/worker-sandbox.d.ts +58 -0
- package/dist/codemode/worker-sandbox.d.ts.map +1 -0
- package/dist/codemode/worker-script.d.ts +9 -0
- package/dist/codemode/worker-script.d.ts.map +1 -0
- package/dist/constants/icons.d.ts +58 -0
- package/dist/constants/icons.d.ts.map +1 -0
- package/dist/constants/instructions/admin.d.ts +2 -0
- package/dist/constants/instructions/admin.d.ts.map +1 -0
- package/dist/constants/instructions/analytics.d.ts +2 -0
- package/dist/constants/instructions/analytics.d.ts.map +1 -0
- package/dist/constants/instructions/backup.d.ts +2 -0
- package/dist/constants/instructions/backup.d.ts.map +1 -0
- package/dist/constants/instructions/base.d.ts +3 -0
- package/dist/constants/instructions/base.d.ts.map +1 -0
- package/dist/constants/instructions/codemode.d.ts +2 -0
- package/dist/constants/instructions/codemode.d.ts.map +1 -0
- package/dist/constants/instructions/core.d.ts +2 -0
- package/dist/constants/instructions/core.d.ts.map +1 -0
- package/dist/constants/instructions/git.d.ts +2 -0
- package/dist/constants/instructions/git.d.ts.map +1 -0
- package/dist/constants/instructions/github.d.ts +2 -0
- package/dist/constants/instructions/github.d.ts.map +1 -0
- package/dist/constants/instructions/gotchas.d.ts +2 -0
- package/dist/constants/instructions/gotchas.d.ts.map +1 -0
- package/dist/constants/instructions/io.d.ts +2 -0
- package/dist/constants/instructions/io.d.ts.map +1 -0
- package/dist/constants/instructions/relationships.d.ts +2 -0
- package/dist/constants/instructions/relationships.d.ts.map +1 -0
- package/dist/constants/instructions/search.d.ts +2 -0
- package/dist/constants/instructions/search.d.ts.map +1 -0
- package/dist/constants/instructions/team.d.ts +2 -0
- package/dist/constants/instructions/team.d.ts.map +1 -0
- package/dist/constants/instructions/templates.d.ts +2 -0
- package/dist/constants/instructions/templates.d.ts.map +1 -0
- package/dist/constants/server-instructions.d.ts +64 -0
- package/dist/constants/server-instructions.d.ts.map +1 -0
- package/dist/database/adapter-factory.d.ts +9 -0
- package/dist/database/adapter-factory.d.ts.map +1 -0
- package/dist/database/core/DatabaseAdapterProxy.d.ts +5 -0
- package/dist/database/core/DatabaseAdapterProxy.d.ts.map +1 -0
- package/dist/database/core/interfaces.d.ts +455 -0
- package/dist/database/core/interfaces.d.ts.map +1 -0
- package/dist/database/migrations/001-init.d.ts +3 -0
- package/dist/database/migrations/001-init.d.ts.map +1 -0
- package/dist/database/migrations/002-add-significance-and-context.d.ts +3 -0
- package/dist/database/migrations/002-add-significance-and-context.d.ts.map +1 -0
- package/dist/database/migrations/003-add-deleted-and-archived.d.ts +3 -0
- package/dist/database/migrations/003-add-deleted-and-archived.d.ts.map +1 -0
- package/dist/database/migrations/004-add-github-and-workflow-integration.d.ts +3 -0
- package/dist/database/migrations/004-add-github-and-workflow-integration.d.ts.map +1 -0
- package/dist/database/migrations/005-add-entry-revisions.d.ts +3 -0
- package/dist/database/migrations/005-add-entry-revisions.d.ts.map +1 -0
- package/dist/database/migrations/006-add-analytics-snapshots.d.ts +3 -0
- package/dist/database/migrations/006-add-analytics-snapshots.d.ts.map +1 -0
- package/dist/database/migrations/007-add-team-author.d.ts +3 -0
- package/dist/database/migrations/007-add-team-author.d.ts.map +1 -0
- package/dist/database/migrations/008-add-team-members.d.ts +3 -0
- package/dist/database/migrations/008-add-team-members.d.ts.map +1 -0
- package/dist/database/migrations/009-add-entry-version.d.ts +3 -0
- package/dist/database/migrations/009-add-entry-version.d.ts.map +1 -0
- package/dist/database/migrations/010-add-author-aliases.d.ts +3 -0
- package/dist/database/migrations/010-add-author-aliases.d.ts.map +1 -0
- package/dist/database/migrations/011-add-workspace-id.d.ts +3 -0
- package/dist/database/migrations/011-add-workspace-id.d.ts.map +1 -0
- package/dist/database/migrations/012-add-trust-and-anchors.d.ts +3 -0
- package/dist/database/migrations/012-add-trust-and-anchors.d.ts.map +1 -0
- package/dist/database/migrations/013-add-session-id.d.ts +3 -0
- package/dist/database/migrations/013-add-session-id.d.ts.map +1 -0
- package/dist/database/migrations/migration-list.d.ts +3 -0
- package/dist/database/migrations/migration-list.d.ts.map +1 -0
- package/dist/database/migrations/migration-manager.d.ts +14 -0
- package/dist/database/migrations/migration-manager.d.ts.map +1 -0
- package/dist/database/migrations/migration.d.ts +23 -0
- package/dist/database/migrations/migration.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/adapter-delegates.d.ts +161 -0
- package/dist/database/sqlite-adapter/adapter-delegates.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/aliases.d.ts +14 -0
- package/dist/database/sqlite-adapter/aliases.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/backup.d.ts +27 -0
- package/dist/database/sqlite-adapter/backup.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/database-adapter.d.ts +192 -0
- package/dist/database/sqlite-adapter/database-adapter.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/anchors.d.ts +9 -0
- package/dist/database/sqlite-adapter/entries/anchors.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/crud-read.d.ts +16 -0
- package/dist/database/sqlite-adapter/entries/crud-read.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/crud-write.d.ts +62 -0
- package/dist/database/sqlite-adapter/entries/crud-write.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/crud.d.ts +4 -0
- package/dist/database/sqlite-adapter/entries/crud.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/digest.d.ts +60 -0
- package/dist/database/sqlite-adapter/entries/digest.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/fuzzy-matcher.d.ts +27 -0
- package/dist/database/sqlite-adapter/entries/fuzzy-matcher.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/importance.d.ts +38 -0
- package/dist/database/sqlite-adapter/entries/importance.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/index.d.ts +186 -0
- package/dist/database/sqlite-adapter/entries/index.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/revisions.d.ts +16 -0
- package/dist/database/sqlite-adapter/entries/revisions.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/cursor.d.ts +15 -0
- package/dist/database/sqlite-adapter/entries/search/cursor.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/date-and-pagination.d.ts +37 -0
- package/dist/database/sqlite-adapter/entries/search/date-and-pagination.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/entity-lookups.d.ts +31 -0
- package/dist/database/sqlite-adapter/entries/search/entity-lookups.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/fts-and-hybrid.d.ts +44 -0
- package/dist/database/sqlite-adapter/entries/search/fts-and-hybrid.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/fts-sanitizer.d.ts +15 -0
- package/dist/database/sqlite-adapter/entries/search/fts-sanitizer.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/index.d.ts +8 -0
- package/dist/database/sqlite-adapter/entries/search/index.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/search/query.d.ts +4 -0
- package/dist/database/sqlite-adapter/entries/search/query.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/shared.d.ts +39 -0
- package/dist/database/sqlite-adapter/entries/shared.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/entries/statistics.d.ts +3 -0
- package/dist/database/sqlite-adapter/entries/statistics.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/health-operations.d.ts +10 -0
- package/dist/database/sqlite-adapter/health-operations.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/index.d.ts +2 -0
- package/dist/database/sqlite-adapter/index.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/insights/cross-project.d.ts +42 -0
- package/dist/database/sqlite-adapter/insights/cross-project.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/insights/entry-digest-queries.d.ts +17 -0
- package/dist/database/sqlite-adapter/insights/entry-digest-queries.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/insights/team-collaboration.d.ts +29 -0
- package/dist/database/sqlite-adapter/insights/team-collaboration.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/insights-operations.d.ts +47 -0
- package/dist/database/sqlite-adapter/insights-operations.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/lifecycle-operations.d.ts +32 -0
- package/dist/database/sqlite-adapter/lifecycle-operations.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/members.d.ts +23 -0
- package/dist/database/sqlite-adapter/members.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/native-connection.d.ts +46 -0
- package/dist/database/sqlite-adapter/native-connection.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/relationships.d.ts +26 -0
- package/dist/database/sqlite-adapter/relationships.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/tags.d.ts +16 -0
- package/dist/database/sqlite-adapter/tags.d.ts.map +1 -0
- package/dist/database/sqlite-adapter/vector-operations.d.ts +24 -0
- package/dist/database/sqlite-adapter/vector-operations.d.ts.map +1 -0
- package/dist/errors-MHAM6AKR.js +1 -0
- package/dist/filtering/tool-constants.d.ts +33 -0
- package/dist/filtering/tool-constants.d.ts.map +1 -0
- package/dist/filtering/tool-filter.d.ts +65 -0
- package/dist/filtering/tool-filter.d.ts.map +1 -0
- package/dist/fts-YHUVPPYF.js +2 -0
- package/dist/github/commit-references/enricher.d.ts +12 -0
- package/dist/github/commit-references/enricher.d.ts.map +1 -0
- package/dist/github/commit-references/index.d.ts +4 -0
- package/dist/github/commit-references/index.d.ts.map +1 -0
- package/dist/github/commit-references/parser.d.ts +10 -0
- package/dist/github/commit-references/parser.d.ts.map +1 -0
- package/dist/github/commit-references/resolver.d.ts +14 -0
- package/dist/github/commit-references/resolver.d.ts.map +1 -0
- package/dist/github/github-integration/client.d.ts +29 -0
- package/dist/github/github-integration/client.d.ts.map +1 -0
- package/dist/github/github-integration/index.d.ts +83 -0
- package/dist/github/github-integration/index.d.ts.map +1 -0
- package/dist/github/github-integration/insights.d.ts +11 -0
- package/dist/github/github-integration/insights.d.ts.map +1 -0
- package/dist/github/github-integration/issues.d.ts +25 -0
- package/dist/github/github-integration/issues.d.ts.map +1 -0
- package/dist/github/github-integration/milestones.d.ts +20 -0
- package/dist/github/github-integration/milestones.d.ts.map +1 -0
- package/dist/github/github-integration/projects.d.ts +21 -0
- package/dist/github/github-integration/projects.d.ts.map +1 -0
- package/dist/github/github-integration/pull-requests.d.ts +16 -0
- package/dist/github/github-integration/pull-requests.d.ts.map +1 -0
- package/dist/github/github-integration/repository.d.ts +14 -0
- package/dist/github/github-integration/repository.d.ts.map +1 -0
- package/dist/github/github-integration/types.d.ts +77 -0
- package/dist/github/github-integration/types.d.ts.map +1 -0
- package/dist/handlers/prompts/adversarial-helpers.d.ts +75 -0
- package/dist/handlers/prompts/adversarial-helpers.d.ts.map +1 -0
- package/dist/handlers/prompts/adversarial.d.ts +13 -0
- package/dist/handlers/prompts/adversarial.d.ts.map +1 -0
- package/dist/handlers/prompts/analytics.d.ts +12 -0
- package/dist/handlers/prompts/analytics.d.ts.map +1 -0
- package/dist/handlers/prompts/cms-supervisor.d.ts +8 -0
- package/dist/handlers/prompts/cms-supervisor.d.ts.map +1 -0
- package/dist/handlers/prompts/git.d.ts +8 -0
- package/dist/handlers/prompts/git.d.ts.map +1 -0
- package/dist/handlers/prompts/github.d.ts +12 -0
- package/dist/handlers/prompts/github.d.ts.map +1 -0
- package/dist/handlers/prompts/index.d.ts +53 -0
- package/dist/handlers/prompts/index.d.ts.map +1 -0
- package/dist/handlers/prompts/load-briefing.d.ts +3 -0
- package/dist/handlers/prompts/load-briefing.d.ts.map +1 -0
- package/dist/handlers/prompts/optimizer.d.ts +8 -0
- package/dist/handlers/prompts/optimizer.d.ts.map +1 -0
- package/dist/handlers/prompts/workflow.d.ts +15 -0
- package/dist/handlers/prompts/workflow.d.ts.map +1 -0
- package/dist/handlers/resources/core/agent-context.d.ts +4 -0
- package/dist/handlers/resources/core/agent-context.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/context-section.d.ts +57 -0
- package/dist/handlers/resources/core/briefing/context-section.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/github-repo-and-kanban.d.ts +57 -0
- package/dist/handlers/resources/core/briefing/github-repo-and-kanban.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/github-section.d.ts +88 -0
- package/dist/handlers/resources/core/briefing/github-section.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/index.d.ts +11 -0
- package/dist/handlers/resources/core/briefing/index.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/insights-section.d.ts +35 -0
- package/dist/handlers/resources/core/briefing/insights-section.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/system-section.d.ts +85 -0
- package/dist/handlers/resources/core/briefing/system-section.d.ts.map +1 -0
- package/dist/handlers/resources/core/briefing/user-message.d.ts +46 -0
- package/dist/handlers/resources/core/briefing/user-message.d.ts.map +1 -0
- package/dist/handlers/resources/core/health.d.ts +3 -0
- package/dist/handlers/resources/core/health.d.ts.map +1 -0
- package/dist/handlers/resources/core/index.d.ts +6 -0
- package/dist/handlers/resources/core/index.d.ts.map +1 -0
- package/dist/handlers/resources/core/instructions.d.ts +3 -0
- package/dist/handlers/resources/core/instructions.d.ts.map +1 -0
- package/dist/handlers/resources/core/metrics-resource.d.ts +23 -0
- package/dist/handlers/resources/core/metrics-resource.d.ts.map +1 -0
- package/dist/handlers/resources/core/utilities.d.ts +7 -0
- package/dist/handlers/resources/core/utilities.d.ts.map +1 -0
- package/dist/handlers/resources/github.d.ts +11 -0
- package/dist/handlers/resources/github.d.ts.map +1 -0
- package/dist/handlers/resources/graph.d.ts +12 -0
- package/dist/handlers/resources/graph.d.ts.map +1 -0
- package/dist/handlers/resources/help.d.ts +39 -0
- package/dist/handlers/resources/help.d.ts.map +1 -0
- package/dist/handlers/resources/index.d.ts +37 -0
- package/dist/handlers/resources/index.d.ts.map +1 -0
- package/dist/handlers/resources/insights.d.ts +16 -0
- package/dist/handlers/resources/insights.d.ts.map +1 -0
- package/dist/handlers/resources/shared.d.ts +136 -0
- package/dist/handlers/resources/shared.d.ts.map +1 -0
- package/dist/handlers/resources/staleness.d.ts +3 -0
- package/dist/handlers/resources/staleness.d.ts.map +1 -0
- package/dist/handlers/resources/team.d.ts +6 -0
- package/dist/handlers/resources/team.d.ts.map +1 -0
- package/dist/handlers/resources/templates.d.ts +13 -0
- package/dist/handlers/resources/templates.d.ts.map +1 -0
- package/dist/handlers/resources/tools-catalog.d.ts +3 -0
- package/dist/handlers/resources/tools-catalog.d.ts.map +1 -0
- package/dist/handlers/tools/admin/batch-tools.d.ts +3 -0
- package/dist/handlers/tools/admin/batch-tools.d.ts.map +1 -0
- package/dist/handlers/tools/admin/core-tools.d.ts +3 -0
- package/dist/handlers/tools/admin/core-tools.d.ts.map +1 -0
- package/dist/handlers/tools/admin/index.d.ts +3 -0
- package/dist/handlers/tools/admin/index.d.ts.map +1 -0
- package/dist/handlers/tools/admin/lifecycle-tools.d.ts +3 -0
- package/dist/handlers/tools/admin/lifecycle-tools.d.ts.map +1 -0
- package/dist/handlers/tools/admin/misc-tools.d.ts +3 -0
- package/dist/handlers/tools/admin/misc-tools.d.ts.map +1 -0
- package/dist/handlers/tools/admin/project-tools.d.ts +3 -0
- package/dist/handlers/tools/admin/project-tools.d.ts.map +1 -0
- package/dist/handlers/tools/admin/schemas/crud-batch-schemas.d.ts +609 -0
- package/dist/handlers/tools/admin/schemas/crud-batch-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/admin/schemas/project-and-ops-schemas.d.ts +136 -0
- package/dist/handlers/tools/admin/schemas/project-and-ops-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/admin/schemas.d.ts +3 -0
- package/dist/handlers/tools/admin/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/admin/update_configuration.d.ts +36 -0
- package/dist/handlers/tools/admin/update_configuration.d.ts.map +1 -0
- package/dist/handlers/tools/admin/vector-tools.d.ts +3 -0
- package/dist/handlers/tools/admin/vector-tools.d.ts.map +1 -0
- package/dist/handlers/tools/analytics.d.ts +8 -0
- package/dist/handlers/tools/analytics.d.ts.map +1 -0
- package/dist/handlers/tools/arg-interceptions.d.ts +51 -0
- package/dist/handlers/tools/arg-interceptions.d.ts.map +1 -0
- package/dist/handlers/tools/backup.d.ts +8 -0
- package/dist/handlers/tools/backup.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/code-healer.d.ts +11 -0
- package/dist/handlers/tools/codemode/code-healer.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/handler.d.ts +7 -0
- package/dist/handlers/tools/codemode/handler.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/index.d.ts +2 -0
- package/dist/handlers/tools/codemode/index.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/json-entry-recovery.d.ts +13 -0
- package/dist/handlers/tools/codemode/json-entry-recovery.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/payload-synthesizer.d.ts +17 -0
- package/dist/handlers/tools/codemode/payload-synthesizer.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/schemas.d.ts +77 -0
- package/dist/handlers/tools/codemode/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/secure-dispatcher.d.ts +25 -0
- package/dist/handlers/tools/codemode/secure-dispatcher.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/singleton-state.d.ts +11 -0
- package/dist/handlers/tools/codemode/singleton-state.d.ts.map +1 -0
- package/dist/handlers/tools/codemode/sql-recovery.d.ts +14 -0
- package/dist/handlers/tools/codemode/sql-recovery.d.ts.map +1 -0
- package/dist/handlers/tools/core/dummy-healing/alias-catalog.d.ts +21 -0
- package/dist/handlers/tools/core/dummy-healing/alias-catalog.d.ts.map +1 -0
- package/dist/handlers/tools/core/dummy-healing/entry-fallbacks.d.ts +4 -0
- package/dist/handlers/tools/core/dummy-healing/entry-fallbacks.d.ts.map +1 -0
- package/dist/handlers/tools/core/dummy-healing/fs-fallbacks.d.ts +19 -0
- package/dist/handlers/tools/core/dummy-healing/fs-fallbacks.d.ts.map +1 -0
- package/dist/handlers/tools/core/dummy-healing/index.d.ts +7 -0
- package/dist/handlers/tools/core/dummy-healing/index.d.ts.map +1 -0
- package/dist/handlers/tools/core/dummy-healing/mcp-fallbacks.d.ts +12 -0
- package/dist/handlers/tools/core/dummy-healing/mcp-fallbacks.d.ts.map +1 -0
- package/dist/handlers/tools/core/dummy-healing.d.ts +2 -0
- package/dist/handlers/tools/core/dummy-healing.d.ts.map +1 -0
- package/dist/handlers/tools/core/index.d.ts +5 -0
- package/dist/handlers/tools/core/index.d.ts.map +1 -0
- package/dist/handlers/tools/core/schemas.d.ts +417 -0
- package/dist/handlers/tools/core/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/core/staleness-tools.d.ts +33 -0
- package/dist/handlers/tools/core/staleness-tools.d.ts.map +1 -0
- package/dist/handlers/tools/core/tools.d.ts +3 -0
- package/dist/handlers/tools/core/tools.d.ts.map +1 -0
- package/dist/handlers/tools/error-fields-mixin.d.ts +10 -0
- package/dist/handlers/tools/error-fields-mixin.d.ts.map +1 -0
- package/dist/handlers/tools/git.d.ts +62 -0
- package/dist/handlers/tools/git.d.ts.map +1 -0
- package/dist/handlers/tools/github/close-issue-tool.d.ts +6 -0
- package/dist/handlers/tools/github/close-issue-tool.d.ts.map +1 -0
- package/dist/handlers/tools/github/copilot-tools.d.ts +8 -0
- package/dist/handlers/tools/github/copilot-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/create-issue-tool.d.ts +6 -0
- package/dist/handlers/tools/github/create-issue-tool.d.ts.map +1 -0
- package/dist/handlers/tools/github/helpers.d.ts +38 -0
- package/dist/handlers/tools/github/helpers.d.ts.map +1 -0
- package/dist/handlers/tools/github/insights-tools.d.ts +8 -0
- package/dist/handlers/tools/github/insights-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/issue-tools.d.ts +11 -0
- package/dist/handlers/tools/github/issue-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/kanban-tools.d.ts +8 -0
- package/dist/handlers/tools/github/kanban-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/milestone-tools.d.ts +9 -0
- package/dist/handlers/tools/github/milestone-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/mutation-tools.d.ts +12 -0
- package/dist/handlers/tools/github/mutation-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/read-tools.d.ts +8 -0
- package/dist/handlers/tools/github/read-tools.d.ts.map +1 -0
- package/dist/handlers/tools/github/schemas.d.ts +823 -0
- package/dist/handlers/tools/github/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/github.d.ts +15 -0
- package/dist/handlers/tools/github.d.ts.map +1 -0
- package/dist/handlers/tools/index.d.ts +29 -0
- package/dist/handlers/tools/index.d.ts.map +1 -0
- package/dist/handlers/tools/io/index.d.ts +2 -0
- package/dist/handlers/tools/io/index.d.ts.map +1 -0
- package/dist/handlers/tools/io/schemas.d.ts +291 -0
- package/dist/handlers/tools/io/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/io/tools.d.ts +3 -0
- package/dist/handlers/tools/io/tools.d.ts.map +1 -0
- package/dist/handlers/tools/relationships.d.ts +8 -0
- package/dist/handlers/tools/relationships.d.ts.map +1 -0
- package/dist/handlers/tools/schemas/constants-and-primitives.d.ts +53 -0
- package/dist/handlers/tools/schemas/constants-and-primitives.d.ts.map +1 -0
- package/dist/handlers/tools/schemas/hallucination-healer.d.ts +8 -0
- package/dist/handlers/tools/schemas/hallucination-healer.d.ts.map +1 -0
- package/dist/handlers/tools/schemas/output-schemas.d.ts +247 -0
- package/dist/handlers/tools/schemas/output-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/schemas.d.ts +7 -0
- package/dist/handlers/tools/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/search/auto.d.ts +38 -0
- package/dist/handlers/tools/search/auto.d.ts.map +1 -0
- package/dist/handlers/tools/search/cross-team.d.ts +132 -0
- package/dist/handlers/tools/search/cross-team.d.ts.map +1 -0
- package/dist/handlers/tools/search/date-range-search.d.ts +3 -0
- package/dist/handlers/tools/search/date-range-search.d.ts.map +1 -0
- package/dist/handlers/tools/search/fts.d.ts +50 -0
- package/dist/handlers/tools/search/fts.d.ts.map +1 -0
- package/dist/handlers/tools/search/helpers.d.ts +52 -0
- package/dist/handlers/tools/search/helpers.d.ts.map +1 -0
- package/dist/handlers/tools/search/hybrid.d.ts +45 -0
- package/dist/handlers/tools/search/hybrid.d.ts.map +1 -0
- package/dist/handlers/tools/search/index.d.ts +3 -0
- package/dist/handlers/tools/search/index.d.ts.map +1 -0
- package/dist/handlers/tools/search/misc-tools.d.ts +3 -0
- package/dist/handlers/tools/search/misc-tools.d.ts.map +1 -0
- package/dist/handlers/tools/search/schemas.d.ts +352 -0
- package/dist/handlers/tools/search/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/search/search-entries.d.ts +3 -0
- package/dist/handlers/tools/search/search-entries.d.ts.map +1 -0
- package/dist/handlers/tools/search/semantic-search.d.ts +3 -0
- package/dist/handlers/tools/search/semantic-search.d.ts.map +1 -0
- package/dist/handlers/tools/team/admin-tools/batch.d.ts +8 -0
- package/dist/handlers/tools/team/admin-tools/batch.d.ts.map +1 -0
- package/dist/handlers/tools/team/admin-tools/crud.d.ts +8 -0
- package/dist/handlers/tools/team/admin-tools/crud.d.ts.map +1 -0
- package/dist/handlers/tools/team/admin-tools/index.d.ts +9 -0
- package/dist/handlers/tools/team/admin-tools/index.d.ts.map +1 -0
- package/dist/handlers/tools/team/alias-tools.d.ts +3 -0
- package/dist/handlers/tools/team/alias-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/analytics-tools.d.ts +8 -0
- package/dist/handlers/tools/team/analytics-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/backup-tools.d.ts +8 -0
- package/dist/handlers/tools/team/backup-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/core-tools.d.ts +8 -0
- package/dist/handlers/tools/team/core-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/export-tools.d.ts +8 -0
- package/dist/handlers/tools/team/export-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/helpers.d.ts +30 -0
- package/dist/handlers/tools/team/helpers.d.ts.map +1 -0
- package/dist/handlers/tools/team/index.d.ts +31 -0
- package/dist/handlers/tools/team/index.d.ts.map +1 -0
- package/dist/handlers/tools/team/io-tools.d.ts +11 -0
- package/dist/handlers/tools/team/io-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/member-tools.d.ts +8 -0
- package/dist/handlers/tools/team/member-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/rbac.d.ts +28 -0
- package/dist/handlers/tools/team/rbac.d.ts.map +1 -0
- package/dist/handlers/tools/team/relationship-tools.d.ts +8 -0
- package/dist/handlers/tools/team/relationship-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/schemas/admin-batch-schemas.d.ts +618 -0
- package/dist/handlers/tools/team/schemas/admin-batch-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/team/schemas/analytics-vector-schemas.d.ts +464 -0
- package/dist/handlers/tools/team/schemas/analytics-vector-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/team/schemas/core-search-schemas.d.ts +525 -0
- package/dist/handlers/tools/team/schemas/core-search-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/team/schemas/io-backup-schemas.d.ts +419 -0
- package/dist/handlers/tools/team/schemas/io-backup-schemas.d.ts.map +1 -0
- package/dist/handlers/tools/team/schemas.d.ts +8 -0
- package/dist/handlers/tools/team/schemas.d.ts.map +1 -0
- package/dist/handlers/tools/team/search-tools.d.ts +8 -0
- package/dist/handlers/tools/team/search-tools.d.ts.map +1 -0
- package/dist/handlers/tools/team/vector-tools.d.ts +9 -0
- package/dist/handlers/tools/team/vector-tools.d.ts.map +1 -0
- package/dist/index.d.ts +10 -823
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -13
- package/dist/markdown/converters/index.d.ts +26 -0
- package/dist/markdown/converters/index.d.ts.map +1 -0
- package/dist/markdown/converters/logseq.d.ts +14 -0
- package/dist/markdown/converters/logseq.d.ts.map +1 -0
- package/dist/markdown/converters/notion.d.ts +14 -0
- package/dist/markdown/converters/notion.d.ts.map +1 -0
- package/dist/markdown/converters/obsidian.d.ts +14 -0
- package/dist/markdown/converters/obsidian.d.ts.map +1 -0
- package/dist/markdown/converters/utils.d.ts +4 -0
- package/dist/markdown/converters/utils.d.ts.map +1 -0
- package/dist/markdown/converters/yaml-parser.d.ts +32 -0
- package/dist/markdown/converters/yaml-parser.d.ts.map +1 -0
- package/dist/markdown/exporter.d.ts +54 -0
- package/dist/markdown/exporter.d.ts.map +1 -0
- package/dist/markdown/frontmatter.d.ts +47 -0
- package/dist/markdown/frontmatter.d.ts.map +1 -0
- package/dist/markdown/importer.d.ts +81 -0
- package/dist/markdown/importer.d.ts.map +1 -0
- package/dist/markdown/index.d.ts +14 -0
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/observability/index.d.ts +19 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/interceptor.d.ts +27 -0
- package/dist/observability/interceptor.d.ts.map +1 -0
- package/dist/observability/latency-tracker.d.ts +47 -0
- package/dist/observability/latency-tracker.d.ts.map +1 -0
- package/dist/observability/metrics-server.d.ts +3 -0
- package/dist/observability/metrics-server.d.ts.map +1 -0
- package/dist/observability/metrics.d.ts +138 -0
- package/dist/observability/metrics.d.ts.map +1 -0
- package/dist/observability/prometheus-formatter.d.ts +14 -0
- package/dist/observability/prometheus-formatter.d.ts.map +1 -0
- package/dist/observability/token-estimator.d.ts +44 -0
- package/dist/observability/token-estimator.d.ts.map +1 -0
- package/dist/security-utils-P4P6A2DG.js +2 -0
- package/dist/server/auto-prune.d.ts +48 -0
- package/dist/server/auto-prune.d.ts.map +1 -0
- package/dist/server/digest-reporter.d.ts +16 -0
- package/dist/server/digest-reporter.d.ts.map +1 -0
- package/dist/server/mcp-server/core.d.ts +3 -0
- package/dist/server/mcp-server/core.d.ts.map +1 -0
- package/dist/server/mcp-server/index.d.ts +4 -0
- package/dist/server/mcp-server/index.d.ts.map +1 -0
- package/dist/server/mcp-server/initialization.d.ts +13 -0
- package/dist/server/mcp-server/initialization.d.ts.map +1 -0
- package/dist/server/mcp-server/tool-registration/call-interceptor.d.ts +6 -0
- package/dist/server/mcp-server/tool-registration/call-interceptor.d.ts.map +1 -0
- package/dist/server/mcp-server/tool-registration/index.d.ts +4 -0
- package/dist/server/mcp-server/tool-registration/index.d.ts.map +1 -0
- package/dist/server/mcp-server/tool-registration/list-interceptor.d.ts +4 -0
- package/dist/server/mcp-server/tool-registration/list-interceptor.d.ts.map +1 -0
- package/dist/server/mcp-server/tool-registration/register-tools.d.ts +18 -0
- package/dist/server/mcp-server/tool-registration/register-tools.d.ts.map +1 -0
- package/dist/server/mcp-server/tool-registration.d.ts +2 -0
- package/dist/server/mcp-server/tool-registration.d.ts.map +1 -0
- package/dist/server/mcp-server/types.d.ts +78 -0
- package/dist/server/mcp-server/types.d.ts.map +1 -0
- package/dist/server/registration.d.ts +73 -0
- package/dist/server/registration.d.ts.map +1 -0
- package/dist/server/scheduler.d.ts +129 -0
- package/dist/server/scheduler.d.ts.map +1 -0
- package/dist/server/subscription-manager.d.ts +46 -0
- package/dist/server/subscription-manager.d.ts.map +1 -0
- package/dist/tools-BOQV7QD3.js +6 -0
- package/dist/transports/http/handlers.d.ts +25 -0
- package/dist/transports/http/handlers.d.ts.map +1 -0
- package/dist/transports/http/index.d.ts +8 -0
- package/dist/transports/http/index.d.ts.map +1 -0
- package/dist/transports/http/security.d.ts +43 -0
- package/dist/transports/http/security.d.ts.map +1 -0
- package/dist/transports/http/server/http-transport.d.ts +25 -0
- package/dist/transports/http/server/http-transport.d.ts.map +1 -0
- package/dist/transports/http/server/index.d.ts +4 -0
- package/dist/transports/http/server/index.d.ts.map +1 -0
- package/dist/transports/http/server/legacy-sse.d.ts +30 -0
- package/dist/transports/http/server/legacy-sse.d.ts.map +1 -0
- package/dist/transports/http/server/protocol-handlers.d.ts +9 -0
- package/dist/transports/http/server/protocol-handlers.d.ts.map +1 -0
- package/dist/transports/http/types.d.ts +95 -0
- package/dist/transports/http/types.d.ts.map +1 -0
- package/dist/types/auto-context.d.ts +44 -0
- package/dist/types/auto-context.d.ts.map +1 -0
- package/dist/types/entities.d.ts +180 -0
- package/dist/types/entities.d.ts.map +1 -0
- package/dist/types/error-types.d.ts +48 -0
- package/dist/types/error-types.d.ts.map +1 -0
- package/dist/types/errors.d.ts +108 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/filtering.d.ts +34 -0
- package/dist/types/filtering.d.ts.map +1 -0
- package/dist/types/github.d.ts +202 -0
- package/dist/types/github.d.ts.map +1 -0
- package/dist/types/index.d.ts +326 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/config-manager.d.ts +24 -0
- package/dist/utils/config-manager.d.ts.map +1 -0
- package/dist/utils/config-resolver.d.ts +41 -0
- package/dist/utils/config-resolver.d.ts.map +1 -0
- package/dist/utils/error-helpers.d.ts +38 -0
- package/dist/utils/error-helpers.d.ts.map +1 -0
- package/dist/utils/errors/error-response-fields.d.ts +28 -0
- package/dist/utils/errors/error-response-fields.d.ts.map +1 -0
- package/dist/utils/errors/suggestions.d.ts +29 -0
- package/dist/utils/errors/suggestions.d.ts.map +1 -0
- package/dist/utils/github-helpers.d.ts +12 -0
- package/dist/utils/github-helpers.d.ts.map +1 -0
- package/dist/utils/issue-logger.d.ts +10 -0
- package/dist/utils/issue-logger.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +30 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/maintenance-lock.d.ts +34 -0
- package/dist/utils/maintenance-lock.d.ts.map +1 -0
- package/dist/utils/mcp-logger.d.ts +73 -0
- package/dist/utils/mcp-logger.d.ts.map +1 -0
- package/dist/utils/progress-utils.d.ts +53 -0
- package/dist/utils/progress-utils.d.ts.map +1 -0
- package/dist/utils/query-helpers.d.ts +43 -0
- package/dist/utils/query-helpers.d.ts.map +1 -0
- package/dist/utils/request-context.d.ts +9 -0
- package/dist/utils/request-context.d.ts.map +1 -0
- package/dist/utils/resource-annotations.d.ts +36 -0
- package/dist/utils/resource-annotations.d.ts.map +1 -0
- package/dist/utils/security-utils.d.ts +113 -0
- package/dist/utils/security-utils.d.ts.map +1 -0
- package/dist/utils/vector-index-helpers.d.ts +14 -0
- package/dist/utils/vector-index-helpers.d.ts.map +1 -0
- package/dist/utils/workspace-resolver.d.ts +40 -0
- package/dist/utils/workspace-resolver.d.ts.map +1 -0
- package/dist/vector/vector-search-manager/VectorSearchManagerProxy.d.ts +5 -0
- package/dist/vector/vector-search-manager/VectorSearchManagerProxy.d.ts.map +1 -0
- package/dist/vector/vector-search-manager/index.d.ts +3 -0
- package/dist/vector/vector-search-manager/index.d.ts.map +1 -0
- package/dist/vector/vector-search-manager/manager.d.ts +75 -0
- package/dist/vector/vector-search-manager/manager.d.ts.map +1 -0
- package/dist/vector/vector-search-manager/rebuild.d.ts +20 -0
- package/dist/vector/vector-search-manager/rebuild.d.ts.map +1 -0
- package/dist/vector/vector-search-manager/types.d.ts +12 -0
- package/dist/vector/vector-search-manager/types.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/agent-exec.d.ts +2 -0
- package/dist/vendor/lib-agent-exec/agent-exec.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/command-builder.d.ts +11 -0
- package/dist/vendor/lib-agent-exec/command-builder.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/command-utils.d.ts +29 -0
- package/dist/vendor/lib-agent-exec/command-utils.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/environment.d.ts +4 -0
- package/dist/vendor/lib-agent-exec/environment.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/eval-healer.d.ts +15 -0
- package/dist/vendor/lib-agent-exec/eval-healer.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/execution-engine.d.ts +4 -0
- package/dist/vendor/lib-agent-exec/execution-engine.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/help.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/help.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/cloud-cli-interceptor.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/interceptors/cloud-cli-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/docker-interceptor.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/interceptors/docker-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/git-interceptor.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/interceptors/git-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/index.d.ts +9 -0
- package/dist/vendor/lib-agent-exec/interceptors/index.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/mutating-interceptors.d.ts +7 -0
- package/dist/vendor/lib-agent-exec/interceptors/mutating-interceptors.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/package-manager-interceptor.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/interceptors/package-manager-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/repl-tui-interceptor.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/interceptors/repl-tui-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/search-interceptor.d.ts +15 -0
- package/dist/vendor/lib-agent-exec/interceptors/search-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/structural-interceptors.d.ts +15 -0
- package/dist/vendor/lib-agent-exec/interceptors/structural-interceptors.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/system-interceptor.d.ts +3 -0
- package/dist/vendor/lib-agent-exec/interceptors/system-interceptor.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/types.d.ts +11 -0
- package/dist/vendor/lib-agent-exec/interceptors/types.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/interceptors/utils.d.ts +5 -0
- package/dist/vendor/lib-agent-exec/interceptors/utils.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/io-controller.d.ts +48 -0
- package/dist/vendor/lib-agent-exec/io-controller.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/io-utils.d.ts +12 -0
- package/dist/vendor/lib-agent-exec/io-utils.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/path-healer.d.ts +15 -0
- package/dist/vendor/lib-agent-exec/path-healer.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/process-controller.d.ts +38 -0
- package/dist/vendor/lib-agent-exec/process-controller.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/process-manager.d.ts +6 -0
- package/dist/vendor/lib-agent-exec/process-manager.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/prompt-detector.d.ts +2 -0
- package/dist/vendor/lib-agent-exec/prompt-detector.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/schema.d.ts +182 -0
- package/dist/vendor/lib-agent-exec/schema.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/stream-manager.d.ts +20 -0
- package/dist/vendor/lib-agent-exec/stream-manager.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/utils.d.ts +17 -0
- package/dist/vendor/lib-agent-exec/utils.d.ts.map +1 -0
- package/dist/vendor/lib-agent-exec/webhook-template.d.ts +2 -0
- package/dist/vendor/lib-agent-exec/webhook-template.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/cache.d.ts +56 -0
- package/dist/vendor/lib-git-history/cache.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/cli.d.ts +147 -0
- package/dist/vendor/lib-git-history/cli.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/constants.d.ts +36 -0
- package/dist/vendor/lib-git-history/constants.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/git-numstat.d.ts +7 -0
- package/dist/vendor/lib-git-history/git-numstat.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/git-patch.d.ts +3 -0
- package/dist/vendor/lib-git-history/git-patch.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/git-runner.d.ts +25 -0
- package/dist/vendor/lib-git-history/git-runner.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/parser-batch.d.ts +5 -0
- package/dist/vendor/lib-git-history/parser-batch.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/parser-metadata.d.ts +3 -0
- package/dist/vendor/lib-git-history/parser-metadata.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/parser-record.d.ts +37 -0
- package/dist/vendor/lib-git-history/parser-record.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/parser-utils.d.ts +22 -0
- package/dist/vendor/lib-git-history/parser-utils.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/parser.d.ts +4 -0
- package/dist/vendor/lib-git-history/parser.d.ts.map +1 -0
- package/dist/vendor/lib-git-history/schema.d.ts +131 -0
- package/dist/vendor/lib-git-history/schema.d.ts.map +1 -0
- package/dist/version.d.ts +10 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/worker-script.js +2937 -342
- package/package.json +130 -106
- package/skills/memory-journal-mcp/SKILL.md +41 -0
- package/dist/chunk-6OHRCNYW.js +0 -3231
- package/dist/chunk-JFMITANR.js +0 -5168
- package/dist/chunk-UHSO65A4.js +0 -8937
- package/dist/chunk-V3UTFQQK.js +0 -5538
- package/dist/cli.d.ts +0 -2
- package/dist/resources-IJVKDFGS.js +0 -2
- package/dist/tools-44DGXE3V.js +0 -2
- package/dist/worker-script.d.ts +0 -2
- package/skills/README.md +0 -121
- package/skills/adversarial-performance/SKILL.md +0 -139
- package/skills/adversarial-performance/references/audit-categories.md +0 -462
- package/skills/adversarial-performance/references/copilot-performance-prompts.md +0 -44
- package/skills/adversarial-performance/references/copilot-usage.md +0 -16
- package/skills/adversarial-performance/references/feedback-loop.md +0 -177
- package/skills/adversarial-performance/references/multi-pass-performance-protocol.md +0 -398
- package/skills/adversarial-planner/SKILL.md +0 -89
- package/skills/adversarial-planner/references/copilot-integration.md +0 -83
- package/skills/adversarial-planner/references/copilot-usage.md +0 -16
- package/skills/adversarial-planner/references/feedback-loop.md +0 -148
- package/skills/adversarial-planner/references/multi-pass-protocol.md +0 -229
- package/skills/adversarial-security/SKILL.md +0 -149
- package/skills/adversarial-security/references/adversarial-base-protocol.md +0 -44
- package/skills/adversarial-security/references/audit-categories.md +0 -723
- package/skills/adversarial-security/references/copilot-security-prompts.md +0 -142
- package/skills/adversarial-security/references/copilot-usage.md +0 -16
- package/skills/adversarial-security/references/feedback-loop.md +0 -206
- package/skills/adversarial-security/references/journal-opt-out.md +0 -7
- package/skills/adversarial-security/references/multi-pass-security-protocol.md +0 -403
- package/skills/adversarial-skill-audit/SKILL.md +0 -118
- package/skills/adversarial-skill-audit/references/audit-categories.md +0 -308
- package/skills/adversarial-skill-audit/references/copilot-skill-prompts.md +0 -68
- package/skills/adversarial-skill-audit/references/copilot-usage.md +0 -16
- package/skills/adversarial-skill-audit/references/feedback-loop.md +0 -155
- package/skills/adversarial-skill-audit/references/multi-pass-skill-protocol.md +0 -367
- package/skills/adversarial-skill-audit/scripts/check-skills.ps1 +0 -48
- package/skills/adversarial-skill-audit/scripts/run-copilot.ps1 +0 -52
- package/skills/adversarial-workflow-audit/SKILL.md +0 -82
- package/skills/adversarial-workflow-audit/references/audit-categories.md +0 -28
- package/skills/adversarial-workflow-audit/references/copilot-usage.md +0 -16
- package/skills/adversarial-workflow-audit/scripts/check-workflows.ps1 +0 -24
- package/skills/agents-sdk/SKILL.md +0 -220
- package/skills/agents-sdk/references/callable.md +0 -92
- package/skills/agents-sdk/references/codemode.md +0 -209
- package/skills/agents-sdk/references/email.md +0 -144
- package/skills/agents-sdk/references/mcp/SKILL.md +0 -65
- package/skills/agents-sdk/references/mcp/code-mode-reference.md +0 -245
- package/skills/agents-sdk/references/mcp/oauth-reference.md +0 -359
- package/skills/agents-sdk/references/mcp/references/architecture-reference.md +0 -208
- package/skills/agents-sdk/references/mcp/references/cloudflare-quickstart.md +0 -156
- package/skills/agents-sdk/references/mcp/references/error-handling.md +0 -343
- package/skills/agents-sdk/references/mcp/references/http-security.md +0 -164
- package/skills/agents-sdk/references/mcp/references/implementation-guide.md +0 -507
- package/skills/agents-sdk/references/mcp/references/testing-reference.md +0 -171
- package/skills/agents-sdk/references/mcp.md +0 -157
- package/skills/agents-sdk/references/state-scheduling.md +0 -164
- package/skills/agents-sdk/references/streaming-chat.md +0 -168
- package/skills/agents-sdk/references/workflows.md +0 -136
- package/skills/auth-identity/SKILL.md +0 -48
- package/skills/autonomous-dev/SKILL.md +0 -79
- package/skills/autonomous-dev/references/workflow_orchestration.md +0 -22
- package/skills/aws/SKILL.md +0 -39
- package/skills/azure/SKILL.md +0 -38
- package/skills/bin/sync.js +0 -56
- package/skills/biome/SKILL.md +0 -59
- package/skills/bun/SKILL.md +0 -162
- package/skills/cloudflare/SKILL.md +0 -37
- package/skills/cloudflare/references/agents-sdk/README.md +0 -95
- package/skills/cloudflare/references/agents-sdk/api.md +0 -195
- package/skills/cloudflare/references/agents-sdk/configuration.md +0 -178
- package/skills/cloudflare/references/agents-sdk/gotchas.md +0 -173
- package/skills/cloudflare/references/agents-sdk/patterns.md +0 -215
- package/skills/cloudflare/references/ai-gateway/README.md +0 -176
- package/skills/cloudflare/references/ai-gateway/configuration.md +0 -117
- package/skills/cloudflare/references/ai-gateway/dynamic-routing.md +0 -88
- package/skills/cloudflare/references/ai-gateway/features.md +0 -96
- package/skills/cloudflare/references/ai-gateway/sdk-integration.md +0 -110
- package/skills/cloudflare/references/ai-gateway/troubleshooting.md +0 -90
- package/skills/cloudflare/references/ai-search/README.md +0 -145
- package/skills/cloudflare/references/ai-search/api.md +0 -87
- package/skills/cloudflare/references/ai-search/configuration.md +0 -91
- package/skills/cloudflare/references/ai-search/gotchas.md +0 -92
- package/skills/cloudflare/references/ai-search/patterns.md +0 -87
- package/skills/cloudflare/references/analytics-engine/README.md +0 -96
- package/skills/cloudflare/references/analytics-engine/api.md +0 -112
- package/skills/cloudflare/references/analytics-engine/configuration.md +0 -107
- package/skills/cloudflare/references/analytics-engine/gotchas.md +0 -87
- package/skills/cloudflare/references/analytics-engine/patterns.md +0 -83
- package/skills/cloudflare/references/api/README.md +0 -66
- package/skills/cloudflare/references/api/api.md +0 -205
- package/skills/cloudflare/references/api/configuration.md +0 -158
- package/skills/cloudflare/references/api/gotchas.md +0 -231
- package/skills/cloudflare/references/api/patterns.md +0 -208
- package/skills/cloudflare/references/api-shield/README.md +0 -44
- package/skills/cloudflare/references/api-shield/api.md +0 -153
- package/skills/cloudflare/references/api-shield/configuration.md +0 -210
- package/skills/cloudflare/references/api-shield/gotchas.md +0 -132
- package/skills/cloudflare/references/api-shield/patterns.md +0 -185
- package/skills/cloudflare/references/argo-smart-routing/README.md +0 -96
- package/skills/cloudflare/references/argo-smart-routing/api.md +0 -253
- package/skills/cloudflare/references/argo-smart-routing/configuration.md +0 -205
- package/skills/cloudflare/references/argo-smart-routing/gotchas.md +0 -115
- package/skills/cloudflare/references/argo-smart-routing/patterns.md +0 -107
- package/skills/cloudflare/references/bindings/README.md +0 -127
- package/skills/cloudflare/references/bindings/api.md +0 -214
- package/skills/cloudflare/references/bindings/configuration.md +0 -200
- package/skills/cloudflare/references/bindings/gotchas.md +0 -210
- package/skills/cloudflare/references/bindings/patterns.md +0 -205
- package/skills/cloudflare/references/bot-management/README.md +0 -95
- package/skills/cloudflare/references/bot-management/api.md +0 -175
- package/skills/cloudflare/references/bot-management/configuration.md +0 -175
- package/skills/cloudflare/references/bot-management/gotchas.md +0 -116
- package/skills/cloudflare/references/bot-management/patterns.md +0 -181
- package/skills/cloudflare/references/browser-rendering/README.md +0 -84
- package/skills/cloudflare/references/browser-rendering/api.md +0 -108
- package/skills/cloudflare/references/browser-rendering/configuration.md +0 -78
- package/skills/cloudflare/references/browser-rendering/gotchas.md +0 -91
- package/skills/cloudflare/references/browser-rendering/patterns.md +0 -93
- package/skills/cloudflare/references/c3/README.md +0 -111
- package/skills/cloudflare/references/c3/api.md +0 -71
- package/skills/cloudflare/references/c3/configuration.md +0 -85
- package/skills/cloudflare/references/c3/gotchas.md +0 -97
- package/skills/cloudflare/references/c3/patterns.md +0 -84
- package/skills/cloudflare/references/cache-reserve/README.md +0 -150
- package/skills/cloudflare/references/cache-reserve/api.md +0 -184
- package/skills/cloudflare/references/cache-reserve/configuration.md +0 -170
- package/skills/cloudflare/references/cache-reserve/gotchas.md +0 -136
- package/skills/cloudflare/references/cache-reserve/patterns.md +0 -197
- package/skills/cloudflare/references/containers/README.md +0 -87
- package/skills/cloudflare/references/containers/api.md +0 -197
- package/skills/cloudflare/references/containers/configuration.md +0 -191
- package/skills/cloudflare/references/containers/gotchas.md +0 -182
- package/skills/cloudflare/references/containers/patterns.md +0 -204
- package/skills/cloudflare/references/cron-triggers/README.md +0 -101
- package/skills/cloudflare/references/cron-triggers/api.md +0 -224
- package/skills/cloudflare/references/cron-triggers/configuration.md +0 -190
- package/skills/cloudflare/references/cron-triggers/gotchas.md +0 -207
- package/skills/cloudflare/references/cron-triggers/patterns.md +0 -274
- package/skills/cloudflare/references/d1/README.md +0 -137
- package/skills/cloudflare/references/d1/api.md +0 -213
- package/skills/cloudflare/references/d1/configuration.md +0 -198
- package/skills/cloudflare/references/d1/gotchas.md +0 -98
- package/skills/cloudflare/references/d1/patterns.md +0 -240
- package/skills/cloudflare/references/ddos/README.md +0 -42
- package/skills/cloudflare/references/ddos/api.md +0 -158
- package/skills/cloudflare/references/ddos/configuration.md +0 -94
- package/skills/cloudflare/references/ddos/gotchas.md +0 -114
- package/skills/cloudflare/references/ddos/patterns.md +0 -220
- package/skills/cloudflare/references/decision-trees.md +0 -95
- package/skills/cloudflare/references/do-storage/README.md +0 -79
- package/skills/cloudflare/references/do-storage/api.md +0 -107
- package/skills/cloudflare/references/do-storage/configuration.md +0 -114
- package/skills/cloudflare/references/do-storage/gotchas.md +0 -153
- package/skills/cloudflare/references/do-storage/patterns.md +0 -210
- package/skills/cloudflare/references/do-storage/testing.md +0 -186
- package/skills/cloudflare/references/durable-objects/README.md +0 -194
- package/skills/cloudflare/references/durable-objects/api.md +0 -205
- package/skills/cloudflare/references/durable-objects/configuration.md +0 -160
- package/skills/cloudflare/references/durable-objects/gotchas.md +0 -200
- package/skills/cloudflare/references/durable-objects/patterns.md +0 -205
- package/skills/cloudflare/references/email-routing/README.md +0 -89
- package/skills/cloudflare/references/email-routing/api.md +0 -192
- package/skills/cloudflare/references/email-routing/configuration.md +0 -187
- package/skills/cloudflare/references/email-routing/gotchas.md +0 -203
- package/skills/cloudflare/references/email-routing/patterns.md +0 -241
- package/skills/cloudflare/references/email-workers/README.md +0 -153
- package/skills/cloudflare/references/email-workers/api.md +0 -227
- package/skills/cloudflare/references/email-workers/configuration.md +0 -115
- package/skills/cloudflare/references/email-workers/gotchas.md +0 -133
- package/skills/cloudflare/references/email-workers/patterns.md +0 -108
- package/skills/cloudflare/references/graphql-api/README.md +0 -147
- package/skills/cloudflare/references/graphql-api/api.md +0 -175
- package/skills/cloudflare/references/graphql-api/configuration.md +0 -151
- package/skills/cloudflare/references/graphql-api/gotchas.md +0 -111
- package/skills/cloudflare/references/graphql-api/patterns.md +0 -276
- package/skills/cloudflare/references/hyperdrive/README.md +0 -84
- package/skills/cloudflare/references/hyperdrive/api.md +0 -149
- package/skills/cloudflare/references/hyperdrive/configuration.md +0 -166
- package/skills/cloudflare/references/hyperdrive/gotchas.md +0 -77
- package/skills/cloudflare/references/hyperdrive/patterns.md +0 -203
- package/skills/cloudflare/references/images/README.md +0 -65
- package/skills/cloudflare/references/images/api.md +0 -101
- package/skills/cloudflare/references/images/configuration.md +0 -206
- package/skills/cloudflare/references/images/gotchas.md +0 -106
- package/skills/cloudflare/references/images/patterns.md +0 -126
- package/skills/cloudflare/references/kv/README.md +0 -90
- package/skills/cloudflare/references/kv/api.md +0 -163
- package/skills/cloudflare/references/kv/configuration.md +0 -148
- package/skills/cloudflare/references/kv/gotchas.md +0 -133
- package/skills/cloudflare/references/kv/patterns.md +0 -195
- package/skills/cloudflare/references/miniflare/README.md +0 -113
- package/skills/cloudflare/references/miniflare/api.md +0 -204
- package/skills/cloudflare/references/miniflare/configuration.md +0 -174
- package/skills/cloudflare/references/miniflare/gotchas.md +0 -179
- package/skills/cloudflare/references/miniflare/patterns.md +0 -187
- package/skills/cloudflare/references/network-interconnect/README.md +0 -104
- package/skills/cloudflare/references/network-interconnect/api.md +0 -220
- package/skills/cloudflare/references/network-interconnect/configuration.md +0 -123
- package/skills/cloudflare/references/network-interconnect/gotchas.md +0 -175
- package/skills/cloudflare/references/network-interconnect/patterns.md +0 -174
- package/skills/cloudflare/references/observability/README.md +0 -93
- package/skills/cloudflare/references/observability/api.md +0 -168
- package/skills/cloudflare/references/observability/configuration.md +0 -178
- package/skills/cloudflare/references/observability/gotchas.md +0 -125
- package/skills/cloudflare/references/observability/patterns.md +0 -105
- package/skills/cloudflare/references/pages/README.md +0 -92
- package/skills/cloudflare/references/pages/api.md +0 -205
- package/skills/cloudflare/references/pages/configuration.md +0 -216
- package/skills/cloudflare/references/pages/gotchas.md +0 -218
- package/skills/cloudflare/references/pages/patterns.md +0 -215
- package/skills/cloudflare/references/pages-functions/README.md +0 -104
- package/skills/cloudflare/references/pages-functions/api.md +0 -159
- package/skills/cloudflare/references/pages-functions/configuration.md +0 -130
- package/skills/cloudflare/references/pages-functions/gotchas.md +0 -102
- package/skills/cloudflare/references/pages-functions/patterns.md +0 -148
- package/skills/cloudflare/references/pipelines/README.md +0 -109
- package/skills/cloudflare/references/pipelines/api.md +0 -214
- package/skills/cloudflare/references/pipelines/configuration.md +0 -98
- package/skills/cloudflare/references/pipelines/gotchas.md +0 -84
- package/skills/cloudflare/references/pipelines/patterns.md +0 -87
- package/skills/cloudflare/references/product-index.md +0 -112
- package/skills/cloudflare/references/pulumi/README.md +0 -113
- package/skills/cloudflare/references/pulumi/api.md +0 -230
- package/skills/cloudflare/references/pulumi/configuration.md +0 -213
- package/skills/cloudflare/references/pulumi/gotchas.md +0 -205
- package/skills/cloudflare/references/pulumi/patterns.md +0 -260
- package/skills/cloudflare/references/queues/README.md +0 -99
- package/skills/cloudflare/references/queues/api.md +0 -211
- package/skills/cloudflare/references/queues/configuration.md +0 -151
- package/skills/cloudflare/references/queues/gotchas.md +0 -210
- package/skills/cloudflare/references/queues/patterns.md +0 -220
- package/skills/cloudflare/references/r2/README.md +0 -97
- package/skills/cloudflare/references/r2/api.md +0 -235
- package/skills/cloudflare/references/r2/configuration.md +0 -176
- package/skills/cloudflare/references/r2/gotchas.md +0 -190
- package/skills/cloudflare/references/r2/patterns.md +0 -203
- package/skills/cloudflare/references/r2-data-catalog/README.md +0 -157
- package/skills/cloudflare/references/r2-data-catalog/api.md +0 -199
- package/skills/cloudflare/references/r2-data-catalog/configuration.md +0 -205
- package/skills/cloudflare/references/r2-data-catalog/gotchas.md +0 -170
- package/skills/cloudflare/references/r2-data-catalog/patterns.md +0 -191
- package/skills/cloudflare/references/r2-sql/README.md +0 -138
- package/skills/cloudflare/references/r2-sql/SKILL.md.backup +0 -512
- package/skills/cloudflare/references/r2-sql/api.md +0 -159
- package/skills/cloudflare/references/r2-sql/configuration.md +0 -152
- package/skills/cloudflare/references/r2-sql/gotchas.md +0 -228
- package/skills/cloudflare/references/r2-sql/patterns.md +0 -230
- package/skills/cloudflare/references/realtime-sfu/README.md +0 -66
- package/skills/cloudflare/references/realtime-sfu/api.md +0 -164
- package/skills/cloudflare/references/realtime-sfu/configuration.md +0 -141
- package/skills/cloudflare/references/realtime-sfu/gotchas.md +0 -138
- package/skills/cloudflare/references/realtime-sfu/patterns.md +0 -187
- package/skills/cloudflare/references/realtimekit/README.md +0 -118
- package/skills/cloudflare/references/realtimekit/api.md +0 -234
- package/skills/cloudflare/references/realtimekit/configuration.md +0 -226
- package/skills/cloudflare/references/realtimekit/gotchas.md +0 -206
- package/skills/cloudflare/references/realtimekit/patterns.md +0 -240
- package/skills/cloudflare/references/sandbox/README.md +0 -104
- package/skills/cloudflare/references/sandbox/api.md +0 -200
- package/skills/cloudflare/references/sandbox/configuration.md +0 -154
- package/skills/cloudflare/references/sandbox/gotchas.md +0 -201
- package/skills/cloudflare/references/sandbox/patterns.md +0 -195
- package/skills/cloudflare/references/secrets-store/README.md +0 -77
- package/skills/cloudflare/references/secrets-store/api.md +0 -199
- package/skills/cloudflare/references/secrets-store/configuration.md +0 -187
- package/skills/cloudflare/references/secrets-store/gotchas.md +0 -97
- package/skills/cloudflare/references/secrets-store/patterns.md +0 -218
- package/skills/cloudflare/references/smart-placement/README.md +0 -143
- package/skills/cloudflare/references/smart-placement/api.md +0 -192
- package/skills/cloudflare/references/smart-placement/configuration.md +0 -202
- package/skills/cloudflare/references/smart-placement/gotchas.md +0 -180
- package/skills/cloudflare/references/smart-placement/patterns.md +0 -190
- package/skills/cloudflare/references/snippets/README.md +0 -74
- package/skills/cloudflare/references/snippets/api.md +0 -214
- package/skills/cloudflare/references/snippets/configuration.md +0 -239
- package/skills/cloudflare/references/snippets/gotchas.md +0 -104
- package/skills/cloudflare/references/snippets/patterns.md +0 -135
- package/skills/cloudflare/references/spectrum/README.md +0 -52
- package/skills/cloudflare/references/spectrum/api.md +0 -184
- package/skills/cloudflare/references/spectrum/configuration.md +0 -203
- package/skills/cloudflare/references/spectrum/gotchas.md +0 -155
- package/skills/cloudflare/references/spectrum/patterns.md +0 -206
- package/skills/cloudflare/references/static-assets/README.md +0 -65
- package/skills/cloudflare/references/static-assets/api.md +0 -201
- package/skills/cloudflare/references/static-assets/configuration.md +0 -186
- package/skills/cloudflare/references/static-assets/gotchas.md +0 -164
- package/skills/cloudflare/references/static-assets/patterns.md +0 -189
- package/skills/cloudflare/references/stream/README.md +0 -123
- package/skills/cloudflare/references/stream/api-live.md +0 -202
- package/skills/cloudflare/references/stream/api.md +0 -206
- package/skills/cloudflare/references/stream/configuration.md +0 -151
- package/skills/cloudflare/references/stream/gotchas.md +0 -139
- package/skills/cloudflare/references/stream/patterns.md +0 -217
- package/skills/cloudflare/references/tail-workers/README.md +0 -92
- package/skills/cloudflare/references/tail-workers/api.md +0 -203
- package/skills/cloudflare/references/tail-workers/configuration.md +0 -178
- package/skills/cloudflare/references/tail-workers/gotchas.md +0 -206
- package/skills/cloudflare/references/tail-workers/patterns.md +0 -190
- package/skills/cloudflare/references/terraform/README.md +0 -100
- package/skills/cloudflare/references/terraform/api.md +0 -178
- package/skills/cloudflare/references/terraform/configuration.md +0 -197
- package/skills/cloudflare/references/terraform/gotchas.md +0 -150
- package/skills/cloudflare/references/terraform/patterns.md +0 -174
- package/skills/cloudflare/references/tunnel/README.md +0 -137
- package/skills/cloudflare/references/tunnel/api.md +0 -205
- package/skills/cloudflare/references/tunnel/configuration.md +0 -163
- package/skills/cloudflare/references/tunnel/gotchas.md +0 -159
- package/skills/cloudflare/references/tunnel/networking.md +0 -174
- package/skills/cloudflare/references/tunnel/patterns.md +0 -199
- package/skills/cloudflare/references/turn/README.md +0 -86
- package/skills/cloudflare/references/turn/api.md +0 -236
- package/skills/cloudflare/references/turn/configuration.md +0 -181
- package/skills/cloudflare/references/turn/gotchas.md +0 -236
- package/skills/cloudflare/references/turn/patterns.md +0 -228
- package/skills/cloudflare/references/turnstile/README.md +0 -102
- package/skills/cloudflare/references/turnstile/api.md +0 -253
- package/skills/cloudflare/references/turnstile/configuration.md +0 -242
- package/skills/cloudflare/references/turnstile/gotchas.md +0 -253
- package/skills/cloudflare/references/turnstile/patterns.md +0 -195
- package/skills/cloudflare/references/vectorize/README.md +0 -133
- package/skills/cloudflare/references/vectorize/api.md +0 -89
- package/skills/cloudflare/references/vectorize/configuration.md +0 -91
- package/skills/cloudflare/references/vectorize/gotchas.md +0 -83
- package/skills/cloudflare/references/vectorize/patterns.md +0 -92
- package/skills/cloudflare/references/waf/README.md +0 -125
- package/skills/cloudflare/references/waf/api.md +0 -203
- package/skills/cloudflare/references/waf/configuration.md +0 -215
- package/skills/cloudflare/references/waf/gotchas.md +0 -208
- package/skills/cloudflare/references/waf/patterns.md +0 -236
- package/skills/cloudflare/references/web-analytics/README.md +0 -149
- package/skills/cloudflare/references/web-analytics/configuration.md +0 -81
- package/skills/cloudflare/references/web-analytics/gotchas.md +0 -86
- package/skills/cloudflare/references/web-analytics/integration.md +0 -63
- package/skills/cloudflare/references/web-analytics/patterns.md +0 -98
- package/skills/cloudflare/references/workerd/README.md +0 -85
- package/skills/cloudflare/references/workerd/api.md +0 -219
- package/skills/cloudflare/references/workerd/configuration.md +0 -200
- package/skills/cloudflare/references/workerd/gotchas.md +0 -151
- package/skills/cloudflare/references/workerd/patterns.md +0 -205
- package/skills/cloudflare/references/workers/README.md +0 -110
- package/skills/cloudflare/references/workers/api.md +0 -197
- package/skills/cloudflare/references/workers/configuration.md +0 -184
- package/skills/cloudflare/references/workers/frameworks.md +0 -200
- package/skills/cloudflare/references/workers/gotchas.md +0 -145
- package/skills/cloudflare/references/workers/patterns.md +0 -220
- package/skills/cloudflare/references/workers-ai/README.md +0 -206
- package/skills/cloudflare/references/workers-ai/api.md +0 -115
- package/skills/cloudflare/references/workers-ai/configuration.md +0 -98
- package/skills/cloudflare/references/workers-ai/gotchas.md +0 -130
- package/skills/cloudflare/references/workers-ai/patterns.md +0 -122
- package/skills/cloudflare/references/workers-for-platforms/README.md +0 -95
- package/skills/cloudflare/references/workers-for-platforms/api.md +0 -212
- package/skills/cloudflare/references/workers-for-platforms/configuration.md +0 -178
- package/skills/cloudflare/references/workers-for-platforms/gotchas.md +0 -134
- package/skills/cloudflare/references/workers-for-platforms/patterns.md +0 -210
- package/skills/cloudflare/references/workers-playground/README.md +0 -131
- package/skills/cloudflare/references/workers-playground/api.md +0 -101
- package/skills/cloudflare/references/workers-playground/configuration.md +0 -169
- package/skills/cloudflare/references/workers-playground/gotchas.md +0 -88
- package/skills/cloudflare/references/workers-playground/patterns.md +0 -134
- package/skills/cloudflare/references/workers-vpc/README.md +0 -130
- package/skills/cloudflare/references/workers-vpc/api.md +0 -196
- package/skills/cloudflare/references/workers-vpc/configuration.md +0 -151
- package/skills/cloudflare/references/workers-vpc/gotchas.md +0 -171
- package/skills/cloudflare/references/workers-vpc/patterns.md +0 -235
- package/skills/cloudflare/references/workflows/README.md +0 -72
- package/skills/cloudflare/references/workflows/api.md +0 -237
- package/skills/cloudflare/references/workflows/configuration.md +0 -158
- package/skills/cloudflare/references/workflows/gotchas.md +0 -97
- package/skills/cloudflare/references/workflows/patterns.md +0 -245
- package/skills/cloudflare/references/wrangler/README.md +0 -143
- package/skills/cloudflare/references/wrangler/api.md +0 -188
- package/skills/cloudflare/references/wrangler/configuration.md +0 -198
- package/skills/cloudflare/references/wrangler/gotchas.md +0 -212
- package/skills/cloudflare/references/wrangler/patterns.md +0 -211
- package/skills/cloudflare/references/zaraz/IMPLEMENTATION_SUMMARY.md +0 -131
- package/skills/cloudflare/references/zaraz/README.md +0 -114
- package/skills/cloudflare/references/zaraz/api.md +0 -118
- package/skills/cloudflare/references/zaraz/configuration.md +0 -94
- package/skills/cloudflare/references/zaraz/gotchas.md +0 -88
- package/skills/cloudflare/references/zaraz/patterns.md +0 -77
- package/skills/docker/SKILL.md +0 -168
- package/skills/docker/references/advanced-examples.md +0 -71
- package/skills/docker/references/templates.md +0 -34
- package/skills/docs-marketer/SKILL.md +0 -178
- package/skills/docs-marketer/references/audit-categories.md +0 -328
- package/skills/docs-marketer/references/copilot-docs-prompts.md +0 -88
- package/skills/docs-marketer/references/copilot-usage.md +0 -16
- package/skills/docs-marketer/references/feedback-loop.md +0 -155
- package/skills/docs-marketer/references/multi-pass-docs-protocol.md +0 -410
- package/skills/drizzle-orm/SKILL.md +0 -82
- package/skills/durable-objects/SKILL.md +0 -167
- package/skills/durable-objects/references/advanced_features.md +0 -29
- package/skills/durable-objects/references/rules.md +0 -300
- package/skills/durable-objects/references/testing.md +0 -261
- package/skills/durable-objects/references/workers.md +0 -336
- package/skills/gcp/SKILL.md +0 -37
- package/skills/github-actions/SKILL.md +0 -262
- package/skills/github-actions/references/templates.md +0 -65
- package/skills/github-commander/SKILL.md +0 -144
- package/skills/github-commander/config/project-config.example.md +0 -125
- package/skills/github-commander/workflows/code-quality-audit.md +0 -82
- package/skills/github-commander/workflows/copilot-audit.md +0 -50
- package/skills/github-commander/workflows/issue-triage.md +0 -248
- package/skills/github-commander/workflows/milestone-sprint.md +0 -89
- package/skills/github-commander/workflows/perf-audit.md +0 -144
- package/skills/github-commander/workflows/pr-review.md +0 -129
- package/skills/github-commander/workflows/roadmap-kickoff.md +0 -79
- package/skills/github-commander/workflows/security-audit.md +0 -170
- package/skills/github-commander/workflows/update-deps.md +0 -109
- package/skills/github-copilot-cli/SKILL.md +0 -59
- package/skills/github-repo-setup/SKILL.md +0 -136
- package/skills/github-repo-setup/references/community-standards.md +0 -136
- package/skills/github-repo-setup/references/github-automation.md +0 -490
- package/skills/github-repo-setup/references/inline-templates.md +0 -205
- package/skills/github-repo-setup/references/project-config.md +0 -320
- package/skills/gitlab/SKILL.md +0 -120
- package/skills/gitlab/package-lock.json +0 -392
- package/skills/gitlab/package.json +0 -14
- package/skills/gitlab/scripts/gitlab-client.ts +0 -125
- package/skills/gitlab/scripts/gitlab-helper.ts +0 -80
- package/skills/golang/SKILL.md +0 -61
- package/skills/graphql/SKILL.md +0 -30
- package/skills/hono/SKILL.md +0 -82
- package/skills/journal-optimizer/SKILL.md +0 -206
- package/skills/journal-optimizer/references/optimizer-scripts.md +0 -169
- package/skills/llm-app-engineering/SKILL.md +0 -18
- package/skills/monorepo/SKILL.md +0 -56
- package/skills/multi-agent-orchestration/SKILL.md +0 -14
- package/skills/mysql/SKILL.md +0 -34
- package/skills/next-best-practices/README.md +0 -127
- package/skills/next-best-practices/SKILL.md +0 -86
- package/skills/next-best-practices/metadata.json +0 -17
- package/skills/next-best-practices/references/cache-components-examples.md +0 -234
- package/skills/next-best-practices/references/cache-components.md +0 -210
- package/skills/next-best-practices/references/upgrade-decision-tree.md +0 -33
- package/skills/next-best-practices/references/upgrade.md +0 -43
- package/skills/next-best-practices/rules/_sections.md +0 -46
- package/skills/next-best-practices/rules/_template.md +0 -28
- package/skills/next-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/skills/next-best-practices/rules/advanced-init-once.md +0 -42
- package/skills/next-best-practices/rules/advanced-use-latest.md +0 -39
- package/skills/next-best-practices/rules/async-api-routes.md +0 -35
- package/skills/next-best-practices/rules/async-defer-await.md +0 -80
- package/skills/next-best-practices/rules/async-dependencies.md +0 -48
- package/skills/next-best-practices/rules/async-parallel.md +0 -24
- package/skills/next-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/skills/next-best-practices/rules/bundle-barrel-imports.md +0 -59
- package/skills/next-best-practices/rules/bundle-conditional.md +0 -37
- package/skills/next-best-practices/rules/bundle-defer-third-party.md +0 -48
- package/skills/next-best-practices/rules/bundle-dynamic-imports.md +0 -34
- package/skills/next-best-practices/rules/bundle-preload.md +0 -44
- package/skills/next-best-practices/rules/client-event-listeners.md +0 -78
- package/skills/next-best-practices/rules/client-localstorage-schema.md +0 -74
- package/skills/next-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/skills/next-best-practices/rules/client-swr-dedup.md +0 -56
- package/skills/next-best-practices/rules/js-batch-dom-css.md +0 -110
- package/skills/next-best-practices/rules/js-cache-function-results.md +0 -80
- package/skills/next-best-practices/rules/js-cache-property-access.md +0 -28
- package/skills/next-best-practices/rules/js-cache-storage.md +0 -68
- package/skills/next-best-practices/rules/js-combine-iterations.md +0 -32
- package/skills/next-best-practices/rules/js-early-exit.md +0 -50
- package/skills/next-best-practices/rules/js-hoist-regexp.md +0 -45
- package/skills/next-best-practices/rules/js-index-maps.md +0 -37
- package/skills/next-best-practices/rules/js-length-check-first.md +0 -50
- package/skills/next-best-practices/rules/js-min-max-loop.md +0 -82
- package/skills/next-best-practices/rules/js-set-map-lookups.md +0 -24
- package/skills/next-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/skills/next-best-practices/rules/rendering-activity.md +0 -24
- package/skills/next-best-practices/rules/rendering-animate-svg-wrapper.md +0 -38
- package/skills/next-best-practices/rules/rendering-conditional-render.md +0 -32
- package/skills/next-best-practices/rules/rendering-content-visibility.md +0 -38
- package/skills/next-best-practices/rules/rendering-hoist-jsx.md +0 -36
- package/skills/next-best-practices/rules/rendering-hydration-no-flicker.md +0 -72
- package/skills/next-best-practices/rules/rendering-hydration-suppress-warning.md +0 -26
- package/skills/next-best-practices/rules/rendering-svg-precision.md +0 -28
- package/skills/next-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/skills/next-best-practices/rules/rerender-defer-reads.md +0 -39
- package/skills/next-best-practices/rules/rerender-dependencies.md +0 -45
- package/skills/next-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/skills/next-best-practices/rules/rerender-derived-state.md +0 -29
- package/skills/next-best-practices/rules/rerender-functional-setstate.md +0 -77
- package/skills/next-best-practices/rules/rerender-lazy-state-init.md +0 -56
- package/skills/next-best-practices/rules/rerender-memo-with-default-value.md +0 -36
- package/skills/next-best-practices/rules/rerender-memo.md +0 -44
- package/skills/next-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/skills/next-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/skills/next-best-practices/rules/rerender-transitions.md +0 -40
- package/skills/next-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/skills/next-best-practices/rules/server-after-nonblocking.md +0 -73
- package/skills/next-best-practices/rules/server-auth-actions.md +0 -96
- package/skills/next-best-practices/rules/server-cache-lru.md +0 -41
- package/skills/next-best-practices/rules/server-cache-react.md +0 -76
- package/skills/next-best-practices/rules/server-dedup-props.md +0 -65
- package/skills/next-best-practices/rules/server-parallel-fetching.md +0 -83
- package/skills/next-best-practices/rules/server-serialization.md +0 -38
- package/skills/next-cache-components/SKILL.md +0 -441
- package/skills/next-upgrade/SKILL.md +0 -43
- package/skills/next-upgrade/references/decision-tree.md +0 -33
- package/skills/nodejs/SKILL.md +0 -46
- package/skills/opentelemetry/SKILL.md +0 -62
- package/skills/package.json +0 -89
- package/skills/playwright-standard/SKILL.md +0 -53
- package/skills/playwright-standard/examples/fixtures.ts +0 -66
- package/skills/playwright-standard/examples/type-stubs.d.ts +0 -10
- package/skills/playwright-standard/references/advanced-scenarios.md +0 -59
- package/skills/playwright-standard/references/infrastructure.md +0 -43
- package/skills/playwright-standard/references/locators.md +0 -7
- package/skills/postgres/SKILL.md +0 -38
- package/skills/python/SKILL.md +0 -195
- package/skills/python/references/advanced-patterns.md +0 -37
- package/skills/python/references/config-templates.md +0 -48
- package/skills/rag-pipelines/SKILL.md +0 -14
- package/skills/redis/SKILL.md +0 -31
- package/skills/render/SKILL.md +0 -35
- package/skills/rust/SKILL.md +0 -76
- package/skills/rust/references/borrow-checker.md +0 -13
- package/skills/rust/references/ecosystem.md +0 -11
- package/skills/sandbox-sdk/SKILL.md +0 -186
- package/skills/sandbox-sdk/references/api-quick-ref.md +0 -113
- package/skills/sandbox-sdk/references/examples.md +0 -52
- package/skills/shadcn-ui/SKILL.md +0 -37
- package/skills/skill-builder/SKILL.md +0 -56
- package/skills/skill-builder/checklist.md +0 -65
- package/skills/skill-builder/references/tutorial.md +0 -457
- package/skills/sqlite/SKILL.md +0 -49
- package/skills/table.md +0 -59
- package/skills/tailwind-css/SKILL.md +0 -219
- package/skills/tailwind-css/references/component-patterns.md +0 -52
- package/skills/trpc/SKILL.md +0 -56
- package/skills/typescript/SKILL.md +0 -50
- package/skills/typescript/assets/eslint-template.js +0 -102
- package/skills/typescript/assets/tsconfig-template.json +0 -45
- package/skills/typescript/references/enterprise-patterns.md +0 -531
- package/skills/typescript/references/generics.md +0 -493
- package/skills/typescript/references/nestjs-integration.md +0 -579
- package/skills/typescript/references/react-integration.md +0 -616
- package/skills/typescript/references/toolchain.md +0 -547
- package/skills/typescript/references/tutorial.md +0 -453
- package/skills/typescript/references/type-system.md +0 -481
- package/skills/vercel-ai-sdk/SKILL.md +0 -48
- package/skills/vitest-standard/SKILL.md +0 -76
- package/skills/vitest-standard/examples/service-mock.ts +0 -60
- package/skills/vitest-standard/examples/tdd-calculator.ts +0 -41
- package/skills/vitest-standard/examples/type-stubs.d.ts +0 -18
- package/skills/vitest-standard/references/assertions.md +0 -11
- package/skills/vitest-standard/references/async-and-errors.md +0 -58
- package/skills/vitest-standard/references/coverage-and-config.md +0 -53
- package/skills/vitest-standard/references/mocking.md +0 -61
- package/skills/vitest-standard/references/tdd-patterns.md +0 -60
- package/skills/web-perf/SKILL.md +0 -207
- package/skills/workers-best-practices/SKILL.md +0 -120
- package/skills/workers-best-practices/references/anti-patterns.md +0 -18
- package/skills/workers-best-practices/references/review.md +0 -174
- package/skills/workers-best-practices/references/rules.md +0 -485
- package/skills/wrangler/SKILL.md +0 -43
- package/skills/wrangler/references/cli-commands.md +0 -861
- package/skills/zod/SKILL.md +0 -48
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker `shimMj` Proxy — permissive top-level proxy that wraps `mjApi` to
|
|
3
|
+
* smooth out common agent hallucinations across repositories and SDK patterns.
|
|
4
|
+
*/
|
|
5
|
+
import { type SafeFsShim } from './node-shims.js';
|
|
6
|
+
export interface CreateShimMjOptions {
|
|
7
|
+
mjApi: Record<string, unknown>;
|
|
8
|
+
safeFsShim: SafeFsShim;
|
|
9
|
+
executeCodeFnRef: {
|
|
10
|
+
current?: (arg: unknown) => Promise<unknown>;
|
|
11
|
+
};
|
|
12
|
+
getUpdateMemoryFn: () => (arg: unknown) => unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Builds the `shimMj` permissive proxy wrapping `mjApi`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createShimMjProxy(options: CreateShimMjOptions): Record<string, unknown>;
|
|
18
|
+
//# sourceMappingURL=mj-shim-proxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mj-shim-proxy.d.ts","sourceRoot":"","sources":["../../../src/codemode/worker/mj-shim-proxy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAsD,MAAM,iBAAiB,CAAA;AA8ErG,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;IACtB,gBAAgB,EAAE;QAAE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,CAAA;IAClE,iBAAiB,EAAE,MAAM,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAA;CACrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0LvF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Namespace Shims — helper factories for callable shims, schema shims,
|
|
3
|
+
* delegating tool wrappers, and `context` proxy fallbacks.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DB_TO_JOURNAL: Record<string, [string, string]>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a callable/constructable proxy that resolves all calls and property reads to `shimMj`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createCallableShim(shimMj: Record<string, unknown>, fnName?: string): object;
|
|
10
|
+
/**
|
|
11
|
+
* Creates the `updateMemory` / `setMemory` / `updateJournal` smart router function.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createUpdateMemoryFn(shimMj: Record<string, unknown>): (arg: unknown) => unknown;
|
|
14
|
+
/**
|
|
15
|
+
* Wraps a top-level delegating function so `.schema()`, `.help()`, and `.describe()`
|
|
16
|
+
* forward to the underlying method on `shimMj`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function wrapDelegatingTool(fn: (...args: unknown[]) => unknown, targetFnGetter: () => unknown): unknown;
|
|
19
|
+
export declare const schemaHelpFn: () => Promise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates the `schema` shim proxy for `shimMj`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createSchemaShim(shimMj: Record<string, unknown>): object;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an empty iterable/array-like/map-like fallback for missing collection properties on `context`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createEmptyFallback(_name: string): unknown;
|
|
28
|
+
/**
|
|
29
|
+
* Builds the frozen `context` global proxy for the sandbox.
|
|
30
|
+
*/
|
|
31
|
+
export declare function createContextProxy(contextObj?: Record<string, unknown>): Record<string, unknown>;
|
|
32
|
+
//# sourceMappingURL=namespace-shims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace-shims.d.ts","sourceRoot":"","sources":["../../../src/codemode/worker/namespace-shims.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAW1D,CAAA;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,SAAkB,GAAG,MAAM,CAqBpG;AAMD;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAgE3B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAC9B,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EACnC,cAAc,EAAE,MAAM,OAAO,GAC9B,OAAO,CAeT;AAaD,eAAO,MAAM,YAAY,QAAO,OAAO,CAAC,OAAO,CA0BzC,CAAA;AAEN;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CA4DxE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAyC1D;AAsCD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4DhG"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Node.js Shims — safe sandbox shims for `fs`, `path`, `console`,
|
|
3
|
+
* and SQLite prepared statements (`db.prepare(...)`).
|
|
4
|
+
*/
|
|
5
|
+
export interface SafeFsShim {
|
|
6
|
+
existsSync: (filePath?: unknown) => boolean;
|
|
7
|
+
statSync: (_filePath?: unknown) => {
|
|
8
|
+
size: number;
|
|
9
|
+
isFile: () => boolean;
|
|
10
|
+
isDirectory: () => boolean;
|
|
11
|
+
mtime: Date;
|
|
12
|
+
birthtime: Date;
|
|
13
|
+
};
|
|
14
|
+
stat: (_filePath?: unknown, cb?: (err: Error | null, stats?: unknown) => void) => Promise<unknown>;
|
|
15
|
+
lstatSync: (_filePath?: unknown) => {
|
|
16
|
+
size: number;
|
|
17
|
+
isFile: () => boolean;
|
|
18
|
+
isDirectory: () => boolean;
|
|
19
|
+
mtime: Date;
|
|
20
|
+
birthtime: Date;
|
|
21
|
+
};
|
|
22
|
+
readFileSync: (_filePath?: unknown) => string;
|
|
23
|
+
readFile: (_filePath?: unknown, cb?: (err: Error | null, data?: string) => void) => Promise<string>;
|
|
24
|
+
writeFileSync: () => void;
|
|
25
|
+
writeFile: () => Promise<void>;
|
|
26
|
+
mkdirSync: () => void;
|
|
27
|
+
unlinkSync: () => void;
|
|
28
|
+
readdirSync: () => string[];
|
|
29
|
+
promises: {
|
|
30
|
+
stat: () => Promise<{
|
|
31
|
+
size: number;
|
|
32
|
+
isFile: () => boolean;
|
|
33
|
+
isDirectory: () => boolean;
|
|
34
|
+
mtime: Date;
|
|
35
|
+
birthtime: Date;
|
|
36
|
+
}>;
|
|
37
|
+
readFile: () => Promise<string>;
|
|
38
|
+
writeFile: () => Promise<void>;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare function createSafeFsShim(contextObj?: Record<string, unknown>): SafeFsShim;
|
|
42
|
+
export declare const pathShim: {
|
|
43
|
+
join: (...parts: unknown[]) => string;
|
|
44
|
+
resolve: (...parts: unknown[]) => string;
|
|
45
|
+
basename: (p: unknown, ext?: string) => string;
|
|
46
|
+
dirname: (p: unknown) => string;
|
|
47
|
+
extname: (p: unknown) => string;
|
|
48
|
+
normalize: (p: unknown) => string;
|
|
49
|
+
isAbsolute: (p: unknown) => boolean;
|
|
50
|
+
sep: string;
|
|
51
|
+
delimiter: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const consoleShim: Readonly<{
|
|
54
|
+
log: (...args: unknown[]) => unknown[];
|
|
55
|
+
warn: (...args: unknown[]) => unknown[];
|
|
56
|
+
error: (...args: unknown[]) => unknown[];
|
|
57
|
+
info: (...args: unknown[]) => unknown[];
|
|
58
|
+
debug: (...args: unknown[]) => unknown[];
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Translates raw `db.prepare(sql).run(...)` / `.get(...)` / `.all(...)` hallucinations
|
|
62
|
+
* into high-level `mj.core` / `mj.admin` calls.
|
|
63
|
+
*/
|
|
64
|
+
export declare function createPreparedStatementShim(sql: string, shimMj: Record<string, unknown>): Record<string, unknown>;
|
|
65
|
+
//# sourceMappingURL=node-shims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-shims.d.ts","sourceRoot":"","sources":["../../../src/codemode/worker/node-shims.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,WAAW,UAAU;IACvB,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAA;IAC3C,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK;QAC/B,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,OAAO,CAAA;QACrB,WAAW,EAAE,MAAM,OAAO,CAAA;QAC1B,KAAK,EAAE,IAAI,CAAA;QACX,SAAS,EAAE,IAAI,CAAA;KAClB,CAAA;IACD,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAClG,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK;QAChC,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,OAAO,CAAA;QACrB,WAAW,EAAE,MAAM,OAAO,CAAA;QAC1B,KAAK,EAAE,IAAI,CAAA;QACX,SAAS,EAAE,IAAI,CAAA;KAClB,CAAA;IACD,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,MAAM,CAAA;IAC7C,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACnG,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,WAAW,EAAE,MAAM,MAAM,EAAE,CAAA;IAC3B,QAAQ,EAAE;QACN,IAAI,EAAE,MAAM,OAAO,CAAC;YAChB,IAAI,EAAE,MAAM,CAAA;YACZ,MAAM,EAAE,MAAM,OAAO,CAAA;YACrB,WAAW,EAAE,MAAM,OAAO,CAAA;YAC1B,KAAK,EAAE,IAAI,CAAA;YACX,SAAS,EAAE,IAAI,CAAA;SAClB,CAAC,CAAA;QACF,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;QAC/B,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KACjC,CAAA;CACJ;AAED,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,UAAU,CA+EjF;AAED,eAAO,MAAM,QAAQ;qBACA,OAAO,EAAE,KAAG,MAAM;wBAKf,OAAO,EAAE,KAAG,MAAM;kBAKxB,OAAO,QAAQ,MAAM,KAAG,MAAM;iBAI/B,OAAO,KAAG,MAAM;iBAKhB,OAAO,KAAG,MAAM;mBAKd,OAAO,KAAG,MAAM;oBACf,OAAO,KAAG,OAAO;;;CAGpC,CAAA;AAED,eAAO,MAAM,WAAW;mBACL,OAAO,EAAE;oBACR,OAAO,EAAE;qBACR,OAAO,EAAE;oBACV,OAAO,EAAE;qBACR,OAAO,EAAE;EAC5B,CAAA;AAyBF;;;GAGG;AACH,wBAAgB,2BAA2B,CACvC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA8MzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Prototype Hardening — outer-realm and inner-VM prototype freezing
|
|
3
|
+
* to prevent dynamic constructor chain escapes (`fn['con'+'structor']`).
|
|
4
|
+
*/
|
|
5
|
+
import * as vm from 'node:vm';
|
|
6
|
+
/**
|
|
7
|
+
* Neuters `.constructor` on all outer function prototypes so untrusted scripts
|
|
8
|
+
* inside `vm` cannot traverse `fn['con'+'structor']` to reach the outer realm's
|
|
9
|
+
* Function/AsyncFunction/GeneratorFunction constructors.
|
|
10
|
+
*/
|
|
11
|
+
export declare function hardenOuterFunctionPrototypes(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Freezes built-in prototypes and neuters Function constructors inside the
|
|
14
|
+
* VM context to prevent dynamic constructor chain escapes like:
|
|
15
|
+
* `const c = 'con'+'structor'; Error()[c][c]('return process')()`
|
|
16
|
+
*/
|
|
17
|
+
export declare function freezeInnerVmContext(context: vm.Context): void;
|
|
18
|
+
//# sourceMappingURL=prototype-hardening.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prototype-hardening.d.ts","sourceRoot":"","sources":["../../../src/codemode/worker/prototype-hardening.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAA;AAE7B;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CA6EpD;AA4CD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,IAAI,CAE9D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Result Compactor — compacts oversized structured payloads and enforces
|
|
3
|
+
* the serialized egress byte boundary to prevent OOM and hard payload failures.
|
|
4
|
+
*/
|
|
5
|
+
import type { SandboxResult } from '../types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Automatically compacts oversized structured result payloads (objects and collections)
|
|
8
|
+
* so that queries returning large datasets (e.g. 50 entries with markdown content)
|
|
9
|
+
* do not fail outright when exceeding the egress limit.
|
|
10
|
+
*
|
|
11
|
+
* Primitive strings and numbers are deliberately left uncompacted so that raw
|
|
12
|
+
* string contract tests reject properly with structured aggregation guidance.
|
|
13
|
+
*/
|
|
14
|
+
export declare function compactOversizedResult(val: unknown, limitBytes: number, depth?: number, seen?: WeakSet<object>): unknown;
|
|
15
|
+
/**
|
|
16
|
+
* Enforces the egress byte limit during JSON serialization and applies
|
|
17
|
+
* `compactOversizedResult` fallback when an object/array exceeds the boundary.
|
|
18
|
+
*/
|
|
19
|
+
export declare function serializeAndEnforceEgress(result: SandboxResult, maxResultSize?: number): void;
|
|
20
|
+
//# sourceMappingURL=result-compactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-compactor.d.ts","sourceRoot":"","sources":["../../../src/codemode/worker/result-compactor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAClC,GAAG,EAAE,OAAO,EACZ,UAAU,EAAE,MAAM,EAClB,KAAK,SAAI,EACT,IAAI,kBAAgB,GACrB,OAAO,CAiET;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,aAAa,EACrB,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CA+EN"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Sandbox Globals — builds the frozen `sandbox` object exposed to
|
|
3
|
+
* `vm.createContext` with all top-level aliases, delegating wrappers, and shims.
|
|
4
|
+
*/
|
|
5
|
+
import { type SafeFsShim } from './node-shims.js';
|
|
6
|
+
export interface BuildSandboxGlobalsOptions {
|
|
7
|
+
mjApi: Record<string, unknown>;
|
|
8
|
+
shimMj: Record<string, unknown>;
|
|
9
|
+
safeFsShim: SafeFsShim;
|
|
10
|
+
frozenContext: Record<string, unknown>;
|
|
11
|
+
executeCodeFn: (arg: unknown) => Promise<unknown>;
|
|
12
|
+
updateMemoryFn: (arg: unknown) => unknown;
|
|
13
|
+
activeTimers?: Set<NodeJS.Timeout>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Builds and freezes the sandbox global object for `vm.createContext`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function buildSandboxGlobals(options: BuildSandboxGlobalsOptions): Record<string, unknown>;
|
|
19
|
+
//# sourceMappingURL=sandbox-globals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-globals.d.ts","sourceRoot":"","sources":["../../../src/codemode/worker/sandbox-globals.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAsD,MAAM,iBAAiB,CAAA;AAOrG,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,UAAU,EAAE,UAAU,CAAA;IACtB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACjD,cAAc,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAA;IACzC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;CACrC;AAkJD;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,OAAO,EAAE,0BAA0B,GACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4NzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker API Proxy Builder — constructs the `mj.*` proxy API for the sandbox.
|
|
3
|
+
*
|
|
4
|
+
* Each tool group becomes a namespace with methods that dispatch RPC calls
|
|
5
|
+
* to the main thread. Includes snake_case->camelCase fallback, readResource
|
|
6
|
+
* hallucination handling, and schema() introspection on every method.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Build the mj.* API proxy from method and schema lists.
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildApiProxy(rpcCall: (group: string, method: string, args: unknown[]) => Promise<unknown>, methods: Record<string, string[]>, schemas?: Record<string, Record<string, string>>, readonlyMode?: boolean, contextObj?: Record<string, unknown>): Record<string, unknown>;
|
|
12
|
+
//# sourceMappingURL=worker-api-proxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-api-proxy.d.ts","sourceRoot":"","sources":["../../src/codemode/worker-api-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA6CH;;GAEG;AACH,wBAAgB,aAAa,CACzB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,EAC7E,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAChD,YAAY,CAAC,EAAE,OAAO,EACtB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2QzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Result Proxy — wraps API call results with smart proxy behavior.
|
|
3
|
+
*
|
|
4
|
+
* - Failed results throw on property access with actionable error messages
|
|
5
|
+
* - Successful results auto-forward Array methods to nested array properties
|
|
6
|
+
* - Pagination cursor detection injects `hasMore` convenience boolean
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Wrap an API result with smart proxy behavior for improved DX.
|
|
10
|
+
*/
|
|
11
|
+
export declare function wrapResult(result: unknown): unknown;
|
|
12
|
+
//# sourceMappingURL=worker-result-proxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-result-proxy.d.ts","sourceRoot":"","sources":["../../src/codemode/worker-result-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiFH;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAoOnD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* memory-journal-mcp - Worker Sandbox (worker_threads)
|
|
3
|
+
*
|
|
4
|
+
* Production-grade sandboxed execution using `node:worker_threads`.
|
|
5
|
+
* Provides true V8 isolate boundary with resource limits,
|
|
6
|
+
* hard timeouts, and MessagePort RPC bridge.
|
|
7
|
+
*/
|
|
8
|
+
import { type SandboxOptions, type PoolOptions, type SandboxResult } from './types.js';
|
|
9
|
+
/**
|
|
10
|
+
* Worker-thread sandbox for secure code execution.
|
|
11
|
+
* Maintains a persistent worker thread internally.
|
|
12
|
+
*/
|
|
13
|
+
export declare class WorkerSandbox {
|
|
14
|
+
private readonly options;
|
|
15
|
+
private worker;
|
|
16
|
+
isBusy: boolean;
|
|
17
|
+
readonly createdAt: number;
|
|
18
|
+
lastUsedAt: number;
|
|
19
|
+
private currentExecution;
|
|
20
|
+
private executionId;
|
|
21
|
+
get isDisposed(): boolean;
|
|
22
|
+
constructor(options?: SandboxOptions);
|
|
23
|
+
private initWorker;
|
|
24
|
+
private handleWorkerDeath;
|
|
25
|
+
dispose(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Execute code in the worker thread with RPC bridge.
|
|
28
|
+
*/
|
|
29
|
+
execute(code: string, apiBindings: Record<string, unknown>, schemas?: Record<string, Record<string, string>>, timeoutMs?: number, contextObj?: Record<string, unknown>, readonlyMode?: boolean, maxResultSizeOverride?: number): Promise<SandboxResult>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Pool of persistent worker-thread sandboxes with pre-warming
|
|
33
|
+
* and lifecycle management (age recycling, idle eviction, re-warming).
|
|
34
|
+
*/
|
|
35
|
+
export declare class WorkerSandboxPool {
|
|
36
|
+
private readonly options;
|
|
37
|
+
private readonly sandboxOptions;
|
|
38
|
+
private pool;
|
|
39
|
+
private lifecycleTimer;
|
|
40
|
+
constructor(sandboxOptions?: SandboxOptions, poolOptions?: PoolOptions);
|
|
41
|
+
/**
|
|
42
|
+
* Eagerly create workers up to `minInstances`.
|
|
43
|
+
*/
|
|
44
|
+
private warmPool;
|
|
45
|
+
/**
|
|
46
|
+
* Periodic lifecycle sweep:
|
|
47
|
+
* 1. Remove already-disposed workers
|
|
48
|
+
* 2. Recycle workers that exceed maxWorkerAgeMs
|
|
49
|
+
* 3. Evict idle workers (oldest first) above minInstances
|
|
50
|
+
* 4. Re-warm pool to minInstances
|
|
51
|
+
*/
|
|
52
|
+
private lifecycleSweep;
|
|
53
|
+
execute(code: string, apiBindings: Record<string, unknown>, schemas?: Record<string, Record<string, string>>, timeoutMs?: number, contextObj?: Record<string, unknown>, readonlyMode?: boolean, maxResultSizeOverride?: number): Promise<SandboxResult>;
|
|
54
|
+
getActiveCount(): number;
|
|
55
|
+
dispose(): void;
|
|
56
|
+
readonly poolId: `${string}-${string}-${string}-${string}-${string}`;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=worker-sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-sandbox.d.ts","sourceRoot":"","sources":["../../src/codemode/worker-sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAGH,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,aAAa,EAGrB,MAAM,YAAY,CAAA;AAuBnB;;;GAGG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,OAAO,CAAC,MAAM,CAAsB;IAC7B,MAAM,UAAQ;IACrB,SAAgB,SAAS,EAAE,MAAM,CAAa;IACvC,UAAU,EAAE,MAAM,CAAa;IACtC,OAAO,CAAC,gBAAgB,CAMT;IACf,OAAO,CAAC,WAAW,CAAI;IAEvB,IAAW,UAAU,IAAI,OAAO,CAE/B;gBAEW,OAAO,CAAC,EAAE,cAAc;IAKpC,OAAO,CAAC,UAAU;IAiDlB,OAAO,CAAC,iBAAiB;IA4BzB,OAAO,IAAI,IAAI;IAaf;;OAEG;IACG,OAAO,CACT,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAChD,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,YAAY,CAAC,EAAE,OAAO,EACtB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,OAAO,CAAC,aAAa,CAAC;CA6E5B;AAiED;;;GAGG;AACH,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuB;IAC/C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,cAAc,CAA8C;gBAExD,cAAc,CAAC,EAAE,cAAc,EAAE,WAAW,CAAC,EAAE,WAAW;IAWtE;;OAEG;IACH,OAAO,CAAC,QAAQ;IAMhB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAgChB,OAAO,CACT,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAChD,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,YAAY,CAAC,EAAE,OAAO,EACtB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,OAAO,CAAC,aAAa,CAAC;IAqBzB,cAAc,IAAI,MAAM;IAIxB,OAAO,IAAI,IAAI;IAWf,QAAQ,CAAC,MAAM,sDAAsB;CACxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* memory-journal-mcp - Worker Script (Worker Thread Entry Point)
|
|
3
|
+
*
|
|
4
|
+
* Runs inside `node:worker_threads`. Receives serialized API bindings,
|
|
5
|
+
* builds an async Proxy API object (`mj.*`), and executes user code
|
|
6
|
+
* within a secondary `vm.createContext` boundary.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=worker-script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-script.d.ts","sourceRoot":"","sources":["../../src/codemode/worker-script.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory Journal MCP Server - Icon Constants
|
|
3
|
+
*
|
|
4
|
+
* Centralized icon definitions using data URIs for self-contained distribution.
|
|
5
|
+
* Icons follow MCP 2025-11-25 specification.
|
|
6
|
+
*
|
|
7
|
+
* Using simple Lucide-style SVG icons encoded as data URIs.
|
|
8
|
+
*/
|
|
9
|
+
import type { McpIcon } from '../types/index.js';
|
|
10
|
+
/** Journal/notebook icon for core operations */
|
|
11
|
+
export declare const ICON_CORE: McpIcon;
|
|
12
|
+
/** Magnifying glass for search operations */
|
|
13
|
+
export declare const ICON_SEARCH: McpIcon;
|
|
14
|
+
/** Chart/bar for analytics */
|
|
15
|
+
export declare const ICON_ANALYTICS: McpIcon;
|
|
16
|
+
/** Link for relationships */
|
|
17
|
+
export declare const ICON_RELATIONSHIPS: McpIcon;
|
|
18
|
+
/** Swap/IO icon for import and export operations */
|
|
19
|
+
export declare const ICON_IO: McpIcon;
|
|
20
|
+
/** Settings/cog for admin */
|
|
21
|
+
export declare const ICON_ADMIN: McpIcon;
|
|
22
|
+
/** GitHub logo for github tools */
|
|
23
|
+
export declare const ICON_GITHUB: McpIcon;
|
|
24
|
+
/** Git branch for git history operations */
|
|
25
|
+
export declare const ICON_GIT: McpIcon;
|
|
26
|
+
/** Archive/box for backup */
|
|
27
|
+
export declare const ICON_BACKUP: McpIcon;
|
|
28
|
+
/** Users group for team collaboration */
|
|
29
|
+
export declare const ICON_TEAM: McpIcon;
|
|
30
|
+
/** Document for briefing/instructions */
|
|
31
|
+
export declare const ICON_BRIEFING: McpIcon;
|
|
32
|
+
/** Network/share for graph resources */
|
|
33
|
+
export declare const ICON_GRAPH: McpIcon;
|
|
34
|
+
/** Clock for recent/timeline resources */
|
|
35
|
+
export declare const ICON_CLOCK: McpIcon;
|
|
36
|
+
/** Heartbeat for health status */
|
|
37
|
+
export declare const ICON_HEALTH: McpIcon;
|
|
38
|
+
/** Kanban board columns */
|
|
39
|
+
export declare const ICON_KANBAN: McpIcon;
|
|
40
|
+
/** Star for significant items */
|
|
41
|
+
export declare const ICON_STAR: McpIcon;
|
|
42
|
+
/** Tag for tags resource */
|
|
43
|
+
export declare const ICON_TAG: McpIcon;
|
|
44
|
+
/** Issue icon for GitHub issues */
|
|
45
|
+
export declare const ICON_ISSUE: McpIcon;
|
|
46
|
+
/** Git merge for PR resources */
|
|
47
|
+
export declare const ICON_PR: McpIcon;
|
|
48
|
+
/** Flag for milestone tracking */
|
|
49
|
+
export declare const ICON_MILESTONE: McpIcon;
|
|
50
|
+
/** Message bubble for prompts */
|
|
51
|
+
export declare const ICON_PROMPT: McpIcon;
|
|
52
|
+
/** Map tool group name to icon */
|
|
53
|
+
export declare const TOOL_GROUP_ICONS: Record<string, McpIcon>;
|
|
54
|
+
/**
|
|
55
|
+
* Get icons array for a tool based on its group
|
|
56
|
+
*/
|
|
57
|
+
export declare function getToolIcon(group: string): McpIcon[] | undefined;
|
|
58
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/constants/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAMhD,gDAAgD;AAChD,eAAO,MAAM,SAAS,EAAE,OAIvB,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAA;AAED,8BAA8B;AAC9B,eAAO,MAAM,cAAc,EAAE,OAI5B,CAAA;AAED,6BAA6B;AAC7B,eAAO,MAAM,kBAAkB,EAAE,OAIhC,CAAA;AAED,oDAAoD;AACpD,eAAO,MAAM,OAAO,EAAE,OAIrB,CAAA;AAED,6BAA6B;AAC7B,eAAO,MAAM,UAAU,EAAE,OAIxB,CAAA;AAED,mCAAmC;AACnC,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAA;AAED,4CAA4C;AAC5C,eAAO,MAAM,QAAQ,EAAE,OAItB,CAAA;AAED,6BAA6B;AAC7B,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAA;AAED,yCAAyC;AACzC,eAAO,MAAM,SAAS,EAAE,OAIvB,CAAA;AAMD,yCAAyC;AACzC,eAAO,MAAM,aAAa,EAAE,OAI3B,CAAA;AAED,wCAAwC;AACxC,eAAO,MAAM,UAAU,EAAE,OAIxB,CAAA;AAED,0CAA0C;AAC1C,eAAO,MAAM,UAAU,EAAE,OAIxB,CAAA;AAED,kCAAkC;AAClC,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAA;AAED,2BAA2B;AAC3B,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAA;AAED,iCAAiC;AACjC,eAAO,MAAM,SAAS,EAAE,OAIvB,CAAA;AAED,4BAA4B;AAC5B,eAAO,MAAM,QAAQ,EAAE,OAItB,CAAA;AAED,mCAAmC;AACnC,eAAO,MAAM,UAAU,EAAE,OAIxB,CAAA;AAED,iCAAiC;AACjC,eAAO,MAAM,OAAO,EAAE,OAIrB,CAAA;AAED,kCAAkC;AAClC,eAAO,MAAM,cAAc,EAAE,OAI5B,CAAA;AAED,iCAAiC;AACjC,eAAO,MAAM,WAAW,EAAE,OAIzB,CAAA;AAOD,kCAAkC;AAClC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAWpD,CAAA;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,CAGhE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ADMIN_HELP = "# Admin Operations\n- **Workspace Bounds**: Batch updates, deletions, and rebuilding vector indexes require `workspace_id` awareness. Ensure you are targeting the correct workspace to avoid unintended cross-tenant mutations.\n\n### Auto-Prune\n\nOn server startup, the auto-prune system automatically soft-deletes old entries with low significance scores.\n- **Configurable Thresholds**: Controlled via `--prune-older-than-days` (soft-delete) and `--prune-importance-threshold`.\n- **Exclusion Rules**: Specific tags can be exempted from auto-pruning using `--prune-exclude-tags <tags>` (e.g. `architecture`, `never-prune`).\n- **Dry Run**: Server administrators can preview what would be processed without mutating the database by using the `--prune-dry-run` flag.\n\n### Scheduled Reports\n\nWhen deployed in HTTP mode with `--report-interval <minutes>` and `--report-webhook-url <url>`, the server periodically generates digest reports and delivers them to the configured webhook. Reports include activity trends, significance highlights, stale project warnings, and top-importance entries.\n\n- **Formats**: `slack` (default, `{\"text\":\"<markdown>\"}`), `discord` (`{\"content\":\"<markdown>\"}`), or `json` (raw DigestSnapshot payload).\n- **Report history**: Read `memory://insights/reports` to view the last 5 generated reports and their delivery status.\n- **Independent from digest**: The `report` job is separate from the `digest` analytics job. You can run one without the other.\n\n### Real-Time Subscriptions\n\nThe server supports the standard MCP `resources/subscribe` capability. You can subscribe to resources (e.g., `memory://recent`, `memory://team/recent`, and `memory://briefing`) to receive real-time `notifications/resources/updated` notifications when other agents or team members mutate shared data. Note that subscriptions are scope-authorized; your session must possess the required scope (e.g., `team` or `admin`) for the target resource, or the subscription will be rejected with a `PermissionError`.\n\n## Available Tools\n\n- **Configuration**: `update_configuration`\n- **Project Lifecycle**: `register_project`, `update_project`, `delete_project`, `get_project`, `list_projects`\n- **Entry Mutations**: `update_entry`, `delete_entry`, `restore_entry`\n- **Batch Operations**: `batch_create_entries`, `batch_update_entries`, `batch_delete_entries`\n- **Vector Index**: `rebuild_vector_index`, `add_to_vector_index`\n- **Maintenance**: `merge_tags`, `run_auto_prune`\n- **Auditing**: `search_audit_log`\n\n";
|
|
2
|
+
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,g/EAgCtB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ANALYTICS_HELP = "# Analytics Operations\n- **Workspace Bounds**: Analytics operations inherently scope to the active `workspace_id`. Cross-project insights explicitly span workspaces to identify trends and duplicated efforts.\n\n## Available Tools\n\n- **Metrics**: `get_statistics`\n- **Insights**: `get_cross_project_insights`\n";
|
|
2
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/analytics.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,8TAO1B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const BACKUP_HELP = "# Backup Operations\n- **Snapshots**: Create on-demand snapshot backups of the database. Useful before performing destructive administrative operations like batch deletions.\n- **Restore**: Restore the entire database state from a specific backup snapshot.\n- **Cleanup**: Remove old or unnecessary backups to save disk space.\n\n## Available Tools\n\n- **Backup**: `backup_journal`, `list_backups`, `restore_backup`, `cleanup_backups`\n";
|
|
2
|
+
//# sourceMappingURL=backup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backup.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/backup.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,0bAQvB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const CORE_INSTRUCTIONS = "# memory-journal-mcp\n\n## Quick Access\n\n| Purpose | Action |\n| --------------- | --------------------------- |\n| Session context | `memory://briefing` |\n| Recent entries | `memory://recent` |\n| Health/time | `memory://health` |\n| Metrics/Summary | `memory://metrics/summary` |\n| Metrics/Latency | `memory://metrics/latency` |\n| Resource reads | `memory://metrics/resources`|\n| Project staleness| `memory://staleness` |\n| Report history | `memory://insights/reports` |\n| Agent context | `memory://agent-context/{+repo}` |\n\n## Help Resources\n\n- **Agent Skill:** If available in your environment, load the `memory-journal-mcp` skill for high-level workflow guidelines.\n- **Dynamic Help:** Read `memory://help` for tool group index and available help resources.\n- **Gotchas:** Read `memory://help/gotchas` for critical usage patterns, heuristics, and session summary rules.\n- **Group Reference:** Read `memory://help/{group}` for per-group tool reference (parameters, annotations, examples).\n\nOnly help resources for your enabled tool groups are registered.\n\n## Essential Behaviors\n\n1. **Briefing:** You **MUST** read the `memory://briefing/{+repo}` at the start of each chat!\n2. **Session Identity:** You MUST pass your AntiGravity Conversation ID as the `--session-id` argument for all CLI journal mutation commands.\n3. **Workspace Isolation:** The `--project` argument is STRICTLY REQUIRED for mutations when the current working directory is not mapped in `PROJECT_REGISTRY` (otherwise it auto-resolves from CWD). Find it in the briefing's Config row. If you are mid-task and need this context, NEVER re-query the briefing; ALWAYS query `memory://agent-context/{+repo}`.\n4. **Anti-Hallucination:** If confused by an API, read `memory://help/{group}` or `memory://help/gotchas` BEFORE guessing. Use `mcp-heal` if a structural hallucination persists.\n5. **Orphan Prevention:** ALWAYS link entries to previous context via `--related-to` (comma-separated entry IDs).\n\n## Essential Operations\n\n- **Creating Entries:** Use the `memory-journal-mcp entry create` CLI command via your terminal (`run_command`). CLI commands are ALWAYS available globally on the system; do NOT attempt to run them via Code Mode. ALL entries MUST define `--impact-score`, `--trust-score`, and `--validation-status`. See `memory://help/core` for criteria.\n- **Session Summaries:** Use the `memory-journal-mcp entry create` CLI command with `--type retrospective` and `--tags session-summary`. You MUST provide the markdown content via `--content \"<string>\"` or `--file <path>` (or pipe to stdin). See `memory://help/templates` for the exact 4-section format required.\n- **Updating/Deleting:** Use `memory-journal-mcp entry update` (pass `--expected-version` to prevent concurrent overwrites) and use the `delete_entry` MCP tool for soft-deletes.\n- **Searching:** Use `search_entries` or `search_by_date_range`. Use `sort_by: \"importance\"` to surface structurally significant entries. Use phrase matching (e.g. `\"error handling\"`) for exact matches.\n- **Team DB:** Append the `--team` flag to your CLI commands for shared state. Use `team_*` MCP tools (or `mj.team.*` in Code Mode) for searches, deletes, relationships, analytics, and RBAC member/alias management. See `memory://help/team` for RBAC rules. Do NOT create bulk relationships between unrelated entries that happen to share tags.";
|
|
2
|
+
export declare const CODE_MODE_INSTRUCTIONS = "\n## Code Mode\n\nAPI: `tool_name` \u2192 `mj.group.action()` (e.g., `search_entries` \u2192 `mj.search.searchEntries()`)\nGlobals: `createEntry()`, `find()`, `recent()`, `searchEntries()`, `deleteEntry()`, `help()` work without the `mj.` prefix.\nPositional: `createEntry(\"note\")`, `searchEntries(\"performance\")`\nAliases: Common parameter names are auto-corrected (`q`/`search`\u2192`query`, `path`/`filepath`\u2192`output_dir`, `keep`\u2192`keep_count`, `user`/`assignee`\u2192`target_user`, `team`/`project`\u2192`workspace_id`).\nDiscovery: `mj.help()` \u2192 `{groups, totalMethods}`. `mj.core.help()` for group-specific.\nAnti-Hallucination: Always provide a valid JavaScript string in the `code` parameter (e.g. `code: \"return await mj.searchEntries({ query: '...' })\"`). If `mj_execute_code` is called with an empty payload `{}` or missing `code`, Code Mode auto-heals by returning the active sandbox status and available namespaces. Structured dictionaries or JSON payloads passed in `code`, `payload`, or `entry` are automatically synthesized into journal entry operations.\nSandbox: No network access (`fetch()` is blocked and returns a 403 `VALIDATION_ERROR` response object). Node native modules (`fs`, `path`, `child_process`, `require()`) are disabled. Use the `context` parameter to pass file contents or external data into Code Mode. `setTimeout` and `sleep(ms)` are available for minor delays.\nReadonly: Pass `readonly: true` to `mj_execute_code` to restrict execution to read-only operations.\nRead `memory://help/codemode` for full namespace table, examples, and patterns.\n**Codemode-only**: When `mj_execute_code` is the only registered tool, all tool names referenced in these instructions (e.g., `create_entry`, `search_entries`) must be called via `mj_execute_code` using `mj.*` namespaces or bare globals. Do NOT call them as direct MCP tools. Note: This rule applies ONLY to MCP tools; CLI commands (like `memory-journal-mcp entry create`) should always be run natively in the terminal using `run_command`.";
|
|
3
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/base.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,45GAuCgU,CAAC;AAE/V,eAAO,MAAM,sBAAsB,8/DAYma,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const CODEMODE_HELP = "# Code Mode API Reference\n\nIn Code Mode (`mj_execute_code`), you do NOT have native MCP tool schemas. You must orchestrate the server using the `mj.*` API inside the sandbox.\n\n## Sandbox Environment\n- **Network:** Disabled. `fetch()` is blocked and returns a 403 `VALIDATION_ERROR` response object. Node network modules are stripped.\n- **Native Modules:** `fs`, `path`, `child_process`, `require()`, `import` are disabled. To pass file contents or external payloads into Code Mode, use the `context` parameter (accessible inside JS code as `context`).\n- **Globals:** `createEntry()`, `find()`, `recent()`, `searchEntries()`, `deleteEntry()`, `help()` work without the `mj.` prefix.\n- **Positional Arguments:** `createEntry(\"note\")`, `searchEntries(\"performance\")`, `mj.backup.backupJournal(\"snapshot\")`.\n- **Healing Aliases:** The proxy auto-heals common hallucinations (e.g., `query` (search, q), `output_dir` (path, filepath), `keep_count` (keep), `target_user` (user, assignee), `workspace_id` (team, project)).\n- **Arrays & Methods:** Proxies seamlessly support native array properties/methods (e.g., `.length`, `[0]`, `.map()`, `.filter()`, `.includes()`, `.shift()`, `.concat()`). Calling an unsupported method returns an actionable `VALIDATION_ERROR` rather than crashing.\n- **Async/Await:** Do NOT access `Promise` objects synchronously. Always `await` async operations. Missing `await` statements will be intercepted and return an actionable `VALIDATION_ERROR`.\n- **SQL Translation & Auto-Healing:** Code Mode executes JavaScript code via `mj.*` API. If raw SQL statements are passed (e.g., `SELECT * FROM journal_entries LIMIT 10`), the server automatically translates them to type-safe `mj.core.getRecentEntries({ limit: 10 })` or `mj.search.searchEntries({ query: \"...\" })` calls.\n- **Direct SQLite & Prepared Statements:** Do NOT execute direct SQLite statements or driver preparations (e.g. `const db = mj.getDatabase(); db.prepare(...)`). Use high-level `mj.*` API calls instead: `mj.admin.updateEntry({ entry_id: ..., content: ... })` to update entries, and `mj.core.createEntry({ ... })` to insert entries. The sandbox automatically translates prepared statement updates and queries into safe `mj.*` method invocations.\n- **Template Literals & Backticks:** When passing multi-line strings or markdown with embedded backticks (e.g. inline code blocks like `` `.npmrc` ``), avoid raw unescaped backticks inside a template literal. Either escape them (`\\```) or pass the string safely via the `context` parameter and access it as `context.myContent`.\n- **Quotes & Escaping:** When passing strings with single quotes, double quotes, or backticks in Code Mode, avoid double-escaping backslashes (e.g. `\\\\'` or `\\\\\"`), which prematurely terminates string literals in JavaScript. Pass complex content safely via `context.content`.\n- **Payload Objects & Raw JSON:** When calling Code Mode, structured dictionary objects (via `payload`, `entry`, or as a raw JSON string in `code`) containing task summaries, notes, changes, status, or action directives (e.g., `{ action: \"create\", task: \"...\", changes: [...], notes: \"...\" }`) are automatically translated and synthesized into type-safe `mj.core.createEntry(...)` or `mj.admin.updateEntry(...)` calls.\n- **Result Size Cap & Auto-Compaction:** By default, Code Mode enforces a 100KB result serialization boundary to protect LLM context windows. For large datasets or multi-entry queries, pass `max_result_size: <bytes>` (e.g. `200 * 1024` or `500 * 1024`, up to 50MB) in `mj_execute_code` parameters or context. When structured results exceed the limit, the sandbox automatically compacts oversized markdown content and long arrays so execution succeeds seamlessly.\n\n## API Namespace Map\n\n### `mj.core`\n- `createEntry(params)`\n- `getEntryById(params)`\n- `getRecentEntries(params)`\n- `getEntryHistory(params)`\n- `testSimple(params)`\n- `testErrorHandling(params)`\n- `triggerProgress(params)`\n- `listTags(params)`\n- `markAnchorsStale(params)`\n\n### `mj.search`\n- `searchEntries(params)`\n- `searchByDateRange(params)`\n- `semanticSearch(params)`\n- `getVectorIndexStats(params)`\n- `listDeletedEntries(params)`\n- `crossTeamSearch(params)`\n\n### `mj.analytics`\n- `getStatistics(params)` (or `getStats()`)\n- `getCrossProjectInsights(params)` (or `getInsights()`)\n\n### `mj.relationships`\n- `linkEntries(params)`\n- `visualizeRelationships(params)`\n\n### `mj.io`\n- `exportEntries(params)`\n- `exportMarkdown(params)`\n- `importMarkdown(params)`\n- `importExternal(params)`\n\n### `mj.admin`\n- `updateConfiguration(params)`\n- `registerProject(params)`\n- `updateProject(params)`\n- `deleteProject(params)`\n- `getProject(params)`\n- `listProjects(params)`\n- `updateEntry(params)`\n- `deleteEntry(params)`\n- `restoreEntry(params)`\n- `rebuildVectorIndex(params)`\n- `addToVectorIndex(params)`\n- `mergeTags(params)`\n- `batchCreateEntries(params)`\n- `batchUpdateEntries(params)`\n- `batchDeleteEntries(params)`\n- `runAutoPrune(params)`\n- `searchAuditLog(params)`\n\n### `mj.github`\n- `getGithubIssues(params)`\n- `getGithubPrs(params)`\n- `getGithubIssue(params)`\n- `getGithubPr(params)`\n- `getGithubContext(params)`\n- `getKanbanBoard(params)`\n- `moveKanbanItem(params)`\n- `addKanbanItem(params)`\n- `deleteKanbanItem(params)`\n- `createGithubIssueWithEntry(params)`\n- `closeGithubIssueWithEntry(params)`\n- `getGithubMilestones(params)`\n- `getGithubMilestone(params)`\n- `createGithubMilestone(params)`\n- `updateGithubMilestone(params)`\n- `deleteGithubMilestone(params)`\n- `getRepoInsights(params)`\n- `getCopilotReviews(params)`\n\n### `mj.git`\n- `getCommitHistory(params)`\n- `searchCommits(params)`\n- `getReleaseInfo(params)`\n- `getUnreleasedCommits(params)`\n- `analyzeCommitPatterns(params)`\n- `checkEntryStaleness(params)`\n\n### `mj.backup`\n- `backupJournal(params)`\n- `listBackups(params)`\n- `restoreBackup(params)`\n- `cleanupBackups(params)`\n\n### `mj.team`\n- `teamCreateEntry(params)`, `teamGetEntryById(params)` (or `read()`), `teamGetRecent(params)`, `teamListTags(params)`\n- `teamSearch(params)`, `teamSearchByDateRange(params)`, `teamSemanticSearch(params)`\n- `teamUpdateEntry(params)`, `teamDeleteEntry(params)`, `teamRestoreEntry(params)`, `teamListDeletedEntries(params)` (or `trash()`)\n- `teamMergeTags(params)`, `teamLinkEntries(params)`, `teamVisualizeRelationships(params)`\n- `teamBatchCreateEntries(params)`, `teamBatchUpdateEntries(params)`, `teamBatchDeleteEntries(params)`\n- `teamGetStatistics(params)` (or `stats()`), `teamGetCrossProjectInsights(params)`, `teamGetCollaborationMatrix(params)`\n- `teamExportEntries(params)` (or `export()`), `teamExportMarkdown(params)`, `teamImportMarkdown(params)` (or `importMd()`), `teamImportExternal(params)`\n- `teamBackup(params)`, `teamListBackups(params)`\n- `teamGetVectorIndexStats(params)`, `teamRebuildVectorIndex(params)`, `teamAddToVectorIndex(params)`\n- `teamAddMember(params)`, `teamRemoveMember(params)`, `teamUpdateMemberRole(params)`, `teamListMembers(params)`, `teamGetMember(params)`\n- `teamAddAuthorAlias(params)`, `teamRemoveAuthorAlias(params)`, `teamListAuthorAliases(params)`, `teamResolveAuthor(params)`, `teamConsolidateAuthors(params)`\n\n**Rule:** When `mj_execute_code` is the only registered tool (e.g., Code Mode), all tool actions must be performed using the `mj.*` namespaces listed above inside the code sandbox. Do NOT attempt to call the original tool names as direct MCP operations. CLI commands are exempt from this and should be run in the terminal.";
|
|
2
|
+
//# sourceMappingURL=codemode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codemode.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/codemode.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,k7OAwH6S,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const CORE_HELP = "# Core Operations\n- **Workspace Isolation**: When creating or reading entries, consider the `workspace_id` parameter. If a default workspace is active, entries are automatically scoped to it unless explicitly overridden.\n\n### Session Summaries\n\nUse the `memory-journal-mcp entry create` terminal command to record session summaries. You MUST provide the markdown content via `--content \"<string>\"` or `--file <path>` (or pipe to stdin). Required fields:\n\n- `--type retrospective`\n- `--tags session-summary` (plus relevant domain/activity tags, comma-separated)\n- `--project` from the briefing\n- `--impact-score`, `--trust-score`, and `--validation-status` MUST be evaluated and populated.\n- `--related-to` MUST be populated with IDs of related tasks, architectural plans, or preceding summaries.\n- `--auto-context` MUST be populated with a concise JSON payload representing the context (e.g. `{ \"commits\": [\"abc1234\", \"def5678\"] }`)\n\nDo NOT create session summaries for testing passes where everything passed and no code changes were made. Only summarize sessions with substantive work.\n\n### Entry Type Selection\n\nChoose the correct `entry_type` \u2014 do NOT default everything to `personal_reflection`:\n\n- `retrospective` \u2014 Session summaries, certification reports, any \"what was accomplished\" recap\n- `bug_fix` \u2014 Specific bug identification and/or resolution\n- `project_decision` \u2014 Architecture decisions, pattern adoptions, technology choices\n- `planning` \u2014 Roadmaps, sprint plans, project initialization\n- `code_review` \u2014 Security audits, code quality reviews, copilot findings\n- `technical_note` \u2014 Implementation notes, gotchas, reference documentation\n- `feature_implementation` \u2014 New feature completions\n- `research` \u2014 Investigation, benchmarking, evaluation of alternatives\n- `meeting_notes` \u2014 Meeting minutes, sync notes, discussion summaries\n- `learning` \u2014 Lessons learned, tutorials completed, skill acquisition\n- `standup` \u2014 Daily standup notes, status updates\n- `milestone` \u2014 Major project milestones, release checkpoints\n- `technical_achievement` \u2014 Significant technical accomplishments\n- `enhancement` \u2014 Incremental improvements, optimizations\n- `development_note` \u2014 Day-to-day development context and progress\n- `system_integration_test` \u2014 Full integration/e2e test results\n- `test_entry` \u2014 Automated or manual test results\n- `plan_draft` \u2014 Initial drafts of implementation plans\n- `adversarial_review` \u2014 Reviews and critiques from adversarial subagents\n- `plan_refinement` \u2014 Refinements to plans based on reviews\n- `plan_finalized` \u2014 Finalized implementation plans after review\n- `copilot_validation` \u2014 Validation of copilot suggestions\n- `maintenance` \u2014 Scheduled or manual database optimization, CMS consolidation, and infrastructure healing reports\n- `other` \u2014 Anything that doesn't fit the above categories\n- `personal_reflection` \u2014 Only for genuinely personal notes that don't fit above\n\n### Tag Taxonomy\n\nEvery entry MUST have at least one tag. Use kebab-case exclusively.\nTags are limited to a maximum of 100 characters. Journal entry content is limited to a maximum of 50,000 characters.\n\n- _Activity_: `session-summary`, `certification`, `stress-test`, `bug-fix`, `release`, `audit`, `remediation`, `refactor`\n- _Domain_: `security`, `performance`, `architecture`, `code-mode`, `documentation`, `ci-cd`, `github-integration`\n- _Tool group_: Name of the tool group being worked on (e.g., `core`, `search`, `github`, `admin`)\n- _Pattern_: `split-schema`, `zod`, `error-handling`, `dual-schema`\n\n### Heuristic Scoring Criteria\n\nALL entries MUST define heuristic scores. Use these explicit thresholds:\n\n- `validation_status`: \n - `none`: Work completed but not yet explicitly tested/verified.\n - `passed`: Work explicitly validated via tests, manual confirmation, or peer review.\n - `failed`: Work that failed verification or was found to be hallucinatory.\n- `trust_score` (Confidence):\n - `0.0 - 0.2`: Suspected hallucination or failed validation.\n - `0.3 - 0.5`: Unverified work, draft plans, or assumptions (Baseline for unverified work).\n - `0.6 - 0.8`: Partially verified or low-risk routine changes.\n - `0.9 - 1.0`: Rigorously verified via automated tests, peer review, or explicitly confirmed by the user.\n - *Note: `trust_score` acts as a multiplier on the entry's importance. Low trust entries will decay and be auto-pruned faster.*\n- `impact_score` (Blast Radius):\n - `0.0 - 0.2`: Trivial changes, typos, minor doc updates.\n - `0.3 - 0.5`: Standard feature work, isolated bug fixes.\n - `0.6 - 0.8`: Major new features, cross-module changes.\n - `0.9 - 1.0`: Core architectural shifts, destructive operations, critical security patches.\n\n### Significance Marking\n\nMark important entries with `significance_type`:\n\n- `release` \u2014 Version deployments\n- `milestone` \u2014 Major completions (full certification, security audit, feature launch)\n- `decision` \u2014 Technology or process decisions\n- `architecture` \u2014 Architecture decisions, pattern adoptions, structural changes\n- `blocker_resolved` \u2014 Critical blockers that were resolved\n- `lesson_learned` \u2014 Documented lessons from failures or unexpected outcomes\n- `breakthrough` \u2014 Significant technical or conceptual breakthroughs\n- `security` \u2014 Security audit completions, vulnerability remediations, hardening milestones\n\nDo NOT mark routine session summaries or pass-only testing results as significant.\n\n### Link Entries\n\nCreate relationships to build traversable context chains:\n\n- `implements` \u2014 implementation\u2192spec, remediation\u2192audit findings\n- `resolved` \u2014 bugfix\u2192issue that reported the bug\n- `evolves_from` \u2014 v2\u2192v1, new iteration\u2192prior version\n- `references` \u2014 cross-project parity work, related entries\n- `clarifies` \u2014 documentation\u2192implementation it explains\n- `response_to` \u2014 reply to a question or issue raised in another entry\n- `blocked_by` \u2014 entry was blocked by another (blocker\u2192resolution)\n- `caused` \u2014 entry caused or led to another outcome\n\nOnly link truly related entries. Do NOT create bulk relationships between unrelated entries that happen to share tags.\n- **Opportunistic Superseding (Awake Contradiction Resolution)**: When creating a `project_decision`, `bug_fix`, or `technical_note` that invalidates or replaces an earlier entry surfaced in your briefing or search results, immediately link the new entry to the superseded entry via `evolves_from` or `resolved` so the knowledge graph reflects the superseding chain in real time.\n\n### Git Commit Standards\n\nWhen committing changes to a repository:\n\n- **Commit Journaling**: Record a corresponding `commit-narrative` journal entry containing `auto_context: { \"commits\": [\"<sha>\"] }` along with accurate heuristic scores (`impact_score`, `trust_score`, `validation_status`). If your workspace provides a `commit.ts` wrapper (e.g. `.agents/scripts/commit.ts`), append `--journal` to automate this step; otherwise use standard `git commit` and log the entry via `mj_execute_code`, `create_entry`, or `memory-journal-mcp entry create`.\n- **Scoring**: Provide accurate scores (`0.1-1.0`) for blast radius (`impact_score`) and verification level (`trust_score`). **NEVER \"rubber stamp\" 1.0** without rigorous validation; accurately reflect verification.\n- **Validation**: Provide `validation_status` (`passed`, `failed`, or `none`).\n\n## Available Tools\n\n- **Entry Lifecycle**: `create_entry`, `get_entry_by_id`, `get_recent_entries`, `get_entry_history`\n- **Taxonomy & Graph**: `list_tags`, `mark_anchors_stale`\n- **Testing Tools**: `test_simple`, `test_error_handling`, `trigger_progress`\n\n";
|
|
2
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/core.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,wvPAyHrB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GIT_HELP = "# Git History Mining\n\n- **Commit Discovery**: Use `get_commit_history` to fetch sequential logs and `search_commits` to find specific changes by message or author.\n- **Release Tracking**: Use `get_release_info` to retrieve tag details and `get_unreleased_commits` to track work pending release.\n- **Analytics**: Use `analyze_commit_patterns` to identify file hotspots and active contributors within a timeframe.\n- **Performance**: Deep searches can take time. Cap your search ranges when possible.\n- **Code Mode**: These tools are exposed under the `mj.git.*` namespace (e.g., `mj.git.getCommitHistory()`).\n\n## Available Tools\n\n- **History**: `get_commit_history`, `search_commits`\n- **Releases**: `get_release_info`, `get_unreleased_commits`\n- **Analytics**: `analyze_commit_patterns`, `check_entry_staleness`\n\n";
|
|
2
|
+
//# sourceMappingURL=git.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/git.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,+zBAcpB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GITHUB_HELP = "# GitHub Integration\n\n- Include `issue_number`/`pr_number` and `--project` in your `memory-journal-mcp entry create` CLI command to auto-link\n- After closing issue/merging PR \u2192 create summary entry with learnings\n- CI failures \u2192 `actions-failure-digest` prompt or `memory://actions/recent`\n- Kanban: `get_kanban_board` \u2192 `add_kanban_item` / `move_kanban_item` / `delete_kanban_item` \u2192 document completion (project_number auto-resolves if repo is registered). **\u26A0\uFE0F Eventual Consistency:** GitHub Projects V2 read index is heavily eventually consistent. Do NOT rely on `get_kanban_board` to immediately reflect items that were just added or moved.\n- Milestones: `get_github_milestones` \u2192 track project progress, `memory://github/milestones`\n- Commits: `memory://commits/{project_number}/by-issue` and `memory://commits/{project_number}/by-pr` group commits by referenced issues/PRs.\n- Rate Limits & Status: Before expensive API operations, check `memory://github/status` (or `memory://github/status/{+repo}`) to inspect repository connectivity and status.\n- **Project Initialization**: To register a new project workspace, use the `register_project` (or `update_project`) MCP tool (`mj.admin.registerProject` / `mj.admin.updateProject` in Code Mode) or the `memory-journal-mcp project create <name> --path <path> --number <N>` CLI command.\n- **Multi-Project Routing**: If `memory://briefing` shows \"Registered Workspaces\":\n - **Tools**: The `repo` parameter automatically resolves from `project_number`. If you omit both, they default to the primary project.\n - **Resources**: Resource URIs like `memory://github/status` will fallback to the default project. To explicitly target another project, use the `{repo}` variant (e.g., `memory://github/status/{repo}`).\n - **Dynamic Briefings**: You can explicitly request the briefing for a specific project by reading `memory://briefing/{repo}` instead of the global `memory://briefing` resource.\n\n## Copilot Review Patterns\n\nWhen the user has GitHub Copilot code review enabled:\n\n**Learn from reviews** \u2014 After a PR is merged or reviewed, use `get_copilot_reviews({ pr_number, owner, repo })` to read Copilot's findings (leave `owner` and `repo` empty to auto-detect from git). If patterns emerge (e.g., repeated null check warnings, missing error handling), suggest adding a rule or updating existing rules. Create journal entries tagged `copilot-finding` and link to the PR via `pr_number`.\n\n**Pre-emptive checking** \u2014 Before creating or modifying code, search journal entries with tag `copilot-finding` for patterns relevant to the current work. Apply those patterns proactively to reduce review cycles.\n\n## Available Tools\n\n- **Issues**: `get_github_issues`, `get_github_issue`, `create_github_issue_with_entry`, `close_github_issue_with_entry`\n- **Pull Requests**: `get_github_prs`, `get_github_pr`, `get_copilot_reviews`\n- **Context & Insights**: `get_github_context`, `get_repo_insights`\n- **Kanban**: `get_kanban_board`, `add_kanban_item`, `move_kanban_item`, `delete_kanban_item`\n- **Milestones**: `get_github_milestones`, `get_github_milestone`, `create_github_milestone`, `update_github_milestone`, `delete_github_milestone`\n\n";
|
|
2
|
+
//# sourceMappingURL=github.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/github.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,msGA+BvB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GOTCHAS_HELP = "# Field Notes & Gotchas\n\n## Tool Usage Pitfalls\n\n1. **Result Limits**: The `MAX_QUERY_LIMIT` is strictly 500 for most search tools. Use the optional `cursor` parameter and `next_cursor` output for O(1) keyset pagination on large datasets. Batch operations are strictly limited to `MAX_BATCH_SIZE` (50) per transaction.\n2. **Code Mode Restrictions**: The `mj_execute_code` sandbox cannot make network requests (calling `fetch()` returns a 403 `VALIDATION_ERROR` response object and Node network modules are stripped). Use it strictly for orchestrating `mj.*` API calls. If you need to hit external/HTTP endpoints or execute shell commands, you must use native OS tools outside of Code Mode. Note: `setTimeout` and `sleep(ms)` are available for minor delays, but avoid long-running operations.\n3. **Tool & Parameter Hallucinations**: Do NOT attempt to use tools that are not listed in the `memory://help` resource. If you guess incorrect parameter names, array methods, or access `Promise` objects synchronously in Code Mode, the proxy layer will intercept the mistake and return a structured `[VALIDATION_ERROR]` payload with `{ success: false }`. Read the feedback and adjust your payload rather than expecting a raw V8 crash. (Note: In-process MCP tool and argument healing is enabled by default and can be disabled globally via `--no-agent-healing` or `MCP_AGENT_HEALING=false`.)\n - **Batch Operations:** Tools like `batch_create_entries`, `batch_update_entries`, and `batch_delete_entries` strictly require an object wrapper (e.g., `{ entries: [...] }`, `{ updates: [...] }`, `{ entry_ids: [...] }`). **NEVER** pass an array directly as the main argument.\n - **Entry Creation Fields:** Entry creation tools require `content` for the primary markdown text. Hallucinated parameter names such as `entry`, `text`, `message`, `description`, `notes`, or `details` (as well as nested `{ entry: { ... } }` objects) are automatically healed and normalized to `content`.\n - **Parameterless Tools & Prompts:** Tools like `rebuild_vector_index` take an empty object `{}`. Similarly, for MCP Prompts, note that some arguments are explicitly required (e.g., `project_number` in `project-status-summary` and `project-milestone-tracker`, or `pr_number` in `pr-summary`, `code-review-prep`, and `pr-retrospective`).\n - **Diagnostic & Adapter Tools:** Ecosystem diagnostic methods like `server_info`, `server_health`, and `list_adapters` are automatically healed when called as MCP tools or via Code Mode (`mj.system.listAdapters()`, `mj.adapters()`).\n - **Native Tool & Codebase Search Fallbacks:** Agent-native inspection tools like `grep_search`, `file_search`, `view_file`, and `list_dir` are automatically healed when autonomous healing is enabled. When invoked against the MCP server, local filesystem queries are bounded by `--allowed-io-roots` (`ALLOWED_IO_ROOTS`) and returned safely, and journal queries are seamlessly mapped to `search_entries` or resources.\n4. **Phrase Matching**: The `query` parameter in search tools supports true phrase matching. Wrap exact strings in double quotes (e.g., `\"error handling\"`) when word order and adjacency are critical.\n5. **Typo Tolerance**: FTS5 search operations automatically fall back to Levenshtein distance matching on tags and entry types if no results are found. To disable this when strict exact matching is needed, explicitly set `fuzzy_match: false`.\n6. **Team RBAC**: If the team database has at least one member registered, RBAC is active. Unregistered authors fall back to the `TEAM_DEFAULT_ROLE` (which denies access by default). Non-admin members can only modify or delete entries they originally authored.\n7. **Concurrent Edits**: When updating or deleting an entry (`update_entry`, `team_update_entry`, `delete_entry`, `team_delete_entry`), always pass `expected_version` if you know the current version to prevent silently overwriting concurrent changes. If you get a `VERSION_CONFLICT` error, re-read the latest entry state returned in the error payload, merge your changes, and retry.\n8. **Cross-Team Search**: The `cross_team_search` tool searches across multiple team databases configured via `ADDITIONAL_TEAM_DBS`. Results include a `team_db` label identifying the source database. This tool is read-only and uses FTS5 only (no semantic/vector search across DBs). Individual DB failures are non-fatal \u2014 the response includes `degraded: true` and per-DB error details.\n9. **Observability & Persistence**: If the server runs via HTTP with `--metrics-export prometheus` (or `METRICS_EXPORT`), a standard `/metrics` endpoint is exposed for external scrapers. Code Mode cannot natively fetch this endpoint; instead, use the `memory://metrics/summary`, `memory://metrics/latency`, and `memory://metrics/resources` resources to retrieve telemetry. **Metrics reset on restart** unless the `--persist-metrics` flag (or `PERSIST_METRICS` env var) is provided, which enables periodic JSON state snapshots for long-term trend analysis.\n10. **Multi-step Operations & Error Aggregation**: Tools performing batch actions (e.g., `import_markdown`, `batch_create_entries`, `batch_update_entries`, `batch_delete_entries`, `rebuild_vector_index`) will return a single `ErrorResponse` on partial failure (with `success: false`). This response contains an `aggregated_errors` array of objects (e.g. `[{ \"message\": \"Item at index 0 failed: UNIQUE constraint failed\" }]`) detailing individual item failures, while the top-level error message summarizes total success/failure counts.\n11. **Configuration Precedence & Debugging**: Server settings are resolved using strict precedence: CLI flags override Environment Variables, which override the Config File (`memory-journal.config.yaml` / `.yml` / `.json`), which overrides Defaults. If you encounter unexpected settings, you can run the server with the `--dump-config` flag. This command aggregates any startup configuration validation errors (printing them all at once rather than failing on the first one) or, if valid, prints the fully resolved configuration tree (with secrets automatically redacted as `[REDACTED]`) and exits cleanly. This is the primary method for diagnosing overriding issues.\n12. **Runtime Configuration Hot-Reloading**: Use `update_configuration` to dynamically change the `tool_filter` or briefing variables without a server restart. Both `update_configuration` and `mj_execute_code` are **always available** regardless of the active filter \u2014 you can never lock yourself out.\n\n **Granular Tool Switching**: You can enable/disable individual tools at runtime:\n - Add a tool: `update_configuration({ tool_filter: \"starter,+get_github_issues\" })`\n - Remove a tool: `update_configuration({ tool_filter: \"full,-backup_journal,-restore_backup\" })`\n - Exact whitelist: `update_configuration({ tool_filter: \"create_entry,search_entries\" })`\n - Read `memory://tools/available` to discover all tools and their groups before enabling them.\n \n After calling `update_configuration`, the server emits `notifications/tools/list_changed` so MCP clients that support it automatically refresh the available tool list.\n13. **Database Encryption**: If the database requires SQLCipher encryption at rest, you must set the `DB_ENCRYPTION_KEY` environment variable when starting the server. If this key is missing or incorrect for an encrypted database, any operations will fail with a \"not a database\" error.\n14. **Scheduled Reports**: The `--report-interval` scheduler job is HTTP-only and requires `--report-webhook-url` to actually deliver reports. Without a webhook URL, the job still generates and persists report snapshots (viewable via `memory://insights/reports`) but skips delivery. Report delivery failures are logged but never crash the server.\n15. **Token Estimation & Content-Type Heuristics**: To assist you in optimizing your context window consumption, every tool execution result includes a `_meta.tokenEstimate` field. This value uses dynamic, content-type-aware heuristics to closely estimate real token costs (Prose defaults to 4.0 bytes/token; JSON payloads to 2.8 bytes/token; Code blocks to 3.2 bytes/token). Leverage this telemetry to govern your batch sizes or fallback to paginated/throttled endpoints if usage spikes.\n16. **Schema Hallucinations in Custom Scripts**: When writing standalone scripts or Code Mode execution payloads, do **NOT** write raw SQL queries against `better-sqlite3` guessing the database schema based on TypeScript interfaces. For example, the primary table is named `memory_journal` (NOT `entries`), and it **DOES NOT** have columns for `importance` or `created_by_agent`. Always rely on the built-in MCP API tools (e.g., `search_entries`, `get_recent_entries`) or Code Mode `mj` globals rather than crafting raw `SELECT` or `DELETE` statements to avoid `SqliteError: no such table` or `no such column` crashes.\n17. **Template Literals & Backticks in Code Mode**: When generating JavaScript code inside `mj_execute_code`, avoid unescaped nested backticks (`` ` ``) inside template literals (e.g., `` content: `... `.npmrc` ...` ``). Unescaped backticks prematurely terminate the template string and trigger syntax errors or tagged template TypeErrors (e.g., `TypeError: \"...\".npmrc is not a function`). Instead, pass large markdown payloads via the `context` parameter (e.g., `context: { content: \"...\" }`) and reference them as `context.content`, or escape all nested backticks with `\\`.\n18. **Result Size Cap & Auto-Compaction in Code Mode**: The Code Mode sandbox enforces a default 100KB result serialization cap to protect context windows and prevent out-of-memory crashes. If your script returns large payloads (such as querying 50+ entries with complete markdown content), pass `max_result_size: <bytes>` (e.g. `200 * 1024` or `500 * 1024`, up to 50MB) in `mj_execute_code` parameters or context, set the `CODE_MODE_MAX_RESULT_SIZE` environment variable, or select specific fields before returning. When returning oversized collections, the sandbox automatically compacts large markdown strings to preserve execution success.\n\n## GitHub & Kanban Sync\n\n- **Eventual Consistency**: GitHub Projects V2 read indexes are eventually consistent. If you `add_kanban_item` or `move_kanban_item`, a subsequent `get_kanban_board` might take up to 10 seconds to reflect the change.\n- **Multi-Project Routing**: Always pass the `repo` parameter to GitHub tools if your `memory://briefing` indicates you are in a multi-project environment.\n\n## Structural Integrity\n\n- **Session Summaries**: Always use `entry_type: \"retrospective\"` and tag with `session-summary`.\n- **References**: Never guess `entry_id`, `issue_number`, or `pr_number`. Always query them first to avoid broken links.\n- **Significance**: Only mark entries with `significance_type` if they are genuinely major milestones, decisions, or breakthroughs. Overusing this degrades the signal-to-noise ratio of the journal.";
|
|
2
|
+
//# sourceMappingURL=gotchas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gotchas.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/gotchas.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gxVA6C+K,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const IO_HELP = "# IO Operations\n- **Exporting**: Supports exporting entries to JSON or Markdown format. Native Markdown exports (`export_markdown`) include JSON-formatted frontmatter inside `---` delimiters for lossless metadata round-tripping.\n- **Importing**: Supports importing entries from native Markdown files with JSON frontmatter (`import_markdown`) or external Markdown vaults with standard YAML frontmatter such as Obsidian, Notion, and Logseq (`import_external`).\n\n## Available Tools\n\n- **Export**: `export_entries`, `export_markdown`\n- **Import**: `import_markdown`, `import_external`\n";
|
|
2
|
+
//# sourceMappingURL=io.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/io.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,klBAQnB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const RELATIONSHIPS_HELP = "# Relationships Operations\n- **Linking**: Entries can be connected to form a traversable graph. Use explicit relation types like `implements`, `resolved`, `evolves_from`, `references`, `clarifies`, `response_to`, `blocked_by`, or `caused`.\n- **Visualization**: Generates a Mermaid.js graph or standard JSON representation of the relationship network between entries.\n\n## Available Tools\n\n- **Linking**: `link_entries`\n- **Visualization**: `visualize_relationships`\n";
|
|
2
|
+
//# sourceMappingURL=relationships.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/relationships.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8dAQ9B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const SEARCH_HELP = "# Search Operations\n- **Workspace Filtering**: All search and listing operations filter by `workspace_id` if configured. You can query across workspaces by explicitly omitting the workspace or passing an asterisk/wildcard if supported.\n- **CLI Commands**: You can search natively via the CLI by using `memory-journal-mcp search <query>`, or explicitly with the `--query`, `--term`, or `--keyword` flags.\n\n## Available Tools\n\n- **Core Search**: `search_entries`, `search_by_date_range`, `cross_team_search`\n- **Vector/Semantic**: `semantic_search`, `get_vector_index_stats`\n- **Recycle Bin**: `list_deleted_entries`\n\n";
|
|
2
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/search.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,unBAUvB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const TEAM_HELP = "# Team Collaboration\n\n### Team RBAC & Access Control\n\nThe team database features a Role-Based Access Control (RBAC) system for team members:\n- **Roles**: \n - `viewer`: Read-only access to all team data.\n - `member`: Read all, Create/Edit/Delete *own* entries.\n - `admin`: Read/Write/Delete *all* entries, manage team members, rebuild vector indexes, backup data.\n- **Bootstrap Workflow**: The RBAC system is inactive until the first member is added. The first time `team_add_member` is called, the caller is automatically registered as an `admin`. Alternatively, the server can be bootstrapped via the `TEAM_ADMIN` environment variable or `--team-admin` CLI flag. Unregistered authors fall back to the configured `TEAM_DEFAULT_ROLE`.\n- **Managing Members**: Admins can manage members using `team_add_member`, `team_remove_member`, `team_update_member_role`, `team_list_members`, and `team_get_member`. \n- **Author Aliases**: Admins can manage author aliases to consolidate attribution for team analytics when one person uses multiple usernames using `team_add_author_alias`, `team_list_author_aliases`, `team_resolve_author`, `team_remove_author_alias`, and `team_consolidate_authors`.\n- **OAuth Scopes**: OAuth scopes (read/write/admin) govern broad HTTP endpoint access. RBAC roles govern fine-grained internal tool capabilities. Both must be satisfied when OAuth is active.\n\n## Available Tools\n\n- **Core**: `team_create_entry`, `team_get_entry_by_id`, `team_get_recent`, `team_list_tags`\n- **Search**: `team_search`, `team_search_by_date_range`, `team_list_deleted_entries`\n- **Admin**: `team_update_entry`, `team_delete_entry`, `team_restore_entry`, `team_merge_tags`, `team_batch_create_entries`, `team_batch_update_entries`, `team_batch_delete_entries`\n- **Analytics**: `team_get_statistics`, `team_get_cross_project_insights`, `team_get_collaboration_matrix`\n- **Relationships**: `team_link_entries`, `team_visualize_relationships`\n- **IO**: `team_export_entries`, `team_export_markdown`, `team_import_markdown`, `team_import_external`\n- **Backup**: `team_backup`, `team_list_backups`\n- **Vector**: `team_semantic_search`, `team_get_vector_index_stats`, `team_rebuild_vector_index`, `team_add_to_vector_index`\n- **Members**: `team_add_member`, `team_remove_member`, `team_update_member_role`, `team_list_members`, `team_get_member`\n- **Aliases**: `team_add_author_alias`, `team_remove_author_alias`, `team_list_author_aliases`, `team_resolve_author`, `team_consolidate_authors`\n\n";
|
|
2
|
+
//# sourceMappingURL=team.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/team.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,y9EA2BrB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const TEMPLATES_HELP = "# Content Templates\n\nThese templates define the REQUIRED structure for journal entry content by type. Do NOT invent additional top-level sections. Do NOT omit required sections.\n\n## Session Summary (entry\\_type: \"retrospective\", tag: \"session-summary\")\n\n```\n## Accomplished\n- [Concrete item: what was done, key files/PRs/entry IDs]\n- [Another concrete item]\n\n## Unfinished / Blocked\n- [Item: why it's blocked or what remains \u2014 or \"None\" if complete]\n\n## Context for Next Session\n- [Key context the next agent/session needs: branch names, PR numbers, entry IDs, pending decisions]\n\n## Commits\n- `<sha>` \u2014 [Brief commit summary or \"None\"]\n```\n\nDo NOT add extra top-level sections (no \"## Summary\", \"## Overview\", \"## Notes\").\nDo NOT omit any of the four required sections.\nAlways remember to populate the `auto_context` payload parameter with the session's commit SHAs.\n\n## Feature Implementation (entry\\_type: \"feature\\_implementation\")\n\n```\n## Summary\n[1-2 sentence description of the feature]\n\n## Changes\n- [File/module]: [what changed]\n\n## Testing\n- [How it was tested, results]\n\n## Notes\n- [Any gotchas, follow-ups, or related entries]\n```\n\n## Bug Fix (entry\\_type: \"bug\\_fix\")\n\n```\n## Problem\n[What was broken and how it manifested]\n\n## Root Cause\n[Why it happened]\n\n## Fix\n- [What was changed to fix it]\n\n## Verification\n- [How the fix was verified]\n```\n\n## Planning (entry\\_type: \"planning\")\n\n```\n## Goal\n[What this plan aims to achieve]\n\n## Approach\n- [Step or phase]: [description]\n\n## Open Questions\n- [Unresolved decisions or dependencies]\n```\n\n## Technical Note (entry\\_type: \"technical\\_note\")\n\n```\n## Topic\n[What this note documents]\n\n## Details\n[Technical explanation, code patterns, configuration]\n\n## References\n- [Related entries, docs, or external links]\n```\n\n## General Rule\n\nFor any entry type not listed above, structure content with:\n1. A clear `##` heading describing the main topic\n2. Bullet points for discrete items\n3. No invented sections beyond what the content actually covers";
|
|
2
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/constants/instructions/templates.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,0lEAwFqC,CAAC"}
|