@wrongstack/tui 0.293.0 → 0.295.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/app-initial-state.d.ts +1 -1
- package/dist/app-initial-state.d.ts.map +1 -1
- package/dist/app-key-handler.d.ts +79 -0
- package/dist/app-key-handler.d.ts.map +1 -0
- package/dist/app-props.d.ts +25 -25
- package/dist/app-props.d.ts.map +1 -1
- package/dist/app-reducer.d.ts.map +1 -1
- package/dist/app-state.d.ts +31 -62
- package/dist/app-state.d.ts.map +1 -1
- package/dist/app-status-region.d.ts +5 -0
- package/dist/app-status-region.d.ts.map +1 -0
- package/dist/app-view-contract.d.ts +84 -0
- package/dist/app-view-contract.d.ts.map +1 -0
- package/dist/app-view-state.d.ts +19 -0
- package/dist/app-view-state.d.ts.map +1 -0
- package/dist/app-view.d.ts +4 -0
- package/dist/app-view.d.ts.map +1 -0
- package/dist/app.d.ts +3 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/auth-panel-model.d.ts +150 -0
- package/dist/auth-panel-model.d.ts.map +1 -0
- package/dist/brain-contracts.d.ts +8 -0
- package/dist/brain-contracts.d.ts.map +1 -0
- package/dist/brain-panel-model.d.ts +222 -0
- package/dist/brain-panel-model.d.ts.map +1 -0
- package/dist/checkpoint-retention.d.ts +35 -0
- package/dist/checkpoint-retention.d.ts.map +1 -0
- package/dist/components/agents-monitor.d.ts +3 -4
- package/dist/components/agents-monitor.d.ts.map +1 -1
- package/dist/components/animation-style.d.ts +22 -23
- package/dist/components/animation-style.d.ts.map +1 -1
- package/dist/components/audit-panel.d.ts +1 -1
- package/dist/components/audit-panel.d.ts.map +1 -1
- package/dist/components/auth-panel-model.d.ts +1 -149
- package/dist/components/auth-panel-model.d.ts.map +1 -1
- package/dist/components/brain-panel-model.d.ts +1 -106
- package/dist/components/brain-panel-model.d.ts.map +1 -1
- package/dist/components/brain-panel.d.ts +2 -7
- package/dist/components/brain-panel.d.ts.map +1 -1
- package/dist/components/composer-status-chip.d.ts +16 -3
- package/dist/components/composer-status-chip.d.ts.map +1 -1
- package/dist/components/context-panel.d.ts +1 -1
- package/dist/components/context-panel.d.ts.map +1 -1
- package/dist/components/coordinator-panel.d.ts +1 -1
- package/dist/components/coordinator-panel.d.ts.map +1 -1
- package/dist/components/design-picker.d.ts +1 -1
- package/dist/components/design-picker.d.ts.map +1 -1
- package/dist/components/exit-confirm-panel.d.ts +2 -1
- package/dist/components/exit-confirm-panel.d.ts.map +1 -1
- package/dist/components/fleet-monitor.d.ts +1 -1
- package/dist/components/fleet-monitor.d.ts.map +1 -1
- package/dist/components/fleet-panel.d.ts +2 -2
- package/dist/components/fleet-panel.d.ts.map +1 -1
- package/dist/components/history/banner.d.ts +4 -1
- package/dist/components/history/banner.d.ts.map +1 -1
- package/dist/components/history/code-block.d.ts +27 -19
- package/dist/components/history/code-block.d.ts.map +1 -1
- package/dist/components/history/entry.d.ts +4 -2
- package/dist/components/history/entry.d.ts.map +1 -1
- package/dist/components/history/index.d.ts +4 -4
- package/dist/components/history/index.d.ts.map +1 -1
- package/dist/components/history/replay.d.ts +1 -1
- package/dist/components/history/replay.d.ts.map +1 -1
- package/dist/components/history/tool-card.d.ts +2 -2
- package/dist/components/history/tool-card.d.ts.map +1 -1
- package/dist/components/history/tool-group.d.ts +73 -0
- package/dist/components/history/tool-group.d.ts.map +1 -0
- package/dist/components/history/types.d.ts +3 -156
- package/dist/components/history/types.d.ts.map +1 -1
- package/dist/components/history/utils.d.ts +2 -0
- package/dist/components/history/utils.d.ts.map +1 -1
- package/dist/components/history.d.ts +1 -1
- package/dist/components/history.d.ts.map +1 -1
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/kanban-panel.d.ts +1 -1
- package/dist/components/kanban-panel.d.ts.map +1 -1
- package/dist/components/mailbox-panel.d.ts +1 -0
- package/dist/components/mailbox-panel.d.ts.map +1 -1
- package/dist/components/mode-picker.d.ts +1 -1
- package/dist/components/mode-picker.d.ts.map +1 -1
- package/dist/components/process-list.d.ts.map +1 -1
- package/dist/components/resume-picker.d.ts +1 -1
- package/dist/components/resume-picker.d.ts.map +1 -1
- package/dist/components/scrollable-history.d.ts +61 -33
- package/dist/components/scrollable-history.d.ts.map +1 -1
- package/dist/components/settings-picker.d.ts +9 -2
- package/dist/components/settings-picker.d.ts.map +1 -1
- package/dist/components/status-bar-chips.d.ts +4 -1
- package/dist/components/status-bar-chips.d.ts.map +1 -1
- package/dist/components/status-bar.d.ts +7 -4
- package/dist/components/status-bar.d.ts.map +1 -1
- package/dist/components/statusline-picker.d.ts +1 -1
- package/dist/components/statusline-picker.d.ts.map +1 -1
- package/dist/components/todos-monitor.d.ts +1 -1
- package/dist/components/todos-monitor.d.ts.map +1 -1
- package/dist/context-fill.d.ts +61 -0
- package/dist/context-fill.d.ts.map +1 -0
- package/dist/context-slash.d.ts +1 -1
- package/dist/context-slash.d.ts.map +1 -1
- package/dist/cron-slash.d.ts +2 -1
- package/dist/cron-slash.d.ts.map +1 -1
- package/dist/exit-slash.d.ts +4 -1
- package/dist/exit-slash.d.ts.map +1 -1
- package/dist/heap-watchdog.d.ts +6 -2
- package/dist/heap-watchdog.d.ts.map +1 -1
- package/dist/height-cache.d.ts +58 -10
- package/dist/height-cache.d.ts.map +1 -1
- package/dist/history-entry.d.ts +175 -0
- package/dist/history-entry.d.ts.map +1 -0
- package/dist/history-retention.d.ts +15 -3
- package/dist/history-retention.d.ts.map +1 -1
- package/dist/hit-test.d.ts +4 -0
- package/dist/hit-test.d.ts.map +1 -1
- package/dist/hooks/subagent-history-format.d.ts +45 -0
- package/dist/hooks/subagent-history-format.d.ts.map +1 -0
- package/dist/hooks/use-app-picker-keys.d.ts +36 -0
- package/dist/hooks/use-app-picker-keys.d.ts.map +1 -0
- package/dist/hooks/use-auth-panel.d.ts +1 -1
- package/dist/hooks/use-auth-panel.d.ts.map +1 -1
- package/dist/hooks/use-autonomous-coordinator.d.ts +1 -1
- package/dist/hooks/use-autonomous-coordinator.d.ts.map +1 -1
- package/dist/hooks/use-autonomy-drivers.d.ts +25 -0
- package/dist/hooks/use-autonomy-drivers.d.ts.map +1 -0
- package/dist/hooks/use-brain-events.d.ts +1 -1
- package/dist/hooks/use-brain-events.d.ts.map +1 -1
- package/dist/hooks/use-brain-panel.d.ts +2 -2
- package/dist/hooks/use-brain-panel.d.ts.map +1 -1
- package/dist/hooks/use-chip-staleness-guard.d.ts +83 -0
- package/dist/hooks/use-chip-staleness-guard.d.ts.map +1 -0
- package/dist/hooks/use-client-telemetry.d.ts +17 -0
- package/dist/hooks/use-client-telemetry.d.ts.map +1 -0
- package/dist/hooks/use-core-tui-commands.d.ts +39 -0
- package/dist/hooks/use-core-tui-commands.d.ts.map +1 -0
- package/dist/hooks/use-director-fleet-bridge.d.ts +5 -1
- package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -1
- package/dist/hooks/use-exit-command.d.ts +2 -1
- package/dist/hooks/use-exit-command.d.ts.map +1 -1
- package/dist/hooks/use-file-search.d.ts +3 -2
- package/dist/hooks/use-file-search.d.ts.map +1 -1
- package/dist/hooks/use-fleet-generation-gate.d.ts +2 -0
- package/dist/hooks/use-fleet-generation-gate.d.ts.map +1 -1
- package/dist/hooks/use-git-session-status.d.ts +11 -0
- package/dist/hooks/use-git-session-status.d.ts.map +1 -0
- package/dist/hooks/use-initial-prompt.d.ts +15 -0
- package/dist/hooks/use-initial-prompt.d.ts.map +1 -0
- package/dist/hooks/use-input-history-persistence.d.ts.map +1 -1
- package/dist/hooks/use-interrupt-ladder.d.ts +29 -0
- package/dist/hooks/use-interrupt-ladder.d.ts.map +1 -0
- package/dist/hooks/use-live-todos.d.ts +1 -1
- package/dist/hooks/use-live-todos.d.ts.map +1 -1
- package/dist/hooks/use-mailbox-view-model.d.ts +13 -0
- package/dist/hooks/use-mailbox-view-model.d.ts.map +1 -0
- package/dist/hooks/use-mode-picker.d.ts +1 -1
- package/dist/hooks/use-mode-picker.d.ts.map +1 -1
- package/dist/hooks/use-next-steps-auto-submit.d.ts +50 -0
- package/dist/hooks/use-next-steps-auto-submit.d.ts.map +1 -0
- package/dist/hooks/use-panel-controllers.d.ts +41 -0
- package/dist/hooks/use-panel-controllers.d.ts.map +1 -0
- package/dist/hooks/use-paste-handling.d.ts +5 -3
- package/dist/hooks/use-paste-handling.d.ts.map +1 -1
- package/dist/hooks/use-picker-keys.d.ts +7 -3
- package/dist/hooks/use-picker-keys.d.ts.map +1 -1
- package/dist/hooks/use-prompt-picker.d.ts.map +1 -1
- package/dist/hooks/use-provider-event-bridge.d.ts +24 -0
- package/dist/hooks/use-provider-event-bridge.d.ts.map +1 -0
- package/dist/hooks/use-queue-manager.d.ts +2 -1
- package/dist/hooks/use-queue-manager.d.ts.map +1 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts +1 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts.map +1 -1
- package/dist/hooks/use-settings-auto-save.d.ts +6 -0
- package/dist/hooks/use-settings-auto-save.d.ts.map +1 -0
- package/dist/hooks/use-slash-picker.d.ts +13 -0
- package/dist/hooks/use-slash-picker.d.ts.map +1 -0
- package/dist/hooks/use-statusbar-view-model.d.ts +54 -0
- package/dist/hooks/use-statusbar-view-model.d.ts.map +1 -0
- package/dist/hooks/use-subagent-events.d.ts +2 -1
- package/dist/hooks/use-subagent-events.d.ts.map +1 -1
- package/dist/hooks/use-terminal-render-lifecycle.d.ts +4 -0
- package/dist/hooks/use-terminal-render-lifecycle.d.ts.map +1 -0
- package/dist/hooks/use-token-counter-refresh.d.ts +2 -1
- package/dist/hooks/use-token-counter-refresh.d.ts.map +1 -1
- package/dist/hooks/use-tui-activity.d.ts +2 -1
- package/dist/hooks/use-tui-activity.d.ts.map +1 -1
- package/dist/hooks/use-tui-controllers.d.ts +1 -1
- package/dist/hooks/use-tui-controllers.d.ts.map +1 -1
- package/dist/hooks/use-tui-environment-state.d.ts +42 -0
- package/dist/hooks/use-tui-environment-state.d.ts.map +1 -0
- package/dist/hooks/use-tui-event-bridge.d.ts +1 -1
- package/dist/hooks/use-tui-event-bridge.d.ts.map +1 -1
- package/dist/hooks/use-tui-slash-commands.d.ts +28 -0
- package/dist/hooks/use-tui-slash-commands.d.ts.map +1 -0
- package/dist/hooks/use-working-dir-chip.d.ts +1 -1
- package/dist/hooks/use-working-dir-chip.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33733 -29799
- package/dist/index.js.map +4 -4
- package/dist/ink.d.ts +1 -1
- package/dist/ink.d.ts.map +1 -1
- package/dist/input-key-router.d.ts +35 -0
- package/dist/input-key-router.d.ts.map +1 -0
- package/dist/input-validation.d.ts +1 -1
- package/dist/input-validation.d.ts.map +1 -1
- package/dist/kanban-slash.d.ts +1 -1
- package/dist/kanban-slash.d.ts.map +1 -1
- package/dist/kill-slash.d.ts +1 -1
- package/dist/kill-slash.d.ts.map +1 -1
- package/dist/layout-engine.d.ts +112 -0
- package/dist/layout-engine.d.ts.map +1 -0
- package/dist/layout-store.d.ts +89 -0
- package/dist/layout-store.d.ts.map +1 -0
- package/dist/markdown.d.ts.map +1 -1
- package/dist/memory-context-monitor.d.ts +6 -1
- package/dist/memory-context-monitor.d.ts.map +1 -1
- package/dist/memory-slash.d.ts +2 -2
- package/dist/memory-slash.d.ts.map +1 -1
- package/dist/mouse.d.ts +13 -4
- package/dist/mouse.d.ts.map +1 -1
- package/dist/overlay-key-router.d.ts +43 -0
- package/dist/overlay-key-router.d.ts.map +1 -0
- package/dist/paste-accumulator.d.ts +10 -4
- package/dist/paste-accumulator.d.ts.map +1 -1
- package/dist/ps-slash.d.ts +1 -1
- package/dist/ps-slash.d.ts.map +1 -1
- package/dist/queue-slash.d.ts +2 -2
- package/dist/queue-slash.d.ts.map +1 -1
- package/dist/reducers/activity.d.ts +10 -0
- package/dist/reducers/activity.d.ts.map +1 -0
- package/dist/reducers/composer.d.ts +10 -0
- package/dist/reducers/composer.d.ts.map +1 -0
- package/dist/reducers/conversation.d.ts +10 -0
- package/dist/reducers/conversation.d.ts.map +1 -0
- package/dist/reducers/dialogs.d.ts +10 -0
- package/dist/reducers/dialogs.d.ts.map +1 -0
- package/dist/reducers/fleet.d.ts.map +1 -1
- package/dist/reducers/helpers.d.ts +8 -1
- package/dist/reducers/helpers.d.ts.map +1 -1
- package/dist/reducers/panel-pickers.d.ts +10 -0
- package/dist/reducers/panel-pickers.d.ts.map +1 -0
- package/dist/reducers/settings-panel.d.ts +10 -0
- package/dist/reducers/settings-panel.d.ts.map +1 -0
- package/dist/reducers/settings-values.d.ts +10 -0
- package/dist/reducers/settings-values.d.ts.map +1 -0
- package/dist/reducers/workspace-panels.d.ts +10 -0
- package/dist/reducers/workspace-panels.d.ts.map +1 -0
- package/dist/rehydrate-history.d.ts +1 -1
- package/dist/rehydrate-history.d.ts.map +1 -1
- package/dist/run-blocks-controller.d.ts +30 -0
- package/dist/run-blocks-controller.d.ts.map +1 -0
- package/dist/run-tui.d.ts +22 -18
- package/dist/run-tui.d.ts.map +1 -1
- package/dist/scroll-anchor.d.ts +103 -0
- package/dist/scroll-anchor.d.ts.map +1 -0
- package/dist/settings-contracts.d.ts +58 -0
- package/dist/settings-contracts.d.ts.map +1 -0
- package/dist/shared-types.d.ts +17 -0
- package/dist/shared-types.d.ts.map +1 -0
- package/dist/slash-command-search.d.ts +1 -1
- package/dist/slash-command-search.d.ts.map +1 -1
- package/dist/submit-controller.d.ts +73 -0
- package/dist/submit-controller.d.ts.map +1 -0
- package/dist/submit-prompt-refinement.d.ts +30 -0
- package/dist/submit-prompt-refinement.d.ts.map +1 -0
- package/dist/terminal-title.d.ts +1 -1
- package/dist/terminal-title.d.ts.map +1 -1
- package/dist/theme.d.ts +6 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/token-previews.d.ts +44 -0
- package/dist/token-previews.d.ts.map +1 -0
- package/dist/tui-host-capabilities.d.ts +66 -0
- package/dist/tui-host-capabilities.d.ts.map +1 -0
- package/dist/ui-contracts.d.ts +136 -0
- package/dist/ui-contracts.d.ts.map +1 -0
- package/dist/ui-glyphs.d.ts +1 -0
- package/dist/ui-glyphs.d.ts.map +1 -1
- package/package.json +13 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-bar.d.ts","sourceRoot":"","sources":["../../src/components/status-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"status-bar.d.ts","sourceRoot":"","sources":["../../src/components/status-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAQtD,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,8BAA8B,CAAC;AAqGtC;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAStD;AASD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,SAAc,GAAG,MAAM,CAU3F;AAED;;;;;GAKG;AACH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MAAM,GAAG,SAAS,GAChC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAOlC;AAKD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnE;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAchE;AAQD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAS7C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
/** All possible statusline chip keys. */
|
|
3
|
-
export type StatuslineItem = 'version' | 'state' | 'model' | 'tokens' | 'cache' | 'queue' | 'processes' | 'hint' | 'index' | 'memory' | '
|
|
3
|
+
export type StatuslineItem = 'version' | 'state' | 'model' | 'tokens' | 'cache' | 'queue' | 'processes' | 'hint' | 'index' | 'memory' | 'sage' | 'breaker' | 'todos' | 'plan' | 'tasks' | 'fleet' | 'fleet_agents' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir' | 'project' | 'yolo' | 'autonomy' | 'eternal_stage' | 'goal' | 'mode' | 'auto_proceed' | 'sessions' | 'time' | 'tools' | 'token_saving' | 'brain' | 'mailbox' | 'enhance' | 'debug_stream' | 'next_steps' | 'memory_context' | 'cpu';
|
|
4
4
|
/**
|
|
5
5
|
* Metadata for a temporarily-visible chip (one that appeared due to data,
|
|
6
6
|
* not user toggle). Tracked so the chip can auto-expire.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusline-picker.d.ts","sourceRoot":"","sources":["../../src/components/statusline-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,yCAAyC;AACzC,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,WAAW,GACX,MAAM,GACN,OAAO,GACP,QAAQ,GACR,
|
|
1
|
+
{"version":3,"file":"statusline-picker.d.ts","sourceRoot":"","sources":["../../src/components/statusline-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,yCAAyC;AACzC,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,WAAW,GACX,MAAM,GACN,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,cAAc,GACd,KAAK,GACL,SAAS,GACT,SAAS,GACT,MAAM,GACN,aAAa,GACb,SAAS,GACT,MAAM,GACN,UAAU,GACV,eAAe,GACf,MAAM,GACN,MAAM,GACN,cAAc,GACd,UAAU,GACV,MAAM,GACN,OAAO,GACP,cAAc,GACd,OAAO,GACP,SAAS,GACT,SAAS,GACT,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,KAAK,CAAC;AAEV;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,cAAc,CAAC;IACpB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iEAAiE;AACjE,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,OAAO,CAIvE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,MAAM,GAAG,IAAI,CAOjF;AA8CD;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CA8CpD,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,0DAA0D;IAC1D,YAAY,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IACtC,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,QAAgC,CAAC;AAEpE,kIAAkI;AAClI,eAAO,MAAM,gBAAgB,EAAE,cAAc,EA4C5C,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAAoD,CAAC;AAalG,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,WAAW,EACX,YAAiB,EACjB,IAAI,GACL,EAAE,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAmI5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"todos-monitor.d.ts","sourceRoot":"","sources":["../../src/components/todos-monitor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"todos-monitor.d.ts","sourceRoot":"","sources":["../../src/components/todos-monitor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,QAAQ,EAAE,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAoIjF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context-window fill resolution for the statusline `ctx` chip.
|
|
3
|
+
*
|
|
4
|
+
* The chip and the `/context` panel MUST agree. They diverged because the panel
|
|
5
|
+
* reads the agent loop's own `ctx.pct` measurement (`state.leader.ctxTokens`)
|
|
6
|
+
* while the chip rolled its own number from the provider's reported usage, and
|
|
7
|
+
* fell back to the *cumulative* session total when the provider under-reported
|
|
8
|
+
* prompt tokens. A cumulative total is a session aggregate — it climbs into the
|
|
9
|
+
* millions and cannot be compared against a per-request ceiling, so clamping it
|
|
10
|
+
* pegged the bar at a false `1.0M/1.0M` (100%). See
|
|
11
|
+
* [[statusline-vs-context-token-source]].
|
|
12
|
+
*
|
|
13
|
+
* This module is the single place that decides *which* number the chip shows.
|
|
14
|
+
* It is pure so the precedence can be tested without rendering the App.
|
|
15
|
+
*/
|
|
16
|
+
export interface ContextFillInputs {
|
|
17
|
+
/**
|
|
18
|
+
* Tokens reported by the agent loop's `ctx.pct` event
|
|
19
|
+
* (`state.leader.ctxTokens`). Authoritative: it anchors on the provider's real
|
|
20
|
+
* prompt-token count and adds an estimate of messages appended since, against
|
|
21
|
+
* the live per-model ceiling. This is the exact number `/context` displays.
|
|
22
|
+
*/
|
|
23
|
+
loopReportedTokens?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* `tokenCounter.currentRequestTokens()` summed (input + cacheRead +
|
|
26
|
+
* cacheWrite). Only meaningful for the model that produced it.
|
|
27
|
+
*/
|
|
28
|
+
perRequestTokens: number;
|
|
29
|
+
/** `getContextBreakdown(ctx).total` — local tokenizer estimate. */
|
|
30
|
+
localEstimate?: number | undefined;
|
|
31
|
+
/** Live per-model context ceiling. */
|
|
32
|
+
maxContext: number;
|
|
33
|
+
}
|
|
34
|
+
export type ContextFillSource = 'loop' | 'provider' | 'local' | 'none';
|
|
35
|
+
export interface ContextFillResult {
|
|
36
|
+
/** Tokens to display as "used". Always `<= maxContext` (and `>= 0`). */
|
|
37
|
+
used: number;
|
|
38
|
+
/**
|
|
39
|
+
* True when neither the loop nor the provider produced a usable number, so
|
|
40
|
+
* the caller should compute `getContextBreakdown` and pass it back in as
|
|
41
|
+
* `localEstimate`.
|
|
42
|
+
*/
|
|
43
|
+
needsLocalEstimate: boolean;
|
|
44
|
+
source: ContextFillSource;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Pick the context-fill numerator, most trustworthy source first.
|
|
48
|
+
*
|
|
49
|
+
* 1. `loopReportedTokens` — same value as `/context`, so the two surfaces match.
|
|
50
|
+
* 2. `perRequestTokens`, but only when it is a *valid* per-request measure: a
|
|
51
|
+
* real one cannot exceed its own ceiling. A value above `maxContext` is
|
|
52
|
+
* stale (the model switched to a smaller window and the snapshot still
|
|
53
|
+
* belongs to the old one) or mis-parsed, and is rejected rather than clamped
|
|
54
|
+
* to a misleading 100%.
|
|
55
|
+
* 3. `localEstimate`.
|
|
56
|
+
*
|
|
57
|
+
* The cumulative session total is deliberately not an input — it is never a
|
|
58
|
+
* valid answer to "how full is the context window?".
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveContextFill(inputs: ContextFillInputs): ContextFillResult;
|
|
61
|
+
//# sourceMappingURL=context-fill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-fill.d.ts","sourceRoot":"","sources":["../src/context-fill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvE,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAkB/E"}
|
package/dist/context-slash.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-slash.d.ts","sourceRoot":"","sources":["../src/context-slash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-slash.d.ts","sourceRoot":"","sources":["../src/context-slash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAC;IAC5E,2EAA2E;IAC3E,UAAU,CAAC,EAAE,CAAC,MAAM,mBAAmB,CAAC,GAAG,SAAS,CAAC;IACrD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wEAAwE;AACxE,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAS7D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,gBAAgB,GAAG,YAAY,CAyC9E;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAwB1F"}
|
package/dist/cron-slash.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* `cron_list` tool at registration time. Renders a formatted table of
|
|
6
6
|
* job names, intervals, actions, run counts, and overdue status.
|
|
7
7
|
*/
|
|
8
|
-
import type { Agent
|
|
8
|
+
import type { Agent } from '@wrongstack/core/agent';
|
|
9
|
+
import type { SlashCommand } from '@wrongstack/core/types';
|
|
9
10
|
export interface CronJobView {
|
|
10
11
|
name: string;
|
|
11
12
|
intervalMs: number;
|
package/dist/cron-slash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-slash.d.ts","sourceRoot":"","sources":["../src/cron-slash.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cron-slash.d.ts","sourceRoot":"","sources":["../src/cron-slash.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI3D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5C;AAED,kFAAkF;AAClF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,GAClC,MAAM,OAAO,CAAC,cAAc,CAAC,CAqB/B;AASD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY,CAkBxE;AAqCD,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAqC7D"}
|
package/dist/exit-slash.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlashCommand } from '@wrongstack/core';
|
|
1
|
+
import type { SlashCommand } from '@wrongstack/core/types';
|
|
2
2
|
/**
|
|
3
3
|
* Arguments passed to `createExitSlashCommand`. The handler runs inside the
|
|
4
4
|
* TUI shell, so it owns the lifecycle of in-flight subagents and the exit
|
|
@@ -9,6 +9,8 @@ export interface CreateExitSlashCommandOptions {
|
|
|
9
9
|
isLeaderActive: () => boolean;
|
|
10
10
|
/** Number of subagents currently in the running state. */
|
|
11
11
|
countRunningSubagents: () => number;
|
|
12
|
+
/** Number of detached jobs that will be preserved when the TUI exits. */
|
|
13
|
+
countBackgroundProcesses?: (() => number) | undefined;
|
|
12
14
|
/**
|
|
13
15
|
* Bridge into the TUI's `exitConfirm` reducer slot. Returns the user's
|
|
14
16
|
* decision (`true` to exit, `false` to cancel). When no work is active,
|
|
@@ -18,6 +20,7 @@ export interface CreateExitSlashCommandOptions {
|
|
|
18
20
|
confirmExit: (info: {
|
|
19
21
|
leaderActive: boolean;
|
|
20
22
|
subagentCount: number;
|
|
23
|
+
backgroundCount?: number | undefined;
|
|
21
24
|
}) => Promise<boolean>;
|
|
22
25
|
/**
|
|
23
26
|
* Original host-owned `/exit` handler. It owns pre-exit checks and process
|
package/dist/exit-slash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit-slash.d.ts","sourceRoot":"","sources":["../src/exit-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"exit-slash.d.ts","sourceRoot":"","sources":["../src/exit-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,8DAA8D;IAC9D,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,qBAAqB,EAAE,MAAM,MAAM,CAAC;IACpC,yEAAyE;IACzE,wBAAwB,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;IACtD;;;;;OAKG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE;QAClB,YAAY,EAAE,OAAO,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACtC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;CACpD;AAQD;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,6BAA6B,GAAG,YAAY,CAmCxF"}
|
package/dist/heap-watchdog.d.ts
CHANGED
|
@@ -27,15 +27,19 @@ export interface HeapWatchdogOptions {
|
|
|
27
27
|
* counters (array lengths, approximate char totals). Must not throw.
|
|
28
28
|
*/
|
|
29
29
|
collectStats?: (() => Record<string, number>) | undefined;
|
|
30
|
+
/** Override the JSONL writer, primarily for deterministic diagnostics tests. */
|
|
31
|
+
writeDiagnosticLine?: ((logPath: string, line: string) => Promise<void>) | undefined;
|
|
30
32
|
/** Called on threshold crossings with a human-readable message. */
|
|
31
33
|
onWarn?: ((level: 'warn' | 'critical', message: string, sample: HeapSample) => void) | undefined;
|
|
32
34
|
}
|
|
33
35
|
export declare function defaultHeapLogPath(): string;
|
|
34
36
|
export declare function takeHeapSample(): HeapSample;
|
|
35
37
|
/**
|
|
36
|
-
* Start the watchdog. Returns
|
|
38
|
+
* Start the watchdog. Returns an async stop function — await it on exit when
|
|
39
|
+
* the final diagnostic sample must reach storage. React cleanup may invoke it
|
|
40
|
+
* without awaiting; the returned promise still keeps the drain alive.
|
|
37
41
|
* All I/O is best-effort and serialized; a failed append never throws into
|
|
38
42
|
* the caller.
|
|
39
43
|
*/
|
|
40
|
-
export declare function startHeapWatchdog(opts?: HeapWatchdogOptions): () => void
|
|
44
|
+
export declare function startHeapWatchdog(opts?: HeapWatchdogOptions): () => Promise<void>;
|
|
41
45
|
//# sourceMappingURL=heap-watchdog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heap-watchdog.d.ts","sourceRoot":"","sources":["../src/heap-watchdog.ts"],"names":[],"mappings":"AAuBA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,C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5B,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1D,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IACrF,mEAAmE;IACnE,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAClG;AAID,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,wBAAgB,cAAc,IAAI,UAAU,CAY3C;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,mBAAwB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CA+HrF"}
|
package/dist/height-cache.d.ts
CHANGED
|
@@ -30,31 +30,73 @@ export declare class EntryHeightCache {
|
|
|
30
30
|
/** id → measured height in terminal rows */
|
|
31
31
|
private readonly heights;
|
|
32
32
|
/**
|
|
33
|
-
* Prefix-sum of heights in
|
|
34
|
-
*
|
|
35
|
-
* `prefix[
|
|
33
|
+
* Prefix-sum of heights in the order last returned by `sync()` (transcript
|
|
34
|
+
* order), with later `record()` / `recordMany()` calls appended.
|
|
35
|
+
* `prefix[i]` = sum of heights for entries with index < i. `prefix[0]` is
|
|
36
|
+
* always 0.
|
|
37
|
+
* Invariant: `prefix.length === this.ids.length + 1` — but only once
|
|
38
|
+
* `prefixDirty` is false. Mutators mark the prefix dirty instead of
|
|
39
|
+
* rebuilding eagerly, so a burst of `record()`/`sync()`/`recordMany()`
|
|
40
|
+
* calls in one render cycle costs a single O(n) rebuild at the first read
|
|
41
|
+
* instead of one O(n) rebuild per mutation. After any mutator, `prefix`
|
|
42
|
+
* may lag until the next read; `size` and `ids` are always authoritative.
|
|
36
43
|
*/
|
|
37
44
|
private prefix;
|
|
38
45
|
/** Ordered entry ids matching the prefix-sum positions. */
|
|
39
46
|
private ids;
|
|
47
|
+
/** True when `prefix` no longer reflects `heights`/`ids` and must be rebuilt. */
|
|
48
|
+
private prefixDirty;
|
|
40
49
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
|
|
50
|
+
* Set to `true` after the first call to `sync()`, so `record()` knows the
|
|
51
|
+
* id order is governed by transcript membership and must reject unknown ids.
|
|
52
|
+
* Reset by `clear()`.
|
|
53
|
+
*/
|
|
54
|
+
private synced;
|
|
55
|
+
/**
|
|
56
|
+
* Record or update the measured height for an entry. O(1) — marks the
|
|
57
|
+
* prefix-sum dirty; the rebuild is deferred to the first read so a burst
|
|
58
|
+
* of records in one render cycle pays for a single rebuild.
|
|
59
|
+
*
|
|
60
|
+
* After the first `sync()`, the id MUST be a member of the synced set or
|
|
61
|
+
* have been previously recorded — unknown ids are rejected with a
|
|
62
|
+
* `RangeError` because appending them at the end would place them at the
|
|
63
|
+
* wrong transcript position, corrupting the virtual scroll viewport.
|
|
64
|
+
* Call `sync()` first if you need to register new ids.
|
|
65
|
+
*
|
|
66
|
+
* Before any `sync()` call (fresh cache), unknown ids are appended in
|
|
67
|
+
* insertion order, which is the only reasonable behaviour when no
|
|
68
|
+
* transcript order exists yet.
|
|
45
69
|
*
|
|
46
70
|
* Returns `true` when the height changed (new or different from last record).
|
|
47
71
|
*/
|
|
48
72
|
record(id: number, height: number): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Synchronize cache membership/order with the retained transcript in one
|
|
75
|
+
* O(n) rebuild. Missing entries receive a bounded estimate immediately, so
|
|
76
|
+
* the first render of a resumed/long session can be virtualized instead of
|
|
77
|
+
* mounting the entire history tree just to discover its height.
|
|
78
|
+
*/
|
|
79
|
+
sync(entryIds: readonly number[], estimatedHeight?: number): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Update several measured estimates with a single deferred prefix rebuild.
|
|
82
|
+
*
|
|
83
|
+
* Rows MUST reference ids already registered via `sync()`. Unknown ids are
|
|
84
|
+
* rejected with a `RangeError` because appending them at the end would place
|
|
85
|
+
* them at the wrong transcript position until the next `sync()`, corrupting
|
|
86
|
+
* the virtual scroll viewport. Call `sync()` first if you need to register
|
|
87
|
+
* new ids. Duplicate ids within one batch are last-write-wins (each row is
|
|
88
|
+
* applied in order).
|
|
89
|
+
*/
|
|
90
|
+
recordMany(rows: Iterable<readonly [id: number, height: number]>): boolean;
|
|
49
91
|
/**
|
|
50
92
|
* Total height in rows of all measured entries.
|
|
51
|
-
* O(1) — returns the last prefix-sum entry.
|
|
93
|
+
* Amortized O(1) — returns the last prefix-sum entry, rebuilding once if dirty.
|
|
52
94
|
*/
|
|
53
95
|
totalHeight(): number;
|
|
54
96
|
/**
|
|
55
97
|
* Accumulated row height of entries with index < `entryIndex`.
|
|
56
|
-
* `accumulatedHeight(0)` = 0.
|
|
57
|
-
* O(1) via prefix-sum lookup.
|
|
98
|
+
* `accumulatedHeight(0)` = 0. Clamps to total height when
|
|
99
|
+
* `entryIndex > ids.length`. O(1) via prefix-sum lookup.
|
|
58
100
|
*/
|
|
59
101
|
accumulatedHeight(entryIndex: number): number;
|
|
60
102
|
/**
|
|
@@ -82,8 +124,14 @@ export declare class EntryHeightCache {
|
|
|
82
124
|
/**
|
|
83
125
|
* Drop cached rows for entries no longer present in the bounded TUI history
|
|
84
126
|
* and restore prefix ordering to match the current entry array.
|
|
127
|
+
*
|
|
128
|
+
* Unlike `sync()`, retained ids that are not yet measured are NOT seeded
|
|
129
|
+
* with a placeholder — call `sync()` if you need bounded estimates for ids
|
|
130
|
+
* that have never been recorded.
|
|
85
131
|
*/
|
|
86
132
|
retain(entryIds: readonly number[]): void;
|
|
133
|
+
/** Rebuild the prefix-sum once if any mutation since the last read dirtied it. */
|
|
134
|
+
private ensurePrefix;
|
|
87
135
|
/** Rebuild the prefix-sum array from current heights in insertion order. */
|
|
88
136
|
private rebuild;
|
|
89
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"height-cache.d.ts","sourceRoot":"","sources":["../src/height-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;;;;;;;GASG;AACH,qBAAa,gBAAgB;IAC3B,4CAA4C;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IAErD
|
|
1
|
+
{"version":3,"file":"height-cache.d.ts","sourceRoot":"","sources":["../src/height-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;;;;;;;GASG;AACH,qBAAa,gBAAgB;IAC3B,4CAA4C;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IAErD;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAM,CAAiB;IAE/B,2DAA2D;IAC3D,OAAO,CAAC,GAAG,CAAgB;IAE3B,iFAAiF;IACjF,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAiB1C;IAED;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,eAAe,SAAuB,GAAG,OAAO,CAiCjF;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,OAAO,CAiBzE;IAED;;;OAGG;IACH,WAAW,IAAI,MAAM,CAGpB;IAED;;;;OAIG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAO5C;IAED;;;OAGG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExC;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;OAOG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAsB5C;IAED;;OAEG;IACH,KAAK,IAAI,IAAI,CAMZ;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAcxC;IAID,kFAAkF;IAClF,OAAO,CAAC,YAAY;IAMpB,4EAA4E;IAC5E,OAAO,CAAC,OAAO;CAQhB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,mBAAmB;IAClC,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,QAAQ,EAAE,OAAO,CAAC;CACnB;AAUD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,gBAAgB,GACtB,mBAAmB,CA4DrB"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/** Render-neutral conversation entry contracts retained by TUI state. */
|
|
2
|
+
export interface AutonomyAgentStatus {
|
|
3
|
+
/** Short display name (e.g. "Brain", "Shadow", "Kanban", "Mailbox", "Memory"). */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Whether this agent is currently alive and reporting. */
|
|
6
|
+
online: boolean;
|
|
7
|
+
/** Optional detail line (risk level, interval, model, etc.). */
|
|
8
|
+
detail?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface MemoryActivationItem {
|
|
11
|
+
id: string;
|
|
12
|
+
kind: string;
|
|
13
|
+
text: string;
|
|
14
|
+
score: number;
|
|
15
|
+
relationStrength: number;
|
|
16
|
+
anchors: string[];
|
|
17
|
+
tags: string[];
|
|
18
|
+
activationReasons: string[];
|
|
19
|
+
importance: number;
|
|
20
|
+
confidence: number;
|
|
21
|
+
freshness: number;
|
|
22
|
+
persistence: string;
|
|
23
|
+
}
|
|
24
|
+
export type HistoryEntry = {
|
|
25
|
+
id: number;
|
|
26
|
+
kind: 'user';
|
|
27
|
+
text: string;
|
|
28
|
+
queued?: boolean | undefined;
|
|
29
|
+
pasteContent?: string | undefined;
|
|
30
|
+
} | {
|
|
31
|
+
id: number;
|
|
32
|
+
kind: 'assistant';
|
|
33
|
+
text: string;
|
|
34
|
+
} | {
|
|
35
|
+
id: number;
|
|
36
|
+
kind: 'thinking';
|
|
37
|
+
text: string;
|
|
38
|
+
} | {
|
|
39
|
+
id: number;
|
|
40
|
+
kind: 'tool';
|
|
41
|
+
name: string;
|
|
42
|
+
durationMs: number;
|
|
43
|
+
ok: boolean;
|
|
44
|
+
input?: unknown | undefined;
|
|
45
|
+
output?: string | undefined;
|
|
46
|
+
/** Full byte length of the result body the model actually received
|
|
47
|
+
* (post-cap, post-scrub). Carried separately because `output` is a
|
|
48
|
+
* ~400-char preview — `outputBytes` is what the model paid for. */
|
|
49
|
+
outputBytes?: number | undefined;
|
|
50
|
+
/** ~3.5 chars/token estimate over `outputBytes`. Cheap to render in
|
|
51
|
+
* the chip; the authoritative count lives in provider.response.usage. */
|
|
52
|
+
outputTokens?: number | undefined;
|
|
53
|
+
/** Real line count for tools that have a meaningful one — read counts
|
|
54
|
+
* numbered prefixes, shell/grep/logs count newlines. Undefined for
|
|
55
|
+
* tools without a line notion (json, fetch, …). */
|
|
56
|
+
outputLines?: number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Per-tool on-screen result render mode. `simple` hides the body
|
|
59
|
+
* preview and shows only meta (line count, byte size); `extend`
|
|
60
|
+
* shows the full preview. Mirrors the CLI's `setResultRenderMode`
|
|
61
|
+
* state. The frontend TUI reads this off the same
|
|
62
|
+
* `tools.resultRenderMode[name]` config the CLI uses.
|
|
63
|
+
*/
|
|
64
|
+
resultRenderMode?: 'simple' | 'extend' | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
id: number;
|
|
67
|
+
kind: 'info';
|
|
68
|
+
text: string;
|
|
69
|
+
} | {
|
|
70
|
+
id: number;
|
|
71
|
+
kind: 'warn';
|
|
72
|
+
text: string;
|
|
73
|
+
} | {
|
|
74
|
+
id: number;
|
|
75
|
+
kind: 'error';
|
|
76
|
+
text: string;
|
|
77
|
+
} | {
|
|
78
|
+
id: number;
|
|
79
|
+
kind: 'turn-summary';
|
|
80
|
+
text: string;
|
|
81
|
+
} | {
|
|
82
|
+
id: number;
|
|
83
|
+
kind: 'model-switch';
|
|
84
|
+
/** Previous provider id — omitted on the first switch when unknown. */
|
|
85
|
+
fromProvider?: string | undefined;
|
|
86
|
+
/** Previous model id. */
|
|
87
|
+
fromModel?: string | undefined;
|
|
88
|
+
/** New provider id. */
|
|
89
|
+
toProvider: string;
|
|
90
|
+
/** New model id. */
|
|
91
|
+
toModel: string;
|
|
92
|
+
/** Previous model's max context window in tokens, when known. */
|
|
93
|
+
fromContext?: number | undefined;
|
|
94
|
+
/** New model's max context window in tokens, when known. */
|
|
95
|
+
toContext?: number | undefined;
|
|
96
|
+
/** Tokens in the pending request — drives the shrink-warning line. */
|
|
97
|
+
requestTokens?: number | undefined;
|
|
98
|
+
} | {
|
|
99
|
+
id: number;
|
|
100
|
+
kind: 'memory-activation';
|
|
101
|
+
trigger: string;
|
|
102
|
+
outcome: 'injected' | 'empty' | 'error';
|
|
103
|
+
candidates: number;
|
|
104
|
+
contextPressure: number;
|
|
105
|
+
injectedChars: number;
|
|
106
|
+
activated: MemoryActivationItem[];
|
|
107
|
+
injectedIds: string[];
|
|
108
|
+
rejected: Record<'duplicate' | 'belowScore' | 'alreadyVisible' | 'cooldown' | 'budget', number>;
|
|
109
|
+
error?: string | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
id: number;
|
|
112
|
+
kind: 'memory-lifecycle';
|
|
113
|
+
action: 'entered' | 'updated' | 'merged' | 'recovered' | 'exited' | 'related' | 'superseded' | 'archived' | 'staled' | 'contradicted';
|
|
114
|
+
label: string;
|
|
115
|
+
detail?: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
id: number;
|
|
118
|
+
kind: 'brain';
|
|
119
|
+
status: 'thinking' | 'answered' | 'ask_human' | 'denied';
|
|
120
|
+
source: string;
|
|
121
|
+
risk: 'low' | 'medium' | 'high' | 'critical';
|
|
122
|
+
question: string;
|
|
123
|
+
decision?: string | undefined;
|
|
124
|
+
rationale?: string | undefined;
|
|
125
|
+
outcome?: string | undefined;
|
|
126
|
+
interventionKind?: string | undefined;
|
|
127
|
+
} | {
|
|
128
|
+
id: number;
|
|
129
|
+
kind: 'banner';
|
|
130
|
+
version: string;
|
|
131
|
+
provider: string;
|
|
132
|
+
model: string;
|
|
133
|
+
cwd: string;
|
|
134
|
+
family?: string | undefined;
|
|
135
|
+
keyTail?: string | undefined;
|
|
136
|
+
/** Current session id (e.g. "sess_01KXV6…"). Static per session lifetime,
|
|
137
|
+
* used for /resume, bug reports, and mailbox coordination. */
|
|
138
|
+
sessionId?: string | undefined;
|
|
139
|
+
/** Active fallback profile name (e.g. "default"), shown in the banner
|
|
140
|
+
* to make the active profile visible at a glance. */
|
|
141
|
+
profile?: string | undefined;
|
|
142
|
+
/** Absolute path to the active profile's config.json
|
|
143
|
+
* (e.g. "~/.wrongstack/profiles/default/config.json"). When present,
|
|
144
|
+
* the banner renders this full path with the profile name segment
|
|
145
|
+
* (the directory between "profiles/" and "/config.json") highlighted
|
|
146
|
+
* in the accent color, instead of the bare {@link profile} string. */
|
|
147
|
+
profileConfigPath?: string | undefined;
|
|
148
|
+
/** Background autonomy agents currently online/active (Brain, Shadow,
|
|
149
|
+
* Kanban, Mailbox, Memory, etc.). Rendered below the footer links. */
|
|
150
|
+
autonomyAgents?: ReadonlyArray<AutonomyAgentStatus> | undefined;
|
|
151
|
+
/** Latest version published to the npm registry, when known. Drives
|
|
152
|
+
* the "update available" indicator next to the version chip when
|
|
153
|
+
* paired with {@link updateAvailable}. */
|
|
154
|
+
latestVersion?: string | undefined;
|
|
155
|
+
/** True when the CLI detected a newer published version than
|
|
156
|
+
* {@link version}. The banner renders `(update available)` next to
|
|
157
|
+
* the version chip when set, so users notice without having to read
|
|
158
|
+
* the stderr notice. Source: preflight update-check (cache-aware). */
|
|
159
|
+
updateAvailable?: boolean | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
id: number;
|
|
162
|
+
kind: 'confirm';
|
|
163
|
+
toolName: string;
|
|
164
|
+
input: unknown;
|
|
165
|
+
suggestedPattern: string;
|
|
166
|
+
} | {
|
|
167
|
+
id: number;
|
|
168
|
+
kind: 'subagent';
|
|
169
|
+
agentLabel: string;
|
|
170
|
+
agentColor: string;
|
|
171
|
+
icon: string;
|
|
172
|
+
text: string;
|
|
173
|
+
detail?: string | undefined;
|
|
174
|
+
};
|
|
175
|
+
//# sourceMappingURL=history-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-entry.d.ts","sourceRoot":"","sources":["../src/history-entry.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAIzE,MAAM,WAAW,mBAAmB;IAClC,kFAAkF;IAClF,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAC;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE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OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;mEAC+D;IAC/D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;0DACsD;IACtD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;;2EAIuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;2EACuE;IACvE,cAAc,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC;IAChE;;+CAE2C;IAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;;2EAGuE;IACvE,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,GACD;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GAC3F;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC"}
|
|
@@ -6,15 +6,27 @@ import type { HistoryEntry } from './components/history/types.js';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const TUI_HISTORY_MAX_ENTRIES = 400;
|
|
8
8
|
export declare const TUI_HISTORY_MAX_BYTES: number;
|
|
9
|
+
/** No single display entry may monopolize the aggregate history budget. */
|
|
10
|
+
export declare const TUI_HISTORY_MAX_ENTRY_BYTES: number;
|
|
11
|
+
/**
|
|
12
|
+
* Enforce the per-entry display budget before aggregate history retention.
|
|
13
|
+
* Common text entries keep a readable prefix; unusual oversized structured
|
|
14
|
+
* entries degrade to a small marker rather than retaining an unbounded graph.
|
|
15
|
+
*/
|
|
16
|
+
export declare function retainTuiHistoryEntry(entry: HistoryEntry, maxBytes?: number): HistoryEntry;
|
|
9
17
|
export interface TuiHistoryBudget {
|
|
10
18
|
maxEntries?: number | undefined;
|
|
11
19
|
maxBytes?: number | undefined;
|
|
20
|
+
maxEntryBytes?: number | undefined;
|
|
12
21
|
}
|
|
13
22
|
/**
|
|
14
23
|
* Retain the newest display entries within both a count and serialized-byte
|
|
15
|
-
* budget. The banner
|
|
16
|
-
*
|
|
17
|
-
*
|
|
24
|
+
* budget. The first banner that still fits after per-entry compaction is
|
|
25
|
+
* preserved separately; later banners are discarded. If a banner cannot fit
|
|
26
|
+
* even in compact form, it degrades to the same bounded transcript marker as
|
|
27
|
+
* any other oversized structured entry. An omission marker replaces a
|
|
28
|
+
* discarded transcript prefix. Returns the original array when no work is
|
|
29
|
+
* needed so reducer callers can bail out without scheduling another render.
|
|
18
30
|
*/
|
|
19
31
|
export declare function retainTuiHistory(entries: HistoryEntry[], budget?: TuiHistoryBudget): HistoryEntry[];
|
|
20
32
|
//# sourceMappingURL=history-retention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-retention.d.ts","sourceRoot":"","sources":["../src/history-retention.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,qBAAqB,QAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"history-retention.d.ts","sourceRoot":"","sources":["../src/history-retention.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,qBAAqB,QAAc,CAAC;AACjD,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,QAAY,CAAC;AAuDrD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,QAAQ,SAA8B,GACrC,YAAY,CAwDd;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,YAAY,EAAE,EACvB,MAAM,GAAE,gBAAqB,GAC5B,YAAY,EAAE,CAoEhB"}
|
package/dist/hit-test.d.ts
CHANGED
|
@@ -44,11 +44,15 @@ export type HitRegion =
|
|
|
44
44
|
* itself renders in the last column; this widens the target by one.
|
|
45
45
|
*/
|
|
46
46
|
export declare const SCROLLBAR_HIT_WIDTH = 2;
|
|
47
|
+
/** Rows available to managed history after reserving the measured bottom UI. */
|
|
48
|
+
export declare function historyViewportRows(termRows: number, bottomHeight: number): number;
|
|
47
49
|
/**
|
|
48
50
|
* Map a 1-based terminal (x,y) onto a layout region, or null when the point is
|
|
49
51
|
* outside the terminal. Pure — no side effects, no DOM access.
|
|
50
52
|
*/
|
|
51
53
|
export declare function hitRegion(layout: MouseLayout, x: number, y: number): HitRegion | null;
|
|
54
|
+
/** True when a wheel event belongs to the managed history viewport. */
|
|
55
|
+
export declare function isHistoryScrollTarget(layout: MouseLayout, x: number, y: number): boolean;
|
|
52
56
|
/**
|
|
53
57
|
* 1-based absolute terminal row of a status-bar content line.
|
|
54
58
|
*
|
package/dist/hit-test.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hit-test.d.ts","sourceRoot":"","sources":["../src/hit-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+EAA+E;AAC/E,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC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