@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,706 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure frame renderer for the Lite TUI.
|
|
3
|
+
*
|
|
4
|
+
* `renderLiteFrame` returns one complete screen: exactly `height` lines, each
|
|
5
|
+
* at most `width` columns. The runtime paints it by homing the cursor and
|
|
6
|
+
* rewriting every line, so there is no incremental diffing to get wrong and
|
|
7
|
+
* the same function serves the non-interactive snapshot path.
|
|
8
|
+
*/
|
|
9
|
+
import { activeItem, activeSectionTitle, bold, cursor as cursorColor, cyan, danger, dim, green, heading, magenta, metaLabel, muted, platform as platformColor, sectionTitle, selectedItem, success, warning, yellow, } from "./colors.js";
|
|
10
|
+
import { STATS_DIMENSIONS, getSearchGroups, getSearchTotal, getSelectedProject, getSelectedSession, getSelectedSessionTurns, getSelectedTurn, getVisibleTurns, shouldRunSearch, } from "./state.js";
|
|
11
|
+
import { clipLine, compact, displayWidth, formatCompactCount, formatNumber, formatPercent, formatRelativeTime, formatShortDate, padLine, tameBrowseMarkup, tameDetailMarkup, wrapText, } from "./text.js";
|
|
12
|
+
import { VERSION } from "./version.js";
|
|
13
|
+
import { buildSessionDisplayLabels, buildTurnDisplayGroups, sessionBaseLabel } from "./view-model.js";
|
|
14
|
+
/** Byte-identical to the pre-rewrite banner: release verifiers grep for both. */
|
|
15
|
+
export const BANNER_TITLE = `CC History Lite TUI ${VERSION}`;
|
|
16
|
+
export const BANNER_SUBTITLE = "Ephemeral live snapshot · single machine · no Full store";
|
|
17
|
+
export const DEFAULT_WIDTH = 120;
|
|
18
|
+
export const DEFAULT_HEIGHT = 40;
|
|
19
|
+
const LEFT_COLUMN_RATIO = 0.28;
|
|
20
|
+
const MIN_LEFT_COLUMN = 24;
|
|
21
|
+
const MAX_LEFT_COLUMN = 60;
|
|
22
|
+
/** title + subtitle + counts + blank, then blank + status. */
|
|
23
|
+
const CHROME_LINES = 6;
|
|
24
|
+
const MIN_CONTENT_HEIGHT = 8;
|
|
25
|
+
export function renderLiteFrame(model, state, dimensions = {}, scroll) {
|
|
26
|
+
const width = Math.max(40, dimensions.width ?? DEFAULT_WIDTH);
|
|
27
|
+
const height = Math.max(CHROME_LINES + MIN_CONTENT_HEIGHT, dimensions.height ?? DEFAULT_HEIGHT);
|
|
28
|
+
const now = dimensions.now ?? Date.now();
|
|
29
|
+
const contentHeight = height - CHROME_LINES;
|
|
30
|
+
const body = renderBody(model, state, { width, contentHeight, now }, scroll);
|
|
31
|
+
while (body.length < contentHeight)
|
|
32
|
+
body.push("");
|
|
33
|
+
const lines = [
|
|
34
|
+
heading(BANNER_TITLE),
|
|
35
|
+
dim(BANNER_SUBTITLE),
|
|
36
|
+
renderCountsLine(model, state),
|
|
37
|
+
"",
|
|
38
|
+
...body.slice(0, contentHeight),
|
|
39
|
+
renderStatusMessageLine(state, width),
|
|
40
|
+
renderStatusBar(model, state),
|
|
41
|
+
];
|
|
42
|
+
return lines.map((line) => clipLine(line, width)).join("\n");
|
|
43
|
+
}
|
|
44
|
+
function renderBody(model, state, options, scroll) {
|
|
45
|
+
if (state.overlay === "help")
|
|
46
|
+
return renderHelpOverlay(options.width, options.contentHeight);
|
|
47
|
+
if (state.overlay === "sources")
|
|
48
|
+
return renderSourcesOverlay(model, options, state, scroll);
|
|
49
|
+
if (state.overlay === "stats")
|
|
50
|
+
return renderStatsOverlay(model, state, options, scroll);
|
|
51
|
+
if (state.focusPane === "conversation")
|
|
52
|
+
return renderConversation(model, state, options, scroll);
|
|
53
|
+
return renderTwoColumn(model, state, options, scroll);
|
|
54
|
+
}
|
|
55
|
+
// ── Header / footer chrome ──
|
|
56
|
+
function renderCountsLine(model, state) {
|
|
57
|
+
const counts = model.counts;
|
|
58
|
+
const parts = [
|
|
59
|
+
`${counts.sources} sources`,
|
|
60
|
+
`${counts.projects} projects`,
|
|
61
|
+
`${counts.sessions} sessions`,
|
|
62
|
+
`${counts.turns} turns`,
|
|
63
|
+
];
|
|
64
|
+
const trail = state.mode === "search"
|
|
65
|
+
? `${dim(" · ")}${cyan(`search "${state.searchQuery}"`)}`
|
|
66
|
+
: "";
|
|
67
|
+
const projectionWarning = model.snapshot.projectionIssues.length > 0
|
|
68
|
+
? `${dim(" · ")}${danger(`${model.snapshot.projectionIssues.length} data warning${model.snapshot.projectionIssues.length === 1 ? "" : "s"}`)}`
|
|
69
|
+
: "";
|
|
70
|
+
return `${dim(parts.join(" · "))}${trail}${projectionWarning}`;
|
|
71
|
+
}
|
|
72
|
+
function renderStatusMessageLine(state, width) {
|
|
73
|
+
const status = state.status;
|
|
74
|
+
if (!status)
|
|
75
|
+
return "";
|
|
76
|
+
const text = compact(status.text, Math.max(10, width - 2));
|
|
77
|
+
if (status.kind === "error")
|
|
78
|
+
return danger(`! ${text}`);
|
|
79
|
+
if (status.kind === "busy")
|
|
80
|
+
return warning(`… ${text}`);
|
|
81
|
+
return muted(`· ${text}`);
|
|
82
|
+
}
|
|
83
|
+
function renderStatusBar(model, state) {
|
|
84
|
+
const parts = [];
|
|
85
|
+
if (state.overlay !== "none")
|
|
86
|
+
parts.push(`overlay: ${state.overlay}`);
|
|
87
|
+
else if (state.mode === "browse")
|
|
88
|
+
parts.push(`${state.browseScope}/${focusPaneLabel(state.focusPane)}`);
|
|
89
|
+
else
|
|
90
|
+
parts.push(focusPaneLabel(state.focusPane));
|
|
91
|
+
if (state.mode === "search")
|
|
92
|
+
parts.push(`${getSearchTotal(model, state)} matches`);
|
|
93
|
+
parts.push(`${model.counts.projects}P ${model.counts.turns}A`);
|
|
94
|
+
parts.push("/ search");
|
|
95
|
+
parts.push("r refresh");
|
|
96
|
+
parts.push("? help");
|
|
97
|
+
parts.push("q quit");
|
|
98
|
+
return dim(parts.join(" │ "));
|
|
99
|
+
}
|
|
100
|
+
function focusPaneLabel(pane) {
|
|
101
|
+
return pane === "turns" ? "asks" : pane;
|
|
102
|
+
}
|
|
103
|
+
// ── Two-column browse / search layout ──
|
|
104
|
+
function renderTwoColumn(model, state, options, scroll) {
|
|
105
|
+
const leftWidth = Math.max(MIN_LEFT_COLUMN, Math.min(MAX_LEFT_COLUMN, Math.floor(options.width * LEFT_COLUMN_RATIO)));
|
|
106
|
+
const rightWidth = Math.max(30, options.width - leftWidth - 3);
|
|
107
|
+
const projectViewport = Math.max(options.contentHeight - 2, 4);
|
|
108
|
+
const turnsViewport = Math.max(Math.floor((options.contentHeight - 4) / 2), 4);
|
|
109
|
+
const leftLines = state.mode === "search"
|
|
110
|
+
? renderSearchGroupPane(model, state, projectViewport, leftWidth)
|
|
111
|
+
: state.browseScope === "sessions"
|
|
112
|
+
? renderSessionPane(model, state, projectViewport, leftWidth, options.now)
|
|
113
|
+
: renderProjectPane(model, state, projectViewport, leftWidth, options.now);
|
|
114
|
+
const turnLines = renderTurnPane(model, state, turnsViewport, rightWidth, options.now)
|
|
115
|
+
.slice(0, turnsViewport + 3);
|
|
116
|
+
const detailHeight = Math.max(options.contentHeight - turnLines.length - 1, 4);
|
|
117
|
+
const detailLines = renderDetailPane(model, state, detailHeight, rightWidth, options.now, scroll);
|
|
118
|
+
const rightLines = [...turnLines, "", ...detailLines].slice(0, options.contentHeight);
|
|
119
|
+
const rows = [];
|
|
120
|
+
const separator = dim("│");
|
|
121
|
+
const rowCount = Math.max(leftLines.length, rightLines.length, options.contentHeight);
|
|
122
|
+
for (let index = 0; index < rowCount; index += 1) {
|
|
123
|
+
const left = padLine(clipLine(leftLines[index] ?? "", leftWidth), leftWidth);
|
|
124
|
+
const right = clipLine(rightLines[index] ?? "", rightWidth);
|
|
125
|
+
rows.push(`${left} ${separator} ${right}`);
|
|
126
|
+
}
|
|
127
|
+
return rows;
|
|
128
|
+
}
|
|
129
|
+
function renderProjectPane(model, state, viewportSize, columnWidth, now) {
|
|
130
|
+
const focused = state.focusPane === "projects";
|
|
131
|
+
const lines = [paneTitle("Projects", focused)];
|
|
132
|
+
if (model.projects.length === 0) {
|
|
133
|
+
lines.push(emptyRow("No projects"));
|
|
134
|
+
return lines;
|
|
135
|
+
}
|
|
136
|
+
const window = viewportWindow(model.projects.length, state.selectedProjectIndex, viewportSize);
|
|
137
|
+
if (window.start > 0)
|
|
138
|
+
lines.push(muted(` ↑ ${window.start} more`));
|
|
139
|
+
for (let index = window.start; index < window.end; index += 1) {
|
|
140
|
+
const entry = model.projects[index];
|
|
141
|
+
const selected = state.selectedProjectIndex === index;
|
|
142
|
+
const meta = [`${entry.sessionCount}s`, `${entry.turnCount}a`, formatRelativeTime(entry.lastActivityAt, now)]
|
|
143
|
+
.filter(Boolean)
|
|
144
|
+
.join(" ");
|
|
145
|
+
lines.push(alignedRow(selectionPrefix(selected, focused), entry.displayName, meta, columnWidth, selected, focused));
|
|
146
|
+
}
|
|
147
|
+
if (window.end < model.projects.length) {
|
|
148
|
+
lines.push(muted(` ↓ ${model.projects.length - window.end} more`));
|
|
149
|
+
}
|
|
150
|
+
return lines;
|
|
151
|
+
}
|
|
152
|
+
function renderSessionPane(model, state, viewportSize, columnWidth, now) {
|
|
153
|
+
const focused = state.focusPane === "projects";
|
|
154
|
+
const lines = [paneTitle("Sessions", focused)];
|
|
155
|
+
if (model.sessions.length === 0) {
|
|
156
|
+
lines.push(emptyRow("No sessions"));
|
|
157
|
+
return lines;
|
|
158
|
+
}
|
|
159
|
+
const sessionLabels = buildSessionDisplayLabels(model.sessions.map((entry) => entry.session));
|
|
160
|
+
const window = viewportWindow(model.sessions.length, state.selectedSessionIndex, viewportSize);
|
|
161
|
+
if (window.start > 0)
|
|
162
|
+
lines.push(muted(` ↑ ${window.start} more`));
|
|
163
|
+
for (let index = window.start; index < window.end; index += 1) {
|
|
164
|
+
const entry = model.sessions[index];
|
|
165
|
+
const selected = state.selectedSessionIndex === index;
|
|
166
|
+
const name = sessionLabels.get(entry.session.id) ?? sessionBaseLabel(entry.session);
|
|
167
|
+
const meta = [
|
|
168
|
+
`${entry.turns.length}a`,
|
|
169
|
+
entry.relatedWorkCount > 0 ? `${entry.relatedWorkCount}rel` : "",
|
|
170
|
+
formatRelativeTime(model.snapshot.getSessionActivityAt(entry.session.id), now),
|
|
171
|
+
]
|
|
172
|
+
.filter(Boolean)
|
|
173
|
+
.join(" ");
|
|
174
|
+
lines.push(alignedRow(selectionPrefix(selected, focused), name, meta, columnWidth, selected, focused));
|
|
175
|
+
}
|
|
176
|
+
if (window.end < model.sessions.length) {
|
|
177
|
+
lines.push(muted(` ↓ ${model.sessions.length - window.end} more`));
|
|
178
|
+
}
|
|
179
|
+
return lines;
|
|
180
|
+
}
|
|
181
|
+
function renderSearchGroupPane(model, state, viewportSize, columnWidth) {
|
|
182
|
+
const focused = state.focusPane === "projects";
|
|
183
|
+
const queryDisplay = state.searchQuery.length > 0
|
|
184
|
+
? `${state.searchQuery}${focused ? cursorColor("▏") : ""}`
|
|
185
|
+
: muted("(type to search)");
|
|
186
|
+
const lines = [focused ? activeSectionTitle(`▸ / ${queryDisplay}`) : sectionTitle(` / ${queryDisplay}`)];
|
|
187
|
+
const groups = getSearchGroups(model, state);
|
|
188
|
+
if (groups.length === 0) {
|
|
189
|
+
if (state.searchQuery.length === 0)
|
|
190
|
+
lines.push(emptyRow("Type to search"));
|
|
191
|
+
else if (!shouldRunSearch(state))
|
|
192
|
+
lines.push(emptyRow("Press Enter to search"));
|
|
193
|
+
else
|
|
194
|
+
lines.push(emptyRow("No matches"));
|
|
195
|
+
return lines;
|
|
196
|
+
}
|
|
197
|
+
const window = viewportWindow(groups.length, state.selectedSearchGroupIndex, viewportSize);
|
|
198
|
+
if (window.start > 0)
|
|
199
|
+
lines.push(muted(` ↑ ${window.start} more`));
|
|
200
|
+
for (let index = window.start; index < window.end; index += 1) {
|
|
201
|
+
const group = groups[index];
|
|
202
|
+
const selected = state.selectedSearchGroupIndex === index;
|
|
203
|
+
lines.push(alignedRow(selectionPrefix(selected, focused), group.projectName, String(group.results.length), columnWidth, selected, focused));
|
|
204
|
+
}
|
|
205
|
+
if (window.end < groups.length)
|
|
206
|
+
lines.push(muted(` ↓ ${groups.length - window.end} more`));
|
|
207
|
+
return lines;
|
|
208
|
+
}
|
|
209
|
+
function renderTurnPane(model, state, viewportSize, columnWidth, now) {
|
|
210
|
+
const focused = state.focusPane === "turns";
|
|
211
|
+
const lines = [paneTitle("Turns", focused)];
|
|
212
|
+
const turns = getVisibleTurns(model, state);
|
|
213
|
+
if (turns.length === 0) {
|
|
214
|
+
lines.push(emptyRow(state.mode === "search" ? "No matching turns" : "No turns"));
|
|
215
|
+
return lines;
|
|
216
|
+
}
|
|
217
|
+
const selectedIndex = state.mode === "search" ? state.selectedSearchTurnIndex : state.selectedTurnIndex;
|
|
218
|
+
const items = buildTurnDisplayItems(model, turns, selectedIndex, focused, columnWidth, now);
|
|
219
|
+
const selectedDisplayIndex = Math.max(0, items.findIndex((item) => item.turnIndex === selectedIndex));
|
|
220
|
+
const window = viewportWindow(items.length, selectedDisplayIndex, viewportSize);
|
|
221
|
+
if (window.start > 0)
|
|
222
|
+
lines.push(muted(` ↑ ${window.start} more`));
|
|
223
|
+
for (let index = window.start; index < window.end; index += 1)
|
|
224
|
+
lines.push(items[index].text);
|
|
225
|
+
if (window.end < items.length)
|
|
226
|
+
lines.push(muted(` ↓ ${items.length - window.end} more`));
|
|
227
|
+
return lines;
|
|
228
|
+
}
|
|
229
|
+
function buildTurnDisplayItems(model, turns, selectedIndex, focused, columnWidth, now) {
|
|
230
|
+
const items = [];
|
|
231
|
+
const groups = buildTurnDisplayGroups(turns);
|
|
232
|
+
for (const group of groups) {
|
|
233
|
+
const meta = [`${group.visibleTurnCount}a`, formatRelativeTime(group.createdAt, now)]
|
|
234
|
+
.filter(Boolean)
|
|
235
|
+
.join(" · ");
|
|
236
|
+
items.push({
|
|
237
|
+
turnIndex: -1,
|
|
238
|
+
text: `${bold(yellow(compact(`Session: ${group.title}`, 48)))} ${dim(meta)}`,
|
|
239
|
+
});
|
|
240
|
+
for (const [groupIndex, index] of group.turnIndices.entries()) {
|
|
241
|
+
const entry = turns[index];
|
|
242
|
+
const connector = dim(groupIndex === group.turnIndices.length - 1 ? "└─" : "├─");
|
|
243
|
+
const selected = index === selectedIndex;
|
|
244
|
+
const metaText = [
|
|
245
|
+
entry.turn.context_summary.primary_model ?? "",
|
|
246
|
+
formatCompactCount(model.snapshot.getTurnUsage(entry.turn.id)?.total_tokens),
|
|
247
|
+
formatShortDate(entry.turn.submission_started_at),
|
|
248
|
+
]
|
|
249
|
+
.filter(Boolean)
|
|
250
|
+
.join(" · ");
|
|
251
|
+
const prefix = `${connector}${selectionPrefix(selected, focused)}`;
|
|
252
|
+
items.push({
|
|
253
|
+
turnIndex: index,
|
|
254
|
+
text: alignedRow(prefix, turnSnippet(entry, columnWidth), metaText, columnWidth, selected, focused),
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return items;
|
|
259
|
+
}
|
|
260
|
+
function turnSnippet(entry, columnWidth) {
|
|
261
|
+
const text = pickUserTurnText(entry);
|
|
262
|
+
return tameBrowseMarkup(text) || "(empty ask)";
|
|
263
|
+
}
|
|
264
|
+
function renderDetailPane(model, state, maxLines, columnWidth, now, scroll) {
|
|
265
|
+
const focused = state.focusPane === "detail";
|
|
266
|
+
const rows = buildDetailRows(model, state, columnWidth, focused, now);
|
|
267
|
+
return renderScrollablePane(rows, paneTitle("Detail", focused), maxLines, focused ? state.detailScrollOffset : 0, scroll);
|
|
268
|
+
}
|
|
269
|
+
function buildDetailRows(model, state, columnWidth, focused, now) {
|
|
270
|
+
const entry = getSelectedTurn(model, state);
|
|
271
|
+
if (!entry) {
|
|
272
|
+
if (state.mode === "browse" && state.browseScope === "sessions") {
|
|
273
|
+
const session = getSelectedSession(model, state);
|
|
274
|
+
if (session)
|
|
275
|
+
return buildSessionDetailRows(model, session, columnWidth, now);
|
|
276
|
+
}
|
|
277
|
+
if (model.counts.turns === 0)
|
|
278
|
+
return buildEmptySnapshotRows(columnWidth);
|
|
279
|
+
const project = getSelectedProject(model, state);
|
|
280
|
+
return [muted(project ? `Project: ${project.displayName}` : "Select a turn to view details")];
|
|
281
|
+
}
|
|
282
|
+
const turns = getVisibleTurns(model, state);
|
|
283
|
+
const index = state.mode === "search" ? state.selectedSearchTurnIndex : state.selectedTurnIndex;
|
|
284
|
+
const contentWidth = Math.max(columnWidth - 4, 24);
|
|
285
|
+
const summary = entry.turn.context_summary;
|
|
286
|
+
const usage = model.snapshot.getTurnUsage(entry.turn.id);
|
|
287
|
+
const rows = [];
|
|
288
|
+
const projectName = entry.turn.project_id
|
|
289
|
+
? (model.snapshot.getProject(entry.turn.project_id)?.display_name ?? "Unlinked")
|
|
290
|
+
: "Unlinked";
|
|
291
|
+
const sessionTitle = entry.session?.title ? dim(` · ${compact(tameBrowseMarkup(entry.session.title), 28)}`) : "";
|
|
292
|
+
rows.push(`${bold("Ask")} ${cyan(`${index + 1}/${turns.length}`)} ${dim("in")} ${cyan(projectName)}${sessionTitle} ${magenta(entry.turn.id.slice(0, 8))}`);
|
|
293
|
+
rows.push(`${metaLabel("Model:")} ${platformColor(summary.primary_model ?? "unknown")}${usage?.total_tokens ? ` ${dim("·")} ${formatTokenBreakdown(usage)}` : ""} ${dim("·")} ${formatShortDate(entry.turn.submission_started_at)} ${dim(`(${formatRelativeTime(entry.turn.submission_started_at, now)})`)}`);
|
|
294
|
+
rows.push(`${metaLabel("Turn:")} ${entry.turn.id}`);
|
|
295
|
+
if (entry.session) {
|
|
296
|
+
if (entry.session.resume_command) {
|
|
297
|
+
for (const line of wrapText(entry.session.resume_command, contentWidth))
|
|
298
|
+
rows.push(green(line));
|
|
299
|
+
}
|
|
300
|
+
else if (entry.session.working_directory) {
|
|
301
|
+
rows.push(`${metaLabel("Workspace:")} ${compact(entry.session.working_directory, contentWidth)}`);
|
|
302
|
+
}
|
|
303
|
+
rows.push(`${metaLabel("Session:")} ${entry.session.id}`);
|
|
304
|
+
}
|
|
305
|
+
const relatedWork = entry.session ? model.getSessionRelatedWork(entry.session.id) : [];
|
|
306
|
+
const relatedSummary = summarizeRelatedWork(relatedWork);
|
|
307
|
+
if (relatedSummary) {
|
|
308
|
+
rows.push(`${metaLabel("Related work:")} ${relatedSummary}`);
|
|
309
|
+
rows.push(...relatedWorkRows(relatedWork, contentWidth));
|
|
310
|
+
}
|
|
311
|
+
rows.push("");
|
|
312
|
+
rows.push(bold("Prompt:"));
|
|
313
|
+
for (const line of wrapText(pickUserTurnText(entry), contentWidth))
|
|
314
|
+
rows.push(` ${line}`);
|
|
315
|
+
if (focused) {
|
|
316
|
+
rows.push("");
|
|
317
|
+
rows.push(dim("↑↓ scroll · Enter → full session conversation"));
|
|
318
|
+
}
|
|
319
|
+
return rows;
|
|
320
|
+
}
|
|
321
|
+
function buildSessionDetailRows(model, entry, columnWidth, now) {
|
|
322
|
+
const contentWidth = Math.max(columnWidth - 4, 24);
|
|
323
|
+
const session = entry.session;
|
|
324
|
+
const activityAt = model.snapshot.getSessionActivityAt(session.id) ?? session.updated_at;
|
|
325
|
+
const rows = [
|
|
326
|
+
`${bold("Session")} ${cyan(compact(tameBrowseMarkup(session.title ?? session.source_session_id ?? session.id), 40))}`,
|
|
327
|
+
`${metaLabel("Source:")} ${platformColor(entry.sourceName)} ${dim(`(${session.source_platform})`)}`,
|
|
328
|
+
`${metaLabel("Activity:")} ${formatShortDate(activityAt)} ${dim(`(${formatRelativeTime(activityAt, now)})`)}`,
|
|
329
|
+
`${metaLabel("Turns:")} ${entry.turns.length}`,
|
|
330
|
+
];
|
|
331
|
+
if (session.resume_command) {
|
|
332
|
+
for (const line of wrapText(session.resume_command, contentWidth))
|
|
333
|
+
rows.push(green(line));
|
|
334
|
+
}
|
|
335
|
+
else if (session.working_directory) {
|
|
336
|
+
rows.push(`${metaLabel("Workspace:")} ${compact(session.working_directory, contentWidth)}`);
|
|
337
|
+
}
|
|
338
|
+
rows.push(`${metaLabel("ID:")} ${session.id}`);
|
|
339
|
+
const relatedWork = model.getSessionRelatedWork(session.id);
|
|
340
|
+
rows.push("");
|
|
341
|
+
rows.push(bold(`Related work (${relatedWork.length})`));
|
|
342
|
+
if (relatedWork.length === 0)
|
|
343
|
+
rows.push(muted(" none"));
|
|
344
|
+
else
|
|
345
|
+
rows.push(...relatedWorkRows(relatedWork, contentWidth));
|
|
346
|
+
if (entry.turns.length === 0) {
|
|
347
|
+
rows.push("");
|
|
348
|
+
rows.push(muted("This session derived no UserTurn; only session-level evidence exists."));
|
|
349
|
+
}
|
|
350
|
+
return rows;
|
|
351
|
+
}
|
|
352
|
+
function relatedWorkRows(entries, contentWidth) {
|
|
353
|
+
return entries.map((entry) => {
|
|
354
|
+
const kind = entry.relation_kind === "automation_run" ? "automation run" : "delegated session";
|
|
355
|
+
const target = entry.title ?? entry.target_session_ref ?? entry.target_run_ref ?? entry.id;
|
|
356
|
+
return ` ${dim("·")} ${kind} · ${entry.direction ?? "unknown"} · ${compact(target, Math.max(12, contentWidth - 30))}`;
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
function buildEmptySnapshotRows(columnWidth) {
|
|
360
|
+
const contentWidth = Math.max(columnWidth - 2, 24);
|
|
361
|
+
const rows = [bold("No AI coding history found on this machine."), ""];
|
|
362
|
+
for (const line of wrapText("Lite reads registered adapters' native roots in place and keeps nothing on disk.", contentWidth)) {
|
|
363
|
+
rows.push(line);
|
|
364
|
+
}
|
|
365
|
+
rows.push("");
|
|
366
|
+
rows.push(`${dim("·")} Press ${bold("s")} to see which adapter roots were probed.`);
|
|
367
|
+
rows.push(`${dim("·")} Point Lite elsewhere with ${bold("--source-root <slot-or-id>=<path>")}.`);
|
|
368
|
+
rows.push(`${dim("·")} Re-run with ${bold("--safe")} if a root is partially unreadable.`);
|
|
369
|
+
return rows;
|
|
370
|
+
}
|
|
371
|
+
function summarizeRelatedWork(entries) {
|
|
372
|
+
if (entries.length === 0)
|
|
373
|
+
return "";
|
|
374
|
+
const inbound = entries.filter((entry) => entry.relation_kind === "delegated_session" && entry.direction === "inbound").length;
|
|
375
|
+
const outbound = entries.filter((entry) => entry.relation_kind === "delegated_session" && entry.direction !== "inbound").length;
|
|
376
|
+
const automation = entries.filter((entry) => entry.relation_kind === "automation_run").length;
|
|
377
|
+
const parts = [];
|
|
378
|
+
if (inbound > 0)
|
|
379
|
+
parts.push(`${inbound} parent`);
|
|
380
|
+
if (outbound > 0)
|
|
381
|
+
parts.push(`${outbound} child`);
|
|
382
|
+
if (automation > 0)
|
|
383
|
+
parts.push(`${automation} automation run`);
|
|
384
|
+
return parts.join(", ");
|
|
385
|
+
}
|
|
386
|
+
// ── Conversation view ──
|
|
387
|
+
function renderConversation(model, state, options, scroll) {
|
|
388
|
+
const turns = getSelectedSessionTurns(model, state);
|
|
389
|
+
const selected = getSelectedTurn(model, state);
|
|
390
|
+
const lines = buildConversationLines(model, turns, selected?.turn.id, options.width);
|
|
391
|
+
const total = lines.length;
|
|
392
|
+
// Account for the title row and the above/below indicators the way
|
|
393
|
+
// scrollWindow does, so the caller's contentHeight slice never drops real
|
|
394
|
+
// content or the "more below" hint. Emitting title + indicators + viewport
|
|
395
|
+
// rows would otherwise exceed contentHeight and get truncated.
|
|
396
|
+
const viewport = Math.max(options.contentHeight - 2, 1);
|
|
397
|
+
const maxOffset = Math.max(0, total - viewport + 1);
|
|
398
|
+
const offset = Math.min(Math.max(0, state.conversationScrollOffset), maxOffset);
|
|
399
|
+
const hasAbove = offset > 0;
|
|
400
|
+
const visibleCount = viewport - (hasAbove ? 1 : 0);
|
|
401
|
+
const end = Math.min(offset + visibleCount, total);
|
|
402
|
+
const below = total - end;
|
|
403
|
+
const position = total > 0 ? dim(` [${offset + 1}-${end}/${total}]`) : "";
|
|
404
|
+
const rows = [activeSectionTitle(`▸ Conversation${position}`)];
|
|
405
|
+
if (hasAbove)
|
|
406
|
+
rows.push(muted(` ↑ ${offset} more lines above`));
|
|
407
|
+
for (let index = offset; index < end; index += 1)
|
|
408
|
+
rows.push(` ${lines[index]}`);
|
|
409
|
+
if (below > 0)
|
|
410
|
+
rows.push(muted(` ↓ ${below} more lines below`));
|
|
411
|
+
if (scroll)
|
|
412
|
+
scroll.conversationScrollOffset = offset;
|
|
413
|
+
return rows;
|
|
414
|
+
}
|
|
415
|
+
function buildConversationLines(model, turns, selectedTurnId, width) {
|
|
416
|
+
const contentWidth = Math.max(width - 6, 30);
|
|
417
|
+
const lines = [];
|
|
418
|
+
for (let index = 0; index < turns.length; index += 1) {
|
|
419
|
+
const entry = turns[index];
|
|
420
|
+
const label = `── Ask ${index + 1}/${turns.length} ──`;
|
|
421
|
+
lines.push(entry.turn.id === selectedTurnId ? bold(cyan(label)) : dim(label));
|
|
422
|
+
lines.push(bold(cyan("User")));
|
|
423
|
+
for (const line of wrapText(pickUserTurnText(entry), contentWidth))
|
|
424
|
+
lines.push(` ${line}`);
|
|
425
|
+
const context = model.getTurnContext(entry.turn.id);
|
|
426
|
+
if (!context) {
|
|
427
|
+
const summary = entry.turn.context_summary;
|
|
428
|
+
lines.push(muted(` (context not loaded · ${summary.assistant_reply_count} assistant replies, ${summary.tool_call_count} tool calls)`));
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
lines.push(muted(` Assistant replies: ${context.assistant_replies.length}`));
|
|
432
|
+
lines.push(muted(` Tool calls: ${context.tool_calls.length}`));
|
|
433
|
+
for (const reply of context.assistant_replies) {
|
|
434
|
+
const model_ = reply.model || entry.turn.context_summary.primary_model || "assistant";
|
|
435
|
+
const usage = reply.token_usage;
|
|
436
|
+
const tokenParts = [];
|
|
437
|
+
if (usage?.input_tokens)
|
|
438
|
+
tokenParts.push(`${formatCompactCount(usage.input_tokens)} in`);
|
|
439
|
+
const cached = (usage?.cache_read_input_tokens ?? 0) + (usage?.cache_creation_input_tokens ?? 0);
|
|
440
|
+
if (cached > 0)
|
|
441
|
+
tokenParts.push(`${formatCompactCount(cached)} cache`);
|
|
442
|
+
if (usage?.output_tokens)
|
|
443
|
+
tokenParts.push(`${formatCompactCount(usage.output_tokens)} out`);
|
|
444
|
+
lines.push(bold(green(model_)) + (tokenParts.length > 0 ? dim(` · ${tokenParts.join("/")}`) : ""));
|
|
445
|
+
const content = reply.content || reply.content_preview || "(empty)";
|
|
446
|
+
for (const line of wrapText(tameDetailMarkup(content), contentWidth))
|
|
447
|
+
lines.push(` ${line}`);
|
|
448
|
+
for (const tool of context.tool_calls.filter((call) => call.reply_id === reply.id)) {
|
|
449
|
+
const status = tool.status === "error" ? danger(" ERR") : "";
|
|
450
|
+
const duration = tool.duration_ms ? dim(` ${tool.duration_ms}ms`) : "";
|
|
451
|
+
const input = tool.input_summary ? dim(` ${compact(tool.input_summary, 40)}`) : "";
|
|
452
|
+
lines.push(yellow(` ${tool.tool_name || "tool"}`) + status + duration + input);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (index < turns.length - 1)
|
|
457
|
+
lines.push("");
|
|
458
|
+
}
|
|
459
|
+
return lines;
|
|
460
|
+
}
|
|
461
|
+
// ── Overlays ──
|
|
462
|
+
function renderHelpOverlay(width, contentHeight) {
|
|
463
|
+
const lines = [
|
|
464
|
+
`${activeSectionTitle("▸ Help")} ${dim("(? or Esc to close)")}`,
|
|
465
|
+
dim("─".repeat(Math.max(10, Math.min(width - 2, width)))),
|
|
466
|
+
"",
|
|
467
|
+
bold(" Navigation"),
|
|
468
|
+
` ${bold("↑/↓")} or ${bold("j/k")} Move cursor ${bold("PgUp/PgDn")} Page up/down`,
|
|
469
|
+
` ${bold("g/G")} First/last ${bold("Tab/→")} Next pane`,
|
|
470
|
+
` ${bold("Shift+Tab/←")} Previous pane ${bold("Enter")} Drill in`,
|
|
471
|
+
` ${bold("Esc")} Back / close overlay`,
|
|
472
|
+
"",
|
|
473
|
+
bold(" Panes and scope"),
|
|
474
|
+
` ${bold("p")} browse by project ${bold("S")} browse by session`,
|
|
475
|
+
` ${bold("t")} turns pane ${bold("d")} detail pane`,
|
|
476
|
+
` ${bold("Enter")} on Detail opens the full session conversation`,
|
|
477
|
+
"",
|
|
478
|
+
bold(" Actions"),
|
|
479
|
+
` ${bold("/")} search ${bold("i")} stats ${bold("s")} sources ${bold("?")} help`,
|
|
480
|
+
` ${bold("r")} refresh the snapshot from disk ${bold("q")} quit`,
|
|
481
|
+
` ${bold("Tab")} in the stats overlay cycles source/project/model/day`,
|
|
482
|
+
"",
|
|
483
|
+
bold(" Lite guarantees"),
|
|
484
|
+
muted(" Reads native tool history only. Never opens or creates ~/.cchistory."),
|
|
485
|
+
muted(" The snapshot lives in memory for this process and is released on exit."),
|
|
486
|
+
muted(" Refresh is transactional: a failed rescan keeps the previous snapshot."),
|
|
487
|
+
];
|
|
488
|
+
return lines.slice(0, contentHeight);
|
|
489
|
+
}
|
|
490
|
+
function renderSourcesOverlay(model, options, state, scroll) {
|
|
491
|
+
const { counts, sources } = model.sourceHealth;
|
|
492
|
+
const lines = [
|
|
493
|
+
`${activeSectionTitle("▸ Sources")} ${dim("(s or Esc to close)")}`,
|
|
494
|
+
dim("─".repeat(Math.max(10, Math.min(options.width - 2, options.width)))),
|
|
495
|
+
"",
|
|
496
|
+
` ${[
|
|
497
|
+
success(`Healthy: ${counts.healthy}`),
|
|
498
|
+
warning(`Stale: ${counts.stale}`),
|
|
499
|
+
counts.error > 0 ? danger(`Error: ${counts.error}`) : dim(`Error: ${counts.error}`),
|
|
500
|
+
].join(" · ")}`,
|
|
501
|
+
"",
|
|
502
|
+
];
|
|
503
|
+
const projectionIssues = model.snapshot.projectionIssues;
|
|
504
|
+
if (projectionIssues.length > 0) {
|
|
505
|
+
lines.push(danger(` Projection warnings: ${projectionIssues.length}`));
|
|
506
|
+
for (const issue of projectionIssues.slice(0, 5)) {
|
|
507
|
+
lines.push(` ${danger("!")} ${compact(`${issue.entity} ${issue.id}: ${issue.detail}`, Math.max(20, options.width - 8))}`);
|
|
508
|
+
}
|
|
509
|
+
if (projectionIssues.length > 5) {
|
|
510
|
+
lines.push(muted(` … ${projectionIssues.length - 5} more projection warnings`));
|
|
511
|
+
}
|
|
512
|
+
lines.push("");
|
|
513
|
+
}
|
|
514
|
+
for (const source of sources) {
|
|
515
|
+
lines.push(...renderSourceRows(source, options.width));
|
|
516
|
+
}
|
|
517
|
+
if (sources.length === 0) {
|
|
518
|
+
lines.push(emptyRow("No adapter roots were found on this machine"));
|
|
519
|
+
lines.push(muted(" Point Lite at one with --source-root <slot-or-id>=<path>."));
|
|
520
|
+
}
|
|
521
|
+
return scrollWindow(lines, state.overlayScrollOffset, options.contentHeight, scroll);
|
|
522
|
+
}
|
|
523
|
+
function renderSourceRows(source, width) {
|
|
524
|
+
const statusColor = source.sync_status === "healthy" ? success : source.sync_status === "stale" ? warning : danger;
|
|
525
|
+
const rows = [
|
|
526
|
+
` ${bold(source.display_name)} ${dim(`[${source.slot_id}]`)} ${statusColor(source.sync_status)} ${metaLabel(`${source.total_sessions} sessions · ${source.total_turns} turns`)}`,
|
|
527
|
+
` ${muted(compact(source.base_dir, Math.max(20, width - 6)))}`,
|
|
528
|
+
];
|
|
529
|
+
if (source.error_message)
|
|
530
|
+
rows.push(` ${danger(compact(source.error_message, Math.max(20, width - 6)))}`);
|
|
531
|
+
return rows;
|
|
532
|
+
}
|
|
533
|
+
function renderStatsOverlay(model, state, options, scroll) {
|
|
534
|
+
const innerWidth = Math.max(options.width - 4, 36);
|
|
535
|
+
const dimensionRow = STATS_DIMENSIONS.map((entry) => entry === state.statsDimension ? bold(cyan(entry)) : dim(entry)).join(dim(" · "));
|
|
536
|
+
const overview = model.getUsageOverview();
|
|
537
|
+
const lines = [
|
|
538
|
+
`${activeSectionTitle("▸ Statistics")} ${dimensionRow} ${dim("(Tab cycle · i close)")}`,
|
|
539
|
+
dim("─".repeat(Math.max(10, Math.min(innerWidth, options.width)))),
|
|
540
|
+
"",
|
|
541
|
+
bold(" Overview"),
|
|
542
|
+
];
|
|
543
|
+
const leftWidth = Math.max(20, Math.floor(innerWidth / 2) - 2);
|
|
544
|
+
const rightWidth = Math.max(20, innerWidth - leftWidth - 4);
|
|
545
|
+
const overviewRows = [
|
|
546
|
+
[`Turns: ${cyan(formatNumber(overview.total_turns))}`, `Total tokens: ${cyan(formatNumber(overview.total_tokens))}`],
|
|
547
|
+
[
|
|
548
|
+
`With usage: ${cyan(formatNumber(overview.turns_with_token_usage))} (${formatPercent(overview.turn_coverage_ratio)})`,
|
|
549
|
+
`Input: ${cyan(formatNumber(overview.total_input_tokens))}`,
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
`Cached input: ${cyan(formatNumber(overview.total_cached_input_tokens))}`,
|
|
553
|
+
`Output: ${cyan(formatNumber(overview.total_output_tokens))}`,
|
|
554
|
+
],
|
|
555
|
+
["", `Reasoning: ${cyan(formatNumber(overview.total_reasoning_output_tokens))}`],
|
|
556
|
+
];
|
|
557
|
+
for (const [left, right] of overviewRows) {
|
|
558
|
+
lines.push(` ${padLine(left, leftWidth)} ${padLine(right, rightWidth)}`);
|
|
559
|
+
}
|
|
560
|
+
const rollup = model.getUsageRollup(state.statsDimension);
|
|
561
|
+
lines.push("");
|
|
562
|
+
lines.push(`${bold(` By ${state.statsDimension}`)} ${dim(`(${rollup.rows.length} rows)`)}`);
|
|
563
|
+
if (rollup.rows.length === 0) {
|
|
564
|
+
lines.push(emptyRow("No usage rows for this dimension"));
|
|
565
|
+
return scrollWindow(lines, state.overlayScrollOffset, options.contentHeight, scroll);
|
|
566
|
+
}
|
|
567
|
+
const sorted = [...rollup.rows].sort((left, right) => right.total_tokens - left.total_tokens);
|
|
568
|
+
const totalTokens = sorted.reduce((sum, row) => sum + row.total_tokens, 0) || 1;
|
|
569
|
+
const nameWidth = Math.min(34, Math.max(18, Math.floor(innerWidth * 0.3)));
|
|
570
|
+
const barWidth = Math.min(20, Math.max(6, Math.floor((innerWidth - nameWidth - 32) * 0.5)));
|
|
571
|
+
lines.push(dim(` ${"Name".padEnd(nameWidth)} ${"Turns".padStart(7)} ${"Tokens".padStart(11)} ${"%".padStart(6)} Share`));
|
|
572
|
+
for (const row of sorted) {
|
|
573
|
+
const share = (row.total_tokens / totalTokens) * 100;
|
|
574
|
+
const bar = dim("▪".repeat(Math.max(1, Math.round((share / 100) * barWidth))));
|
|
575
|
+
lines.push(` ${cyan(padLine(compact(row.label, nameWidth), nameWidth))} ${formatNumber(row.turn_count).padStart(7)} ${formatNumber(row.total_tokens).padStart(11)} ${`${share.toFixed(1)}%`.padStart(6)} ${bar}`);
|
|
576
|
+
}
|
|
577
|
+
return scrollWindow(lines, state.overlayScrollOffset, options.contentHeight, scroll);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Window an overlay's full line list, keeping the two heading lines pinned so
|
|
581
|
+
* the close hint never scrolls out of reach.
|
|
582
|
+
*/
|
|
583
|
+
function scrollWindow(lines, offset, contentHeight, scroll) {
|
|
584
|
+
const headerCount = Math.min(2, lines.length);
|
|
585
|
+
const header = lines.slice(0, headerCount);
|
|
586
|
+
const body = lines.slice(headerCount);
|
|
587
|
+
const viewport = Math.max(contentHeight - headerCount - 1, 1);
|
|
588
|
+
if (body.length <= viewport) {
|
|
589
|
+
if (scroll)
|
|
590
|
+
scroll.overlayScrollOffset = 0;
|
|
591
|
+
return [...header, ...body];
|
|
592
|
+
}
|
|
593
|
+
const maxOffset = body.length - viewport + 1;
|
|
594
|
+
const clamped = Math.min(Math.max(0, offset), maxOffset);
|
|
595
|
+
const visible = body.slice(clamped, clamped + viewport - (clamped > 0 ? 1 : 0));
|
|
596
|
+
const rows = [...header];
|
|
597
|
+
if (clamped > 0)
|
|
598
|
+
rows.push(muted(` ↑ ${clamped} more lines`));
|
|
599
|
+
rows.push(...visible);
|
|
600
|
+
const remaining = body.length - clamped - visible.length;
|
|
601
|
+
if (remaining > 0)
|
|
602
|
+
rows.push(muted(` ↓ ${remaining} more lines`));
|
|
603
|
+
if (scroll)
|
|
604
|
+
scroll.overlayScrollOffset = clamped;
|
|
605
|
+
return rows;
|
|
606
|
+
}
|
|
607
|
+
// ── Shared pane primitives ──
|
|
608
|
+
function paneTitle(label, focused) {
|
|
609
|
+
return focused ? activeSectionTitle(`▸ ${label}`) : sectionTitle(` ${label}`);
|
|
610
|
+
}
|
|
611
|
+
function emptyRow(label) {
|
|
612
|
+
return ` ${dim("·")} ${muted(label)}`;
|
|
613
|
+
}
|
|
614
|
+
function selectionPrefix(selected, focused) {
|
|
615
|
+
if (selected && focused)
|
|
616
|
+
return cursorColor("❯");
|
|
617
|
+
if (selected)
|
|
618
|
+
return bold("▪");
|
|
619
|
+
return dim("·");
|
|
620
|
+
}
|
|
621
|
+
/** `prefix name meta` padded so the meta column right-aligns. */
|
|
622
|
+
function alignedRow(prefix, name, meta, columnWidth, selected, focused) {
|
|
623
|
+
const metaWidth = displayWidth(meta);
|
|
624
|
+
const prefixWidth = displayWidth(prefix);
|
|
625
|
+
const nameBudget = Math.max(columnWidth - metaWidth - prefixWidth - 2, 8);
|
|
626
|
+
const compacted = compact(name, nameBudget);
|
|
627
|
+
const styled = selected && focused ? activeItem(compacted) : selected ? selectedItem(compacted) : compacted;
|
|
628
|
+
const left = `${prefix} ${styled}`;
|
|
629
|
+
const gap = Math.max(1, columnWidth - displayWidth(left) - metaWidth);
|
|
630
|
+
return meta.length > 0 ? `${left}${" ".repeat(gap)}${metaLabel(meta)}` : left;
|
|
631
|
+
}
|
|
632
|
+
/** Title + scrollable viewport, always exactly `maxLines` tall. */
|
|
633
|
+
export function renderScrollablePane(rows, titleLine, maxLines, scrollOffset, scroll) {
|
|
634
|
+
const lines = [titleLine];
|
|
635
|
+
const viewport = Math.max(maxLines - 1, 1);
|
|
636
|
+
if (rows.length <= viewport) {
|
|
637
|
+
lines.push(...rows);
|
|
638
|
+
while (lines.length < maxLines)
|
|
639
|
+
lines.push("");
|
|
640
|
+
if (scroll)
|
|
641
|
+
scroll.detailScrollOffset = 0;
|
|
642
|
+
return lines.slice(0, maxLines);
|
|
643
|
+
}
|
|
644
|
+
const maxOffset = rows.length - viewport + 1;
|
|
645
|
+
const offset = Math.min(Math.max(0, scrollOffset), maxOffset);
|
|
646
|
+
const hasAbove = offset > 0;
|
|
647
|
+
// Body slot budget after the optional "above" indicator. Reserve a slot for
|
|
648
|
+
// the "below" indicator only when content actually extends past the window;
|
|
649
|
+
// otherwise the final row stays permanently hidden behind a phantom "more
|
|
650
|
+
// below" line at the bottom of the scroll range.
|
|
651
|
+
const capacity = viewport - (hasAbove ? 1 : 0);
|
|
652
|
+
const remaining = rows.length - offset;
|
|
653
|
+
const contentRows = remaining <= capacity ? remaining : Math.max(0, capacity - 1);
|
|
654
|
+
const end = offset + contentRows;
|
|
655
|
+
if (hasAbove)
|
|
656
|
+
lines.push(muted(` ↑ ${offset} more lines`));
|
|
657
|
+
for (let index = offset; index < end; index += 1)
|
|
658
|
+
lines.push(rows[index]);
|
|
659
|
+
const below = rows.length - end;
|
|
660
|
+
if (below > 0)
|
|
661
|
+
lines.push(muted(` ↓ ${below} more lines`));
|
|
662
|
+
while (lines.length < maxLines)
|
|
663
|
+
lines.push("");
|
|
664
|
+
if (scroll)
|
|
665
|
+
scroll.detailScrollOffset = offset;
|
|
666
|
+
return lines.slice(0, maxLines);
|
|
667
|
+
}
|
|
668
|
+
export function viewportWindow(total, selectedIndex, size) {
|
|
669
|
+
if (total <= size)
|
|
670
|
+
return { start: 0, end: total };
|
|
671
|
+
const half = Math.floor(size / 2);
|
|
672
|
+
let start = Math.max(0, selectedIndex - half);
|
|
673
|
+
let end = start + size;
|
|
674
|
+
if (end > total) {
|
|
675
|
+
end = total;
|
|
676
|
+
start = end - size;
|
|
677
|
+
}
|
|
678
|
+
return { start, end };
|
|
679
|
+
}
|
|
680
|
+
// ── Field helpers ──
|
|
681
|
+
function pickUserTurnText(entry) {
|
|
682
|
+
const canonical = entry.turn.canonical_text?.trim();
|
|
683
|
+
if (canonical)
|
|
684
|
+
return tameDetailMarkup(canonical);
|
|
685
|
+
const fallback = (entry.turn.user_messages ?? [])
|
|
686
|
+
.filter((message) => !message.is_injected)
|
|
687
|
+
.map((message) => (message.canonical_text ?? message.raw_text).trim())
|
|
688
|
+
.filter((value) => value.length > 0)
|
|
689
|
+
.join("\n\n");
|
|
690
|
+
return tameDetailMarkup(fallback);
|
|
691
|
+
}
|
|
692
|
+
function formatTokenBreakdown(usage) {
|
|
693
|
+
const total = usage.total_tokens;
|
|
694
|
+
if (!total)
|
|
695
|
+
return "";
|
|
696
|
+
return `${formatCompactCount(total)} (in=${formatCompactCount(usage.input_tokens ?? 0) || "0"}, cached=${formatCompactCount(usage.cached_input_tokens ?? 0) || "0"}, out=${formatCompactCount(usage.output_tokens ?? 0) || "0"})`;
|
|
697
|
+
}
|
|
698
|
+
/** Exported for tests that assert on search grouping without a terminal. */
|
|
699
|
+
export function describeSearchGroup(group) {
|
|
700
|
+
return `${group.projectName} (${group.results.length})`;
|
|
701
|
+
}
|
|
702
|
+
/** Exported for tests: the first ranked match's turn id, if any. */
|
|
703
|
+
export function firstSearchTurnId(results) {
|
|
704
|
+
return results[0]?.turn.id;
|
|
705
|
+
}
|
|
706
|
+
//# sourceMappingURL=render.js.map
|