@cchistory/lite 0.4.2
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/INSTALL.md +13 -0
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/apps/lite-cli/dist/bin.d.ts +3 -0
- package/apps/lite-cli/dist/bin.d.ts.map +1 -0
- package/apps/lite-cli/dist/bin.js +7 -0
- package/apps/lite-cli/dist/bin.js.map +1 -0
- package/apps/lite-cli/dist/index.d.ts +21 -0
- package/apps/lite-cli/dist/index.d.ts.map +1 -0
- package/apps/lite-cli/dist/index.js +1812 -0
- package/apps/lite-cli/dist/index.js.map +1 -0
- package/apps/lite-cli/dist/index.test.d.ts +2 -0
- package/apps/lite-cli/dist/index.test.d.ts.map +1 -0
- package/apps/lite-cli/dist/index.test.js +1290 -0
- package/apps/lite-cli/dist/index.test.js.map +1 -0
- package/apps/lite-cli/dist/json-v2.d.ts +17 -0
- package/apps/lite-cli/dist/json-v2.d.ts.map +1 -0
- package/apps/lite-cli/dist/json-v2.js +352 -0
- package/apps/lite-cli/dist/json-v2.js.map +1 -0
- package/apps/lite-cli/dist/query.d.ts +50 -0
- package/apps/lite-cli/dist/query.d.ts.map +1 -0
- package/apps/lite-cli/dist/query.js +297 -0
- package/apps/lite-cli/dist/query.js.map +1 -0
- package/apps/lite-cli/dist/shell.d.ts +18 -0
- package/apps/lite-cli/dist/shell.d.ts.map +1 -0
- package/apps/lite-cli/dist/shell.js +276 -0
- package/apps/lite-cli/dist/shell.js.map +1 -0
- package/apps/lite-tui/dist/bin.d.ts +3 -0
- package/apps/lite-tui/dist/bin.d.ts.map +1 -0
- package/apps/lite-tui/dist/bin.js +7 -0
- package/apps/lite-tui/dist/bin.js.map +1 -0
- package/apps/lite-tui/dist/colors.d.ts +49 -0
- package/apps/lite-tui/dist/colors.d.ts.map +1 -0
- package/apps/lite-tui/dist/colors.js +70 -0
- package/apps/lite-tui/dist/colors.js.map +1 -0
- package/apps/lite-tui/dist/index.d.ts +23 -0
- package/apps/lite-tui/dist/index.d.ts.map +1 -0
- package/apps/lite-tui/dist/index.js +519 -0
- package/apps/lite-tui/dist/index.js.map +1 -0
- package/apps/lite-tui/dist/index.test.d.ts +2 -0
- package/apps/lite-tui/dist/index.test.d.ts.map +1 -0
- package/apps/lite-tui/dist/index.test.js +487 -0
- package/apps/lite-tui/dist/index.test.js.map +1 -0
- package/apps/lite-tui/dist/input.d.ts +23 -0
- package/apps/lite-tui/dist/input.d.ts.map +1 -0
- package/apps/lite-tui/dist/input.js +98 -0
- package/apps/lite-tui/dist/input.js.map +1 -0
- package/apps/lite-tui/dist/keys.d.ts +32 -0
- package/apps/lite-tui/dist/keys.d.ts.map +1 -0
- package/apps/lite-tui/dist/keys.js +136 -0
- package/apps/lite-tui/dist/keys.js.map +1 -0
- package/apps/lite-tui/dist/keys.test.d.ts +2 -0
- package/apps/lite-tui/dist/keys.test.d.ts.map +1 -0
- package/apps/lite-tui/dist/keys.test.js +67 -0
- package/apps/lite-tui/dist/keys.test.js.map +1 -0
- package/apps/lite-tui/dist/model.d.ts +88 -0
- package/apps/lite-tui/dist/model.d.ts.map +1 -0
- package/apps/lite-tui/dist/model.js +146 -0
- package/apps/lite-tui/dist/model.js.map +1 -0
- package/apps/lite-tui/dist/render.d.ts +46 -0
- package/apps/lite-tui/dist/render.d.ts.map +1 -0
- package/apps/lite-tui/dist/render.js +706 -0
- package/apps/lite-tui/dist/render.js.map +1 -0
- package/apps/lite-tui/dist/render.test.d.ts +2 -0
- package/apps/lite-tui/dist/render.test.d.ts.map +1 -0
- package/apps/lite-tui/dist/render.test.js +594 -0
- package/apps/lite-tui/dist/render.test.js.map +1 -0
- package/apps/lite-tui/dist/state.d.ts +127 -0
- package/apps/lite-tui/dist/state.d.ts.map +1 -0
- package/apps/lite-tui/dist/state.js +391 -0
- package/apps/lite-tui/dist/state.js.map +1 -0
- package/apps/lite-tui/dist/state.test.d.ts +2 -0
- package/apps/lite-tui/dist/state.test.d.ts.map +1 -0
- package/apps/lite-tui/dist/state.test.js +331 -0
- package/apps/lite-tui/dist/state.test.js.map +1 -0
- package/apps/lite-tui/dist/text.d.ts +38 -0
- package/apps/lite-tui/dist/text.d.ts.map +1 -0
- package/apps/lite-tui/dist/text.js +246 -0
- package/apps/lite-tui/dist/text.js.map +1 -0
- package/apps/lite-tui/dist/version.d.ts +10 -0
- package/apps/lite-tui/dist/version.d.ts.map +1 -0
- package/apps/lite-tui/dist/version.js +10 -0
- package/apps/lite-tui/dist/version.js.map +1 -0
- package/apps/lite-tui/dist/view-model.d.ts +26 -0
- package/apps/lite-tui/dist/view-model.d.ts.map +1 -0
- package/apps/lite-tui/dist/view-model.js +87 -0
- package/apps/lite-tui/dist/view-model.js.map +1 -0
- package/bin/cchistory-lite +3 -0
- package/bin/cchistory-lite-tui +3 -0
- package/bin/cchistory-lite-tui.cmd +3 -0
- package/bin/cchistory-lite-tui.mjs +7 -0
- package/bin/cchistory-lite.cmd +3 -0
- package/bin/cchistory-lite.mjs +11 -0
- package/node_modules/@cchistory/canonical/dist/directory-scope.d.ts +33 -0
- package/node_modules/@cchistory/canonical/dist/directory-scope.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/directory-scope.js +95 -0
- package/node_modules/@cchistory/canonical/dist/directory-scope.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/fallback-projects.d.ts +14 -0
- package/node_modules/@cchistory/canonical/dist/fallback-projects.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/fallback-projects.js +120 -0
- package/node_modules/@cchistory/canonical/dist/fallback-projects.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/index.d.ts +12 -0
- package/node_modules/@cchistory/canonical/dist/index.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/index.js +12 -0
- package/node_modules/@cchistory/canonical/dist/index.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/index.test.d.ts +2 -0
- package/node_modules/@cchistory/canonical/dist/index.test.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/index.test.js +901 -0
- package/node_modules/@cchistory/canonical/dist/index.test.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/project-linker.d.ts +30 -0
- package/node_modules/@cchistory/canonical/dist/project-linker.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/project-linker.js +720 -0
- package/node_modules/@cchistory/canonical/dist/project-linker.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/projection-audit.d.ts +23 -0
- package/node_modules/@cchistory/canonical/dist/projection-audit.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/projection-audit.js +192 -0
- package/node_modules/@cchistory/canonical/dist/projection-audit.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/read-order.d.ts +19 -0
- package/node_modules/@cchistory/canonical/dist/read-order.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/read-order.js +73 -0
- package/node_modules/@cchistory/canonical/dist/read-order.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/related-work.d.ts +4 -0
- package/node_modules/@cchistory/canonical/dist/related-work.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/related-work.js +232 -0
- package/node_modules/@cchistory/canonical/dist/related-work.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/runtime-warning-filter.d.ts +10 -0
- package/node_modules/@cchistory/canonical/dist/runtime-warning-filter.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/runtime-warning-filter.js +34 -0
- package/node_modules/@cchistory/canonical/dist/runtime-warning-filter.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/search.d.ts +69 -0
- package/node_modules/@cchistory/canonical/dist/search.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/search.js +337 -0
- package/node_modules/@cchistory/canonical/dist/search.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-collections.d.ts +8 -0
- package/node_modules/@cchistory/canonical/dist/session-collections.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-collections.js +21 -0
- package/node_modules/@cchistory/canonical/dist/session-collections.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-family.d.ts +23 -0
- package/node_modules/@cchistory/canonical/dist/session-family.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-family.js +808 -0
- package/node_modules/@cchistory/canonical/dist/session-family.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-family.test.d.ts +2 -0
- package/node_modules/@cchistory/canonical/dist/session-family.test.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-family.test.js +650 -0
- package/node_modules/@cchistory/canonical/dist/session-family.test.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/usage.d.ts +79 -0
- package/node_modules/@cchistory/canonical/dist/usage.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/usage.js +232 -0
- package/node_modules/@cchistory/canonical/dist/usage.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/utils.d.ts +5 -0
- package/node_modules/@cchistory/canonical/dist/utils.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/utils.js +18 -0
- package/node_modules/@cchistory/canonical/dist/utils.js.map +1 -0
- package/node_modules/@cchistory/canonical/package.json +14 -0
- package/node_modules/@cchistory/domain/dist/index.d.ts +943 -0
- package/node_modules/@cchistory/domain/dist/index.d.ts.map +1 -0
- package/node_modules/@cchistory/domain/dist/index.js +238 -0
- package/node_modules/@cchistory/domain/dist/index.js.map +1 -0
- package/node_modules/@cchistory/domain/dist/index.test.d.ts +2 -0
- package/node_modules/@cchistory/domain/dist/index.test.d.ts.map +1 -0
- package/node_modules/@cchistory/domain/dist/index.test.js +423 -0
- package/node_modules/@cchistory/domain/dist/index.test.js.map +1 -0
- package/node_modules/@cchistory/domain/package.json +14 -0
- package/node_modules/@cchistory/live-runtime/dist/async-pool.d.ts +3 -0
- package/node_modules/@cchistory/live-runtime/dist/async-pool.d.ts.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/async-pool.js +19 -0
- package/node_modules/@cchistory/live-runtime/dist/async-pool.js.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/bootstrap.d.ts +3 -0
- package/node_modules/@cchistory/live-runtime/dist/bootstrap.d.ts.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/bootstrap.js +22 -0
- package/node_modules/@cchistory/live-runtime/dist/bootstrap.js.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/index.d.ts +149 -0
- package/node_modules/@cchistory/live-runtime/dist/index.d.ts.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/index.js +1180 -0
- package/node_modules/@cchistory/live-runtime/dist/index.js.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/index.test.d.ts +2 -0
- package/node_modules/@cchistory/live-runtime/dist/index.test.d.ts.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/index.test.js +1819 -0
- package/node_modules/@cchistory/live-runtime/dist/index.test.js.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/node-memory.d.ts +5 -0
- package/node_modules/@cchistory/live-runtime/dist/node-memory.d.ts.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/node-memory.js +83 -0
- package/node_modules/@cchistory/live-runtime/dist/node-memory.js.map +1 -0
- package/node_modules/@cchistory/live-runtime/package.json +18 -0
- package/node_modules/@cchistory/source-adapters/dist/core/antigravity-logic.d.ts +8 -0
- package/node_modules/@cchistory/source-adapters/dist/core/antigravity-logic.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/antigravity-logic.js +115 -0
- package/node_modules/@cchistory/source-adapters/dist/core/antigravity-logic.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user-registry.d.ts +9 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user-registry.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user-registry.js +223 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user-registry.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user.test.js +318 -0
- package/node_modules/@cchistory/source-adapters/dist/core/ask-user.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/atomizer.d.ts +11 -0
- package/node_modules/@cchistory/source-adapters/dist/core/atomizer.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/atomizer.js +206 -0
- package/node_modules/@cchistory/source-adapters/dist/core/atomizer.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.d.ts +62 -0
- package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.js +224 -0
- package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.d.ts +15 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.js +96 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.test.js +97 -0
- package/node_modules/@cchistory/source-adapters/dist/core/directory-preview.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.d.ts +11 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.js +412 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.test.js +552 -0
- package/node_modules/@cchistory/source-adapters/dist/core/discovery.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/factories.d.ts +10 -0
- package/node_modules/@cchistory/source-adapters/dist/core/factories.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/factories.js +83 -0
- package/node_modules/@cchistory/source-adapters/dist/core/factories.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts +5 -0
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.js +86 -0
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.d.ts +31 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.js +216 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.test.js +367 -0
- package/node_modules/@cchistory/source-adapters/dist/core/jsonl-records.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/legacy.d.ts +10 -0
- package/node_modules/@cchistory/source-adapters/dist/core/legacy.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/legacy.js +10 -0
- package/node_modules/@cchistory/source-adapters/dist/core/legacy.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/parser.d.ts +70 -0
- package/node_modules/@cchistory/source-adapters/dist/core/parser.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/parser.js +1389 -0
- package/node_modules/@cchistory/source-adapters/dist/core/parser.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.d.ts +15 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.js +76 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.test.js +33 -0
- package/node_modules/@cchistory/source-adapters/dist/core/path-utils.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/probe.d.ts +24 -0
- package/node_modules/@cchistory/source-adapters/dist/core/probe.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/probe.js +1829 -0
- package/node_modules/@cchistory/source-adapters/dist/core/probe.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.d.ts +39 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.js +873 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.test.js +165 -0
- package/node_modules/@cchistory/source-adapters/dist/core/projections.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/registry.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/registry.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/registry.test.js +87 -0
- package/node_modules/@cchistory/source-adapters/dist/core/registry.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping-worker.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping-worker.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping-worker.js +10 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping-worker.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.d.ts +29 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.js +455 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.test.js +357 -0
- package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/source-identity.d.ts +25 -0
- package/node_modules/@cchistory/source-adapters/dist/core/source-identity.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/source-identity.js +144 -0
- package/node_modules/@cchistory/source-adapters/dist/core/source-identity.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/token-usage.d.ts +14 -0
- package/node_modules/@cchistory/source-adapters/dist/core/token-usage.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/token-usage.js +247 -0
- package/node_modules/@cchistory/source-adapters/dist/core/token-usage.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/tokens.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/tokens.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/tokens.test.js +323 -0
- package/node_modules/@cchistory/source-adapters/dist/core/tokens.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/type-guards.d.ts +26 -0
- package/node_modules/@cchistory/source-adapters/dist/core/type-guards.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/type-guards.js +80 -0
- package/node_modules/@cchistory/source-adapters/dist/core/type-guards.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/types.d.ts +226 -0
- package/node_modules/@cchistory/source-adapters/dist/core/types.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/types.js +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/types.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/user-text.d.ts +29 -0
- package/node_modules/@cchistory/source-adapters/dist/core/user-text.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/user-text.js +327 -0
- package/node_modules/@cchistory/source-adapters/dist/core/user-text.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.d.ts +11 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.js +19 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.test.js +289 -0
- package/node_modules/@cchistory/source-adapters/dist/core/utils.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/vscode-state.d.ts +43 -0
- package/node_modules/@cchistory/source-adapters/dist/core/vscode-state.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/core/vscode-state.js +520 -0
- package/node_modules/@cchistory/source-adapters/dist/core/vscode-state.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/index.d.ts +13 -0
- package/node_modules/@cchistory/source-adapters/dist/index.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/index.js +8 -0
- package/node_modules/@cchistory/source-adapters/dist/index.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts +31 -0
- package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/index.test.js +31 -0
- package/node_modules/@cchistory/source-adapters/dist/index.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/masks.d.ts +31 -0
- package/node_modules/@cchistory/source-adapters/dist/masks.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/masks.js +342 -0
- package/node_modules/@cchistory/source-adapters/dist/masks.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio/runtime.d.ts +31 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio/runtime.js +161 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.js +107 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.test.js +202 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/accio.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp/runtime.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp/runtime.js +85 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.js +10 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.test.js +105 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/amp.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/live.d.ts +45 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/live.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/live.js +609 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/live.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/runtime.d.ts +16 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/runtime.js +534 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.d.ts +12 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.js +105 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.test.js +820 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/antigravity.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code/runtime.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code/runtime.js +130 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code.js +10 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude-code.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude.test.js +357 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/claude.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.js +27 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.test.js +49 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codebuddy.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex/runtime.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex/runtime.js +555 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.js +15 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.test.js +893 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/codex.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor/runtime.d.ts +70 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor/runtime.js +786 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.js +14 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.test.js +154 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.js +151 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.test.js +1486 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/cursor.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid/runtime.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid/runtime.js +229 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.js +10 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.test.js +222 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/factory-droid.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.d.ts +7 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.js +65 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.test.js +220 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/gemini.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.d.ts +20 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.js +365 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok/runtime.d.ts +17 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok/runtime.js +498 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.d.ts +36 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.js +261 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.test.js +565 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/grok.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi/runtime.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi/runtime.js +193 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.d.ts +7 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.js +55 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.test.js +163 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/kimi.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.js +10 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.test.js +179 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/lobechat.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw/runtime.d.ts +4 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw/runtime.js +44 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.js +60 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.test.js +39 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/openclaw.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.js +45 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.test.js +170 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/registry.d.ts +7 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/registry.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/registry.js +52 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/registry.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/runtime-types.d.ts +104 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/runtime-types.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/runtime-types.js +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/runtime-types.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/types.d.ts +38 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/types.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/types.js +19 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/types.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode/runtime.d.ts +14 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode/runtime.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode/runtime.js +283 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode/runtime.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.d.ts +3 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.js +26 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.test.js +411 -0
- package/node_modules/@cchistory/source-adapters/dist/platforms/zcode.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/test-helpers.d.ts +85 -0
- package/node_modules/@cchistory/source-adapters/dist/test-helpers.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/test-helpers.js +2106 -0
- package/node_modules/@cchistory/source-adapters/dist/test-helpers.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/package.json +14 -0
- package/package.json +38 -0
- package/schemas/cchistory-lite-canonical-v1.schema.json +13 -0
- package/schemas/cchistory-lite-error-v1.schema.json +30 -0
- package/schemas/cchistory-lite-query-result-v1.schema.json +29 -0
- package/schemas/cchistory-lite-query-result-v2.schema.json +29 -0
- package/schemas/cchistory-lite-query-v1.schema.json +62 -0
- package/schemas/cchistory-lite-query-v2.schema.json +82 -0
- package/schemas/cchistory-lite-v2.schema.json +176 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main test entry point for source-adapters.
|
|
3
|
+
* Tests are split into multiple files under core/ and platforms/
|
|
4
|
+
*/
|
|
5
|
+
import "./core/registry.test.js";
|
|
6
|
+
import "./core/discovery.test.js";
|
|
7
|
+
import "./core/projections.test.js";
|
|
8
|
+
import "./core/ask-user.test.js";
|
|
9
|
+
import "./core/tokens.test.js";
|
|
10
|
+
import "./core/utils.test.js";
|
|
11
|
+
import "./core/path-utils.test.js";
|
|
12
|
+
import "./core/jsonl-records.test.js";
|
|
13
|
+
import "./core/session-grouping.test.js";
|
|
14
|
+
import "./core/directory-preview.test.js";
|
|
15
|
+
import "./platforms/cursor.test.js";
|
|
16
|
+
import "./platforms/antigravity.test.js";
|
|
17
|
+
import "./platforms/openclaw.test.js";
|
|
18
|
+
import "./platforms/opencode.test.js";
|
|
19
|
+
import "./platforms/claude.test.js";
|
|
20
|
+
import "./platforms/codex.test.js";
|
|
21
|
+
import "./platforms/gemini.test.js";
|
|
22
|
+
import "./platforms/amp.test.js";
|
|
23
|
+
import "./platforms/lobechat.test.js";
|
|
24
|
+
import "./platforms/factory-droid.test.js";
|
|
25
|
+
import "./platforms/codebuddy.test.js";
|
|
26
|
+
import "./platforms/accio.test.js";
|
|
27
|
+
import "./platforms/zcode.test.js";
|
|
28
|
+
import "./platforms/kimi.test.js";
|
|
29
|
+
import "./platforms/cursor-agent.test.js";
|
|
30
|
+
import "./platforms/grok.test.js";
|
|
31
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,2BAA2B,CAAC;AACnC,OAAO,8BAA8B,CAAC;AACtC,OAAO,iCAAiC,CAAC;AACzC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,4BAA4B,CAAC;AACpC,OAAO,iCAAiC,CAAC;AACzC,OAAO,8BAA8B,CAAC;AACtC,OAAO,8BAA8B,CAAC;AACtC,OAAO,4BAA4B,CAAC;AACpC,OAAO,2BAA2B,CAAC;AACnC,OAAO,4BAA4B,CAAC;AACpC,OAAO,yBAAyB,CAAC;AACjC,OAAO,8BAA8B,CAAC;AACtC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,0BAA0B,CAAC;AAClC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DisplaySegment } from "@cchistory/domain";
|
|
2
|
+
export type MaskApplicationContext = "user_message" | "system_message" | "assistant_reply" | "tool_input" | "tool_output";
|
|
3
|
+
export type BuiltinMaskMatchType = "regex" | "prefix" | "contains";
|
|
4
|
+
export interface BuiltinMaskTemplate {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
match_type: BuiltinMaskMatchType;
|
|
9
|
+
match_pattern: string;
|
|
10
|
+
action: "collapse";
|
|
11
|
+
collapse_label: string;
|
|
12
|
+
priority: number;
|
|
13
|
+
applies_to: MaskApplicationContext[];
|
|
14
|
+
is_builtin: true;
|
|
15
|
+
is_active: boolean;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
}
|
|
19
|
+
interface MaskApplicationResult {
|
|
20
|
+
display_segments: DisplaySegment[];
|
|
21
|
+
canonical_text: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const LITERAL_PROMPT_MASK_TEMPLATE_IDS: readonly ["mask-agents-md-instructions", "mask-standalone-instructions-block", "mask-environment-context-block", "mask-system-reminder-block", "mask-codex-skills-catalog", "mask-skills-instructions-block", "mask-permissions-instructions-block", "mask-collaboration-mode-block", "mask-recommended-plugins-block"];
|
|
24
|
+
export declare function getBuiltinMaskTemplates(): BuiltinMaskTemplate[];
|
|
25
|
+
export declare function applyMaskTemplates(rawText: string, context: MaskApplicationContext, options?: {
|
|
26
|
+
injected?: boolean;
|
|
27
|
+
exclude_template_ids?: readonly string[];
|
|
28
|
+
}): MaskApplicationResult;
|
|
29
|
+
export declare function extractCanonicalText(segments: readonly DisplaySegment[]): string;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=masks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"masks.d.ts","sourceRoot":"","sources":["../src/masks.ts"],"names":[],"mappings":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ask-agents-md-instructions",
|
|
3
|
+
"mask-standalone-instructions-block",
|
|
4
|
+
"mask-environment-context-block",
|
|
5
|
+
"mask-system-reminder-block",
|
|
6
|
+
"mask-codex-skills-catalog",
|
|
7
|
+
"mask-skills-instructions-block",
|
|
8
|
+
"mask-permissions-instructions-block",
|
|
9
|
+
"mask-collaboration-mode-block",
|
|
10
|
+
"mask-recommended-plugins-block",
|
|
11
|
+
];
|
|
12
|
+
const BUILTIN_MASK_TEMPLATES = [
|
|
13
|
+
{
|
|
14
|
+
id: "mask-agents-md-instructions",
|
|
15
|
+
name: "AGENTS.md Instructions",
|
|
16
|
+
description: "Collapses injected AGENTS.md scaffolding while preserving the original evidence for expansion.",
|
|
17
|
+
match_type: "regex",
|
|
18
|
+
match_pattern: "# AGENTS\\.md instructions[^\\n]*\\n\\n<INSTRUCTIONS>[\\s\\S]*?</INSTRUCTIONS>",
|
|
19
|
+
action: "collapse",
|
|
20
|
+
collapse_label: "Agent Instructions",
|
|
21
|
+
priority: 0,
|
|
22
|
+
applies_to: ["user_message", "system_message"],
|
|
23
|
+
is_builtin: true,
|
|
24
|
+
is_active: true,
|
|
25
|
+
created_at: "2026-03-12T00:00:00.000Z",
|
|
26
|
+
updated_at: "2026-03-12T00:00:00.000Z",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "mask-standalone-instructions-block",
|
|
30
|
+
name: "Standalone Instructions Block",
|
|
31
|
+
description: "Collapses injected instruction envelopes that arrive without an AGENTS.md heading.",
|
|
32
|
+
match_type: "regex",
|
|
33
|
+
match_pattern: "<INSTRUCTIONS>[\\s\\S]*?</INSTRUCTIONS>",
|
|
34
|
+
action: "collapse",
|
|
35
|
+
collapse_label: "Instructions",
|
|
36
|
+
priority: 1,
|
|
37
|
+
applies_to: ["user_message", "system_message"],
|
|
38
|
+
is_builtin: true,
|
|
39
|
+
is_active: true,
|
|
40
|
+
created_at: "2026-03-12T00:00:00.000Z",
|
|
41
|
+
updated_at: "2026-03-12T00:00:00.000Z",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "mask-environment-context-block",
|
|
45
|
+
name: "Environment Context",
|
|
46
|
+
description: "Collapses injected execution environment envelopes while preserving expandable evidence.",
|
|
47
|
+
match_type: "regex",
|
|
48
|
+
match_pattern: "<environment_context>[\\s\\S]*?</environment_context>",
|
|
49
|
+
action: "collapse",
|
|
50
|
+
collapse_label: "Environment Context",
|
|
51
|
+
priority: 2,
|
|
52
|
+
applies_to: ["user_message", "system_message"],
|
|
53
|
+
is_builtin: true,
|
|
54
|
+
is_active: true,
|
|
55
|
+
created_at: "2026-03-12T00:00:00.000Z",
|
|
56
|
+
updated_at: "2026-03-12T00:00:00.000Z",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "mask-system-reminder-block",
|
|
60
|
+
name: "System Reminder",
|
|
61
|
+
description: "Collapses injected reminder envelopes in captured user-shaped text.",
|
|
62
|
+
match_type: "regex",
|
|
63
|
+
match_pattern: "<system-reminder>[\\s\\S]*?</system-reminder>",
|
|
64
|
+
action: "collapse",
|
|
65
|
+
collapse_label: "System Reminder",
|
|
66
|
+
priority: 3,
|
|
67
|
+
applies_to: ["user_message", "system_message"],
|
|
68
|
+
is_builtin: true,
|
|
69
|
+
is_active: true,
|
|
70
|
+
created_at: "2026-03-12T00:00:00.000Z",
|
|
71
|
+
updated_at: "2026-03-12T00:00:00.000Z",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: "mask-codex-skills-catalog",
|
|
75
|
+
name: "Codex Skills Catalog",
|
|
76
|
+
description: "Collapses the injected Codex skills catalog that precedes a user request.",
|
|
77
|
+
match_type: "regex",
|
|
78
|
+
match_pattern: "## Skills\\nA skill is a set of local instructions[\\s\\S]*?</INSTRUCTIONS>",
|
|
79
|
+
action: "collapse",
|
|
80
|
+
collapse_label: "Skills Instructions",
|
|
81
|
+
priority: 4,
|
|
82
|
+
applies_to: ["user_message", "system_message"],
|
|
83
|
+
is_builtin: true,
|
|
84
|
+
is_active: true,
|
|
85
|
+
created_at: "2026-08-11T00:00:00.000Z",
|
|
86
|
+
updated_at: "2026-08-11T00:00:00.000Z",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: "mask-skills-instructions-block",
|
|
90
|
+
name: "Skills Instructions Block",
|
|
91
|
+
description: "Collapses structured injected skills instructions.",
|
|
92
|
+
match_type: "regex",
|
|
93
|
+
match_pattern: "<skills_instructions>[\\s\\S]*?</skills_instructions>",
|
|
94
|
+
action: "collapse",
|
|
95
|
+
collapse_label: "Skills Instructions",
|
|
96
|
+
priority: 5,
|
|
97
|
+
applies_to: ["user_message", "system_message"],
|
|
98
|
+
is_builtin: true,
|
|
99
|
+
is_active: true,
|
|
100
|
+
created_at: "2026-08-11T00:00:00.000Z",
|
|
101
|
+
updated_at: "2026-08-11T00:00:00.000Z",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: "mask-permissions-instructions-block",
|
|
105
|
+
name: "Permissions Instructions Block",
|
|
106
|
+
description: "Collapses structured injected permission instructions.",
|
|
107
|
+
match_type: "regex",
|
|
108
|
+
match_pattern: "<permissions instructions>[\\s\\S]*?</permissions instructions>",
|
|
109
|
+
action: "collapse",
|
|
110
|
+
collapse_label: "Permissions Instructions",
|
|
111
|
+
priority: 6,
|
|
112
|
+
applies_to: ["user_message", "system_message"],
|
|
113
|
+
is_builtin: true,
|
|
114
|
+
is_active: true,
|
|
115
|
+
created_at: "2026-08-11T00:00:00.000Z",
|
|
116
|
+
updated_at: "2026-08-11T00:00:00.000Z",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "mask-collaboration-mode-block",
|
|
120
|
+
name: "Collaboration Mode Block",
|
|
121
|
+
description: "Collapses structured injected collaboration-mode instructions.",
|
|
122
|
+
match_type: "regex",
|
|
123
|
+
match_pattern: "<collaboration_mode>[\\s\\S]*?</collaboration_mode>",
|
|
124
|
+
action: "collapse",
|
|
125
|
+
collapse_label: "Collaboration Mode",
|
|
126
|
+
priority: 7,
|
|
127
|
+
applies_to: ["user_message", "system_message"],
|
|
128
|
+
is_builtin: true,
|
|
129
|
+
is_active: true,
|
|
130
|
+
created_at: "2026-08-11T00:00:00.000Z",
|
|
131
|
+
updated_at: "2026-08-11T00:00:00.000Z",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "mask-recommended-plugins-block",
|
|
135
|
+
name: "Recommended Plugins Catalog",
|
|
136
|
+
description: "Collapses the injected Codex plugin catalog that precedes a user request.",
|
|
137
|
+
match_type: "regex",
|
|
138
|
+
match_pattern: "<recommended_plugins>[\\s\\S]*?</recommended_plugins>",
|
|
139
|
+
action: "collapse",
|
|
140
|
+
collapse_label: "Recommended Plugins",
|
|
141
|
+
priority: 8,
|
|
142
|
+
applies_to: ["user_message", "system_message"],
|
|
143
|
+
is_builtin: true,
|
|
144
|
+
is_active: true,
|
|
145
|
+
created_at: "2026-08-30T00:00:00.000Z",
|
|
146
|
+
updated_at: "2026-08-30T00:00:00.000Z",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
id: "mask-system-prompt-prefix",
|
|
150
|
+
name: "System Prompt Prefix",
|
|
151
|
+
description: "Collapses assistant or system prompt prefixes that start with common agent instructions.",
|
|
152
|
+
match_type: "prefix",
|
|
153
|
+
match_pattern: "You are",
|
|
154
|
+
action: "collapse",
|
|
155
|
+
collapse_label: "System Prompt",
|
|
156
|
+
priority: 8,
|
|
157
|
+
applies_to: ["system_message", "assistant_reply"],
|
|
158
|
+
is_builtin: true,
|
|
159
|
+
is_active: true,
|
|
160
|
+
created_at: "2026-03-09T00:00:00.000Z",
|
|
161
|
+
updated_at: "2026-03-09T00:00:00.000Z",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "mask-openai-key",
|
|
165
|
+
name: "OpenAI API Key",
|
|
166
|
+
description: "Collapses OpenAI-style API keys.",
|
|
167
|
+
match_type: "regex",
|
|
168
|
+
match_pattern: "sk-[A-Za-z0-9]{20,}",
|
|
169
|
+
action: "collapse",
|
|
170
|
+
collapse_label: "API Key",
|
|
171
|
+
priority: 9,
|
|
172
|
+
applies_to: ["user_message", "system_message", "assistant_reply", "tool_input", "tool_output"],
|
|
173
|
+
is_builtin: true,
|
|
174
|
+
is_active: true,
|
|
175
|
+
created_at: "2026-03-09T00:00:00.000Z",
|
|
176
|
+
updated_at: "2026-03-09T00:00:00.000Z",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "mask-private-key",
|
|
180
|
+
name: "Private Key Block",
|
|
181
|
+
description: "Collapses PEM and SSH private key blocks.",
|
|
182
|
+
match_type: "regex",
|
|
183
|
+
match_pattern: "-----BEGIN [A-Z ]*PRIVATE KEY-----[\\s\\S]*?-----END [A-Z ]*PRIVATE KEY-----",
|
|
184
|
+
action: "collapse",
|
|
185
|
+
collapse_label: "Private Key",
|
|
186
|
+
priority: 10,
|
|
187
|
+
applies_to: ["user_message", "system_message", "assistant_reply", "tool_input", "tool_output"],
|
|
188
|
+
is_builtin: true,
|
|
189
|
+
is_active: true,
|
|
190
|
+
created_at: "2026-03-09T00:00:00.000Z",
|
|
191
|
+
updated_at: "2026-03-09T00:00:00.000Z",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "mask-bearer-token",
|
|
195
|
+
name: "Bearer Token",
|
|
196
|
+
description: "Collapses bearer tokens in tool payloads and messages.",
|
|
197
|
+
match_type: "regex",
|
|
198
|
+
match_pattern: "Bearer\\s+[A-Za-z0-9._\\-]{16,}",
|
|
199
|
+
action: "collapse",
|
|
200
|
+
collapse_label: "Bearer Token",
|
|
201
|
+
priority: 11,
|
|
202
|
+
applies_to: ["user_message", "system_message", "assistant_reply", "tool_input", "tool_output"],
|
|
203
|
+
is_builtin: true,
|
|
204
|
+
is_active: true,
|
|
205
|
+
created_at: "2026-03-09T00:00:00.000Z",
|
|
206
|
+
updated_at: "2026-03-09T00:00:00.000Z",
|
|
207
|
+
},
|
|
208
|
+
];
|
|
209
|
+
export function getBuiltinMaskTemplates() {
|
|
210
|
+
return BUILTIN_MASK_TEMPLATES.map((template) => ({ ...template, applies_to: [...template.applies_to] }));
|
|
211
|
+
}
|
|
212
|
+
export function applyMaskTemplates(rawText, context, options = {}) {
|
|
213
|
+
if (rawText.length === 0) {
|
|
214
|
+
return { display_segments: [{ type: options.injected ? "injected" : "text", content: "" }], canonical_text: "" };
|
|
215
|
+
}
|
|
216
|
+
const excludedTemplateIds = new Set(options.exclude_template_ids ?? []);
|
|
217
|
+
const templates = getBuiltinMaskTemplates()
|
|
218
|
+
.filter((template) => template.is_active &&
|
|
219
|
+
template.applies_to.includes(context) &&
|
|
220
|
+
!excludedTemplateIds.has(template.id))
|
|
221
|
+
.sort((left, right) => left.priority - right.priority);
|
|
222
|
+
const regions = [];
|
|
223
|
+
for (const template of templates) {
|
|
224
|
+
for (const region of findMatches(rawText, template)) {
|
|
225
|
+
if (regions.some((existing) => overlaps(region, existing))) {
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
regions.push(region);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
regions.sort((left, right) => left.start - right.start);
|
|
232
|
+
const displaySegments = [];
|
|
233
|
+
let cursor = 0;
|
|
234
|
+
for (const region of regions) {
|
|
235
|
+
if (region.start > cursor) {
|
|
236
|
+
displaySegments.push({
|
|
237
|
+
type: options.injected ? "injected" : "text",
|
|
238
|
+
content: rawText.slice(cursor, region.start),
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
displaySegments.push({
|
|
242
|
+
type: "masked",
|
|
243
|
+
content: `[MASKED: ${region.template.collapse_label}]`,
|
|
244
|
+
mask_label: region.template.collapse_label,
|
|
245
|
+
mask_char_count: region.content.length,
|
|
246
|
+
mask_template_id: region.template.id,
|
|
247
|
+
original_content: region.content,
|
|
248
|
+
is_expanded: false,
|
|
249
|
+
});
|
|
250
|
+
cursor = region.end;
|
|
251
|
+
}
|
|
252
|
+
if (cursor < rawText.length) {
|
|
253
|
+
displaySegments.push({
|
|
254
|
+
type: options.injected ? "injected" : "text",
|
|
255
|
+
content: rawText.slice(cursor),
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
const canonicalText = extractCanonicalText(displaySegments);
|
|
259
|
+
return {
|
|
260
|
+
display_segments: displaySegments.length > 0 ? displaySegments : [{ type: options.injected ? "injected" : "text", content: rawText }],
|
|
261
|
+
canonical_text: canonicalText,
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
export function extractCanonicalText(segments) {
|
|
265
|
+
return segments
|
|
266
|
+
.map((segment) => {
|
|
267
|
+
if (segment.type === "masked" || segment.type === "injected") {
|
|
268
|
+
return "";
|
|
269
|
+
}
|
|
270
|
+
return segment.content;
|
|
271
|
+
})
|
|
272
|
+
.join("")
|
|
273
|
+
.replace(/[ \t]+\n/g, "\n")
|
|
274
|
+
.replace(/\n{3,}/g, "\n\n")
|
|
275
|
+
.trim();
|
|
276
|
+
}
|
|
277
|
+
function findMatches(rawText, template) {
|
|
278
|
+
if (template.match_type === "prefix") {
|
|
279
|
+
if (!rawText.startsWith(template.match_pattern)) {
|
|
280
|
+
return [];
|
|
281
|
+
}
|
|
282
|
+
return [
|
|
283
|
+
{
|
|
284
|
+
start: 0,
|
|
285
|
+
end: findPrefixEnd(rawText),
|
|
286
|
+
content: rawText.slice(0, findPrefixEnd(rawText)),
|
|
287
|
+
template,
|
|
288
|
+
},
|
|
289
|
+
];
|
|
290
|
+
}
|
|
291
|
+
if (template.match_type === "contains") {
|
|
292
|
+
const regions = [];
|
|
293
|
+
let cursor = 0;
|
|
294
|
+
while (cursor < rawText.length) {
|
|
295
|
+
const foundAt = rawText.indexOf(template.match_pattern, cursor);
|
|
296
|
+
if (foundAt < 0) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
regions.push({
|
|
300
|
+
start: foundAt,
|
|
301
|
+
end: foundAt + template.match_pattern.length,
|
|
302
|
+
content: rawText.slice(foundAt, foundAt + template.match_pattern.length),
|
|
303
|
+
template,
|
|
304
|
+
});
|
|
305
|
+
cursor = foundAt + template.match_pattern.length;
|
|
306
|
+
}
|
|
307
|
+
return regions;
|
|
308
|
+
}
|
|
309
|
+
try {
|
|
310
|
+
const regex = new RegExp(template.match_pattern, "g");
|
|
311
|
+
const regions = [];
|
|
312
|
+
for (let match = regex.exec(rawText); match; match = regex.exec(rawText)) {
|
|
313
|
+
regions.push({
|
|
314
|
+
start: match.index,
|
|
315
|
+
end: match.index + match[0].length,
|
|
316
|
+
content: match[0],
|
|
317
|
+
template,
|
|
318
|
+
});
|
|
319
|
+
if (match[0].length === 0) {
|
|
320
|
+
regex.lastIndex += 1;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return regions;
|
|
324
|
+
}
|
|
325
|
+
catch {
|
|
326
|
+
return [];
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function findPrefixEnd(rawText) {
|
|
330
|
+
const separatorCandidates = ["\n\n====", "\n\n---", "\n\nUser:", "\n\nHuman:", "\n\n# "];
|
|
331
|
+
for (const separator of separatorCandidates) {
|
|
332
|
+
const index = rawText.indexOf(separator);
|
|
333
|
+
if (index >= 0) {
|
|
334
|
+
return index;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return Math.min(rawText.length, 4000);
|
|
338
|
+
}
|
|
339
|
+
function overlaps(left, right) {
|
|
340
|
+
return left.start < right.end && right.start < left.end;
|
|
341
|
+
}
|
|
342
|
+
//# sourceMappingURL=masks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"masks.js","sourceRoot":"","sources":["../src/masks.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,6BAA6B;IAC7B,oCAAoC;IACpC,gCAAgC;IAChC,4BAA4B;IAC5B,2BAA2B;IAC3B,gCAAgC;IAChC,qCAAqC;IACrC,+BAA+B;IAC/B,gCAAgC;CACxB,CAAC;AAEX,MAAM,s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;YACH,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC1B,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAe;IACpC,MAAM,mBAAmB,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;IACzF,KAAK,MAAM,SAAS,IAAI,mBAAmB,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACzC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACf,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC;AAED,SAAS,QAAQ,CAAC,IAAiB,EAAE,KAAkB;IACrD,OAAO,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RawRecord } from "@cchistory/domain";
|
|
2
|
+
import type { FragmentBuildContextLike, GenericParseRuntimeHelpers, ParseRuntimeResult, SessionDraftLike } from "../runtime-types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Accio agent-layer message schema:
|
|
5
|
+
*
|
|
6
|
+
* {
|
|
7
|
+
* id: string,
|
|
8
|
+
* timestamp: number (epoch ms),
|
|
9
|
+
* role: "user" | "assistant" | "tool" | "system",
|
|
10
|
+
* content: string,
|
|
11
|
+
* messageType?: "normal" | "tool_call" | "tool_result",
|
|
12
|
+
* toolCalls?: Array<{ id, name, arguments: Record<string, unknown> }>,
|
|
13
|
+
* metadata?: {
|
|
14
|
+
* usage?: { prompt_tokens, completion_tokens, total_tokens, reasoning_tokens },
|
|
15
|
+
* agentType?: string,
|
|
16
|
+
* agentId?: string,
|
|
17
|
+
* is_error?: boolean,
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* Subagent meta schema:
|
|
22
|
+
* {
|
|
23
|
+
* sessionKey: string,
|
|
24
|
+
* agentId: string, // "explore" | "bash" | "general" | "browser"
|
|
25
|
+
* parentSessionKey: string,
|
|
26
|
+
* status: "completed" | "running",
|
|
27
|
+
* label?: string,
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
30
|
+
export declare function parseAccioRecord(context: FragmentBuildContextLike, record: RawRecord, parsed: Record<string, unknown>, draft: SessionDraftLike, helpers: GenericParseRuntimeHelpers): ParseRuntimeResult;
|
|
31
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/platforms/accio/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AACpF,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,wBAAwB,EACjC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,0BAA0B,GAClC,kBAAkB,CA+LpB"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accio agent-layer message schema:
|
|
3
|
+
*
|
|
4
|
+
* {
|
|
5
|
+
* id: string,
|
|
6
|
+
* timestamp: number (epoch ms),
|
|
7
|
+
* role: "user" | "assistant" | "tool" | "system",
|
|
8
|
+
* content: string,
|
|
9
|
+
* messageType?: "normal" | "tool_call" | "tool_result",
|
|
10
|
+
* toolCalls?: Array<{ id, name, arguments: Record<string, unknown> }>,
|
|
11
|
+
* metadata?: {
|
|
12
|
+
* usage?: { prompt_tokens, completion_tokens, total_tokens, reasoning_tokens },
|
|
13
|
+
* agentType?: string,
|
|
14
|
+
* agentId?: string,
|
|
15
|
+
* is_error?: boolean,
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* Subagent meta schema:
|
|
20
|
+
* {
|
|
21
|
+
* sessionKey: string,
|
|
22
|
+
* agentId: string, // "explore" | "bash" | "general" | "browser"
|
|
23
|
+
* parentSessionKey: string,
|
|
24
|
+
* status: "completed" | "running",
|
|
25
|
+
* label?: string,
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export function parseAccioRecord(context, record, parsed, draft, helpers) {
|
|
29
|
+
const fragments = [];
|
|
30
|
+
const lossAudits = [];
|
|
31
|
+
const timestampMs = helpers.asNumber(parsed.timestamp);
|
|
32
|
+
const timeKey = helpers.epochMillisToIso(timestampMs) ??
|
|
33
|
+
helpers.coerceIso(parsed.timestamp) ??
|
|
34
|
+
helpers.nowIso();
|
|
35
|
+
// Subagent meta records (from *.meta.jsonc companion evidence)
|
|
36
|
+
if (parsed.parentSessionKey && parsed.sessionKey) {
|
|
37
|
+
const parentKey = helpers.asString(parsed.parentSessionKey);
|
|
38
|
+
const agentId = helpers.asString(parsed.agentId);
|
|
39
|
+
const label = helpers.asString(parsed.label);
|
|
40
|
+
if (label) {
|
|
41
|
+
draft.title = draft.title ?? label;
|
|
42
|
+
fragments.push(helpers.createFragment(context, record, fragments.length, "title_signal", timeKey, {
|
|
43
|
+
title: label,
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
fragments.push(helpers.createFragment(context, record, fragments.length, "session_relation", timeKey, {
|
|
47
|
+
parent_uuid: parentKey,
|
|
48
|
+
is_sidechain: true,
|
|
49
|
+
agent_id: agentId,
|
|
50
|
+
relation_kind: "subagent",
|
|
51
|
+
}));
|
|
52
|
+
return { fragments, lossAudits };
|
|
53
|
+
}
|
|
54
|
+
// Session meta records (from *.meta.jsonc companion evidence)
|
|
55
|
+
if (parsed.sessionId && !parsed.role) {
|
|
56
|
+
const title = helpers.asString(parsed.title);
|
|
57
|
+
if (title) {
|
|
58
|
+
draft.title = draft.title ?? title;
|
|
59
|
+
fragments.push(helpers.createFragment(context, record, fragments.length, "title_signal", timeKey, {
|
|
60
|
+
title,
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
return { fragments, lossAudits };
|
|
64
|
+
}
|
|
65
|
+
// Conversation metadata records (from conversations/dm/CID-xxx.jsonc)
|
|
66
|
+
if (parsed.id && helpers.asString(parsed.id)?.startsWith("CID-") && !parsed.role) {
|
|
67
|
+
const title = helpers.asString(parsed.title);
|
|
68
|
+
const sessionModel = helpers.asString(parsed.sessionModel);
|
|
69
|
+
const workspacePath = helpers.asString(parsed.path);
|
|
70
|
+
if (title && title !== "Session") {
|
|
71
|
+
draft.title = title;
|
|
72
|
+
fragments.push(helpers.createFragment(context, record, fragments.length, "title_signal", timeKey, {
|
|
73
|
+
title,
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
if (sessionModel) {
|
|
77
|
+
draft.model = sessionModel;
|
|
78
|
+
fragments.push(helpers.createFragment(context, record, fragments.length, "model_signal", timeKey, {
|
|
79
|
+
model: sessionModel,
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
if (workspacePath) {
|
|
83
|
+
draft.working_directory = workspacePath;
|
|
84
|
+
fragments.push(helpers.createFragment(context, record, fragments.length, "workspace_signal", timeKey, {
|
|
85
|
+
working_directory: workspacePath,
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
return { fragments, lossAudits };
|
|
89
|
+
}
|
|
90
|
+
const role = helpers.asString(parsed.role) ?? "system";
|
|
91
|
+
const actorKind = helpers.mapRoleToActor(role);
|
|
92
|
+
const content = helpers.asString(parsed.content);
|
|
93
|
+
const messageType = helpers.asString(parsed.messageType);
|
|
94
|
+
// Extract metadata
|
|
95
|
+
const metadata = helpers.isObject(parsed.metadata) ? parsed.metadata : undefined;
|
|
96
|
+
const usageRaw = helpers.isObject(metadata?.usage) ? metadata.usage : undefined;
|
|
97
|
+
const usage = usageRaw
|
|
98
|
+
? helpers.extractTokenUsage(usageRaw)
|
|
99
|
+
: undefined;
|
|
100
|
+
const isError = metadata ? helpers.asBoolean(metadata.is_error) ?? helpers.asBoolean(metadata.isError) : undefined;
|
|
101
|
+
// Tool calls from the toolCalls array
|
|
102
|
+
const toolCalls = helpers.asArray(parsed.toolCalls);
|
|
103
|
+
let localSeq = 0;
|
|
104
|
+
let usageApplied = false;
|
|
105
|
+
// Emit text content
|
|
106
|
+
if (content && content.trim()) {
|
|
107
|
+
if (isError) {
|
|
108
|
+
fragments.push(helpers.createFragment(context, record, localSeq++, "text", timeKey, {
|
|
109
|
+
actor_kind: actorKind,
|
|
110
|
+
origin_kind: "source_meta",
|
|
111
|
+
text: content.trim(),
|
|
112
|
+
display_policy: "show",
|
|
113
|
+
is_error: true,
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const stopReason = helpers.normalizeStopReason(parsed.stop_reason ?? parsed.stopReason);
|
|
118
|
+
const appended = helpers.appendChunkedTextFragments(context, record, fragments, timeKey, actorKind, content, localSeq, { usage, stopReason, usageApplied });
|
|
119
|
+
localSeq = appended.nextSeq;
|
|
120
|
+
usageApplied = appended.usageApplied;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// Emit tool calls
|
|
124
|
+
for (const call of toolCalls) {
|
|
125
|
+
if (!helpers.isObject(call)) {
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
const callId = helpers.asString(call.id);
|
|
129
|
+
const toolName = helpers.asString(call.name) ?? "unknown_tool";
|
|
130
|
+
const input = helpers.isObject(call.arguments) ? call.arguments : undefined;
|
|
131
|
+
const inputStr = typeof call.arguments === "string" ? helpers.safeJsonParse(call.arguments) : undefined;
|
|
132
|
+
const resolvedInput = input ?? (helpers.isObject(inputStr) ? inputStr : {});
|
|
133
|
+
fragments.push(helpers.createFragment(context, record, localSeq++, "tool_call", timeKey, {
|
|
134
|
+
call_id: callId,
|
|
135
|
+
tool_name: toolName,
|
|
136
|
+
input: resolvedInput,
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
// Tool result messages: the entire content is the tool output
|
|
140
|
+
if (role === "tool" && content) {
|
|
141
|
+
const toolCallId = helpers.asString(parsed.toolCallId) ??
|
|
142
|
+
helpers.asString(parsed.tool_call_id) ??
|
|
143
|
+
helpers.asString(parsed.tool_use_id);
|
|
144
|
+
fragments.push(helpers.createFragment(context, record, localSeq++, "tool_result", timeKey, {
|
|
145
|
+
call_id: toolCallId,
|
|
146
|
+
output: helpers.stringifyToolContent(content),
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
// Token usage (only on assistant messages)
|
|
150
|
+
if (!usageApplied && usage && actorKind === "assistant") {
|
|
151
|
+
fragments.push(helpers.createTokenUsageFragment(context, record, localSeq++, timeKey, usage));
|
|
152
|
+
}
|
|
153
|
+
if (fragments.length === 0 && content === undefined && toolCalls.length === 0) {
|
|
154
|
+
lossAudits.push(helpers.createRecordLossAudit(context, record, "unknown_fragment", `Accio record with role=${role} messageType=${messageType} produced no fragments`, {
|
|
155
|
+
diagnosticCode: "accio_empty_record",
|
|
156
|
+
severity: "info",
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
return { fragments, lossAudits };
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/platforms/accio/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