@pentoshi/clai 4.11.7 → 4.11.9
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/dist/agent/compaction/summary-execution.d.ts +32 -0
- package/dist/agent/compaction/summary-execution.js +407 -0
- package/dist/agent/compaction/summary-execution.js.map +1 -0
- package/dist/agent/compaction-attempt.d.ts +5 -1
- package/dist/agent/compaction-attempt.js +22 -12
- package/dist/agent/compaction-attempt.js.map +1 -1
- package/dist/agent/compaction-executor.d.ts +5 -53
- package/dist/agent/compaction-executor.js +4 -447
- package/dist/agent/compaction-executor.js.map +1 -1
- package/dist/agent/compaction-summary.d.ts +0 -25
- package/dist/agent/compaction-summary.js +0 -20
- package/dist/agent/compaction-summary.js.map +1 -1
- package/dist/agent/confirm-port.d.ts +0 -6
- package/dist/agent/confirm-port.js +0 -11
- package/dist/agent/confirm-port.js.map +1 -1
- package/dist/agent/context/compact-with-summary.d.ts +34 -0
- package/dist/agent/context/compact-with-summary.js +381 -0
- package/dist/agent/context/compact-with-summary.js.map +1 -0
- package/dist/agent/context-breakdown.d.ts +0 -12
- package/dist/agent/context-breakdown.js +0 -16
- package/dist/agent/context-breakdown.js.map +1 -1
- package/dist/agent/context-manager.d.ts +4 -90
- package/dist/agent/context-manager.js +4 -458
- package/dist/agent/context-manager.js.map +1 -1
- package/dist/agent/continue-orient.d.ts +0 -19
- package/dist/agent/continue-orient.js +0 -24
- package/dist/agent/continue-orient.js.map +1 -1
- package/dist/agent/durable-blocks.d.ts +5 -0
- package/dist/agent/durable-blocks.js +16 -0
- package/dist/agent/durable-blocks.js.map +1 -0
- package/dist/agent/durable-envelope.d.ts +0 -2
- package/dist/agent/durable-envelope.js +0 -16
- package/dist/agent/durable-envelope.js.map +1 -1
- package/dist/agent/events.d.ts +6 -17
- package/dist/agent/evidence/task-classification.d.ts +25 -0
- package/dist/agent/evidence/task-classification.js +124 -0
- package/dist/agent/evidence/task-classification.js.map +1 -0
- package/dist/agent/evidence/task-selection.d.ts +29 -0
- package/dist/agent/evidence/task-selection.js +148 -0
- package/dist/agent/evidence/task-selection.js.map +1 -0
- package/dist/agent/evidence/tool-budgets.d.ts +12 -0
- package/dist/agent/evidence/tool-budgets.js +82 -0
- package/dist/agent/evidence/tool-budgets.js.map +1 -0
- package/dist/agent/evidence-governor.d.ts +0 -3
- package/dist/agent/evidence-governor.js.map +1 -1
- package/dist/agent/injected-blocks.d.ts +1 -0
- package/dist/agent/injected-blocks.js +14 -4
- package/dist/agent/injected-blocks.js.map +1 -1
- package/dist/agent/message-slim.js +0 -2
- package/dist/agent/message-slim.js.map +1 -1
- package/dist/agent/outcomes.d.ts +0 -1
- package/dist/agent/outcomes.js +0 -11
- package/dist/agent/outcomes.js.map +1 -1
- package/dist/agent/parser/arg-formatting.d.ts +3 -0
- package/dist/agent/parser/arg-formatting.js +99 -0
- package/dist/agent/parser/arg-formatting.js.map +1 -0
- package/dist/agent/parser/bare-recognition.d.ts +6 -0
- package/dist/agent/parser/bare-recognition.js +106 -0
- package/dist/agent/parser/bare-recognition.js.map +1 -0
- package/dist/agent/parser/parse-entry.d.ts +9 -0
- package/dist/agent/parser/parse-entry.js +198 -0
- package/dist/agent/parser/parse-entry.js.map +1 -0
- package/dist/agent/parser/repetition.d.ts +1 -0
- package/dist/agent/parser/repetition.js +72 -0
- package/dist/agent/parser/repetition.js.map +1 -0
- package/dist/agent/parser/salvage.d.ts +8 -0
- package/dist/agent/parser/salvage.js +100 -0
- package/dist/agent/parser/salvage.js.map +1 -0
- package/dist/agent/parser/vendor-protocols.d.ts +21 -0
- package/dist/agent/parser/vendor-protocols.js +265 -0
- package/dist/agent/parser/vendor-protocols.js.map +1 -0
- package/dist/agent/parser/xml-protocol.d.ts +7 -0
- package/dist/agent/parser/xml-protocol.js +455 -0
- package/dist/agent/parser/xml-protocol.js.map +1 -0
- package/dist/agent/plan/actions/plan-clear.d.ts +4 -0
- package/dist/agent/plan/actions/plan-clear.js +46 -0
- package/dist/agent/plan/actions/plan-clear.js.map +1 -0
- package/dist/agent/plan/actions/plan-create.d.ts +4 -0
- package/dist/agent/plan/actions/plan-create.js +371 -0
- package/dist/agent/plan/actions/plan-create.js.map +1 -0
- package/dist/agent/plan/actions/task-add.d.ts +5 -0
- package/dist/agent/plan/actions/task-add.js +131 -0
- package/dist/agent/plan/actions/task-add.js.map +1 -0
- package/dist/agent/plan/actions/task-move.d.ts +5 -0
- package/dist/agent/plan/actions/task-move.js +72 -0
- package/dist/agent/plan/actions/task-move.js.map +1 -0
- package/dist/agent/plan/context-message.d.ts +2 -0
- package/dist/agent/plan/context-message.js +91 -0
- package/dist/agent/plan/context-message.js.map +1 -0
- package/dist/agent/plan/handle-plan-tool.d.ts +24 -0
- package/dist/agent/plan/handle-plan-tool.js +310 -0
- package/dist/agent/plan/handle-plan-tool.js.map +1 -0
- package/dist/agent/plan/normalization.d.ts +19 -0
- package/dist/agent/plan/normalization.js +175 -0
- package/dist/agent/plan/normalization.js.map +1 -0
- package/dist/agent/plan-implement-compact.d.ts +0 -20
- package/dist/agent/plan-implement-compact.js +0 -21
- package/dist/agent/plan-implement-compact.js.map +1 -1
- package/dist/agent/plan-mode-reminders.d.ts +0 -24
- package/dist/agent/plan-mode-reminders.js +0 -21
- package/dist/agent/plan-mode-reminders.js.map +1 -1
- package/dist/agent/plan-tool.d.ts +5 -60
- package/dist/agent/plan-tool.js +7 -1235
- package/dist/agent/plan-tool.js.map +1 -1
- package/dist/agent/progress-pause-policy.d.ts +0 -1
- package/dist/agent/progress-pause-policy.js +1 -5
- package/dist/agent/progress-pause-policy.js.map +1 -1
- package/dist/agent/progress.d.ts +0 -5
- package/dist/agent/progress.js +0 -14
- package/dist/agent/progress.js.map +1 -1
- package/dist/agent/project-root.d.ts +0 -21
- package/dist/agent/project-root.js +0 -36
- package/dist/agent/project-root.js.map +1 -1
- package/dist/agent/prompt-composer.d.ts +0 -1
- package/dist/agent/prompt-composer.js +0 -2
- package/dist/agent/prompt-composer.js.map +1 -1
- package/dist/agent/reliability-policy.d.ts +0 -41
- package/dist/agent/reliability-policy.js +0 -46
- package/dist/agent/reliability-policy.js.map +1 -1
- package/dist/agent/request-accounting.d.ts +0 -30
- package/dist/agent/request-accounting.js +1 -25
- package/dist/agent/request-accounting.js.map +1 -1
- package/dist/agent/request-budget.d.ts +0 -2
- package/dist/agent/request-budget.js +0 -13
- package/dist/agent/request-budget.js.map +1 -1
- package/dist/agent/responder-context.js +14 -3
- package/dist/agent/responder-context.js.map +1 -1
- package/dist/agent/responder-parent.d.ts +0 -10
- package/dist/agent/responder-parent.js +0 -12
- package/dist/agent/responder-parent.js.map +1 -1
- package/dist/agent/runner.d.ts +0 -30
- package/dist/agent/runner.js +403 -5087
- package/dist/agent/runner.js.map +1 -1
- package/dist/agent/scope-context.d.ts +0 -1
- package/dist/agent/scope-context.js +0 -1
- package/dist/agent/scope-context.js.map +1 -1
- package/dist/agent/scratch-write.d.ts +0 -1
- package/dist/agent/scratch-write.js +0 -1
- package/dist/agent/scratch-write.js.map +1 -1
- package/dist/agent/session-policy.d.ts +0 -28
- package/dist/agent/session-policy.js +0 -34
- package/dist/agent/session-policy.js.map +1 -1
- package/dist/agent/session-state.d.ts +0 -38
- package/dist/agent/session-state.js +4 -41
- package/dist/agent/session-state.js.map +1 -1
- package/dist/agent/step-budget.d.ts +0 -4
- package/dist/agent/step-budget.js +0 -4
- package/dist/agent/step-budget.js.map +1 -1
- package/dist/agent/stop-summary.d.ts +0 -5
- package/dist/agent/stop-summary.js +0 -8
- package/dist/agent/stop-summary.js.map +1 -1
- package/dist/agent/stream-recovery.d.ts +1 -54
- package/dist/agent/stream-recovery.js +4 -53
- package/dist/agent/stream-recovery.js.map +1 -1
- package/dist/agent/task-evidence.d.ts +10 -159
- package/dist/agent/task-evidence.js +10 -477
- package/dist/agent/task-evidence.js.map +1 -1
- package/dist/agent/task-plan.d.ts +0 -8
- package/dist/agent/task-plan.js +0 -6
- package/dist/agent/task-plan.js.map +1 -1
- package/dist/agent/task-sync.d.ts +0 -25
- package/dist/agent/task-sync.js +0 -31
- package/dist/agent/task-sync.js.map +1 -1
- package/dist/agent/tool-call-parser.d.ts +10 -205
- package/dist/agent/tool-call-parser.js +11 -1715
- package/dist/agent/tool-call-parser.js.map +1 -1
- package/dist/agent/tool-history.d.ts +1 -57
- package/dist/agent/tool-history.js +1 -68
- package/dist/agent/tool-history.js.map +1 -1
- package/dist/agent/tool-output-formatting.d.ts +0 -18
- package/dist/agent/tool-output-formatting.js +0 -28
- package/dist/agent/tool-output-formatting.js.map +1 -1
- package/dist/agent/turn/automatic-compaction-execution.d.ts +14 -0
- package/dist/agent/turn/automatic-compaction-execution.js +19 -0
- package/dist/agent/turn/automatic-compaction-execution.js.map +1 -0
- package/dist/agent/turn/compaction-admission.d.ts +25 -0
- package/dist/agent/turn/compaction-admission.js +40 -0
- package/dist/agent/turn/compaction-admission.js.map +1 -0
- package/dist/agent/turn/compaction-candidate.d.ts +10 -0
- package/dist/agent/turn/compaction-candidate.js +12 -0
- package/dist/agent/turn/compaction-candidate.js.map +1 -0
- package/dist/agent/turn/compaction-coordinator.d.ts +42 -0
- package/dist/agent/turn/compaction-coordinator.js +169 -0
- package/dist/agent/turn/compaction-coordinator.js.map +1 -0
- package/dist/agent/turn/compaction-durable-envelope.d.ts +24 -0
- package/dist/agent/turn/compaction-durable-envelope.js +54 -0
- package/dist/agent/turn/compaction-durable-envelope.js.map +1 -0
- package/dist/agent/turn/compaction-final-fit.d.ts +10 -0
- package/dist/agent/turn/compaction-final-fit.js +14 -0
- package/dist/agent/turn/compaction-final-fit.js.map +1 -0
- package/dist/agent/turn/compaction-messages.d.ts +6 -0
- package/dist/agent/turn/compaction-messages.js +15 -0
- package/dist/agent/turn/compaction-messages.js.map +1 -0
- package/dist/agent/turn/compaction-replay-selection.d.ts +10 -0
- package/dist/agent/turn/compaction-replay-selection.js +27 -0
- package/dist/agent/turn/compaction-replay-selection.js.map +1 -0
- package/dist/agent/turn/compaction-request-estimator.d.ts +7 -0
- package/dist/agent/turn/compaction-request-estimator.js +13 -0
- package/dist/agent/turn/compaction-request-estimator.js.map +1 -0
- package/dist/agent/turn/compaction-summarizer.d.ts +21 -0
- package/dist/agent/turn/compaction-summarizer.js +41 -0
- package/dist/agent/turn/compaction-summarizer.js.map +1 -0
- package/dist/agent/turn/continuation-overlap.d.ts +1 -0
- package/dist/agent/turn/continuation-overlap.js +35 -0
- package/dist/agent/turn/continuation-overlap.js.map +1 -0
- package/dist/agent/turn/contracts.d.ts +25 -0
- package/dist/agent/turn/contracts.js +2 -0
- package/dist/agent/turn/contracts.js.map +1 -0
- package/dist/agent/turn/event-emitter.d.ts +21 -0
- package/dist/agent/turn/event-emitter.js +116 -0
- package/dist/agent/turn/event-emitter.js.map +1 -0
- package/dist/agent/turn/evidence-flags.d.ts +16 -0
- package/dist/agent/turn/evidence-flags.js +44 -0
- package/dist/agent/turn/evidence-flags.js.map +1 -0
- package/dist/agent/turn/finalizer.d.ts +28 -0
- package/dist/agent/turn/finalizer.js +44 -0
- package/dist/agent/turn/finalizer.js.map +1 -0
- package/dist/agent/turn/history-writer.d.ts +17 -0
- package/dist/agent/turn/history-writer.js +72 -0
- package/dist/agent/turn/history-writer.js.map +1 -0
- package/dist/agent/turn/inserted-text.d.ts +1 -0
- package/dist/agent/turn/inserted-text.js +2 -0
- package/dist/agent/turn/inserted-text.js.map +1 -0
- package/dist/agent/turn/loop/answer-assessment.d.ts +22 -0
- package/dist/agent/turn/loop/answer-assessment.js +30 -0
- package/dist/agent/turn/loop/answer-assessment.js.map +1 -0
- package/dist/agent/turn/loop/answer-path.d.ts +20 -0
- package/dist/agent/turn/loop/answer-path.js +92 -0
- package/dist/agent/turn/loop/answer-path.js.map +1 -0
- package/dist/agent/turn/loop/call-binding.d.ts +17 -0
- package/dist/agent/turn/loop/call-binding.js +42 -0
- package/dist/agent/turn/loop/call-binding.js.map +1 -0
- package/dist/agent/turn/loop/canonicalize-turn-call.d.ts +5 -0
- package/dist/agent/turn/loop/canonicalize-turn-call.js +12 -0
- package/dist/agent/turn/loop/canonicalize-turn-call.js.map +1 -0
- package/dist/agent/turn/loop/completion-interpretation.d.ts +34 -0
- package/dist/agent/turn/loop/completion-interpretation.js +71 -0
- package/dist/agent/turn/loop/completion-interpretation.js.map +1 -0
- package/dist/agent/turn/loop/deps.d.ts +98 -0
- package/dist/agent/turn/loop/deps.js +2 -0
- package/dist/agent/turn/loop/deps.js.map +1 -0
- package/dist/agent/turn/loop/empty-response.d.ts +22 -0
- package/dist/agent/turn/loop/empty-response.js +51 -0
- package/dist/agent/turn/loop/empty-response.js.map +1 -0
- package/dist/agent/turn/loop/final-outcome.d.ts +15 -0
- package/dist/agent/turn/loop/final-outcome.js +49 -0
- package/dist/agent/turn/loop/final-outcome.js.map +1 -0
- package/dist/agent/turn/loop/group-execution.d.ts +14 -0
- package/dist/agent/turn/loop/group-execution.js +44 -0
- package/dist/agent/turn/loop/group-execution.js.map +1 -0
- package/dist/agent/turn/loop/model-only-rounds.d.ts +31 -0
- package/dist/agent/turn/loop/model-only-rounds.js +49 -0
- package/dist/agent/turn/loop/model-only-rounds.js.map +1 -0
- package/dist/agent/turn/loop/native-tool-calls.d.ts +12 -0
- package/dist/agent/turn/loop/native-tool-calls.js +57 -0
- package/dist/agent/turn/loop/native-tool-calls.js.map +1 -0
- package/dist/agent/turn/loop/native-write-salvage.d.ts +18 -0
- package/dist/agent/turn/loop/native-write-salvage.js +92 -0
- package/dist/agent/turn/loop/native-write-salvage.js.map +1 -0
- package/dist/agent/turn/loop/output-budget.d.ts +40 -0
- package/dist/agent/turn/loop/output-budget.js +76 -0
- package/dist/agent/turn/loop/output-budget.js.map +1 -0
- package/dist/agent/turn/loop/plan-call-deferral.d.ts +12 -0
- package/dist/agent/turn/loop/plan-call-deferral.js +32 -0
- package/dist/agent/turn/loop/plan-call-deferral.js.map +1 -0
- package/dist/agent/turn/loop/request-assembly.d.ts +31 -0
- package/dist/agent/turn/loop/request-assembly.js +91 -0
- package/dist/agent/turn/loop/request-assembly.js.map +1 -0
- package/dist/agent/turn/loop/round-closeout.d.ts +56 -0
- package/dist/agent/turn/loop/round-closeout.js +77 -0
- package/dist/agent/turn/loop/round-closeout.js.map +1 -0
- package/dist/agent/turn/loop/round-recorder.d.ts +38 -0
- package/dist/agent/turn/loop/round-recorder.js +71 -0
- package/dist/agent/turn/loop/round-recorder.js.map +1 -0
- package/dist/agent/turn/loop/round-request.d.ts +19 -0
- package/dist/agent/turn/loop/round-request.js +164 -0
- package/dist/agent/turn/loop/round-request.js.map +1 -0
- package/dist/agent/turn/loop/round-state.d.ts +11 -0
- package/dist/agent/turn/loop/round-state.js +11 -0
- package/dist/agent/turn/loop/round-state.js.map +1 -0
- package/dist/agent/turn/loop/run-rounds.d.ts +5 -0
- package/dist/agent/turn/loop/run-rounds.js +661 -0
- package/dist/agent/turn/loop/run-rounds.js.map +1 -0
- package/dist/agent/turn/loop/sequence-suppression.d.ts +54 -0
- package/dist/agent/turn/loop/sequence-suppression.js +112 -0
- package/dist/agent/turn/loop/sequence-suppression.js.map +1 -0
- package/dist/agent/turn/loop/state.d.ts +37 -0
- package/dist/agent/turn/loop/state.js +28 -0
- package/dist/agent/turn/loop/state.js.map +1 -0
- package/dist/agent/turn/loop/stream-failure.d.ts +54 -0
- package/dist/agent/turn/loop/stream-failure.js +146 -0
- package/dist/agent/turn/loop/stream-failure.js.map +1 -0
- package/dist/agent/turn/loop/stream-request.d.ts +16 -0
- package/dist/agent/turn/loop/stream-request.js +21 -0
- package/dist/agent/turn/loop/stream-request.js.map +1 -0
- package/dist/agent/turn/loop/stream-session.d.ts +41 -0
- package/dist/agent/turn/loop/stream-session.js +136 -0
- package/dist/agent/turn/loop/stream-session.js.map +1 -0
- package/dist/agent/turn/loop/tool-call-recovery.d.ts +25 -0
- package/dist/agent/turn/loop/tool-call-recovery.js +162 -0
- package/dist/agent/turn/loop/tool-call-recovery.js.map +1 -0
- package/dist/agent/turn/loop/unrun-calls.d.ts +12 -0
- package/dist/agent/turn/loop/unrun-calls.js +27 -0
- package/dist/agent/turn/loop/unrun-calls.js.map +1 -0
- package/dist/agent/turn/loop/wire-occurrences.d.ts +31 -0
- package/dist/agent/turn/loop/wire-occurrences.js +45 -0
- package/dist/agent/turn/loop/wire-occurrences.js.map +1 -0
- package/dist/agent/turn/mcp-agent-tools.d.ts +17 -0
- package/dist/agent/turn/mcp-agent-tools.js +69 -0
- package/dist/agent/turn/mcp-agent-tools.js.map +1 -0
- package/dist/agent/turn/message-assembly.d.ts +14 -0
- package/dist/agent/turn/message-assembly.js +22 -0
- package/dist/agent/turn/message-assembly.js.map +1 -0
- package/dist/agent/turn/outcome-accounting.d.ts +27 -0
- package/dist/agent/turn/outcome-accounting.js +91 -0
- package/dist/agent/turn/outcome-accounting.js.map +1 -0
- package/dist/agent/turn/plan-mode-gate.d.ts +16 -0
- package/dist/agent/turn/plan-mode-gate.js +36 -0
- package/dist/agent/turn/plan-mode-gate.js.map +1 -0
- package/dist/agent/turn/plan-persistence.d.ts +28 -0
- package/dist/agent/turn/plan-persistence.js +56 -0
- package/dist/agent/turn/plan-persistence.js.map +1 -0
- package/dist/agent/turn/prompt-sections.d.ts +9 -0
- package/dist/agent/turn/prompt-sections.js +67 -0
- package/dist/agent/turn/prompt-sections.js.map +1 -0
- package/dist/agent/turn/responder-claims.d.ts +16 -0
- package/dist/agent/turn/responder-claims.js +37 -0
- package/dist/agent/turn/responder-claims.js.map +1 -0
- package/dist/agent/turn/responder-dependency.d.ts +3 -0
- package/dist/agent/turn/responder-dependency.js +36 -0
- package/dist/agent/turn/responder-dependency.js.map +1 -0
- package/dist/agent/turn/responder-inbox.d.ts +28 -0
- package/dist/agent/turn/responder-inbox.js +57 -0
- package/dist/agent/turn/responder-inbox.js.map +1 -0
- package/dist/agent/turn/responder-job-linkage.d.ts +30 -0
- package/dist/agent/turn/responder-job-linkage.js +124 -0
- package/dist/agent/turn/responder-job-linkage.js.map +1 -0
- package/dist/agent/turn/responder-read-tool.d.ts +26 -0
- package/dist/agent/turn/responder-read-tool.js +83 -0
- package/dist/agent/turn/responder-read-tool.js.map +1 -0
- package/dist/agent/turn/scaffold-outcome.d.ts +7 -0
- package/dist/agent/turn/scaffold-outcome.js +93 -0
- package/dist/agent/turn/scaffold-outcome.js.map +1 -0
- package/dist/agent/turn/scaffold-preflight.d.ts +8 -0
- package/dist/agent/turn/scaffold-preflight.js +31 -0
- package/dist/agent/turn/scaffold-preflight.js.map +1 -0
- package/dist/agent/turn/session-state-projection.d.ts +18 -0
- package/dist/agent/turn/session-state-projection.js +46 -0
- package/dist/agent/turn/session-state-projection.js.map +1 -0
- package/dist/agent/turn/setup/compaction-services.d.ts +55 -0
- package/dist/agent/turn/setup/compaction-services.js +69 -0
- package/dist/agent/turn/setup/compaction-services.js.map +1 -0
- package/dist/agent/turn/setup/evidence-rehydration.d.ts +3 -0
- package/dist/agent/turn/setup/evidence-rehydration.js +22 -0
- package/dist/agent/turn/setup/evidence-rehydration.js.map +1 -0
- package/dist/agent/turn/setup/mcp-agent-ports.d.ts +29 -0
- package/dist/agent/turn/setup/mcp-agent-ports.js +26 -0
- package/dist/agent/turn/setup/mcp-agent-ports.js.map +1 -0
- package/dist/agent/turn/setup/prompt-classification.d.ts +10 -0
- package/dist/agent/turn/setup/prompt-classification.js +18 -0
- package/dist/agent/turn/setup/prompt-classification.js.map +1 -0
- package/dist/agent/turn/setup/responder-wake.d.ts +16 -0
- package/dist/agent/turn/setup/responder-wake.js +18 -0
- package/dist/agent/turn/setup/responder-wake.js.map +1 -0
- package/dist/agent/turn/setup/session-state.d.ts +20 -0
- package/dist/agent/turn/setup/session-state.js +23 -0
- package/dist/agent/turn/setup/session-state.js.map +1 -0
- package/dist/agent/turn/setup/task-gate-setup.d.ts +19 -0
- package/dist/agent/turn/setup/task-gate-setup.js +21 -0
- package/dist/agent/turn/setup/task-gate-setup.js.map +1 -0
- package/dist/agent/turn/setup/turn-budget.d.ts +19 -0
- package/dist/agent/turn/setup/turn-budget.js +34 -0
- package/dist/agent/turn/setup/turn-budget.js.map +1 -0
- package/dist/agent/turn/setup/turn-messages.d.ts +26 -0
- package/dist/agent/turn/setup/turn-messages.js +50 -0
- package/dist/agent/turn/setup/turn-messages.js.map +1 -0
- package/dist/agent/turn/setup/turn-state-machine.d.ts +13 -0
- package/dist/agent/turn/setup/turn-state-machine.js +52 -0
- package/dist/agent/turn/setup/turn-state-machine.js.map +1 -0
- package/dist/agent/turn/system-sections.d.ts +36 -0
- package/dist/agent/turn/system-sections.js +157 -0
- package/dist/agent/turn/system-sections.js.map +1 -0
- package/dist/agent/turn/task-autostart.d.ts +12 -0
- package/dist/agent/turn/task-autostart.js +35 -0
- package/dist/agent/turn/task-autostart.js.map +1 -0
- package/dist/agent/turn/task-batch-guard.d.ts +18 -0
- package/dist/agent/turn/task-batch-guard.js +83 -0
- package/dist/agent/turn/task-batch-guard.js.map +1 -0
- package/dist/agent/turn/task-credit.d.ts +15 -0
- package/dist/agent/turn/task-credit.js +49 -0
- package/dist/agent/turn/task-credit.js.map +1 -0
- package/dist/agent/turn/task-gate.d.ts +13 -0
- package/dist/agent/turn/task-gate.js +34 -0
- package/dist/agent/turn/task-gate.js.map +1 -0
- package/dist/agent/turn/task-update-gate.d.ts +13 -0
- package/dist/agent/turn/task-update-gate.js +40 -0
- package/dist/agent/turn/task-update-gate.js.map +1 -0
- package/dist/agent/turn/task-work-signals.d.ts +3 -0
- package/dist/agent/turn/task-work-signals.js +44 -0
- package/dist/agent/turn/task-work-signals.js.map +1 -0
- package/dist/agent/turn/tool-call-preparation.d.ts +20 -0
- package/dist/agent/turn/tool-call-preparation.js +67 -0
- package/dist/agent/turn/tool-call-preparation.js.map +1 -0
- package/dist/agent/turn/tool-evidence-signals.d.ts +22 -0
- package/dist/agent/turn/tool-evidence-signals.js +101 -0
- package/dist/agent/turn/tool-evidence-signals.js.map +1 -0
- package/dist/agent/turn/tool-execution/authorization.d.ts +32 -0
- package/dist/agent/turn/tool-execution/authorization.js +100 -0
- package/dist/agent/turn/tool-execution/authorization.js.map +1 -0
- package/dist/agent/turn/tool-execution/deps.d.ts +74 -0
- package/dist/agent/turn/tool-execution/deps.js +2 -0
- package/dist/agent/turn/tool-execution/deps.js.map +1 -0
- package/dist/agent/turn/tool-execution/dispatch.d.ts +27 -0
- package/dist/agent/turn/tool-execution/dispatch.js +76 -0
- package/dist/agent/turn/tool-execution/dispatch.js.map +1 -0
- package/dist/agent/turn/tool-execution/engagement-checkpoint.d.ts +7 -0
- package/dist/agent/turn/tool-execution/engagement-checkpoint.js +32 -0
- package/dist/agent/turn/tool-execution/engagement-checkpoint.js.map +1 -0
- package/dist/agent/turn/tool-execution/engagement-gate.d.ts +16 -0
- package/dist/agent/turn/tool-execution/engagement-gate.js +55 -0
- package/dist/agent/turn/tool-execution/engagement-gate.js.map +1 -0
- package/dist/agent/turn/tool-execution/gates.d.ts +21 -0
- package/dist/agent/turn/tool-execution/gates.js +45 -0
- package/dist/agent/turn/tool-execution/gates.js.map +1 -0
- package/dist/agent/turn/tool-execution/guards.d.ts +42 -0
- package/dist/agent/turn/tool-execution/guards.js +62 -0
- package/dist/agent/turn/tool-execution/guards.js.map +1 -0
- package/dist/agent/turn/tool-execution/meta-tools.d.ts +50 -0
- package/dist/agent/turn/tool-execution/meta-tools.js +114 -0
- package/dist/agent/turn/tool-execution/meta-tools.js.map +1 -0
- package/dist/agent/turn/tool-execution/plan-tool-ledger.d.ts +10 -0
- package/dist/agent/turn/tool-execution/plan-tool-ledger.js +50 -0
- package/dist/agent/turn/tool-execution/plan-tool-ledger.js.map +1 -0
- package/dist/agent/turn/tool-execution/result-framing.d.ts +36 -0
- package/dist/agent/turn/tool-execution/result-framing.js +54 -0
- package/dist/agent/turn/tool-execution/result-framing.js.map +1 -0
- package/dist/agent/turn/tool-execution/run-setup.d.ts +29 -0
- package/dist/agent/turn/tool-execution/run-setup.js +64 -0
- package/dist/agent/turn/tool-execution/run-setup.js.map +1 -0
- package/dist/agent/turn/tool-execution/single-tool.d.ts +4 -0
- package/dist/agent/turn/tool-execution/single-tool.js +613 -0
- package/dist/agent/turn/tool-execution/single-tool.js.map +1 -0
- package/dist/agent/turn/tool-execution/state.d.ts +19 -0
- package/dist/agent/turn/tool-execution/state.js +13 -0
- package/dist/agent/turn/tool-execution/state.js.map +1 -0
- package/dist/agent/turn/tool-execution/supervision.d.ts +20 -0
- package/dist/agent/turn/tool-execution/supervision.js +44 -0
- package/dist/agent/turn/tool-execution/supervision.js.map +1 -0
- package/dist/agent/turn/tool-result-recorder.d.ts +26 -0
- package/dist/agent/turn/tool-result-recorder.js +54 -0
- package/dist/agent/turn/tool-result-recorder.js.map +1 -0
- package/dist/agent/turn/tool-routing.d.ts +23 -0
- package/dist/agent/turn/tool-routing.js +58 -0
- package/dist/agent/turn/tool-routing.js.map +1 -0
- package/dist/agent/turn/tool-watchdog.d.ts +22 -0
- package/dist/agent/turn/tool-watchdog.js +135 -0
- package/dist/agent/turn/tool-watchdog.js.map +1 -0
- package/dist/agent/turn/turn-counters.d.ts +9 -0
- package/dist/agent/turn/turn-counters.js +13 -0
- package/dist/agent/turn/turn-counters.js.map +1 -0
- package/dist/agent/turn/workspace-setup.d.ts +29 -0
- package/dist/agent/turn/workspace-setup.js +74 -0
- package/dist/agent/turn/workspace-setup.js.map +1 -0
- package/dist/agent/workspace-orient.d.ts +0 -45
- package/dist/agent/workspace-orient.js +3 -69
- package/dist/agent/workspace-orient.js.map +1 -1
- package/dist/app/adapters/agent-event-adapter.d.ts +0 -1
- package/dist/app/adapters/agent-event-adapter.js +1 -4
- package/dist/app/adapters/agent-event-adapter.js.map +1 -1
- package/dist/app/adapters/current-interactive-sessions-adapter.d.ts +0 -1
- package/dist/app/adapters/current-interactive-sessions-adapter.js +0 -1
- package/dist/app/adapters/current-interactive-sessions-adapter.js.map +1 -1
- package/dist/app/adapters/current-jobs-adapter.d.ts +0 -1
- package/dist/app/adapters/current-jobs-adapter.js +0 -1
- package/dist/app/adapters/current-jobs-adapter.js.map +1 -1
- package/dist/app/adapters/current-store-adapter.d.ts +0 -1
- package/dist/app/adapters/current-store-adapter.js +2 -2
- package/dist/app/adapters/current-store-adapter.js.map +1 -1
- package/dist/app/adapters/quiet-meta-tools.d.ts +0 -11
- package/dist/app/adapters/quiet-meta-tools.js +0 -11
- package/dist/app/adapters/quiet-meta-tools.js.map +1 -1
- package/dist/app/commands/catalog.d.ts +0 -8
- package/dist/app/commands/catalog.js +13 -32
- package/dist/app/commands/catalog.js.map +1 -1
- package/dist/app/commands/command.d.ts +0 -4
- package/dist/app/commands/command.js.map +1 -1
- package/dist/app/commands/registry.d.ts +0 -3
- package/dist/app/commands/registry.js +1 -7
- package/dist/app/commands/registry.js.map +1 -1
- package/dist/app/confirm-prompt-text.d.ts +0 -6
- package/dist/app/confirm-prompt-text.js +0 -6
- package/dist/app/confirm-prompt-text.js.map +1 -1
- package/dist/app/controllers/cancel-all-result.d.ts +0 -5
- package/dist/app/controllers/cancel-all-result.js +0 -5
- package/dist/app/controllers/cancel-all-result.js.map +1 -1
- package/dist/app/controllers/plan-controller.d.ts +0 -6
- package/dist/app/controllers/plan-controller.js +0 -11
- package/dist/app/controllers/plan-controller.js.map +1 -1
- package/dist/app/controllers/session-compact-helper.d.ts +0 -9
- package/dist/app/controllers/session-compact-helper.js +6 -18
- package/dist/app/controllers/session-compact-helper.js.map +1 -1
- package/dist/app/controllers/session-context-usage.d.ts +0 -11
- package/dist/app/controllers/session-context-usage.js +22 -30
- package/dist/app/controllers/session-context-usage.js.map +1 -1
- package/dist/app/controllers/session-controller.d.ts +1 -38
- package/dist/app/controllers/session-controller.js +9 -47
- package/dist/app/controllers/session-controller.js.map +1 -1
- package/dist/app/controllers/session-naming.d.ts +10 -4
- package/dist/app/controllers/session-naming.js +26 -8
- package/dist/app/controllers/session-naming.js.map +1 -1
- package/dist/app/controllers/session-persistence.d.ts +0 -6
- package/dist/app/controllers/session-persistence.js +0 -10
- package/dist/app/controllers/session-persistence.js.map +1 -1
- package/dist/app/controllers/session-responder.js +0 -4
- package/dist/app/controllers/session-responder.js.map +1 -1
- package/dist/app/controllers/session-turn-request.d.ts +0 -1
- package/dist/app/controllers/session-turn-request.js +0 -1
- package/dist/app/controllers/session-turn-request.js.map +1 -1
- package/dist/app/controllers/session-usage-ledger.d.ts +6 -1
- package/dist/app/controllers/session-usage-ledger.js +43 -3
- package/dist/app/controllers/session-usage-ledger.js.map +1 -1
- package/dist/app/controllers/turn-controller.js +2 -6
- package/dist/app/controllers/turn-controller.js.map +1 -1
- package/dist/app/events/app-event.d.ts +1 -11
- package/dist/app/events/app-event.js +0 -1
- package/dist/app/events/app-event.js.map +1 -1
- package/dist/app/events/event-buffer.d.ts +0 -6
- package/dist/app/events/event-buffer.js +0 -6
- package/dist/app/events/event-buffer.js.map +1 -1
- package/dist/app/events/sequencer.d.ts +0 -2
- package/dist/app/events/sequencer.js +0 -1
- package/dist/app/events/sequencer.js.map +1 -1
- package/dist/app/ports/agent-port.d.ts +0 -19
- package/dist/app/ports/interactive-sessions-port.d.ts +0 -13
- package/dist/app/ports/interactive-sessions-port.js +0 -7
- package/dist/app/ports/interactive-sessions-port.js.map +1 -1
- package/dist/app/ports/persistence-port.d.ts +2 -15
- package/dist/app/ports/updates-port.d.ts +0 -5
- package/dist/classic/app/ClassicApp.js +0 -2
- package/dist/classic/app/ClassicApp.js.map +1 -1
- package/dist/classic/app/action-handlers.js +0 -4
- package/dist/classic/app/action-handlers.js.map +1 -1
- package/dist/classic/app/git-branch.js +0 -1
- package/dist/classic/app/git-branch.js.map +1 -1
- package/dist/classic/app/use-feed.d.ts +0 -7
- package/dist/classic/app/use-feed.js +0 -5
- package/dist/classic/app/use-feed.js.map +1 -1
- package/dist/classic/app/wiring-interactions.js +0 -2
- package/dist/classic/app/wiring-interactions.js.map +1 -1
- package/dist/classic/blocks/assistant-lines.d.ts +0 -1
- package/dist/classic/blocks/assistant-lines.js +0 -1
- package/dist/classic/blocks/assistant-lines.js.map +1 -1
- package/dist/classic/blocks/batch-lines.d.ts +0 -1
- package/dist/classic/blocks/batch-lines.js +0 -1
- package/dist/classic/blocks/batch-lines.js.map +1 -1
- package/dist/classic/blocks/block-context.d.ts +0 -7
- package/dist/classic/blocks/block-context.js +0 -1
- package/dist/classic/blocks/block-context.js.map +1 -1
- package/dist/classic/blocks/compacted-lines.d.ts +0 -1
- package/dist/classic/blocks/compacted-lines.js +0 -1
- package/dist/classic/blocks/compacted-lines.js.map +1 -1
- package/dist/classic/blocks/diff-lines.d.ts +0 -3
- package/dist/classic/blocks/diff-lines.js +0 -4
- package/dist/classic/blocks/diff-lines.js.map +1 -1
- package/dist/classic/blocks/intro-lines.d.ts +0 -5
- package/dist/classic/blocks/intro-lines.js +0 -5
- package/dist/classic/blocks/intro-lines.js.map +1 -1
- package/dist/classic/blocks/notice-lines.d.ts +0 -4
- package/dist/classic/blocks/notice-lines.js +0 -6
- package/dist/classic/blocks/notice-lines.js.map +1 -1
- package/dist/classic/blocks/thinking-lines.d.ts +0 -1
- package/dist/classic/blocks/thinking-lines.js +0 -1
- package/dist/classic/blocks/thinking-lines.js.map +1 -1
- package/dist/classic/blocks/tool-lines.d.ts +0 -7
- package/dist/classic/blocks/tool-lines.js +0 -10
- package/dist/classic/blocks/tool-lines.js.map +1 -1
- package/dist/classic/blocks/user-lines.d.ts +0 -1
- package/dist/classic/blocks/user-lines.js +0 -1
- package/dist/classic/blocks/user-lines.js.map +1 -1
- package/dist/classic/bootstrap/osc52-renderer.js +0 -1
- package/dist/classic/bootstrap/osc52-renderer.js.map +1 -1
- package/dist/classic/chrome/Chrome.d.ts +0 -1
- package/dist/classic/chrome/Chrome.js.map +1 -1
- package/dist/classic/chrome/Composer.d.ts +0 -5
- package/dist/classic/chrome/Composer.js +0 -5
- package/dist/classic/chrome/Composer.js.map +1 -1
- package/dist/classic/chrome/composer-controller.js +0 -4
- package/dist/classic/chrome/composer-controller.js.map +1 -1
- package/dist/classic/chrome/composer-frame.d.ts +0 -3
- package/dist/classic/chrome/composer-frame.js +0 -3
- package/dist/classic/chrome/composer-frame.js.map +1 -1
- package/dist/classic/chrome/directory-row.d.ts +0 -7
- package/dist/classic/chrome/directory-row.js +0 -7
- package/dist/classic/chrome/directory-row.js.map +1 -1
- package/dist/classic/chrome/row-budget.d.ts +0 -2
- package/dist/classic/chrome/row-budget.js +0 -8
- package/dist/classic/chrome/row-budget.js.map +1 -1
- package/dist/classic/chrome/status-rows.d.ts +0 -12
- package/dist/classic/chrome/status-rows.js +0 -16
- package/dist/classic/chrome/status-rows.js.map +1 -1
- package/dist/classic/chrome/toast-rows.d.ts +0 -4
- package/dist/classic/chrome/toast-rows.js +0 -9
- package/dist/classic/chrome/toast-rows.js.map +1 -1
- package/dist/classic/feed/Feed.d.ts +0 -5
- package/dist/classic/feed/Feed.js +0 -4
- package/dist/classic/feed/Feed.js.map +1 -1
- package/dist/classic/feed/FeedStatic.d.ts +0 -8
- package/dist/classic/feed/FeedStatic.js +0 -8
- package/dist/classic/feed/FeedStatic.js.map +1 -1
- package/dist/classic/feed/ScrollbarGutter.js +0 -1
- package/dist/classic/feed/ScrollbarGutter.js.map +1 -1
- package/dist/classic/feed/block-height.d.ts +0 -7
- package/dist/classic/feed/block-height.js +0 -7
- package/dist/classic/feed/block-height.js.map +1 -1
- package/dist/classic/feed/commit-ledger.d.ts +0 -12
- package/dist/classic/feed/commit-ledger.js +0 -10
- package/dist/classic/feed/commit-ledger.js.map +1 -1
- package/dist/classic/feed/feed-blocks.d.ts +0 -8
- package/dist/classic/feed/feed-blocks.js +0 -6
- package/dist/classic/feed/feed-blocks.js.map +1 -1
- package/dist/classic/feed/live-tail-policy.d.ts +0 -13
- package/dist/classic/feed/live-tail-policy.js +0 -11
- package/dist/classic/feed/live-tail-policy.js.map +1 -1
- package/dist/classic/feed/scrollbar-rows.d.ts +0 -1
- package/dist/classic/feed/scrollbar-rows.js +0 -1
- package/dist/classic/feed/scrollbar-rows.js.map +1 -1
- package/dist/classic/feed/transcript-window.d.ts +0 -10
- package/dist/classic/feed/transcript-window.js +0 -6
- package/dist/classic/feed/transcript-window.js.map +1 -1
- package/dist/classic/input/input-router.js +0 -2
- package/dist/classic/input/input-router.js.map +1 -1
- package/dist/classic/panels/completion-rows.js +2 -1
- package/dist/classic/panels/completion-rows.js.map +1 -1
- package/dist/classic/panels/keys-panel.d.ts +0 -1
- package/dist/classic/panels/keys-panel.js +0 -1
- package/dist/classic/panels/keys-panel.js.map +1 -1
- package/dist/classic/panels/pager-panel.d.ts +0 -5
- package/dist/classic/panels/pager-panel.js +0 -11
- package/dist/classic/panels/pager-panel.js.map +1 -1
- package/dist/classic/panels/panel-controller.d.ts +0 -2
- package/dist/classic/panels/panel-controller.js +0 -2
- package/dist/classic/panels/panel-controller.js.map +1 -1
- package/dist/classic/panels/panel-frame.js +0 -2
- package/dist/classic/panels/panel-frame.js.map +1 -1
- package/dist/classic/panels/panel-wheel.d.ts +0 -5
- package/dist/classic/panels/panel-wheel.js +0 -5
- package/dist/classic/panels/panel-wheel.js.map +1 -1
- package/dist/classic/panels/secret-panel.d.ts +0 -1
- package/dist/classic/panels/secret-panel.js +0 -1
- package/dist/classic/panels/secret-panel.js.map +1 -1
- package/dist/classic/panels/text-editor-panel.d.ts +0 -1
- package/dist/classic/panels/text-editor-panel.js +0 -1
- package/dist/classic/panels/text-editor-panel.js.map +1 -1
- package/dist/classic/render/ansi-text.d.ts +0 -19
- package/dist/classic/render/ansi-text.js +0 -19
- package/dist/classic/render/ansi-text.js.map +1 -1
- package/dist/classic/render/glyphs.d.ts +0 -4
- package/dist/classic/render/glyphs.js +0 -4
- package/dist/classic/render/glyphs.js.map +1 -1
- package/dist/classic/render/ink-theme.d.ts +0 -10
- package/dist/classic/render/ink-theme.js +0 -6
- package/dist/classic/render/ink-theme.js.map +1 -1
- package/dist/classic/render/measure.d.ts +0 -12
- package/dist/classic/render/measure.js +0 -12
- package/dist/classic/render/measure.js.map +1 -1
- package/dist/classic/render/shell-width.d.ts +0 -8
- package/dist/classic/render/shell-width.js +0 -8
- package/dist/classic/render/shell-width.js.map +1 -1
- package/dist/classic/render/wrap.d.ts +0 -11
- package/dist/classic/render/wrap.js +0 -8
- package/dist/classic/render/wrap.js.map +1 -1
- package/dist/commands/doctor.js +0 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/providers.d.ts +0 -1
- package/dist/commands/providers.js +0 -22
- package/dist/commands/providers.js.map +1 -1
- package/dist/commands/search-providers.d.ts +0 -1
- package/dist/commands/search-providers.js +0 -4
- package/dist/commands/search-providers.js.map +1 -1
- package/dist/commands/update/installers.d.ts +61 -0
- package/dist/commands/update/installers.js +505 -0
- package/dist/commands/update/installers.js.map +1 -0
- package/dist/commands/update-install.d.ts +4 -65
- package/dist/commands/update-install.js +6 -506
- package/dist/commands/update-install.js.map +1 -1
- package/dist/commands/update.d.ts +0 -6
- package/dist/commands/update.js +1 -11
- package/dist/commands/update.js.map +1 -1
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/interactive-session/artifact-writer.d.ts +0 -1
- package/dist/interactive-session/artifact-writer.js +0 -1
- package/dist/interactive-session/artifact-writer.js.map +1 -1
- package/dist/interactive-session/cleanup.d.ts +0 -10
- package/dist/interactive-session/cleanup.js +0 -13
- package/dist/interactive-session/cleanup.js.map +1 -1
- package/dist/interactive-session/config.d.ts +0 -16
- package/dist/interactive-session/config.js +0 -13
- package/dist/interactive-session/config.js.map +1 -1
- package/dist/interactive-session/manager.d.ts +0 -27
- package/dist/interactive-session/manager.js +0 -42
- package/dist/interactive-session/manager.js.map +1 -1
- package/dist/interactive-session/output-store.d.ts +0 -6
- package/dist/interactive-session/output-store.js +0 -5
- package/dist/interactive-session/output-store.js.map +1 -1
- package/dist/interactive-session/output-view.d.ts +0 -4
- package/dist/interactive-session/output-view.js +0 -12
- package/dist/interactive-session/output-view.js.map +1 -1
- package/dist/interactive-session/recovery-journal.d.ts +0 -7
- package/dist/interactive-session/recovery-journal.js +0 -7
- package/dist/interactive-session/recovery-journal.js.map +1 -1
- package/dist/interactive-session/registry.d.ts +0 -25
- package/dist/interactive-session/registry.js +0 -27
- package/dist/interactive-session/registry.js.map +1 -1
- package/dist/interactive-session/runtime.d.ts +0 -30
- package/dist/interactive-session/runtime.js +0 -23
- package/dist/interactive-session/runtime.js.map +1 -1
- package/dist/interactive-session/session-runtime.d.ts +0 -9
- package/dist/interactive-session/session-runtime.js +0 -10
- package/dist/interactive-session/session-runtime.js.map +1 -1
- package/dist/interactive-session/streaming-redactor.d.ts +0 -14
- package/dist/interactive-session/streaming-redactor.js +0 -18
- package/dist/interactive-session/streaming-redactor.js.map +1 -1
- package/dist/interactive-session/telemetry.d.ts +0 -8
- package/dist/interactive-session/telemetry.js +0 -7
- package/dist/interactive-session/telemetry.js.map +1 -1
- package/dist/interactive-session/transport-factory.d.ts +0 -5
- package/dist/interactive-session/transport-factory.js +0 -5
- package/dist/interactive-session/transport-factory.js.map +1 -1
- package/dist/interactive-session/transport-pipe.d.ts +0 -7
- package/dist/interactive-session/transport-pipe.js +0 -14
- package/dist/interactive-session/transport-pipe.js.map +1 -1
- package/dist/interactive-session/transport.d.ts +0 -26
- package/dist/interactive-session/transport.js +0 -20
- package/dist/interactive-session/transport.js.map +1 -1
- package/dist/interactive-session/types.d.ts +0 -19
- package/dist/interactive-session/types.js +0 -22
- package/dist/interactive-session/types.js.map +1 -1
- package/dist/llm/adapters/anthropic-stream-events.d.ts +38 -0
- package/dist/llm/adapters/anthropic-stream-events.js +144 -0
- package/dist/llm/adapters/anthropic-stream-events.js.map +1 -0
- package/dist/llm/adapters/anthropic-tools.d.ts +5 -55
- package/dist/llm/adapters/anthropic-tools.js +6 -208
- package/dist/llm/adapters/anthropic-tools.js.map +1 -1
- package/dist/llm/adapters/anthropic-wire-blocks.d.ts +9 -0
- package/dist/llm/adapters/anthropic-wire-blocks.js +59 -0
- package/dist/llm/adapters/anthropic-wire-blocks.js.map +1 -0
- package/dist/llm/adapters/gemini-tools.d.ts +0 -6
- package/dist/llm/adapters/gemini-tools.js +0 -24
- package/dist/llm/adapters/gemini-tools.js.map +1 -1
- package/dist/llm/adapters/ollama-tools.js +0 -5
- package/dist/llm/adapters/ollama-tools.js.map +1 -1
- package/dist/llm/adapters/openai-tools.d.ts +0 -4
- package/dist/llm/adapters/openai-tools.js +2 -11
- package/dist/llm/adapters/openai-tools.js.map +1 -1
- package/dist/llm/agentrouter.d.ts +0 -9
- package/dist/llm/agentrouter.js +10 -60
- package/dist/llm/agentrouter.js.map +1 -1
- package/dist/llm/anthropic.d.ts +0 -7
- package/dist/llm/anthropic.js +2 -30
- package/dist/llm/anthropic.js.map +1 -1
- package/dist/llm/artifacts/legacy-blocks.d.ts +3 -0
- package/dist/llm/artifacts/legacy-blocks.js +109 -0
- package/dist/llm/artifacts/legacy-blocks.js.map +1 -0
- package/dist/llm/artifacts/replay-selection.d.ts +9 -0
- package/dist/llm/artifacts/replay-selection.js +48 -0
- package/dist/llm/artifacts/replay-selection.js.map +1 -0
- package/dist/llm/aws-mantle.js +2 -4
- package/dist/llm/aws-mantle.js.map +1 -1
- package/dist/llm/bynara.js +2 -0
- package/dist/llm/bynara.js.map +1 -1
- package/dist/llm/cache-affinity.d.ts +1 -0
- package/dist/llm/cache-affinity.js +6 -0
- package/dist/llm/cache-affinity.js.map +1 -1
- package/dist/llm/capabilities.d.ts +7 -36
- package/dist/llm/capabilities.js +11 -502
- package/dist/llm/capabilities.js.map +1 -1
- package/dist/llm/capability/state.d.ts +25 -0
- package/dist/llm/capability/state.js +125 -0
- package/dist/llm/capability/state.js.map +1 -0
- package/dist/llm/capability/tool-dialect.d.ts +3 -0
- package/dist/llm/capability/tool-dialect.js +78 -0
- package/dist/llm/capability/tool-dialect.js.map +1 -0
- package/dist/llm/capability/vision-patterns.d.ts +4 -0
- package/dist/llm/capability/vision-patterns.js +188 -0
- package/dist/llm/capability/vision-patterns.js.map +1 -0
- package/dist/llm/capability/vision-registry.d.ts +20 -0
- package/dist/llm/capability/vision-registry.js +112 -0
- package/dist/llm/capability/vision-registry.js.map +1 -0
- package/dist/llm/context-snapshot.d.ts +0 -18
- package/dist/llm/context-snapshot.js +1 -8
- package/dist/llm/context-snapshot.js.map +1 -1
- package/dist/llm/context-windows.d.ts +0 -6
- package/dist/llm/context-windows.js +0 -30
- package/dist/llm/context-windows.js.map +1 -1
- package/dist/llm/custom-provider-profile.d.ts +4 -23
- package/dist/llm/custom-provider-profile.js +4 -515
- package/dist/llm/custom-provider-profile.js.map +1 -1
- package/dist/llm/custom-providers.d.ts +0 -23
- package/dist/llm/custom-providers.js +2 -27
- package/dist/llm/custom-providers.js.map +1 -1
- package/dist/llm/effort-fallback.d.ts +0 -38
- package/dist/llm/effort-fallback.js +0 -38
- package/dist/llm/effort-fallback.js.map +1 -1
- package/dist/llm/fireworks.js +2 -0
- package/dist/llm/fireworks.js.map +1 -1
- package/dist/llm/free.js +7 -2
- package/dist/llm/free.js.map +1 -1
- package/dist/llm/gemini.d.ts +0 -1
- package/dist/llm/gemini.js +2 -19
- package/dist/llm/gemini.js.map +1 -1
- package/dist/llm/hetzner.js +2 -0
- package/dist/llm/hetzner.js.map +1 -1
- package/dist/llm/http.d.ts +24 -251
- package/dist/llm/http.js +19 -2021
- package/dist/llm/http.js.map +1 -1
- package/dist/llm/key-rotation.d.ts +0 -32
- package/dist/llm/key-rotation.js +6 -37
- package/dist/llm/key-rotation.js.map +1 -1
- package/dist/llm/lightning.d.ts +0 -8
- package/dist/llm/lightning.js +3 -18
- package/dist/llm/lightning.js.map +1 -1
- package/dist/llm/merge-gateway.d.ts +0 -9
- package/dist/llm/merge-gateway.js +2 -44
- package/dist/llm/merge-gateway.js.map +1 -1
- package/dist/llm/modal.js +3 -15
- package/dist/llm/modal.js.map +1 -1
- package/dist/llm/model-families.d.ts +1 -6
- package/dist/llm/model-families.js +2 -5
- package/dist/llm/model-families.js.map +1 -1
- package/dist/llm/model-layers/model-patterns.d.ts +7 -0
- package/dist/llm/model-layers/model-patterns.js +30 -0
- package/dist/llm/model-layers/model-patterns.js.map +1 -0
- package/dist/llm/model-layers/model-rules.d.ts +8 -0
- package/dist/llm/model-layers/model-rules.js +221 -0
- package/dist/llm/model-layers/model-rules.js.map +1 -0
- package/dist/llm/model-layers/nvidia-layer.d.ts +2 -0
- package/dist/llm/model-layers/nvidia-layer.js +135 -0
- package/dist/llm/model-layers/nvidia-layer.js.map +1 -0
- package/dist/llm/nvidia.js +3 -11
- package/dist/llm/nvidia.js.map +1 -1
- package/dist/llm/ollama.js +2 -11
- package/dist/llm/ollama.js.map +1 -1
- package/dist/llm/openai.js +2 -0
- package/dist/llm/openai.js.map +1 -1
- package/dist/llm/openrouter.js +3 -1
- package/dist/llm/openrouter.js.map +1 -1
- package/dist/llm/operation-ledger.d.ts +0 -6
- package/dist/llm/operation-ledger.js +0 -6
- package/dist/llm/operation-ledger.js.map +1 -1
- package/dist/llm/operation-usage.d.ts +2 -0
- package/dist/llm/operation-usage.js +27 -0
- package/dist/llm/operation-usage.js.map +1 -1
- package/dist/llm/orcarouter.d.ts +0 -4
- package/dist/llm/orcarouter.js +3 -26
- package/dist/llm/orcarouter.js.map +1 -1
- package/dist/llm/profile/control-rejections.d.ts +14 -0
- package/dist/llm/profile/control-rejections.js +75 -0
- package/dist/llm/profile/control-rejections.js.map +1 -0
- package/dist/llm/profile/custom-layer.d.ts +3 -0
- package/dist/llm/profile/custom-layer.js +83 -0
- package/dist/llm/profile/custom-layer.js.map +1 -0
- package/dist/llm/profile/layer-merge.d.ts +3 -0
- package/dist/llm/profile/layer-merge.js +185 -0
- package/dist/llm/profile/layer-merge.js.map +1 -0
- package/dist/llm/profile/spec-validation.d.ts +5 -0
- package/dist/llm/profile/spec-validation.js +289 -0
- package/dist/llm/profile/spec-validation.js.map +1 -0
- package/dist/llm/profile/spec-vocabulary.d.ts +21 -0
- package/dist/llm/profile/spec-vocabulary.js +142 -0
- package/dist/llm/profile/spec-vocabulary.js.map +1 -0
- package/dist/llm/provider-identity.d.ts +5 -0
- package/dist/llm/provider-identity.js +130 -0
- package/dist/llm/provider-identity.js.map +1 -0
- package/dist/llm/provider-info-text.d.ts +1 -0
- package/dist/llm/provider-info-text.js +587 -0
- package/dist/llm/provider-info-text.js.map +1 -0
- package/dist/llm/provider-model-layers.d.ts +2 -0
- package/dist/llm/provider-model-layers.js +21 -380
- package/dist/llm/provider-model-layers.js.map +1 -1
- package/dist/llm/provider-profile-layers.js +0 -2
- package/dist/llm/provider-profile-layers.js.map +1 -1
- package/dist/llm/provider-profile.d.ts +10 -12
- package/dist/llm/provider-profile.js +6 -265
- package/dist/llm/provider-profile.js.map +1 -1
- package/dist/llm/provider.d.ts +4 -16
- package/dist/llm/provider.js +6 -760
- package/dist/llm/provider.js.map +1 -1
- package/dist/llm/qwen-cloud.js +2 -4
- package/dist/llm/qwen-cloud.js.map +1 -1
- package/dist/llm/reasoning-artifacts.d.ts +5 -50
- package/dist/llm/reasoning-artifacts.js +11 -198
- package/dist/llm/reasoning-artifacts.js.map +1 -1
- package/dist/llm/reasoning-capability.js +1 -17
- package/dist/llm/reasoning-capability.js.map +1 -1
- package/dist/llm/request-fingerprint.d.ts +0 -4
- package/dist/llm/request-fingerprint.js +0 -4
- package/dist/llm/request-fingerprint.js.map +1 -1
- package/dist/llm/request-plan.d.ts +0 -14
- package/dist/llm/request-plan.js +0 -23
- package/dist/llm/request-plan.js.map +1 -1
- package/dist/llm/responses/item-events.d.ts +3 -0
- package/dist/llm/responses/item-events.js +93 -0
- package/dist/llm/responses/item-events.js.map +1 -0
- package/dist/llm/responses-complete.d.ts +1 -1
- package/dist/llm/responses-complete.js +2 -1
- package/dist/llm/responses-complete.js.map +1 -1
- package/dist/llm/responses-config.js.map +1 -1
- package/dist/llm/responses-http.d.ts +1 -0
- package/dist/llm/responses-http.js +3 -1
- package/dist/llm/responses-http.js.map +1 -1
- package/dist/llm/responses-parse.d.ts +3 -0
- package/dist/llm/responses-parse.js +19 -6
- package/dist/llm/responses-parse.js.map +1 -1
- package/dist/llm/responses-request.d.ts +3 -1
- package/dist/llm/responses-request.js +18 -3
- package/dist/llm/responses-request.js.map +1 -1
- package/dist/llm/responses-shape.d.ts +5 -0
- package/dist/llm/responses-shape.js +16 -0
- package/dist/llm/responses-shape.js.map +1 -0
- package/dist/llm/responses-stream-accumulator.d.ts +1 -1
- package/dist/llm/responses-stream-accumulator.js +8 -9
- package/dist/llm/responses-stream-accumulator.js.map +1 -1
- package/dist/llm/responses-stream-events.d.ts +2 -0
- package/dist/llm/responses-stream-events.js +34 -102
- package/dist/llm/responses-stream-events.js.map +1 -1
- package/dist/llm/responses-stream-watchdog.js.map +1 -1
- package/dist/llm/responses-stream.js +9 -4
- package/dist/llm/responses-stream.js.map +1 -1
- package/dist/llm/router.d.ts +7 -44
- package/dist/llm/router.js +24 -1145
- package/dist/llm/router.js.map +1 -1
- package/dist/llm/routing/attempt-complete.d.ts +3 -0
- package/dist/llm/routing/attempt-complete.js +120 -0
- package/dist/llm/routing/attempt-complete.js.map +1 -0
- package/dist/llm/routing/attempt-request.d.ts +21 -0
- package/dist/llm/routing/attempt-request.js +99 -0
- package/dist/llm/routing/attempt-request.js.map +1 -0
- package/dist/llm/routing/attempt-stream.d.ts +3 -0
- package/dist/llm/routing/attempt-stream.js +256 -0
- package/dist/llm/routing/attempt-stream.js.map +1 -0
- package/dist/llm/routing/error-classification.d.ts +15 -0
- package/dist/llm/routing/error-classification.js +151 -0
- package/dist/llm/routing/error-classification.js.map +1 -0
- package/dist/llm/routing/failure-report.d.ts +22 -0
- package/dist/llm/routing/failure-report.js +128 -0
- package/dist/llm/routing/failure-report.js.map +1 -0
- package/dist/llm/routing/key-rotation.d.ts +21 -0
- package/dist/llm/routing/key-rotation.js +207 -0
- package/dist/llm/routing/key-rotation.js.map +1 -0
- package/dist/llm/routing/provider-selection.d.ts +8 -0
- package/dist/llm/routing/provider-selection.js +119 -0
- package/dist/llm/routing/provider-selection.js.map +1 -0
- package/dist/llm/sampling.d.ts +0 -15
- package/dist/llm/sampling.js +0 -9
- package/dist/llm/sampling.js.map +1 -1
- package/dist/llm/session-affinity.d.ts +2 -0
- package/dist/llm/session-affinity.js +9 -0
- package/dist/llm/session-affinity.js.map +1 -0
- package/dist/llm/stream-progress.d.ts +0 -1
- package/dist/llm/stream-progress.js +0 -15
- package/dist/llm/stream-progress.js.map +1 -1
- package/dist/llm/system-messages.d.ts +0 -22
- package/dist/llm/system-messages.js +6 -22
- package/dist/llm/system-messages.js.map +1 -1
- package/dist/llm/token-estimate-calibration.d.ts +0 -6
- package/dist/llm/token-estimate-calibration.js +0 -26
- package/dist/llm/token-estimate-calibration.js.map +1 -1
- package/dist/llm/token-usage.d.ts +8 -69
- package/dist/llm/token-usage.js +10 -257
- package/dist/llm/token-usage.js.map +1 -1
- package/dist/llm/tokenrouter.d.ts +0 -12
- package/dist/llm/tokenrouter.js +3 -14
- package/dist/llm/tokenrouter.js.map +1 -1
- package/dist/llm/tool-protocol.d.ts +3 -22
- package/dist/llm/tool-protocol.js +20 -155
- package/dist/llm/tool-protocol.js.map +1 -1
- package/dist/llm/tool-wire/argument-repair.d.ts +4 -0
- package/dist/llm/tool-wire/argument-repair.js +174 -0
- package/dist/llm/tool-wire/argument-repair.js.map +1 -0
- package/dist/llm/transport-events.d.ts +12 -0
- package/dist/llm/transport-events.js +29 -0
- package/dist/llm/transport-events.js.map +1 -0
- package/dist/llm/usage/provider-parsers.d.ts +11 -0
- package/dist/llm/usage/provider-parsers.js +220 -0
- package/dist/llm/usage/provider-parsers.js.map +1 -0
- package/dist/llm/wire/abort-race.d.ts +1 -0
- package/dist/llm/wire/abort-race.js +34 -0
- package/dist/llm/wire/abort-race.js.map +1 -0
- package/dist/llm/wire/capability-errors.d.ts +11 -0
- package/dist/llm/wire/capability-errors.js +92 -0
- package/dist/llm/wire/capability-errors.js.map +1 -0
- package/dist/llm/wire/chat-body.d.ts +40 -0
- package/dist/llm/wire/chat-body.js +172 -0
- package/dist/llm/wire/chat-body.js.map +1 -0
- package/dist/llm/wire/model-catalog.d.ts +4 -0
- package/dist/llm/wire/model-catalog.js +34 -0
- package/dist/llm/wire/model-catalog.js.map +1 -0
- package/dist/llm/wire/openai-complete.d.ts +27 -0
- package/dist/llm/wire/openai-complete.js +138 -0
- package/dist/llm/wire/openai-complete.js.map +1 -0
- package/dist/llm/wire/openai-stream.d.ts +36 -0
- package/dist/llm/wire/openai-stream.js +665 -0
- package/dist/llm/wire/openai-stream.js.map +1 -0
- package/dist/llm/wire/reasoning-artifacts.d.ts +45 -0
- package/dist/llm/wire/reasoning-artifacts.js +140 -0
- package/dist/llm/wire/reasoning-artifacts.js.map +1 -0
- package/dist/llm/wire/reasoning-payload.d.ts +9 -0
- package/dist/llm/wire/reasoning-payload.js +226 -0
- package/dist/llm/wire/reasoning-payload.js.map +1 -0
- package/dist/llm/wire/response-errors.d.ts +5 -0
- package/dist/llm/wire/response-errors.js +182 -0
- package/dist/llm/wire/response-errors.js.map +1 -0
- package/dist/llm/wire/responses-first.d.ts +30 -0
- package/dist/llm/wire/responses-first.js +366 -0
- package/dist/llm/wire/responses-first.js.map +1 -0
- package/dist/llm/wire/stream-framing.d.ts +38 -0
- package/dist/llm/wire/stream-framing.js +217 -0
- package/dist/llm/wire/stream-framing.js.map +1 -0
- package/dist/mcp/runtime.d.ts +0 -15
- package/dist/mcp/runtime.js +0 -8
- package/dist/mcp/runtime.js.map +1 -1
- package/dist/modes/ask.d.ts +0 -3
- package/dist/modes/ask.js +0 -22
- package/dist/modes/ask.js.map +1 -1
- package/dist/noninteractive/blocks/tool-blocks.d.ts +35 -0
- package/dist/noninteractive/blocks/tool-blocks.js +206 -0
- package/dist/noninteractive/blocks/tool-blocks.js.map +1 -0
- package/dist/noninteractive/readline-prompts.d.ts +0 -21
- package/dist/noninteractive/readline-prompts.js +0 -31
- package/dist/noninteractive/readline-prompts.js.map +1 -1
- package/dist/noninteractive/stdio-confirm-port.d.ts +0 -9
- package/dist/noninteractive/stdio-confirm-port.js +0 -9
- package/dist/noninteractive/stdio-confirm-port.js.map +1 -1
- package/dist/noninteractive/stream-blocks.d.ts +3 -49
- package/dist/noninteractive/stream-blocks.js +14 -234
- package/dist/noninteractive/stream-blocks.js.map +1 -1
- package/dist/noninteractive/stream-renderer.d.ts +0 -10
- package/dist/noninteractive/stream-renderer.js +0 -10
- package/dist/noninteractive/stream-renderer.js.map +1 -1
- package/dist/noninteractive/stream-spinner.d.ts +0 -8
- package/dist/noninteractive/stream-spinner.js +0 -8
- package/dist/noninteractive/stream-spinner.js.map +1 -1
- package/dist/os/bun-runtime.d.ts +0 -15
- package/dist/os/bun-runtime.js +0 -33
- package/dist/os/bun-runtime.js.map +1 -1
- package/dist/os/command.d.ts +0 -6
- package/dist/os/command.js +0 -13
- package/dist/os/command.js.map +1 -1
- package/dist/os/cwd.d.ts +0 -5
- package/dist/os/cwd.js +0 -6
- package/dist/os/cwd.js.map +1 -1
- package/dist/os/permissions.d.ts +0 -11
- package/dist/os/permissions.js +0 -13
- package/dist/os/permissions.js.map +1 -1
- package/dist/os/process-identity.d.ts +0 -22
- package/dist/os/process-identity.js +0 -23
- package/dist/os/process-identity.js.map +1 -1
- package/dist/os/process-tree.d.ts +0 -7
- package/dist/os/process-tree.js +0 -8
- package/dist/os/process-tree.js.map +1 -1
- package/dist/prompts/index.d.ts +0 -36
- package/dist/prompts/index.js +0 -46
- package/dist/prompts/index.js.map +1 -1
- package/dist/safety/classifier.d.ts +5 -26
- package/dist/safety/classifier.js +5 -573
- package/dist/safety/classifier.js.map +1 -1
- package/dist/safety/engagement-policy.d.ts +0 -13
- package/dist/safety/engagement-policy.js +0 -32
- package/dist/safety/engagement-policy.js.map +1 -1
- package/dist/safety/patterns.d.ts +0 -108
- package/dist/safety/patterns.js +0 -159
- package/dist/safety/patterns.js.map +1 -1
- package/dist/safety/shell-classification.d.ts +19 -0
- package/dist/safety/shell-classification.js +215 -0
- package/dist/safety/shell-classification.js.map +1 -0
- package/dist/safety/tool-classification.d.ts +4 -0
- package/dist/safety/tool-classification.js +260 -0
- package/dist/safety/tool-classification.js.map +1 -0
- package/dist/store/config/endpoints.d.ts +86 -0
- package/dist/store/config/endpoints.js +297 -0
- package/dist/store/config/endpoints.js.map +1 -0
- package/dist/store/config/settings.d.ts +11 -0
- package/dist/store/config/settings.js +52 -0
- package/dist/store/config/settings.js.map +1 -0
- package/dist/store/config.d.ts +6 -169
- package/dist/store/config.js +4 -411
- package/dist/store/config.js.map +1 -1
- package/dist/store/engagement.d.ts +0 -1
- package/dist/store/engagement.js +0 -3
- package/dist/store/engagement.js.map +1 -1
- package/dist/store/history/jsonl-backend.d.ts +7 -0
- package/dist/store/history/jsonl-backend.js +151 -0
- package/dist/store/history/jsonl-backend.js.map +1 -0
- package/dist/store/history/jsonl-lock.d.ts +2 -0
- package/dist/store/history/jsonl-lock.js +100 -0
- package/dist/store/history/jsonl-lock.js.map +1 -0
- package/dist/store/history/lifecycle.d.ts +14 -0
- package/dist/store/history/lifecycle.js +316 -0
- package/dist/store/history/lifecycle.js.map +1 -0
- package/dist/store/history/recovery.d.ts +63 -0
- package/dist/store/history/recovery.js +253 -0
- package/dist/store/history/recovery.js.map +1 -0
- package/dist/store/history/session-queries.d.ts +9 -0
- package/dist/store/history/session-queries.js +142 -0
- package/dist/store/history/session-queries.js.map +1 -0
- package/dist/store/history/sqlite-backend.d.ts +26 -0
- package/dist/store/history/sqlite-backend.js +212 -0
- package/dist/store/history/sqlite-backend.js.map +1 -0
- package/dist/store/history-index.d.ts +0 -5
- package/dist/store/history-index.js +0 -10
- package/dist/store/history-index.js.map +1 -1
- package/dist/store/history.d.ts +12 -97
- package/dist/store/history.js +12 -1214
- package/dist/store/history.js.map +1 -1
- package/dist/store/keys/search-providers.d.ts +33 -0
- package/dist/store/keys/search-providers.js +211 -0
- package/dist/store/keys/search-providers.js.map +1 -0
- package/dist/store/keys/secret-store.d.ts +40 -0
- package/dist/store/keys/secret-store.js +249 -0
- package/dist/store/keys/secret-store.js.map +1 -0
- package/dist/store/keys.d.ts +8 -95
- package/dist/store/keys.js +7 -537
- package/dist/store/keys.js.map +1 -1
- package/dist/store/logs.d.ts +0 -1
- package/dist/store/logs.js +1 -7
- package/dist/store/logs.js.map +1 -1
- package/dist/store/paths.d.ts +0 -12
- package/dist/store/paths.js +0 -12
- package/dist/store/paths.js.map +1 -1
- package/dist/store/plan/jsonl-backend.d.ts +7 -0
- package/dist/store/plan/jsonl-backend.js +115 -0
- package/dist/store/plan/jsonl-backend.js.map +1 -0
- package/dist/store/plan/mutation.d.ts +25 -0
- package/dist/store/plan/mutation.js +270 -0
- package/dist/store/plan/mutation.js.map +1 -0
- package/dist/store/plan/sqlite-backend.d.ts +66 -0
- package/dist/store/plan/sqlite-backend.js +66 -0
- package/dist/store/plan/sqlite-backend.js.map +1 -0
- package/dist/store/plan/task-normalization.d.ts +8 -0
- package/dist/store/plan/task-normalization.js +165 -0
- package/dist/store/plan/task-normalization.js.map +1 -0
- package/dist/store/plan.d.ts +9 -176
- package/dist/store/plan.js +11 -742
- package/dist/store/plan.js.map +1 -1
- package/dist/store/project.js +0 -5
- package/dist/store/project.js.map +1 -1
- package/dist/store/responder-settlement.d.ts +0 -1
- package/dist/store/responder-settlement.js +0 -3
- package/dist/store/responder-settlement.js.map +1 -1
- package/dist/store/scope.d.ts +0 -16
- package/dist/store/scope.js +0 -22
- package/dist/store/scope.js.map +1 -1
- package/dist/store/session-model.d.ts +2 -1
- package/dist/store/session-model.js +27 -1
- package/dist/store/session-model.js.map +1 -1
- package/dist/store/session-workspace.d.ts +0 -51
- package/dist/store/session-workspace.js +0 -57
- package/dist/store/session-workspace.js.map +1 -1
- package/dist/store/task-transitions.d.ts +0 -7
- package/dist/store/task-transitions.js +0 -6
- package/dist/store/task-transitions.js.map +1 -1
- package/dist/tools/batch/batch-parsing.d.ts +11 -0
- package/dist/tools/batch/batch-parsing.js +78 -0
- package/dist/tools/batch/batch-parsing.js.map +1 -0
- package/dist/tools/batch/limits.d.ts +6 -0
- package/dist/tools/batch/limits.js +17 -0
- package/dist/tools/batch/limits.js.map +1 -0
- package/dist/tools/batch/run-batch.d.ts +3 -0
- package/dist/tools/batch/run-batch.js +402 -0
- package/dist/tools/batch/run-batch.js.map +1 -0
- package/dist/tools/batch-fail-policy.d.ts +0 -29
- package/dist/tools/batch-fail-policy.js +0 -31
- package/dist/tools/batch-fail-policy.js.map +1 -1
- package/dist/tools/call-normalization.d.ts +2 -0
- package/dist/tools/call-normalization.js +165 -0
- package/dist/tools/call-normalization.js.map +1 -0
- package/dist/tools/capabilities.d.ts +0 -1
- package/dist/tools/capabilities.js +0 -28
- package/dist/tools/capabilities.js.map +1 -1
- package/dist/tools/command-intent.d.ts +0 -19
- package/dist/tools/command-intent.js +0 -65
- package/dist/tools/command-intent.js.map +1 -1
- package/dist/tools/definitions/aggregate.d.ts +2 -0
- package/dist/tools/definitions/aggregate.js +263 -0
- package/dist/tools/definitions/aggregate.js.map +1 -0
- package/dist/tools/definitions/context-1.d.ts +2 -0
- package/dist/tools/definitions/context-1.js +8 -0
- package/dist/tools/definitions/context-1.js.map +1 -0
- package/dist/tools/definitions/context-2.d.ts +2 -0
- package/dist/tools/definitions/context-2.js +90 -0
- package/dist/tools/definitions/context-2.js.map +1 -0
- package/dist/tools/definitions/define.d.ts +7 -0
- package/dist/tools/definitions/define.js +53 -0
- package/dist/tools/definitions/define.js.map +1 -0
- package/dist/tools/definitions/files.d.ts +2 -0
- package/dist/tools/definitions/files.js +193 -0
- package/dist/tools/definitions/files.js.map +1 -0
- package/dist/tools/definitions/network-1.d.ts +2 -0
- package/dist/tools/definitions/network-1.js +72 -0
- package/dist/tools/definitions/network-1.js.map +1 -0
- package/dist/tools/definitions/network-2.d.ts +2 -0
- package/dist/tools/definitions/network-2.js +22 -0
- package/dist/tools/definitions/network-2.js.map +1 -0
- package/dist/tools/definitions/orchestration.d.ts +2 -0
- package/dist/tools/definitions/orchestration.js +122 -0
- package/dist/tools/definitions/orchestration.js.map +1 -0
- package/dist/tools/definitions/pentest.d.ts +2 -0
- package/dist/tools/definitions/pentest.js +91 -0
- package/dist/tools/definitions/pentest.js.map +1 -0
- package/dist/tools/definitions/selection.d.ts +9 -0
- package/dist/tools/definitions/selection.js +84 -0
- package/dist/tools/definitions/selection.js.map +1 -0
- package/dist/tools/definitions/shell.d.ts +2 -0
- package/dist/tools/definitions/shell.js +83 -0
- package/dist/tools/definitions/shell.js.map +1 -0
- package/dist/tools/definitions/terminal.d.ts +2 -0
- package/dist/tools/definitions/terminal.js +91 -0
- package/dist/tools/definitions/terminal.js.map +1 -0
- package/dist/tools/definitions/web-1.d.ts +2 -0
- package/dist/tools/definitions/web-1.js +68 -0
- package/dist/tools/definitions/web-1.js.map +1 -0
- package/dist/tools/definitions/web-2.d.ts +2 -0
- package/dist/tools/definitions/web-2.js +59 -0
- package/dist/tools/definitions/web-2.js.map +1 -0
- package/dist/tools/definitions.d.ts +3 -16
- package/dist/tools/definitions.js +8 -1238
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/diff/line-ops.d.ts +34 -0
- package/dist/tools/diff/line-ops.js +218 -0
- package/dist/tools/diff/line-ops.js.map +1 -0
- package/dist/tools/dns-native.d.ts +0 -5
- package/dist/tools/dns-native.js +0 -16
- package/dist/tools/dns-native.js.map +1 -1
- package/dist/tools/external-tools.d.ts +0 -8
- package/dist/tools/external-tools.js.map +1 -1
- package/dist/tools/file-diff.d.ts +3 -78
- package/dist/tools/file-diff.js +2 -271
- package/dist/tools/file-diff.js.map +1 -1
- package/dist/tools/fs/internals-2.d.ts +1 -0
- package/dist/tools/fs/internals-2.js +6 -0
- package/dist/tools/fs/internals-2.js.map +1 -0
- package/dist/tools/fs/internals.d.ts +4 -0
- package/dist/tools/fs/internals.js +23 -0
- package/dist/tools/fs/internals.js.map +1 -0
- package/dist/tools/fs/mutations.d.ts +17 -0
- package/dist/tools/fs/mutations.js +396 -0
- package/dist/tools/fs/mutations.js.map +1 -0
- package/dist/tools/fs/read-window.d.ts +14 -0
- package/dist/tools/fs/read-window.js +288 -0
- package/dist/tools/fs/read-window.js.map +1 -0
- package/dist/tools/fs/read.d.ts +7 -0
- package/dist/tools/fs/read.js +164 -0
- package/dist/tools/fs/read.js.map +1 -0
- package/dist/tools/fs/search.d.ts +13 -0
- package/dist/tools/fs/search.js +125 -0
- package/dist/tools/fs/search.js.map +1 -0
- package/dist/tools/fs.d.ts +4 -79
- package/dist/tools/fs.js +26 -1115
- package/dist/tools/fs.js.map +1 -1
- package/dist/tools/handlers/args.d.ts +8 -0
- package/dist/tools/handlers/args.js +50 -0
- package/dist/tools/handlers/args.js.map +1 -0
- package/dist/tools/handlers/context-1.d.ts +2 -0
- package/dist/tools/handlers/context-1.js +7 -0
- package/dist/tools/handlers/context-1.js.map +1 -0
- package/dist/tools/handlers/context-2.d.ts +2 -0
- package/dist/tools/handlers/context-2.js +14 -0
- package/dist/tools/handlers/context-2.js.map +1 -0
- package/dist/tools/handlers/files-1.d.ts +2 -0
- package/dist/tools/handlers/files-1.js +51 -0
- package/dist/tools/handlers/files-1.js.map +1 -0
- package/dist/tools/handlers/files-2.d.ts +2 -0
- package/dist/tools/handlers/files-2.js +31 -0
- package/dist/tools/handlers/files-2.js.map +1 -0
- package/dist/tools/handlers/network-1.d.ts +2 -0
- package/dist/tools/handlers/network-1.js +52 -0
- package/dist/tools/handlers/network-1.js.map +1 -0
- package/dist/tools/handlers/network-2.d.ts +2 -0
- package/dist/tools/handlers/network-2.js +32 -0
- package/dist/tools/handlers/network-2.js.map +1 -0
- package/dist/tools/handlers/network-3.d.ts +2 -0
- package/dist/tools/handlers/network-3.js +17 -0
- package/dist/tools/handlers/network-3.js.map +1 -0
- package/dist/tools/handlers/nmap-preparation.d.ts +13 -0
- package/dist/tools/handlers/nmap-preparation.js +66 -0
- package/dist/tools/handlers/nmap-preparation.js.map +1 -0
- package/dist/tools/handlers/orchestration-1.d.ts +2 -0
- package/dist/tools/handlers/orchestration-1.js +7 -0
- package/dist/tools/handlers/orchestration-1.js.map +1 -0
- package/dist/tools/handlers/orchestration-2.d.ts +2 -0
- package/dist/tools/handlers/orchestration-2.js +16 -0
- package/dist/tools/handlers/orchestration-2.js.map +1 -0
- package/dist/tools/handlers/pentest.d.ts +2 -0
- package/dist/tools/handlers/pentest.js +208 -0
- package/dist/tools/handlers/pentest.js.map +1 -0
- package/dist/tools/handlers/responder-job-options.d.ts +3 -0
- package/dist/tools/handlers/responder-job-options.js +16 -0
- package/dist/tools/handlers/responder-job-options.js.map +1 -0
- package/dist/tools/handlers/shell-1.d.ts +2 -0
- package/dist/tools/handlers/shell-1.js +94 -0
- package/dist/tools/handlers/shell-1.js.map +1 -0
- package/dist/tools/handlers/shell-2.d.ts +2 -0
- package/dist/tools/handlers/shell-2.js +49 -0
- package/dist/tools/handlers/shell-2.js.map +1 -0
- package/dist/tools/handlers/shell-3.d.ts +2 -0
- package/dist/tools/handlers/shell-3.js +47 -0
- package/dist/tools/handlers/shell-3.js.map +1 -0
- package/dist/tools/handlers/web.d.ts +2 -0
- package/dist/tools/handlers/web.js +168 -0
- package/dist/tools/handlers/web.js.map +1 -0
- package/dist/tools/http/agents.d.ts +10 -0
- package/dist/tools/http/agents.js +63 -0
- package/dist/tools/http/agents.js.map +1 -0
- package/dist/tools/http/evidence-format.d.ts +37 -0
- package/dist/tools/http/evidence-format.js +181 -0
- package/dist/tools/http/evidence-format.js.map +1 -0
- package/dist/tools/http/fetch.d.ts +31 -0
- package/dist/tools/http/fetch.js +480 -0
- package/dist/tools/http/fetch.js.map +1 -0
- package/dist/tools/http/retry-policy.d.ts +14 -0
- package/dist/tools/http/retry-policy.js +144 -0
- package/dist/tools/http/retry-policy.js.map +1 -0
- package/dist/tools/http.d.ts +1 -45
- package/dist/tools/http.js +1 -920
- package/dist/tools/http.js.map +1 -1
- package/dist/tools/image.d.ts +0 -15
- package/dist/tools/image.js +0 -21
- package/dist/tools/image.js.map +1 -1
- package/dist/tools/interactive-session-tools.d.ts +0 -7
- package/dist/tools/interactive-session-tools.js +0 -13
- package/dist/tools/interactive-session-tools.js.map +1 -1
- package/dist/tools/jobs/helpers.d.ts +6 -0
- package/dist/tools/jobs/helpers.js +63 -0
- package/dist/tools/jobs/helpers.js.map +1 -0
- package/dist/tools/jobs/limits.d.ts +20 -0
- package/dist/tools/jobs/limits.js +21 -0
- package/dist/tools/jobs/limits.js.map +1 -0
- package/dist/tools/jobs/polling-policy.d.ts +11 -0
- package/dist/tools/jobs/polling-policy.js +33 -0
- package/dist/tools/jobs/polling-policy.js.map +1 -0
- package/dist/tools/jobs/process-identity.d.ts +5 -0
- package/dist/tools/jobs/process-identity.js +80 -0
- package/dist/tools/jobs/process-identity.js.map +1 -0
- package/dist/tools/jobs/redacted-writer.d.ts +25 -0
- package/dist/tools/jobs/redacted-writer.js +134 -0
- package/dist/tools/jobs/redacted-writer.js.map +1 -0
- package/dist/tools/jobs/types.d.ts +152 -0
- package/dist/tools/jobs/types.js +2 -0
- package/dist/tools/jobs/types.js.map +1 -0
- package/dist/tools/jobs.d.ts +8 -210
- package/dist/tools/jobs.js +13 -453
- package/dist/tools/jobs.js.map +1 -1
- package/dist/tools/net-ping-sweep.d.ts +0 -8
- package/dist/tools/net-ping-sweep.js +0 -22
- package/dist/tools/net-ping-sweep.js.map +1 -1
- package/dist/tools/network-context.d.ts +0 -4
- package/dist/tools/network-context.js +0 -8
- package/dist/tools/network-context.js.map +1 -1
- package/dist/tools/nmap-runner.d.ts +0 -21
- package/dist/tools/nmap-runner.js +0 -43
- package/dist/tools/nmap-runner.js.map +1 -1
- package/dist/tools/output-selection.d.ts +0 -1
- package/dist/tools/output-selection.js +0 -3
- package/dist/tools/output-selection.js.map +1 -1
- package/dist/tools/package-binary.js +0 -7
- package/dist/tools/package-binary.js.map +1 -1
- package/dist/tools/pdf/read.d.ts +6 -0
- package/dist/tools/pdf/read.js +529 -0
- package/dist/tools/pdf/read.js.map +1 -0
- package/dist/tools/pdf.d.ts +2 -6
- package/dist/tools/pdf.js +1 -528
- package/dist/tools/pdf.js.map +1 -1
- package/dist/tools/pentest-workflows.js +0 -12
- package/dist/tools/pentest-workflows.js.map +1 -1
- package/dist/tools/policies/output-policy.d.ts +0 -17
- package/dist/tools/policies/output-policy.js +0 -18
- package/dist/tools/policies/output-policy.js.map +1 -1
- package/dist/tools/reducers/ffuf.d.ts +0 -5
- package/dist/tools/reducers/ffuf.js +0 -8
- package/dist/tools/reducers/ffuf.js.map +1 -1
- package/dist/tools/reducers/gobuster.js +0 -1
- package/dist/tools/reducers/gobuster.js.map +1 -1
- package/dist/tools/reducers/httpx.js +0 -1
- package/dist/tools/reducers/httpx.js.map +1 -1
- package/dist/tools/reducers/nmap.d.ts +0 -5
- package/dist/tools/reducers/nmap.js +0 -5
- package/dist/tools/reducers/nmap.js.map +1 -1
- package/dist/tools/reducers/nuclei.js +0 -1
- package/dist/tools/reducers/nuclei.js.map +1 -1
- package/dist/tools/reducers/subdomains.d.ts +0 -4
- package/dist/tools/reducers/subdomains.js +0 -4
- package/dist/tools/reducers/subdomains.js.map +1 -1
- package/dist/tools/reducers/types.d.ts +0 -5
- package/dist/tools/registry.d.ts +4 -20
- package/dist/tools/registry.js +36 -1634
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/shell/artifact-name.d.ts +1 -0
- package/dist/tools/shell/artifact-name.js +6 -0
- package/dist/tools/shell/artifact-name.js.map +1 -0
- package/dist/tools/shell/capture.d.ts +31 -0
- package/dist/tools/shell/capture.js +135 -0
- package/dist/tools/shell/capture.js.map +1 -0
- package/dist/tools/shell/exec-attempt.d.ts +10 -0
- package/dist/tools/shell/exec-attempt.js +288 -0
- package/dist/tools/shell/exec-attempt.js.map +1 -0
- package/dist/tools/shell/internals-2.d.ts +16 -0
- package/dist/tools/shell/internals-2.js +48 -0
- package/dist/tools/shell/internals-2.js.map +1 -0
- package/dist/tools/shell/internals.d.ts +10 -0
- package/dist/tools/shell/internals.js +51 -0
- package/dist/tools/shell/internals.js.map +1 -0
- package/dist/tools/shell/spawn-argv.d.ts +17 -0
- package/dist/tools/shell/spawn-argv.js +248 -0
- package/dist/tools/shell/spawn-argv.js.map +1 -0
- package/dist/tools/shell-quoting.d.ts +1 -0
- package/dist/tools/shell-quoting.js +7 -0
- package/dist/tools/shell-quoting.js.map +1 -0
- package/dist/tools/shell.d.ts +4 -82
- package/dist/tools/shell.js +7 -845
- package/dist/tools/shell.js.map +1 -1
- package/dist/tools/sudo-session.d.ts +0 -41
- package/dist/tools/sudo-session.js +0 -44
- package/dist/tools/sudo-session.js.map +1 -1
- package/dist/tools/tool-types.d.ts +0 -7
- package/dist/tools/validate.d.ts +0 -35
- package/dist/tools/validate.js +2 -67
- package/dist/tools/validate.js.map +1 -1
- package/dist/tools/web/audit.d.ts +0 -74
- package/dist/tools/web/audit.js +0 -39
- package/dist/tools/web/audit.js.map +1 -1
- package/dist/tools/web/budget.d.ts +0 -35
- package/dist/tools/web/budget.js +0 -75
- package/dist/tools/web/budget.js.map +1 -1
- package/dist/tools/web/capture.d.ts +0 -106
- package/dist/tools/web/capture.js +0 -148
- package/dist/tools/web/capture.js.map +1 -1
- package/dist/tools/web/decode.d.ts +0 -8
- package/dist/tools/web/decode.js +0 -9
- package/dist/tools/web/decode.js.map +1 -1
- package/dist/tools/web/fetch-core.d.ts +2 -32
- package/dist/tools/web/fetch-core.js +4 -1058
- package/dist/tools/web/fetch-core.js.map +1 -1
- package/dist/tools/web/fetch.d.ts +0 -29
- package/dist/tools/web/fetch.js +0 -46
- package/dist/tools/web/fetch.js.map +1 -1
- package/dist/tools/web/issue-hop.d.ts +57 -0
- package/dist/tools/web/issue-hop.js +396 -0
- package/dist/tools/web/issue-hop.js.map +1 -0
- package/dist/tools/web/providers/brave.d.ts +0 -40
- package/dist/tools/web/providers/brave.js +1 -100
- package/dist/tools/web/providers/brave.js.map +1 -1
- package/dist/tools/web/providers/duckduckgo.d.ts +0 -41
- package/dist/tools/web/providers/duckduckgo.js +0 -104
- package/dist/tools/web/providers/duckduckgo.js.map +1 -1
- package/dist/tools/web/providers/exa.d.ts +0 -43
- package/dist/tools/web/providers/exa.js +1 -102
- package/dist/tools/web/providers/exa.js.map +1 -1
- package/dist/tools/web/providers/provider.d.ts +0 -69
- package/dist/tools/web/providers/provider.js +0 -28
- package/dist/tools/web/providers/provider.js.map +1 -1
- package/dist/tools/web/providers/tavily.d.ts +0 -46
- package/dist/tools/web/providers/tavily.js +1 -111
- package/dist/tools/web/providers/tavily.js.map +1 -1
- package/dist/tools/web/readable.d.ts +0 -62
- package/dist/tools/web/readable.js +1 -132
- package/dist/tools/web/readable.js.map +1 -1
- package/dist/tools/web/redact.d.ts +0 -26
- package/dist/tools/web/redact.js +0 -2
- package/dist/tools/web/redact.js.map +1 -1
- package/dist/tools/web/request-loop.d.ts +38 -0
- package/dist/tools/web/request-loop.js +172 -0
- package/dist/tools/web/request-loop.js.map +1 -0
- package/dist/tools/web/response-body.d.ts +41 -0
- package/dist/tools/web/response-body.js +174 -0
- package/dist/tools/web/response-body.js.map +1 -0
- package/dist/tools/web/search-attempts.d.ts +20 -0
- package/dist/tools/web/search-attempts.js +303 -0
- package/dist/tools/web/search-attempts.js.map +1 -0
- package/dist/tools/web/search.d.ts +0 -33
- package/dist/tools/web/search.js +3 -396
- package/dist/tools/web/search.js.map +1 -1
- package/dist/tools/web/ssrf-guard.d.ts +0 -42
- package/dist/tools/web/ssrf-guard.js +0 -57
- package/dist/tools/web/ssrf-guard.js.map +1 -1
- package/dist/tools/web/types.d.ts +0 -197
- package/dist/tools/web/types.js +0 -41
- package/dist/tools/web/types.js.map +1 -1
- package/dist/tools/web/validate-args.d.ts +11 -0
- package/dist/tools/web/validate-args.js +107 -0
- package/dist/tools/web/validate-args.js.map +1 -0
- package/dist/tools/whois-native.d.ts +0 -4
- package/dist/tools/whois-native.js +0 -6
- package/dist/tools/whois-native.js.map +1 -1
- package/dist/tools/wordlists.js +0 -32
- package/dist/tools/wordlists.js.map +1 -1
- package/dist/tui-v2/app/App.d.ts +0 -10
- package/dist/tui-v2/app/App.js +95 -131
- package/dist/tui-v2/app/App.js.map +1 -1
- package/dist/tui-v2/bootstrap/pager-export.d.ts +0 -8
- package/dist/tui-v2/bootstrap/pager-export.js +0 -11
- package/dist/tui-v2/bootstrap/pager-export.js.map +1 -1
- package/dist/tui-v2/bootstrap/patch-opentui-text.d.ts +0 -5
- package/dist/tui-v2/bootstrap/patch-opentui-text.js +0 -5
- package/dist/tui-v2/bootstrap/patch-opentui-text.js.map +1 -1
- package/dist/tui-v2/bootstrap/resize-repaint.d.ts +16 -20
- package/dist/tui-v2/bootstrap/resize-repaint.js +31 -16
- package/dist/tui-v2/bootstrap/resize-repaint.js.map +1 -1
- package/dist/tui-v2/bootstrap/start-tui-v2.d.ts +0 -7
- package/dist/tui-v2/bootstrap/start-tui-v2.js +39 -38
- package/dist/tui-v2/bootstrap/start-tui-v2.js.map +1 -1
- package/dist/tui-v2/components/completion/completion-menu.d.ts +0 -4
- package/dist/tui-v2/components/completion/completion-menu.js +2 -6
- package/dist/tui-v2/components/completion/completion-menu.js.map +1 -1
- package/dist/tui-v2/components/composer/composer-input-box.d.ts +0 -4
- package/dist/tui-v2/components/composer/composer-input-box.js +1 -10
- package/dist/tui-v2/components/composer/composer-input-box.js.map +1 -1
- package/dist/tui-v2/components/composer/paste-chip.d.ts +0 -7
- package/dist/tui-v2/components/composer/paste-chip.js +0 -7
- package/dist/tui-v2/components/composer/paste-chip.js.map +1 -1
- package/dist/tui-v2/components/jobs/jobs-panel.d.ts +5 -14
- package/dist/tui-v2/components/jobs/jobs-panel.js +8 -37
- package/dist/tui-v2/components/jobs/jobs-panel.js.map +1 -1
- package/dist/tui-v2/components/modal/confirm-modal.d.ts +0 -8
- package/dist/tui-v2/components/modal/confirm-modal.js +0 -4
- package/dist/tui-v2/components/modal/confirm-modal.js.map +1 -1
- package/dist/tui-v2/components/modal/keys-modal.d.ts +0 -11
- package/dist/tui-v2/components/modal/keys-modal.js +0 -24
- package/dist/tui-v2/components/modal/keys-modal.js.map +1 -1
- package/dist/tui-v2/components/modal/prompt-actions-modal.d.ts +0 -6
- package/dist/tui-v2/components/modal/prompt-actions-modal.js +4 -13
- package/dist/tui-v2/components/modal/prompt-actions-modal.js.map +1 -1
- package/dist/tui-v2/components/modal/scope-modal.d.ts +0 -5
- package/dist/tui-v2/components/modal/scope-modal.js +0 -12
- package/dist/tui-v2/components/modal/scope-modal.js.map +1 -1
- package/dist/tui-v2/components/modal/secret-modal.d.ts +0 -8
- package/dist/tui-v2/components/modal/secret-modal.js +0 -17
- package/dist/tui-v2/components/modal/secret-modal.js.map +1 -1
- package/dist/tui-v2/components/modal/text-editor-modal.d.ts +0 -6
- package/dist/tui-v2/components/modal/text-editor-modal.js +0 -6
- package/dist/tui-v2/components/modal/text-editor-modal.js.map +1 -1
- package/dist/tui-v2/components/overlay/overlay-host.d.ts +3 -15
- package/dist/tui-v2/components/overlay/overlay-host.js +6 -3
- package/dist/tui-v2/components/overlay/overlay-host.js.map +1 -1
- package/dist/tui-v2/components/pager/pager-line.d.ts +0 -5
- package/dist/tui-v2/components/pager/pager-line.js +0 -10
- package/dist/tui-v2/components/pager/pager-line.js.map +1 -1
- package/dist/tui-v2/components/pager/pager.d.ts +0 -14
- package/dist/tui-v2/components/pager/pager.js +3 -58
- package/dist/tui-v2/components/pager/pager.js.map +1 -1
- package/dist/tui-v2/components/picker/picker.d.ts +0 -6
- package/dist/tui-v2/components/picker/picker.js +3 -12
- package/dist/tui-v2/components/picker/picker.js.map +1 -1
- package/dist/tui-v2/components/plan/plan-pane-anim.d.ts +0 -25
- package/dist/tui-v2/components/plan/plan-pane-anim.js +0 -23
- package/dist/tui-v2/components/plan/plan-pane-anim.js.map +1 -1
- package/dist/tui-v2/components/plan/plan-view.d.ts +3 -8
- package/dist/tui-v2/components/plan/plan-view.js +5 -22
- package/dist/tui-v2/components/plan/plan-view.js.map +1 -1
- package/dist/tui-v2/components/plan/use-pane-presence.d.ts +0 -9
- package/dist/tui-v2/components/plan/use-pane-presence.js +0 -9
- package/dist/tui-v2/components/plan/use-pane-presence.js.map +1 -1
- package/dist/tui-v2/components/queue/queue-panel.d.ts +3 -13
- package/dist/tui-v2/components/queue/queue-panel.js +8 -5
- package/dist/tui-v2/components/queue/queue-panel.js.map +1 -1
- package/dist/tui-v2/components/status/status-line.d.ts +3 -18
- package/dist/tui-v2/components/status/status-line.js +5 -12
- package/dist/tui-v2/components/status/status-line.js.map +1 -1
- package/dist/tui-v2/components/toast/toast-anim.d.ts +0 -20
- package/dist/tui-v2/components/toast/toast-anim.js +0 -15
- package/dist/tui-v2/components/toast/toast-anim.js.map +1 -1
- package/dist/tui-v2/components/toast/toast-host.d.ts +3 -13
- package/dist/tui-v2/components/toast/toast-host.js +6 -31
- package/dist/tui-v2/components/toast/toast-host.js.map +1 -1
- package/dist/tui-v2/components/transcript/assistant-message.d.ts +0 -11
- package/dist/tui-v2/components/transcript/assistant-message.js +3 -24
- package/dist/tui-v2/components/transcript/assistant-message.js.map +1 -1
- package/dist/tui-v2/components/transcript/compacted-row.d.ts +0 -6
- package/dist/tui-v2/components/transcript/compacted-row.js +2 -6
- package/dist/tui-v2/components/transcript/compacted-row.js.map +1 -1
- package/dist/tui-v2/components/transcript/file-diff-card.d.ts +0 -9
- package/dist/tui-v2/components/transcript/file-diff-card.js +0 -16
- package/dist/tui-v2/components/transcript/file-diff-card.js.map +1 -1
- package/dist/tui-v2/components/transcript/intro-card.d.ts +0 -9
- package/dist/tui-v2/components/transcript/intro-card.js +2 -13
- package/dist/tui-v2/components/transcript/intro-card.js.map +1 -1
- package/dist/tui-v2/components/transcript/linkable-text.d.ts +0 -16
- package/dist/tui-v2/components/transcript/linkable-text.js +0 -11
- package/dist/tui-v2/components/transcript/linkable-text.js.map +1 -1
- package/dist/tui-v2/components/transcript/notice-row.d.ts +0 -7
- package/dist/tui-v2/components/transcript/notice-row.js +2 -18
- package/dist/tui-v2/components/transcript/notice-row.js.map +1 -1
- package/dist/tui-v2/components/transcript/search-bar.d.ts +0 -10
- package/dist/tui-v2/components/transcript/search-bar.js +0 -3
- package/dist/tui-v2/components/transcript/search-bar.js.map +1 -1
- package/dist/tui-v2/components/transcript/selectable-line.d.ts +0 -16
- package/dist/tui-v2/components/transcript/selectable-line.js +0 -9
- package/dist/tui-v2/components/transcript/selectable-line.js.map +1 -1
- package/dist/tui-v2/components/transcript/thinking-block.d.ts +0 -18
- package/dist/tui-v2/components/transcript/thinking-block.js +2 -40
- package/dist/tui-v2/components/transcript/thinking-block.js.map +1 -1
- package/dist/tui-v2/components/transcript/tool-card.d.ts +0 -19
- package/dist/tui-v2/components/transcript/tool-card.js +2 -42
- package/dist/tui-v2/components/transcript/tool-card.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-row.d.ts +0 -14
- package/dist/tui-v2/components/transcript/transcript-row.js +2 -13
- package/dist/tui-v2/components/transcript/transcript-row.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-scroll-port.d.ts +0 -32
- package/dist/tui-v2/components/transcript/transcript-scroll-port.js +0 -22
- package/dist/tui-v2/components/transcript/transcript-scroll-port.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-scrollbar.d.ts +6 -2
- package/dist/tui-v2/components/transcript/transcript-scrollbar.js +15 -4
- package/dist/tui-v2/components/transcript/transcript-scrollbar.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-view.d.ts +0 -9
- package/dist/tui-v2/components/transcript/transcript-view.js +9 -104
- package/dist/tui-v2/components/transcript/transcript-view.js.map +1 -1
- package/dist/tui-v2/components/transcript/use-click-without-drag.d.ts +0 -7
- package/dist/tui-v2/components/transcript/use-click-without-drag.js +1 -11
- package/dist/tui-v2/components/transcript/use-click-without-drag.js.map +1 -1
- package/dist/tui-v2/components/transcript/use-native-selection-copy.d.ts +0 -7
- package/dist/tui-v2/components/transcript/use-native-selection-copy.js +0 -9
- package/dist/tui-v2/components/transcript/use-native-selection-copy.js.map +1 -1
- package/dist/tui-v2/components/transcript/use-transcript-selection.d.ts +0 -1
- package/dist/tui-v2/components/transcript/use-transcript-selection.js +0 -14
- package/dist/tui-v2/components/transcript/use-transcript-selection.js.map +1 -1
- package/dist/tui-v2/components/transcript/user-message.d.ts +0 -2
- package/dist/tui-v2/components/transcript/user-message.js +2 -7
- package/dist/tui-v2/components/transcript/user-message.js.map +1 -1
- package/dist/tui-v2/composer/composer-editor.d.ts +3 -21
- package/dist/tui-v2/composer/composer-editor.js +5 -63
- package/dist/tui-v2/composer/composer-editor.js.map +1 -1
- package/dist/tui-v2/composer/composer-wheel.d.ts +0 -17
- package/dist/tui-v2/composer/composer-wheel.js +0 -17
- package/dist/tui-v2/composer/composer-wheel.js.map +1 -1
- package/dist/tui-v2/composer/disable-native-textarea-scroll.d.ts +0 -12
- package/dist/tui-v2/composer/disable-native-textarea-scroll.js +0 -13
- package/dist/tui-v2/composer/disable-native-textarea-scroll.js.map +1 -1
- package/dist/tui-v2/composer/textarea-keybindings.d.ts +0 -19
- package/dist/tui-v2/composer/textarea-keybindings.js +0 -34
- package/dist/tui-v2/composer/textarea-keybindings.js.map +1 -1
- package/dist/tui-v2/composer/use-draft-actions.d.ts +0 -10
- package/dist/tui-v2/composer/use-draft-actions.js +0 -5
- package/dist/tui-v2/composer/use-draft-actions.js.map +1 -1
- package/dist/tui-v2/hooks/terminal-dimensions.d.ts +6 -0
- package/dist/tui-v2/hooks/terminal-dimensions.js +14 -0
- package/dist/tui-v2/hooks/terminal-dimensions.js.map +1 -0
- package/dist/tui-v2/input/chord-from-opentui-key.d.ts +0 -17
- package/dist/tui-v2/input/chord-from-opentui-key.js +0 -17
- package/dist/tui-v2/input/chord-from-opentui-key.js.map +1 -1
- package/dist/tui-v2/perf/render-counters.d.ts +5 -0
- package/dist/tui-v2/perf/render-counters.js +54 -0
- package/dist/tui-v2/perf/render-counters.js.map +1 -0
- package/dist/tui-v2/rendering/ansi-to-styled.d.ts +0 -12
- package/dist/tui-v2/rendering/ansi-to-styled.js +0 -10
- package/dist/tui-v2/rendering/ansi-to-styled.js.map +1 -1
- package/dist/tui-v2/rendering/pager-markdown.d.ts +0 -18
- package/dist/tui-v2/rendering/pager-markdown.js +0 -14
- package/dist/tui-v2/rendering/pager-markdown.js.map +1 -1
- package/dist/types.d.ts +2 -135
- package/dist/types.js +0 -3
- package/dist/types.js.map +1 -1
- package/dist/ui/mentions/expand.d.ts +26 -0
- package/dist/ui/mentions/expand.js +308 -0
- package/dist/ui/mentions/expand.js.map +1 -0
- package/dist/ui/mentions/file-suggestions.d.ts +7 -0
- package/dist/ui/mentions/file-suggestions.js +106 -0
- package/dist/ui/mentions/file-suggestions.js.map +1 -0
- package/dist/ui/mentions.d.ts +6 -70
- package/dist/ui/mentions.js +8 -482
- package/dist/ui/mentions.js.map +1 -1
- package/dist/ui/plan-pane.d.ts +0 -15
- package/dist/ui/plan-pane.js +1 -16
- package/dist/ui/plan-pane.js.map +1 -1
- package/dist/ui/thinking.d.ts +0 -8
- package/dist/ui/thinking.js +0 -13
- package/dist/ui/thinking.js.map +1 -1
- package/dist/ui-core/actions/action-id.d.ts +0 -8
- package/dist/ui-core/actions/action-id.js +0 -25
- package/dist/ui-core/actions/action-id.js.map +1 -1
- package/dist/ui-core/actions/action-router.d.ts +0 -10
- package/dist/ui-core/actions/action-router.js +0 -16
- package/dist/ui-core/actions/action-router.js.map +1 -1
- package/dist/ui-core/actions/cancel-timing.d.ts +0 -3
- package/dist/ui-core/actions/cancel-timing.js +0 -3
- package/dist/ui-core/actions/cancel-timing.js.map +1 -1
- package/dist/ui-core/actions/format-shortcuts.d.ts +0 -9
- package/dist/ui-core/actions/format-shortcuts.js +0 -9
- package/dist/ui-core/actions/format-shortcuts.js.map +1 -1
- package/dist/ui-core/actions/keymap.d.ts +0 -9
- package/dist/ui-core/actions/keymap.js +0 -39
- package/dist/ui-core/actions/keymap.js.map +1 -1
- package/dist/ui-core/actions/mode-cycle.d.ts +0 -2
- package/dist/ui-core/actions/mode-cycle.js +0 -4
- package/dist/ui-core/actions/mode-cycle.js.map +1 -1
- package/dist/ui-core/bootstrap/can-use-tui.d.ts +0 -6
- package/dist/ui-core/bootstrap/can-use-tui.js +0 -9
- package/dist/ui-core/bootstrap/can-use-tui.js.map +1 -1
- package/dist/ui-core/bootstrap/capabilities.d.ts +0 -8
- package/dist/ui-core/bootstrap/capabilities.js +1 -8
- package/dist/ui-core/bootstrap/capabilities.js.map +1 -1
- package/dist/ui-core/bootstrap/composition-root.d.ts +0 -17
- package/dist/ui-core/bootstrap/composition-root.js +30 -19
- package/dist/ui-core/bootstrap/composition-root.js.map +1 -1
- package/dist/ui-core/bootstrap/console-guard.d.ts +0 -15
- package/dist/ui-core/bootstrap/console-guard.js +32 -0
- package/dist/ui-core/bootstrap/console-guard.js.map +1 -1
- package/dist/ui-core/bootstrap/console-suppress.js +2 -7
- package/dist/ui-core/bootstrap/console-suppress.js.map +1 -1
- package/dist/ui-core/bootstrap/exit-epilogue.d.ts +0 -6
- package/dist/ui-core/bootstrap/exit-epilogue.js +0 -5
- package/dist/ui-core/bootstrap/exit-epilogue.js.map +1 -1
- package/dist/ui-core/bootstrap/lifecycle.d.ts +0 -42
- package/dist/ui-core/bootstrap/lifecycle.js +0 -31
- package/dist/ui-core/bootstrap/lifecycle.js.map +1 -1
- package/dist/ui-core/bootstrap/overlay-ports.d.ts +0 -11
- package/dist/ui-core/bootstrap/overlay-ports.js +0 -13
- package/dist/ui-core/bootstrap/overlay-ports.js.map +1 -1
- package/dist/ui-core/bootstrap/session-resume.js +10 -2
- package/dist/ui-core/bootstrap/session-resume.js.map +1 -1
- package/dist/ui-core/bootstrap/theme-mode-cache.js +0 -5
- package/dist/ui-core/bootstrap/theme-mode-cache.js.map +1 -1
- package/dist/ui-core/commands/command-handlers.d.ts +0 -6
- package/dist/ui-core/commands/command-handlers.js +0 -6
- package/dist/ui-core/commands/command-handlers.js.map +1 -1
- package/dist/ui-core/commands/config-commands.d.ts +0 -3
- package/dist/ui-core/commands/config-commands.js +0 -7
- package/dist/ui-core/commands/config-commands.js.map +1 -1
- package/dist/ui-core/commands/key-commands.d.ts +2 -0
- package/dist/ui-core/commands/key-commands.js +79 -213
- package/dist/ui-core/commands/key-commands.js.map +1 -1
- package/dist/ui-core/commands/keys/editors.d.ts +15 -0
- package/dist/ui-core/commands/keys/editors.js +127 -0
- package/dist/ui-core/commands/keys/editors.js.map +1 -0
- package/dist/ui-core/commands/mcp-commands.js +0 -6
- package/dist/ui-core/commands/mcp-commands.js.map +1 -1
- package/dist/ui-core/commands/picker-commands.d.ts +3 -14
- package/dist/ui-core/commands/picker-commands.js +11 -695
- package/dist/ui-core/commands/picker-commands.js.map +1 -1
- package/dist/ui-core/commands/pickers/custom-provider.d.ts +3 -0
- package/dist/ui-core/commands/pickers/custom-provider.js +170 -0
- package/dist/ui-core/commands/pickers/custom-provider.js.map +1 -0
- package/dist/ui-core/commands/pickers/history.d.ts +3 -0
- package/dist/ui-core/commands/pickers/history.js +185 -0
- package/dist/ui-core/commands/pickers/history.js.map +1 -0
- package/dist/ui-core/commands/pickers/output-pager.d.ts +5 -0
- package/dist/ui-core/commands/pickers/output-pager.js +90 -0
- package/dist/ui-core/commands/pickers/output-pager.js.map +1 -0
- package/dist/ui-core/commands/pickers/search-reasoning.d.ts +4 -0
- package/dist/ui-core/commands/pickers/search-reasoning.js +197 -0
- package/dist/ui-core/commands/pickers/search-reasoning.js.map +1 -0
- package/dist/ui-core/commands/session-commands.d.ts +0 -4
- package/dist/ui-core/commands/session-commands.js +23 -17
- package/dist/ui-core/commands/session-commands.js.map +1 -1
- package/dist/ui-core/commands/startup-update.d.ts +0 -6
- package/dist/ui-core/commands/startup-update.js +0 -6
- package/dist/ui-core/commands/startup-update.js.map +1 -1
- package/dist/ui-core/composer/arrow-intent.d.ts +0 -10
- package/dist/ui-core/composer/arrow-intent.js +0 -14
- package/dist/ui-core/composer/arrow-intent.js.map +1 -1
- package/dist/ui-core/composer/completion.d.ts +0 -9
- package/dist/ui-core/composer/completion.js +1 -13
- package/dist/ui-core/composer/completion.js.map +1 -1
- package/dist/ui-core/composer/composer-action-port.d.ts +0 -10
- package/dist/ui-core/composer/composer-action-port.js +0 -10
- package/dist/ui-core/composer/composer-action-port.js.map +1 -1
- package/dist/ui-core/composer/composer-height.d.ts +0 -12
- package/dist/ui-core/composer/composer-height.js +0 -12
- package/dist/ui-core/composer/composer-height.js.map +1 -1
- package/dist/ui-core/composer/composer-wheel.d.ts +0 -17
- package/dist/ui-core/composer/composer-wheel.js +0 -17
- package/dist/ui-core/composer/composer-wheel.js.map +1 -1
- package/dist/ui-core/composer/draft-actions.d.ts +0 -14
- package/dist/ui-core/composer/draft-actions.js +0 -13
- package/dist/ui-core/composer/draft-actions.js.map +1 -1
- package/dist/ui-core/composer/history-nav.d.ts +0 -9
- package/dist/ui-core/composer/history-nav.js +0 -9
- package/dist/ui-core/composer/history-nav.js.map +1 -1
- package/dist/ui-core/composer/input-history.d.ts +0 -1
- package/dist/ui-core/composer/input-history.js +0 -1
- package/dist/ui-core/composer/input-history.js.map +1 -1
- package/dist/ui-core/composer/newline-hint.d.ts +0 -7
- package/dist/ui-core/composer/newline-hint.js +0 -9
- package/dist/ui-core/composer/newline-hint.js.map +1 -1
- package/dist/ui-core/composer/paste-placeholder.d.ts +0 -23
- package/dist/ui-core/composer/paste-placeholder.js +0 -21
- package/dist/ui-core/composer/paste-placeholder.js.map +1 -1
- package/dist/ui-core/composer/prompt-history.d.ts +0 -11
- package/dist/ui-core/composer/prompt-history.js +0 -11
- package/dist/ui-core/composer/prompt-history.js.map +1 -1
- package/dist/ui-core/composer/secret-buffer.d.ts +0 -8
- package/dist/ui-core/composer/secret-buffer.js +0 -8
- package/dist/ui-core/composer/secret-buffer.js.map +1 -1
- package/dist/ui-core/composer/textarea-keybindings.d.ts +0 -15
- package/dist/ui-core/composer/textarea-keybindings.js +0 -30
- package/dist/ui-core/composer/textarea-keybindings.js.map +1 -1
- package/dist/ui-core/controllers/focus-controller.d.ts +0 -11
- package/dist/ui-core/controllers/focus-controller.js +0 -11
- package/dist/ui-core/controllers/focus-controller.js.map +1 -1
- package/dist/ui-core/controllers/interruptible-controller.d.ts +0 -6
- package/dist/ui-core/controllers/interruptible-controller.js +0 -6
- package/dist/ui-core/controllers/interruptible-controller.js.map +1 -1
- package/dist/ui-core/controllers/overlay-controller.d.ts +1 -81
- package/dist/ui-core/controllers/overlay-controller.js +1 -48
- package/dist/ui-core/controllers/overlay-controller.js.map +1 -1
- package/dist/ui-core/controllers/selection-controller.d.ts +0 -9
- package/dist/ui-core/controllers/selection-controller.js +0 -7
- package/dist/ui-core/controllers/selection-controller.js.map +1 -1
- package/dist/ui-core/controllers/toast-controller.d.ts +0 -24
- package/dist/ui-core/controllers/toast-controller.js +0 -15
- package/dist/ui-core/controllers/toast-controller.js.map +1 -1
- package/dist/ui-core/layout/compute-layout.d.ts +0 -19
- package/dist/ui-core/layout/compute-layout.js +0 -32
- package/dist/ui-core/layout/compute-layout.js.map +1 -1
- package/dist/ui-core/motion/ease.d.ts +0 -6
- package/dist/ui-core/motion/ease.js +0 -6
- package/dist/ui-core/motion/ease.js.map +1 -1
- package/dist/ui-core/notify.d.ts +0 -8
- package/dist/ui-core/notify.js +0 -8
- package/dist/ui-core/notify.js.map +1 -1
- package/dist/ui-core/plan/plan-lifecycle.d.ts +0 -27
- package/dist/ui-core/plan/plan-lifecycle.js +0 -45
- package/dist/ui-core/plan/plan-lifecycle.js.map +1 -1
- package/dist/ui-core/ports/clipboard-osc52.d.ts +0 -8
- package/dist/ui-core/ports/clipboard-osc52.js +0 -7
- package/dist/ui-core/ports/clipboard-osc52.js.map +1 -1
- package/dist/ui-core/ports/pager-export-port.js +0 -2
- package/dist/ui-core/ports/pager-export-port.js.map +1 -1
- package/dist/ui-core/ports/renderer-port.d.ts +0 -6
- package/dist/ui-core/react/providers.d.ts +0 -7
- package/dist/ui-core/react/providers.js +0 -7
- package/dist/ui-core/react/providers.js.map +1 -1
- package/dist/ui-core/react/use-has-draft.d.ts +0 -5
- package/dist/ui-core/react/use-has-draft.js +0 -5
- package/dist/ui-core/react/use-has-draft.js.map +1 -1
- package/dist/ui-core/react/use-overlay.d.ts +0 -1
- package/dist/ui-core/react/use-overlay.js +0 -1
- package/dist/ui-core/react/use-overlay.js.map +1 -1
- package/dist/ui-core/react/use-plan.d.ts +0 -1
- package/dist/ui-core/react/use-plan.js +0 -1
- package/dist/ui-core/react/use-plan.js.map +1 -1
- package/dist/ui-core/react/use-toast.d.ts +0 -1
- package/dist/ui-core/react/use-toast.js +0 -3
- package/dist/ui-core/react/use-toast.js.map +1 -1
- package/dist/ui-core/react/use-transcript-meta.d.ts +7 -0
- package/dist/ui-core/react/use-transcript-meta.js +36 -0
- package/dist/ui-core/react/use-transcript-meta.js.map +1 -0
- package/dist/ui-core/react/use-transcript-store.d.ts +0 -7
- package/dist/ui-core/react/use-transcript-store.js +0 -7
- package/dist/ui-core/react/use-transcript-store.js.map +1 -1
- package/dist/ui-core/rendering/artifact-pager-source.d.ts +0 -7
- package/dist/ui-core/rendering/artifact-pager-source.js +0 -3
- package/dist/ui-core/rendering/artifact-pager-source.js.map +1 -1
- package/dist/ui-core/rendering/batch-sections.d.ts +0 -38
- package/dist/ui-core/rendering/batch-sections.js +1 -47
- package/dist/ui-core/rendering/batch-sections.js.map +1 -1
- package/dist/ui-core/rendering/code-block.d.ts +0 -25
- package/dist/ui-core/rendering/code-block.js +0 -47
- package/dist/ui-core/rendering/code-block.js.map +1 -1
- package/dist/ui-core/rendering/context-limit.js +0 -2
- package/dist/ui-core/rendering/context-limit.js.map +1 -1
- package/dist/ui-core/rendering/duration.js +0 -3
- package/dist/ui-core/rendering/duration.js.map +1 -1
- package/dist/ui-core/rendering/exit-summary/table.d.ts +23 -0
- package/dist/ui-core/rendering/exit-summary/table.js +194 -0
- package/dist/ui-core/rendering/exit-summary/table.js.map +1 -0
- package/dist/ui-core/rendering/exit-summary.js +1 -210
- package/dist/ui-core/rendering/exit-summary.js.map +1 -1
- package/dist/ui-core/rendering/file-diff-view.d.ts +0 -27
- package/dist/ui-core/rendering/file-diff-view.js +0 -29
- package/dist/ui-core/rendering/file-diff-view.js.map +1 -1
- package/dist/ui-core/rendering/format-help.d.ts +0 -13
- package/dist/ui-core/rendering/format-help.js +0 -18
- package/dist/ui-core/rendering/format-help.js.map +1 -1
- package/dist/ui-core/rendering/format-keys.js +0 -2
- package/dist/ui-core/rendering/format-keys.js.map +1 -1
- package/dist/ui-core/rendering/format-usage.js +18 -5
- package/dist/ui-core/rendering/format-usage.js.map +1 -1
- package/dist/ui-core/rendering/incremental-strip.js +0 -13
- package/dist/ui-core/rendering/incremental-strip.js.map +1 -1
- package/dist/ui-core/rendering/intro-header.js +0 -1
- package/dist/ui-core/rendering/intro-header.js.map +1 -1
- package/dist/ui-core/rendering/job-tail-source.d.ts +0 -9
- package/dist/ui-core/rendering/job-tail-source.js +0 -9
- package/dist/ui-core/rendering/job-tail-source.js.map +1 -1
- package/dist/ui-core/rendering/link-detector.d.ts +0 -8
- package/dist/ui-core/rendering/link-detector.js +0 -10
- package/dist/ui-core/rendering/link-detector.js.map +1 -1
- package/dist/ui-core/rendering/markdown/tables.d.ts +8 -0
- package/dist/ui-core/rendering/markdown/tables.js +276 -0
- package/dist/ui-core/rendering/markdown/tables.js.map +1 -0
- package/dist/ui-core/rendering/markdown.d.ts +4 -9
- package/dist/ui-core/rendering/markdown.js +224 -593
- package/dist/ui-core/rendering/markdown.js.map +1 -1
- package/dist/ui-core/rendering/open-tool-output.d.ts +0 -30
- package/dist/ui-core/rendering/open-tool-output.js +0 -39
- package/dist/ui-core/rendering/open-tool-output.js.map +1 -1
- package/dist/ui-core/rendering/pager-chrome.d.ts +0 -20
- package/dist/ui-core/rendering/pager-chrome.js +0 -24
- package/dist/ui-core/rendering/pager-chrome.js.map +1 -1
- package/dist/ui-core/rendering/pager-source.d.ts +0 -17
- package/dist/ui-core/rendering/pager-source.js +0 -27
- package/dist/ui-core/rendering/pager-source.js.map +1 -1
- package/dist/ui-core/rendering/pager-text.d.ts +0 -21
- package/dist/ui-core/rendering/pager-text.js +0 -31
- package/dist/ui-core/rendering/pager-text.js.map +1 -1
- package/dist/ui-core/rendering/pager-view-policy.d.ts +0 -24
- package/dist/ui-core/rendering/pager-view-policy.js +0 -31
- package/dist/ui-core/rendering/pager-view-policy.js.map +1 -1
- package/dist/ui-core/rendering/picker-filter.d.ts +0 -11
- package/dist/ui-core/rendering/picker-filter.js +0 -11
- package/dist/ui-core/rendering/picker-filter.js.map +1 -1
- package/dist/ui-core/rendering/plan-view.d.ts +0 -39
- package/dist/ui-core/rendering/plan-view.js +0 -37
- package/dist/ui-core/rendering/plan-view.js.map +1 -1
- package/dist/ui-core/rendering/prompt-preview.d.ts +0 -5
- package/dist/ui-core/rendering/prompt-preview.js +0 -5
- package/dist/ui-core/rendering/prompt-preview.js.map +1 -1
- package/dist/ui-core/rendering/sanitize-display.d.ts +0 -10
- package/dist/ui-core/rendering/sanitize-display.js +0 -14
- package/dist/ui-core/rendering/sanitize-display.js.map +1 -1
- package/dist/ui-core/rendering/status-segments.js +3 -3
- package/dist/ui-core/rendering/status-segments.js.map +1 -1
- package/dist/ui-core/rendering/streaming-markdown.js +0 -11
- package/dist/ui-core/rendering/streaming-markdown.js.map +1 -1
- package/dist/ui-core/rendering/syntax/clike.d.ts +22 -0
- package/dist/ui-core/rendering/syntax/clike.js +168 -0
- package/dist/ui-core/rendering/syntax/clike.js.map +1 -0
- package/dist/ui-core/rendering/syntax/keywords.d.ts +24 -0
- package/dist/ui-core/rendering/syntax/keywords.js +169 -0
- package/dist/ui-core/rendering/syntax/keywords.js.map +1 -0
- package/dist/ui-core/rendering/syntax/language-highlighters.d.ts +18 -0
- package/dist/ui-core/rendering/syntax/language-highlighters.js +538 -0
- package/dist/ui-core/rendering/syntax/language-highlighters.js.map +1 -0
- package/dist/ui-core/rendering/syntax/language-table.d.ts +3 -0
- package/dist/ui-core/rendering/syntax/language-table.js +244 -0
- package/dist/ui-core/rendering/syntax/language-table.js.map +1 -0
- package/dist/ui-core/rendering/syntax-highlight.d.ts +6 -28
- package/dist/ui-core/rendering/syntax-highlight.js +5 -1177
- package/dist/ui-core/rendering/syntax-highlight.js.map +1 -1
- package/dist/ui-core/rendering/text-format.d.ts +0 -3
- package/dist/ui-core/rendering/text-format.js +0 -3
- package/dist/ui-core/rendering/text-format.js.map +1 -1
- package/dist/ui-core/rendering/text-width.d.ts +0 -26
- package/dist/ui-core/rendering/text-width.js +0 -26
- package/dist/ui-core/rendering/text-width.js.map +1 -1
- package/dist/ui-core/rendering/theme.d.ts +0 -65
- package/dist/ui-core/rendering/theme.js +0 -24
- package/dist/ui-core/rendering/theme.js.map +1 -1
- package/dist/ui-core/rendering/thinking-tail.js +0 -3
- package/dist/ui-core/rendering/thinking-tail.js.map +1 -1
- package/dist/ui-core/rendering/tool-presenter.d.ts +0 -41
- package/dist/ui-core/rendering/tool-presenter.js +1 -67
- package/dist/ui-core/rendering/tool-presenter.js.map +1 -1
- package/dist/ui-core/rendering/transcript-semantic.d.ts +0 -8
- package/dist/ui-core/rendering/transcript-semantic.js +0 -13
- package/dist/ui-core/rendering/transcript-semantic.js.map +1 -1
- package/dist/ui-core/rendering/user-message-wrap.d.ts +0 -16
- package/dist/ui-core/rendering/user-message-wrap.js +0 -16
- package/dist/ui-core/rendering/user-message-wrap.js.map +1 -1
- package/dist/ui-core/rendering/wordmark.d.ts +0 -8
- package/dist/ui-core/rendering/wordmark.js +0 -21
- package/dist/ui-core/rendering/wordmark.js.map +1 -1
- package/dist/ui-core/state/hydrate/classic-transcript.d.ts +8 -0
- package/dist/ui-core/state/hydrate/classic-transcript.js +168 -0
- package/dist/ui-core/state/hydrate/classic-transcript.js.map +1 -0
- package/dist/ui-core/state/hydrate/from-messages.d.ts +6 -0
- package/dist/ui-core/state/hydrate/from-messages.js +237 -0
- package/dist/ui-core/state/hydrate/from-messages.js.map +1 -0
- package/dist/ui-core/state/pager-search.d.ts +0 -9
- package/dist/ui-core/state/pager-search.js +1 -8
- package/dist/ui-core/state/pager-search.js.map +1 -1
- package/dist/ui-core/state/semantic-document.d.ts +0 -8
- package/dist/ui-core/state/semantic-document.js +0 -8
- package/dist/ui-core/state/semantic-document.js.map +1 -1
- package/dist/ui-core/state/thinking-copy.d.ts +0 -8
- package/dist/ui-core/state/thinking-copy.js +0 -8
- package/dist/ui-core/state/thinking-copy.js.map +1 -1
- package/dist/ui-core/state/transcript/apply-app-event.d.ts +8 -0
- package/dist/ui-core/state/transcript/apply-app-event.js +406 -0
- package/dist/ui-core/state/transcript/apply-app-event.js.map +1 -0
- package/dist/ui-core/state/transcript/message-lifecycle.d.ts +7 -0
- package/dist/ui-core/state/transcript/message-lifecycle.js +285 -0
- package/dist/ui-core/state/transcript/message-lifecycle.js.map +1 -0
- package/dist/ui-core/state/transcript-compaction.d.ts +0 -19
- package/dist/ui-core/state/transcript-compaction.js +0 -21
- package/dist/ui-core/state/transcript-compaction.js.map +1 -1
- package/dist/ui-core/state/transcript-follow-key.d.ts +2 -0
- package/dist/ui-core/state/transcript-follow-key.js +37 -0
- package/dist/ui-core/state/transcript-follow-key.js.map +1 -0
- package/dist/ui-core/state/transcript-hydrate.d.ts +6 -52
- package/dist/ui-core/state/transcript-hydrate.js +5 -470
- package/dist/ui-core/state/transcript-hydrate.js.map +1 -1
- package/dist/ui-core/state/transcript-reducer.d.ts +1 -15
- package/dist/ui-core/state/transcript-reducer.js +1 -708
- package/dist/ui-core/state/transcript-reducer.js.map +1 -1
- package/dist/ui-core/state/transcript-search.d.ts +0 -8
- package/dist/ui-core/state/transcript-search.js +0 -8
- package/dist/ui-core/state/transcript-search.js.map +1 -1
- package/dist/ui-core/state/transcript-store.d.ts +0 -26
- package/dist/ui-core/state/transcript-store.js +0 -28
- package/dist/ui-core/state/transcript-store.js.map +1 -1
- package/dist/ui-core/state/transcript-types.d.ts +0 -33
- package/dist/ui-core/state/transcript-types.js +0 -17
- package/dist/ui-core/state/transcript-types.js.map +1 -1
- package/dist/ui-core/state/transcript-window.d.ts +1 -9
- package/dist/ui-core/state/transcript-window.js +1 -9
- package/dist/ui-core/state/transcript-window.js.map +1 -1
- package/dist/version.generated.d.ts +2 -2
- package/dist/version.generated.js +2 -2
- package/package.json +19 -2
- package/dist/agent/finalize-gate.d.ts +0 -54
- package/dist/agent/finalize-gate.js +0 -97
- package/dist/agent/finalize-gate.js.map +0 -1
- package/dist/agent/must-continue.d.ts +0 -36
- package/dist/agent/must-continue.js +0 -172
- package/dist/agent/must-continue.js.map +0 -1
|
@@ -1,473 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* - Map hundreds of extensions → language families
|
|
7
|
-
* - Per-family keyword sets + comment/string rules
|
|
8
|
-
* - Unknown extensions still get a **generic** highlighter (strings, comments,
|
|
9
|
-
* numbers, punctuation) so every file type gets useful coloring
|
|
10
|
-
*/
|
|
1
|
+
import { languageFromPath } from "./syntax/language-table.js";
|
|
2
|
+
import { KW, keywordSetFor } from "./syntax/keywords.js";
|
|
3
|
+
import { highlightClike, highlightDiff, highlightGeneric, highlightHaskell, highlightHtml, highlightIniToml, highlightJsonLike, highlightLineCommentLang, highlightLisp, highlightLua, highlightMarkdown, highlightPhp, highlightPython, highlightYaml } from "./syntax/language-highlighters.js";
|
|
4
|
+
export { supportedExtensions } from "./syntax/language-table.js";
|
|
5
|
+
export { languageFromPath };
|
|
11
6
|
export function emptyCarry() {
|
|
12
7
|
return { inBlockComment: false, inTripleString: false };
|
|
13
8
|
}
|
|
14
|
-
// ─── Keyword sets ───────────────────────────────────────────────────────────
|
|
15
|
-
const KW = {
|
|
16
|
-
js: words(`
|
|
17
|
-
as async await break case catch class const continue debugger default delete do else
|
|
18
|
-
enum export extends false finally for from function get if implements import in
|
|
19
|
-
instanceof interface let new null of package private protected public return set static
|
|
20
|
-
super switch this throw true try typeof undefined var void while with yield type keyof
|
|
21
|
-
readonly infer never unknown any boolean number string symbol bigint satisfies asserts
|
|
22
|
-
is namespace module declare abstract override
|
|
23
|
-
`),
|
|
24
|
-
py: words(`
|
|
25
|
-
and as assert async await break class continue def del elif else except False finally
|
|
26
|
-
for from global if import in is lambda None nonlocal not or pass raise return True try
|
|
27
|
-
while with yield match case type
|
|
28
|
-
`),
|
|
29
|
-
go: words(`
|
|
30
|
-
break case chan const continue default defer else fallthrough for func go goto if
|
|
31
|
-
import interface map package range return select struct switch type var true false nil iota
|
|
32
|
-
`),
|
|
33
|
-
rs: words(`
|
|
34
|
-
as async await break const continue crate dyn else enum extern false fn for if impl in
|
|
35
|
-
let loop match mod move mut pub ref return self Self static struct super trait true type
|
|
36
|
-
unsafe use where while async await dyn
|
|
37
|
-
`),
|
|
38
|
-
c: words(`
|
|
39
|
-
auto break case char const continue default do double else enum extern float for goto
|
|
40
|
-
if inline int long register restrict return short signed sizeof static struct switch
|
|
41
|
-
typedef union unsigned void volatile while _Bool _Complex _Imaginary true false NULL
|
|
42
|
-
class public private protected virtual template typename namespace using new delete this
|
|
43
|
-
try catch throw const_cast static_cast dynamic_cast reinterpret_cast constexpr noexcept
|
|
44
|
-
override final nullptr bool wchar_t
|
|
45
|
-
`),
|
|
46
|
-
csharp: words(`
|
|
47
|
-
abstract as base bool break byte case catch char checked class const continue decimal
|
|
48
|
-
default delegate do double else enum event explicit extern false finally fixed float for
|
|
49
|
-
foreach goto if implicit in int interface internal is lock long namespace new null object
|
|
50
|
-
operator out override params private protected public readonly ref return sbyte sealed
|
|
51
|
-
short sizeof stackalloc static string struct switch this throw true try typeof uint ulong
|
|
52
|
-
unchecked unsafe ushort using var virtual void volatile while async await nameof record
|
|
53
|
-
init required nint nuint
|
|
54
|
-
`),
|
|
55
|
-
java: words(`
|
|
56
|
-
abstract assert boolean break byte case catch char class const continue default do double
|
|
57
|
-
else enum extends final finally float for goto if implements import instanceof int
|
|
58
|
-
interface long native new package private protected public return short static strictfp
|
|
59
|
-
super switch synchronized this throw throws transient try void volatile while true false
|
|
60
|
-
null var record sealed permits yields yield non-sealed
|
|
61
|
-
`),
|
|
62
|
-
kotlin: words(`
|
|
63
|
-
as as? break class continue do else false for fun if in !in interface is !is null object
|
|
64
|
-
package return super this throw true try typealias typeof val var when while by catch
|
|
65
|
-
constructor delegate dynamic field file finally get import init param property receiver
|
|
66
|
-
set setparam where actual abstract annotation companion const crossinline data enum
|
|
67
|
-
expect external final infix inline inner internal lateinit noinline open operator out
|
|
68
|
-
override private protected public reified sealed suspend tailrec vararg
|
|
69
|
-
`),
|
|
70
|
-
swift: words(`
|
|
71
|
-
associatedtype class deinit enum extension fileprivate func import init inout internal let
|
|
72
|
-
open operator private protocol public rethrows static struct subscript typealias var break
|
|
73
|
-
case continue default defer do else fallthrough for guard if in repeat return switch where
|
|
74
|
-
while as Any catch false is nil super self Self throw true try async await actor some
|
|
75
|
-
`),
|
|
76
|
-
ruby: words(`
|
|
77
|
-
BEGIN END alias and begin break case class def defined? do else elsif end ensure false
|
|
78
|
-
for if in module next nil not or redo rescue retry return self super then true undef
|
|
79
|
-
unless until when while yield
|
|
80
|
-
`),
|
|
81
|
-
php: words(`
|
|
82
|
-
abstract and array as break callable case catch class clone const continue declare default
|
|
83
|
-
do echo else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval exit
|
|
84
|
-
extends final finally fn for foreach function global goto if implements include include_once
|
|
85
|
-
instanceof insteadof interface isset list match namespace new or print private protected
|
|
86
|
-
public readonly require require_once return static switch throw trait try unset use var
|
|
87
|
-
while xor yield true false null
|
|
88
|
-
`),
|
|
89
|
-
sql: words(`
|
|
90
|
-
select from where insert into values update set delete create table drop alter index view
|
|
91
|
-
join left right inner outer on and or not null as order by group having limit offset union
|
|
92
|
-
all distinct case when then else end exists in between like is primary key foreign
|
|
93
|
-
references constraint default unique check cascade grant revoke commit rollback transaction
|
|
94
|
-
begin true false with recursive
|
|
95
|
-
`),
|
|
96
|
-
lua: words(`
|
|
97
|
-
and break do else elseif end false for function goto if in local nil not or repeat return
|
|
98
|
-
then true until while
|
|
99
|
-
`),
|
|
100
|
-
perl: words(`
|
|
101
|
-
__DATA__ __END__ __FILE__ __LINE__ __PACKAGE__ and cmp continue do else elsif eq exp for
|
|
102
|
-
foreach ge gt if le lock lt m ne next no or package qq qr qw qx redo require return sub
|
|
103
|
-
tr unless until while xor y my our use local
|
|
104
|
-
`),
|
|
105
|
-
r: words(`
|
|
106
|
-
if else repeat while function for in next break TRUE FALSE NULL Inf NaN NA NA_integer_
|
|
107
|
-
NA_real_ NA_complex_ NA_character_ ... ..1
|
|
108
|
-
`),
|
|
109
|
-
haskell: words(`
|
|
110
|
-
case class data default deriving do else foreign if import in infix infixl infixr instance
|
|
111
|
-
let module newtype of then type where _
|
|
112
|
-
`),
|
|
113
|
-
erlang: words(`
|
|
114
|
-
after and andalso band begin bnot bor bsl bsr bxor case catch cond div end fun if let not
|
|
115
|
-
of or orelse receive rem try when xor
|
|
116
|
-
`),
|
|
117
|
-
fortran: words(`
|
|
118
|
-
assign backspace block call close common continue data dimension do else elseif end endfile
|
|
119
|
-
endif enddo entry equivalence external format function goto if implicit inquire integer
|
|
120
|
-
intrinsic open parameter pause print program read real return rewind save stop subroutine
|
|
121
|
-
then write allocate allocatable allocate deallocate module use contains interface pure
|
|
122
|
-
elemental recursive
|
|
123
|
-
`),
|
|
124
|
-
sh: words(`
|
|
125
|
-
if then else elif fi for while until do done case esac in function select time coproc
|
|
126
|
-
true false return exit export local readonly declare typeset alias unalias set unset
|
|
127
|
-
shift break continue source eval exec
|
|
128
|
-
`),
|
|
129
|
-
css: words(`
|
|
130
|
-
important and or not only from to
|
|
131
|
-
`),
|
|
132
|
-
};
|
|
133
|
-
function words(s) {
|
|
134
|
-
return new Set(s.split(/\s+/).filter(Boolean));
|
|
135
|
-
}
|
|
136
|
-
/** extension (no dot) → family */
|
|
137
|
-
const EXT_FAMILY = {
|
|
138
|
-
// JS / TS
|
|
139
|
-
js: "js",
|
|
140
|
-
mjs: "js",
|
|
141
|
-
cjs: "js",
|
|
142
|
-
jsx: "js",
|
|
143
|
-
ts: "js",
|
|
144
|
-
mts: "js",
|
|
145
|
-
cts: "js",
|
|
146
|
-
tsx: "js",
|
|
147
|
-
vue: "html",
|
|
148
|
-
svelte: "html",
|
|
149
|
-
astro: "html",
|
|
150
|
-
// web
|
|
151
|
-
css: "css",
|
|
152
|
-
scss: "css",
|
|
153
|
-
sass: "css",
|
|
154
|
-
less: "css",
|
|
155
|
-
styl: "css",
|
|
156
|
-
stylus: "css",
|
|
157
|
-
html: "html",
|
|
158
|
-
htm: "html",
|
|
159
|
-
xhtml: "html",
|
|
160
|
-
xml: "html",
|
|
161
|
-
xsl: "html",
|
|
162
|
-
xslt: "html",
|
|
163
|
-
svg: "html",
|
|
164
|
-
jsp: "html",
|
|
165
|
-
asp: "html",
|
|
166
|
-
aspx: "html",
|
|
167
|
-
// data
|
|
168
|
-
json: "json",
|
|
169
|
-
jsonc: "json",
|
|
170
|
-
json5: "json",
|
|
171
|
-
jsonl: "json",
|
|
172
|
-
ndjson: "json",
|
|
173
|
-
yaml: "yaml",
|
|
174
|
-
yml: "yaml",
|
|
175
|
-
toml: "toml",
|
|
176
|
-
ini: "ini",
|
|
177
|
-
cfg: "ini",
|
|
178
|
-
conf: "ini",
|
|
179
|
-
env: "ini",
|
|
180
|
-
properties: "ini",
|
|
181
|
-
// docs
|
|
182
|
-
md: "md",
|
|
183
|
-
mdx: "md",
|
|
184
|
-
markdown: "md",
|
|
185
|
-
rst: "md",
|
|
186
|
-
txt: "generic",
|
|
187
|
-
// shell
|
|
188
|
-
sh: "sh",
|
|
189
|
-
bash: "sh",
|
|
190
|
-
zsh: "sh",
|
|
191
|
-
fish: "sh",
|
|
192
|
-
ksh: "sh",
|
|
193
|
-
csh: "sh",
|
|
194
|
-
tcsh: "sh",
|
|
195
|
-
ps1: "sh",
|
|
196
|
-
psm1: "sh",
|
|
197
|
-
bat: "sh",
|
|
198
|
-
cmd: "sh",
|
|
199
|
-
// python
|
|
200
|
-
py: "py",
|
|
201
|
-
pyw: "py",
|
|
202
|
-
pyi: "py",
|
|
203
|
-
pyx: "py",
|
|
204
|
-
pxd: "py",
|
|
205
|
-
ipynb: "json",
|
|
206
|
-
// ruby
|
|
207
|
-
rb: "ruby",
|
|
208
|
-
rake: "ruby",
|
|
209
|
-
gemspec: "ruby",
|
|
210
|
-
// php
|
|
211
|
-
php: "php",
|
|
212
|
-
phtml: "php",
|
|
213
|
-
// go / rust
|
|
214
|
-
go: "clike",
|
|
215
|
-
rs: "clike",
|
|
216
|
-
// C family
|
|
217
|
-
c: "clike",
|
|
218
|
-
h: "clike",
|
|
219
|
-
cc: "clike",
|
|
220
|
-
cpp: "clike",
|
|
221
|
-
cxx: "clike",
|
|
222
|
-
hpp: "clike",
|
|
223
|
-
hxx: "clike",
|
|
224
|
-
hh: "clike",
|
|
225
|
-
m: "clike",
|
|
226
|
-
mm: "clike",
|
|
227
|
-
cs: "clike",
|
|
228
|
-
java: "clike",
|
|
229
|
-
kt: "clike",
|
|
230
|
-
kts: "clike",
|
|
231
|
-
scala: "clike",
|
|
232
|
-
sc: "clike",
|
|
233
|
-
groovy: "clike",
|
|
234
|
-
gradle: "clike",
|
|
235
|
-
swift: "clike",
|
|
236
|
-
dart: "clike",
|
|
237
|
-
// JVM etc
|
|
238
|
-
clj: "lisp",
|
|
239
|
-
cljs: "lisp",
|
|
240
|
-
cljc: "lisp",
|
|
241
|
-
edn: "lisp",
|
|
242
|
-
lisp: "lisp",
|
|
243
|
-
el: "lisp",
|
|
244
|
-
scm: "lisp",
|
|
245
|
-
ss: "lisp",
|
|
246
|
-
racket: "lisp",
|
|
247
|
-
// functional
|
|
248
|
-
hs: "haskell",
|
|
249
|
-
lhs: "haskell",
|
|
250
|
-
elm: "haskell",
|
|
251
|
-
ml: "clike",
|
|
252
|
-
mli: "clike",
|
|
253
|
-
fs: "clike",
|
|
254
|
-
fsi: "clike",
|
|
255
|
-
fsx: "clike",
|
|
256
|
-
erl: "erlang",
|
|
257
|
-
hrl: "erlang",
|
|
258
|
-
ex: "ruby", // Elixir ~ Ruby-ish # comments
|
|
259
|
-
exs: "ruby",
|
|
260
|
-
// scripting
|
|
261
|
-
pl: "perl",
|
|
262
|
-
pm: "perl",
|
|
263
|
-
t: "perl",
|
|
264
|
-
lua: "lua",
|
|
265
|
-
r: "r",
|
|
266
|
-
R: "r",
|
|
267
|
-
jl: "py", // Julia: # comments like python-ish
|
|
268
|
-
// systems
|
|
269
|
-
zig: "clike",
|
|
270
|
-
nim: "py", // # comments
|
|
271
|
-
v: "clike",
|
|
272
|
-
d: "clike",
|
|
273
|
-
pas: "clike",
|
|
274
|
-
pp: "clike",
|
|
275
|
-
// data / query
|
|
276
|
-
sql: "sql",
|
|
277
|
-
mysql: "sql",
|
|
278
|
-
pgsql: "sql",
|
|
279
|
-
psql: "sql",
|
|
280
|
-
hql: "sql",
|
|
281
|
-
graphql: "js",
|
|
282
|
-
gql: "js",
|
|
283
|
-
prisma: "js",
|
|
284
|
-
// config / devops
|
|
285
|
-
dockerfile: "sh",
|
|
286
|
-
tf: "clike",
|
|
287
|
-
hcl: "clike",
|
|
288
|
-
nix: "clike",
|
|
289
|
-
makefile: "sh",
|
|
290
|
-
mk: "sh",
|
|
291
|
-
cmake: "sh",
|
|
292
|
-
// diff
|
|
293
|
-
diff: "diff",
|
|
294
|
-
patch: "diff",
|
|
295
|
-
// others often in repos
|
|
296
|
-
proto: "clike",
|
|
297
|
-
thrift: "clike",
|
|
298
|
-
avdl: "clike",
|
|
299
|
-
sol: "clike",
|
|
300
|
-
move: "clike",
|
|
301
|
-
wgsl: "clike",
|
|
302
|
-
glsl: "clike",
|
|
303
|
-
vert: "clike",
|
|
304
|
-
frag: "clike",
|
|
305
|
-
hlsl: "clike",
|
|
306
|
-
metal: "clike",
|
|
307
|
-
asm: "generic",
|
|
308
|
-
s: "generic",
|
|
309
|
-
S: "generic",
|
|
310
|
-
f: "fortran",
|
|
311
|
-
f90: "fortran",
|
|
312
|
-
f95: "fortran",
|
|
313
|
-
for: "fortran",
|
|
314
|
-
cob: "generic",
|
|
315
|
-
cbl: "generic",
|
|
316
|
-
vb: "clike",
|
|
317
|
-
vbs: "generic",
|
|
318
|
-
coffee: "js",
|
|
319
|
-
litcoffee: "js",
|
|
320
|
-
ls: "js",
|
|
321
|
-
purescript: "haskell",
|
|
322
|
-
purs: "haskell",
|
|
323
|
-
res: "clike",
|
|
324
|
-
resi: "clike",
|
|
325
|
-
re: "clike",
|
|
326
|
-
rei: "clike",
|
|
327
|
-
mlapp: "generic",
|
|
328
|
-
mat: "generic",
|
|
329
|
-
sas: "generic",
|
|
330
|
-
sparql: "sql",
|
|
331
|
-
rq: "sql",
|
|
332
|
-
turtle: "generic",
|
|
333
|
-
ttl: "generic",
|
|
334
|
-
nq: "generic",
|
|
335
|
-
wasm: "generic",
|
|
336
|
-
wat: "generic",
|
|
337
|
-
csv: "generic",
|
|
338
|
-
tsv: "generic",
|
|
339
|
-
log: "generic",
|
|
340
|
-
lock: "json",
|
|
341
|
-
};
|
|
342
|
-
const BASENAME_FAMILY = {
|
|
343
|
-
dockerfile: "sh",
|
|
344
|
-
containerfile: "sh",
|
|
345
|
-
makefile: "sh",
|
|
346
|
-
gnumakefile: "sh",
|
|
347
|
-
"cmakelists.txt": "sh",
|
|
348
|
-
"cargo.toml": "toml",
|
|
349
|
-
"pyproject.toml": "toml",
|
|
350
|
-
"package.json": "json",
|
|
351
|
-
"tsconfig.json": "json",
|
|
352
|
-
"jsconfig.json": "json",
|
|
353
|
-
"composer.json": "json",
|
|
354
|
-
gemfile: "ruby",
|
|
355
|
-
rakefile: "ruby",
|
|
356
|
-
podfile: "ruby",
|
|
357
|
-
brewfile: "ruby",
|
|
358
|
-
vagrantfile: "ruby",
|
|
359
|
-
procfile: "sh",
|
|
360
|
-
justfile: "sh",
|
|
361
|
-
"go.mod": "clike",
|
|
362
|
-
"go.sum": "generic",
|
|
363
|
-
".gitignore": "ini",
|
|
364
|
-
".dockerignore": "ini",
|
|
365
|
-
".npmrc": "ini",
|
|
366
|
-
".env": "ini",
|
|
367
|
-
".env.local": "ini",
|
|
368
|
-
".env.development": "ini",
|
|
369
|
-
".env.production": "ini",
|
|
370
|
-
".eslintrc": "json",
|
|
371
|
-
".prettierrc": "json",
|
|
372
|
-
".babelrc": "json",
|
|
373
|
-
};
|
|
374
|
-
function keywordSetFor(pathOrExt, family) {
|
|
375
|
-
const ext = (pathOrExt.split(".").pop() ?? "").toLowerCase();
|
|
376
|
-
if (family === "js")
|
|
377
|
-
return KW.js;
|
|
378
|
-
if (family === "py")
|
|
379
|
-
return KW.py;
|
|
380
|
-
if (family === "ruby")
|
|
381
|
-
return KW.ruby;
|
|
382
|
-
if (family === "php")
|
|
383
|
-
return KW.php;
|
|
384
|
-
if (family === "sql")
|
|
385
|
-
return KW.sql;
|
|
386
|
-
if (family === "lua")
|
|
387
|
-
return KW.lua;
|
|
388
|
-
if (family === "perl")
|
|
389
|
-
return KW.perl;
|
|
390
|
-
if (family === "r")
|
|
391
|
-
return KW.r;
|
|
392
|
-
if (family === "haskell")
|
|
393
|
-
return KW.haskell;
|
|
394
|
-
if (family === "erlang")
|
|
395
|
-
return KW.erlang;
|
|
396
|
-
if (family === "fortran")
|
|
397
|
-
return KW.fortran;
|
|
398
|
-
if (family === "sh")
|
|
399
|
-
return KW.sh;
|
|
400
|
-
if (family === "css")
|
|
401
|
-
return KW.css;
|
|
402
|
-
if (family === "clike") {
|
|
403
|
-
if (ext === "go")
|
|
404
|
-
return KW.go;
|
|
405
|
-
if (ext === "rs")
|
|
406
|
-
return KW.rs;
|
|
407
|
-
if (ext === "cs")
|
|
408
|
-
return KW.csharp;
|
|
409
|
-
if (ext === "java")
|
|
410
|
-
return KW.java;
|
|
411
|
-
if (ext === "kt" || ext === "kts")
|
|
412
|
-
return KW.kotlin;
|
|
413
|
-
if (ext === "swift")
|
|
414
|
-
return KW.swift;
|
|
415
|
-
if (ext === "dart")
|
|
416
|
-
return KW.js; // close enough
|
|
417
|
-
return KW.c;
|
|
418
|
-
}
|
|
419
|
-
return new Set();
|
|
420
|
-
}
|
|
421
|
-
export function languageFromPath(path) {
|
|
422
|
-
const base = (path.split(/[/\\]/).pop() ?? path).toLowerCase();
|
|
423
|
-
if (BASENAME_FAMILY[base])
|
|
424
|
-
return BASENAME_FAMILY[base];
|
|
425
|
-
// multi-dot basenames
|
|
426
|
-
for (const [name, fam] of Object.entries(BASENAME_FAMILY)) {
|
|
427
|
-
if (base === name || base.endsWith(name))
|
|
428
|
-
return fam;
|
|
429
|
-
}
|
|
430
|
-
const dot = base.lastIndexOf(".");
|
|
431
|
-
if (dot < 0) {
|
|
432
|
-
// shebang-less scripts / Makefile already handled
|
|
433
|
-
return "generic";
|
|
434
|
-
}
|
|
435
|
-
// handle .d.ts, .test.ts etc — use last extension
|
|
436
|
-
const ext = base.slice(dot + 1);
|
|
437
|
-
// double extensions like .d.ts
|
|
438
|
-
if (base.endsWith(".d.ts") || base.endsWith(".d.mts") || base.endsWith(".d.cts")) {
|
|
439
|
-
return "js";
|
|
440
|
-
}
|
|
441
|
-
if (base.endsWith(".test.ts") || base.endsWith(".spec.ts") || base.endsWith(".test.tsx")) {
|
|
442
|
-
return "js";
|
|
443
|
-
}
|
|
444
|
-
return EXT_FAMILY[ext] ?? "generic";
|
|
445
|
-
}
|
|
446
9
|
/** @deprecated use languageFromPath */
|
|
447
10
|
export function languageFromPathLegacy(path) {
|
|
448
11
|
return languageFromPath(path);
|
|
449
12
|
}
|
|
450
|
-
// ─── Core helpers ───────────────────────────────────────────────────────────
|
|
451
|
-
function push(spans, kind, text) {
|
|
452
|
-
if (!text)
|
|
453
|
-
return;
|
|
454
|
-
const last = spans[spans.length - 1];
|
|
455
|
-
if (last && last.kind === kind) {
|
|
456
|
-
spans[spans.length - 1] = { kind, text: last.text + text };
|
|
457
|
-
}
|
|
458
|
-
else {
|
|
459
|
-
spans.push({ kind, text });
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
function isIdentStart(ch) {
|
|
463
|
-
return /[A-Za-z_$\u00a0-\uffff]/.test(ch);
|
|
464
|
-
}
|
|
465
|
-
function isIdentCont(ch) {
|
|
466
|
-
return /[A-Za-z0-9_$\u00a0-\uffff]/.test(ch);
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* Highlight one line for any path/language. Unknown types use generic rules.
|
|
470
|
-
*/
|
|
471
13
|
export function highlightLine(line, langOrPath, carry = emptyCarry()) {
|
|
472
14
|
const family = typeof langOrPath === "string" &&
|
|
473
15
|
![
|
|
@@ -553,7 +95,6 @@ export function highlightLine(line, langOrPath, carry = emptyCarry()) {
|
|
|
553
95
|
}
|
|
554
96
|
export function highlightLineForPath(line, path, carry = emptyCarry()) {
|
|
555
97
|
const family = languageFromPath(path);
|
|
556
|
-
// re-resolve keywords with extension for clike
|
|
557
98
|
if (family === "clike") {
|
|
558
99
|
return highlightClike(line, keywordSetFor(path, "clike"), carry, { regex: false });
|
|
559
100
|
}
|
|
@@ -587,717 +128,4 @@ export function clipSpans(spans, maxChars) {
|
|
|
587
128
|
}
|
|
588
129
|
return out;
|
|
589
130
|
}
|
|
590
|
-
function highlightClike(line, keys, carry, opts = {}) {
|
|
591
|
-
const spans = [];
|
|
592
|
-
const n = line.length;
|
|
593
|
-
let i = 0;
|
|
594
|
-
const lineComment = opts.lineComment ?? "//";
|
|
595
|
-
while (i < n) {
|
|
596
|
-
if (carry.inBlockComment) {
|
|
597
|
-
const end = line.indexOf("*/", i);
|
|
598
|
-
if (end < 0) {
|
|
599
|
-
push(spans, "comment", line.slice(i));
|
|
600
|
-
return spans;
|
|
601
|
-
}
|
|
602
|
-
push(spans, "comment", line.slice(i, end + 2));
|
|
603
|
-
carry.inBlockComment = false;
|
|
604
|
-
i = end + 2;
|
|
605
|
-
continue;
|
|
606
|
-
}
|
|
607
|
-
const ch = line[i];
|
|
608
|
-
const next = line[i + 1];
|
|
609
|
-
// line comment
|
|
610
|
-
if (line.startsWith(lineComment, i)) {
|
|
611
|
-
push(spans, "comment", line.slice(i));
|
|
612
|
-
return spans;
|
|
613
|
-
}
|
|
614
|
-
// block comment
|
|
615
|
-
if (ch === "/" && next === "*") {
|
|
616
|
-
const end = line.indexOf("*/", i + 2);
|
|
617
|
-
if (end < 0) {
|
|
618
|
-
push(spans, "comment", line.slice(i));
|
|
619
|
-
carry.inBlockComment = true;
|
|
620
|
-
return spans;
|
|
621
|
-
}
|
|
622
|
-
push(spans, "comment", line.slice(i, end + 2));
|
|
623
|
-
i = end + 2;
|
|
624
|
-
continue;
|
|
625
|
-
}
|
|
626
|
-
// strings
|
|
627
|
-
if (ch === '"' || ch === "'" || ch === "`") {
|
|
628
|
-
i = readString(line, i, ch, spans);
|
|
629
|
-
continue;
|
|
630
|
-
}
|
|
631
|
-
// regex
|
|
632
|
-
if (opts.regex && ch === "/" && next && next !== "/" && next !== "*") {
|
|
633
|
-
const prev = spans.length ? spans[spans.length - 1].text.trimEnd().slice(-1) : "";
|
|
634
|
-
if (!prev || /[=(:,[\!&|?{;]/.test(prev)) {
|
|
635
|
-
const j = readRegex(line, i);
|
|
636
|
-
if (j > i) {
|
|
637
|
-
push(spans, "regex", line.slice(i, j));
|
|
638
|
-
i = j;
|
|
639
|
-
continue;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
// #hex colors in css
|
|
644
|
-
if (opts.hashNumber && ch === "#" && next && /[0-9a-fA-F]/.test(next)) {
|
|
645
|
-
let j = i + 1;
|
|
646
|
-
while (j < n && /[0-9a-fA-F]/.test(line[j]))
|
|
647
|
-
j += 1;
|
|
648
|
-
push(spans, "number", line.slice(i, j));
|
|
649
|
-
i = j;
|
|
650
|
-
continue;
|
|
651
|
-
}
|
|
652
|
-
// numbers
|
|
653
|
-
if (/\d/.test(ch) || (ch === "." && next && /\d/.test(next))) {
|
|
654
|
-
let j = i;
|
|
655
|
-
while (j < n && /[\d._xXa-fA-FeEpP+-]/.test(line[j]))
|
|
656
|
-
j += 1;
|
|
657
|
-
push(spans, "number", line.slice(i, j));
|
|
658
|
-
i = j;
|
|
659
|
-
continue;
|
|
660
|
-
}
|
|
661
|
-
// identifiers
|
|
662
|
-
if (isIdentStart(ch)) {
|
|
663
|
-
let j = i + 1;
|
|
664
|
-
while (j < n && isIdentCont(line[j]))
|
|
665
|
-
j += 1;
|
|
666
|
-
const word = line.slice(i, j);
|
|
667
|
-
let k = j;
|
|
668
|
-
while (k < n && (line[k] === " " || line[k] === "\t"))
|
|
669
|
-
k += 1;
|
|
670
|
-
const after = line[k];
|
|
671
|
-
const keyLookup = opts.caseInsensitiveKeywords ? word.toLowerCase() : word;
|
|
672
|
-
const keyHit = opts.caseInsensitiveKeywords
|
|
673
|
-
? [...keys].some((kw) => kw.toLowerCase() === keyLookup)
|
|
674
|
-
: keys.has(word);
|
|
675
|
-
if (keyHit)
|
|
676
|
-
push(spans, "keyword", word);
|
|
677
|
-
else if (after === "(")
|
|
678
|
-
push(spans, "function", word);
|
|
679
|
-
else if (/^[A-Z]/.test(word))
|
|
680
|
-
push(spans, "type", word);
|
|
681
|
-
else if (spans[spans.length - 1]?.text.endsWith("."))
|
|
682
|
-
push(spans, "property", word);
|
|
683
|
-
else
|
|
684
|
-
push(spans, "plain", word);
|
|
685
|
-
i = j;
|
|
686
|
-
continue;
|
|
687
|
-
}
|
|
688
|
-
if (/[{}()\[\];,.]/.test(ch)) {
|
|
689
|
-
push(spans, "punctuation", ch);
|
|
690
|
-
i += 1;
|
|
691
|
-
continue;
|
|
692
|
-
}
|
|
693
|
-
if (/[+\-*/%=<>!&|^~?:@]/.test(ch)) {
|
|
694
|
-
let j = i + 1;
|
|
695
|
-
while (j < n && /[+\-*/%=<>!&|^~?:@]/.test(line[j]))
|
|
696
|
-
j += 1;
|
|
697
|
-
push(spans, "operator", line.slice(i, j));
|
|
698
|
-
i = j;
|
|
699
|
-
continue;
|
|
700
|
-
}
|
|
701
|
-
push(spans, "plain", ch);
|
|
702
|
-
i += 1;
|
|
703
|
-
}
|
|
704
|
-
return spans;
|
|
705
|
-
}
|
|
706
|
-
function readString(line, start, quote, spans) {
|
|
707
|
-
const n = line.length;
|
|
708
|
-
let j = start + 1;
|
|
709
|
-
while (j < n) {
|
|
710
|
-
if (line[j] === "\\") {
|
|
711
|
-
j += 2;
|
|
712
|
-
continue;
|
|
713
|
-
}
|
|
714
|
-
if (line[j] === quote) {
|
|
715
|
-
j += 1;
|
|
716
|
-
break;
|
|
717
|
-
}
|
|
718
|
-
// template ${ } — keep as string for simplicity
|
|
719
|
-
j += 1;
|
|
720
|
-
}
|
|
721
|
-
push(spans, "string", line.slice(start, j));
|
|
722
|
-
return j;
|
|
723
|
-
}
|
|
724
|
-
function readRegex(line, start) {
|
|
725
|
-
const n = line.length;
|
|
726
|
-
let j = start + 1;
|
|
727
|
-
let closed = false;
|
|
728
|
-
while (j < n) {
|
|
729
|
-
if (line[j] === "\\") {
|
|
730
|
-
j += 2;
|
|
731
|
-
continue;
|
|
732
|
-
}
|
|
733
|
-
if (line[j] === "/") {
|
|
734
|
-
j += 1;
|
|
735
|
-
closed = true;
|
|
736
|
-
break;
|
|
737
|
-
}
|
|
738
|
-
if (line[j] === "\n")
|
|
739
|
-
break;
|
|
740
|
-
j += 1;
|
|
741
|
-
}
|
|
742
|
-
if (!closed)
|
|
743
|
-
return start;
|
|
744
|
-
while (j < n && /[gimsuy]/.test(line[j]))
|
|
745
|
-
j += 1;
|
|
746
|
-
return j;
|
|
747
|
-
}
|
|
748
|
-
/** Generic: strings, line/block comments, numbers — any unmapped extension. */
|
|
749
|
-
function highlightGeneric(line, carry) {
|
|
750
|
-
const t = line.trimStart();
|
|
751
|
-
// Prefer # line comments for shell-like / config files when whole-line-ish
|
|
752
|
-
if (t.startsWith("#") && !/^#[0-9a-fA-F]{3,8}\b/.test(t)) {
|
|
753
|
-
return [{ kind: "comment", text: line }];
|
|
754
|
-
}
|
|
755
|
-
return highlightClike(line, new Set(), carry, { regex: false });
|
|
756
|
-
}
|
|
757
|
-
function highlightLineCommentLang(line, commentChar, keys, carry, opts = {}) {
|
|
758
|
-
const caseIns = opts.caseInsensitiveKeywords === true;
|
|
759
|
-
// Reuse clike but with custom line comment by pre-check
|
|
760
|
-
const t = line.trimStart();
|
|
761
|
-
if (t.startsWith(commentChar) && commentChar !== "//") {
|
|
762
|
-
return [{ kind: "comment", text: line }];
|
|
763
|
-
}
|
|
764
|
-
// map # comments: temporarily convert? better custom loop
|
|
765
|
-
if (commentChar === "#") {
|
|
766
|
-
return highlightHashCommentLang(line, keys, caseIns);
|
|
767
|
-
}
|
|
768
|
-
if (commentChar === "%" || commentChar === "!") {
|
|
769
|
-
return highlightHashCommentLang(line, keys, caseIns, commentChar);
|
|
770
|
-
}
|
|
771
|
-
return highlightClike(line, keys, carry, {
|
|
772
|
-
caseInsensitiveKeywords: caseIns,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
function highlightHashCommentLang(line, keys, caseInsensitive = false, commentChar = "#") {
|
|
776
|
-
const spans = [];
|
|
777
|
-
let i = 0;
|
|
778
|
-
const n = line.length;
|
|
779
|
-
while (i < n) {
|
|
780
|
-
if (line[i] === commentChar) {
|
|
781
|
-
push(spans, "comment", line.slice(i));
|
|
782
|
-
return spans;
|
|
783
|
-
}
|
|
784
|
-
if (line[i] === '"' || line[i] === "'" || line[i] === "`") {
|
|
785
|
-
i = readString(line, i, line[i], spans);
|
|
786
|
-
continue;
|
|
787
|
-
}
|
|
788
|
-
if (/\d/.test(line[i])) {
|
|
789
|
-
let j = i;
|
|
790
|
-
while (j < n && /[\d._]/.test(line[j]))
|
|
791
|
-
j += 1;
|
|
792
|
-
push(spans, "number", line.slice(i, j));
|
|
793
|
-
i = j;
|
|
794
|
-
continue;
|
|
795
|
-
}
|
|
796
|
-
if (isIdentStart(line[i])) {
|
|
797
|
-
let j = i + 1;
|
|
798
|
-
while (j < n && isIdentCont(line[j]))
|
|
799
|
-
j += 1;
|
|
800
|
-
const word = line.slice(i, j);
|
|
801
|
-
let k = j;
|
|
802
|
-
while (k < n && /\s/.test(line[k]))
|
|
803
|
-
k += 1;
|
|
804
|
-
const hit = caseInsensitive
|
|
805
|
-
? [...keys].some((kw) => kw.toLowerCase() === word.toLowerCase())
|
|
806
|
-
: keys.has(word);
|
|
807
|
-
if (hit)
|
|
808
|
-
push(spans, "keyword", word);
|
|
809
|
-
else if (line[k] === "(")
|
|
810
|
-
push(spans, "function", word);
|
|
811
|
-
else
|
|
812
|
-
push(spans, "plain", word);
|
|
813
|
-
i = j;
|
|
814
|
-
continue;
|
|
815
|
-
}
|
|
816
|
-
if (/[{}()\[\];,.]/.test(line[i])) {
|
|
817
|
-
push(spans, "punctuation", line[i]);
|
|
818
|
-
i += 1;
|
|
819
|
-
continue;
|
|
820
|
-
}
|
|
821
|
-
push(spans, "plain", line[i]);
|
|
822
|
-
i += 1;
|
|
823
|
-
}
|
|
824
|
-
return spans;
|
|
825
|
-
}
|
|
826
|
-
function highlightPython(line, carry) {
|
|
827
|
-
if (carry.inTripleString) {
|
|
828
|
-
const q = carry.tripleQuote ?? '"""';
|
|
829
|
-
const end = line.indexOf(q);
|
|
830
|
-
if (end < 0)
|
|
831
|
-
return [{ kind: "string", text: line }];
|
|
832
|
-
carry.inTripleString = false;
|
|
833
|
-
carry.tripleQuote = undefined;
|
|
834
|
-
const spans = [{ kind: "string", text: line.slice(0, end + q.length) }];
|
|
835
|
-
if (end + q.length < line.length) {
|
|
836
|
-
spans.push(...highlightPython(line.slice(end + q.length), carry));
|
|
837
|
-
}
|
|
838
|
-
return spans;
|
|
839
|
-
}
|
|
840
|
-
if (line.includes('"""') || line.includes("'''")) {
|
|
841
|
-
const spans = [];
|
|
842
|
-
let i = 0;
|
|
843
|
-
const n = line.length;
|
|
844
|
-
while (i < n) {
|
|
845
|
-
if (line.startsWith('"""', i) || line.startsWith("'''", i)) {
|
|
846
|
-
const q = line.slice(i, i + 3);
|
|
847
|
-
const end = line.indexOf(q, i + 3);
|
|
848
|
-
if (end < 0) {
|
|
849
|
-
push(spans, "string", line.slice(i));
|
|
850
|
-
carry.inTripleString = true;
|
|
851
|
-
carry.tripleQuote = q;
|
|
852
|
-
return spans;
|
|
853
|
-
}
|
|
854
|
-
push(spans, "string", line.slice(i, end + 3));
|
|
855
|
-
i = end + 3;
|
|
856
|
-
continue;
|
|
857
|
-
}
|
|
858
|
-
if (line[i] === "#") {
|
|
859
|
-
push(spans, "comment", line.slice(i));
|
|
860
|
-
return spans;
|
|
861
|
-
}
|
|
862
|
-
// fall through one char via rest of hash highlighter
|
|
863
|
-
const rest = highlightHashCommentLang(line.slice(i), KW.py);
|
|
864
|
-
// only take until we'd re-enter — simpler: process char by char for non-triple
|
|
865
|
-
const sub = rest[0];
|
|
866
|
-
if (!sub) {
|
|
867
|
-
i += 1;
|
|
868
|
-
continue;
|
|
869
|
-
}
|
|
870
|
-
// process rest of line with hash highlighter but need to stop at triple
|
|
871
|
-
const piece = line.slice(i);
|
|
872
|
-
const triple = piece.search(/"""|'''/);
|
|
873
|
-
if (triple < 0) {
|
|
874
|
-
spans.push(...highlightHashCommentLang(piece, KW.py));
|
|
875
|
-
return spans;
|
|
876
|
-
}
|
|
877
|
-
if (triple > 0)
|
|
878
|
-
spans.push(...highlightHashCommentLang(piece.slice(0, triple), KW.py));
|
|
879
|
-
i += triple;
|
|
880
|
-
}
|
|
881
|
-
return spans;
|
|
882
|
-
}
|
|
883
|
-
return highlightHashCommentLang(line, KW.py);
|
|
884
|
-
}
|
|
885
|
-
function highlightPhp(line, carry) {
|
|
886
|
-
// PHP uses // /* # and $variables
|
|
887
|
-
const spans = highlightClike(line, KW.php, carry, { regex: false });
|
|
888
|
-
// color $ident as property
|
|
889
|
-
const out = [];
|
|
890
|
-
for (const s of spans) {
|
|
891
|
-
if (s.kind !== "plain") {
|
|
892
|
-
out.push(s);
|
|
893
|
-
continue;
|
|
894
|
-
}
|
|
895
|
-
const re = /(\$[A-Za-z_][A-Za-z0-9_]*)/g;
|
|
896
|
-
let last = 0;
|
|
897
|
-
let m;
|
|
898
|
-
let any = false;
|
|
899
|
-
while ((m = re.exec(s.text))) {
|
|
900
|
-
any = true;
|
|
901
|
-
if (m.index > last)
|
|
902
|
-
push(out, "plain", s.text.slice(last, m.index));
|
|
903
|
-
push(out, "property", m[1]);
|
|
904
|
-
last = m.index + m[1].length;
|
|
905
|
-
}
|
|
906
|
-
if (any) {
|
|
907
|
-
if (last < s.text.length)
|
|
908
|
-
push(out, "plain", s.text.slice(last));
|
|
909
|
-
}
|
|
910
|
-
else {
|
|
911
|
-
out.push(s);
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
return out;
|
|
915
|
-
}
|
|
916
|
-
function highlightLua(line, carry) {
|
|
917
|
-
// -- line comments, --[[ block ]]
|
|
918
|
-
if (carry.inBlockComment) {
|
|
919
|
-
const end = line.indexOf("]]");
|
|
920
|
-
if (end < 0)
|
|
921
|
-
return [{ kind: "comment", text: line }];
|
|
922
|
-
carry.inBlockComment = false;
|
|
923
|
-
const spans = [{ kind: "comment", text: line.slice(0, end + 2) }];
|
|
924
|
-
if (end + 2 < line.length)
|
|
925
|
-
spans.push(...highlightLua(line.slice(end + 2), carry));
|
|
926
|
-
return spans;
|
|
927
|
-
}
|
|
928
|
-
if (line.includes("--[[")) {
|
|
929
|
-
const start = line.indexOf("--[[");
|
|
930
|
-
const spans = [];
|
|
931
|
-
if (start > 0)
|
|
932
|
-
spans.push(...highlightHashCommentLang(line.slice(0, start), KW.lua));
|
|
933
|
-
// abuse hash with --
|
|
934
|
-
const end = line.indexOf("]]", start + 4);
|
|
935
|
-
if (end < 0) {
|
|
936
|
-
carry.inBlockComment = true;
|
|
937
|
-
spans.push({ kind: "comment", text: line.slice(start) });
|
|
938
|
-
return spans;
|
|
939
|
-
}
|
|
940
|
-
spans.push({ kind: "comment", text: line.slice(start, end + 2) });
|
|
941
|
-
if (end + 2 < line.length)
|
|
942
|
-
spans.push(...highlightLua(line.slice(end + 2), carry));
|
|
943
|
-
return spans;
|
|
944
|
-
}
|
|
945
|
-
// line --
|
|
946
|
-
const idx = line.indexOf("--");
|
|
947
|
-
if (idx >= 0) {
|
|
948
|
-
const before = line.slice(0, idx);
|
|
949
|
-
const spans = before ? highlightHashCommentLang(before, KW.lua) : [];
|
|
950
|
-
spans.push({ kind: "comment", text: line.slice(idx) });
|
|
951
|
-
return spans;
|
|
952
|
-
}
|
|
953
|
-
return highlightHashCommentLang(line, KW.lua);
|
|
954
|
-
}
|
|
955
|
-
function highlightHaskell(line, carry) {
|
|
956
|
-
if (carry.inBlockComment) {
|
|
957
|
-
const end = line.indexOf("-}");
|
|
958
|
-
if (end < 0)
|
|
959
|
-
return [{ kind: "comment", text: line }];
|
|
960
|
-
carry.inBlockComment = false;
|
|
961
|
-
const spans = [{ kind: "comment", text: line.slice(0, end + 2) }];
|
|
962
|
-
if (end + 2 < line.length)
|
|
963
|
-
spans.push(...highlightHaskell(line.slice(end + 2), carry));
|
|
964
|
-
return spans;
|
|
965
|
-
}
|
|
966
|
-
if (line.includes("{-")) {
|
|
967
|
-
const start = line.indexOf("{-");
|
|
968
|
-
const spans = [];
|
|
969
|
-
if (start > 0) {
|
|
970
|
-
// -- style via custom
|
|
971
|
-
const before = line.slice(0, start);
|
|
972
|
-
spans.push(...highlightHaskellLine(before));
|
|
973
|
-
}
|
|
974
|
-
const end = line.indexOf("-}", start + 2);
|
|
975
|
-
if (end < 0) {
|
|
976
|
-
carry.inBlockComment = true;
|
|
977
|
-
spans.push({ kind: "comment", text: line.slice(start) });
|
|
978
|
-
return spans;
|
|
979
|
-
}
|
|
980
|
-
spans.push({ kind: "comment", text: line.slice(start, end + 2) });
|
|
981
|
-
if (end + 2 < line.length)
|
|
982
|
-
spans.push(...highlightHaskell(line.slice(end + 2), carry));
|
|
983
|
-
return spans;
|
|
984
|
-
}
|
|
985
|
-
return highlightHaskellLine(line);
|
|
986
|
-
}
|
|
987
|
-
function highlightHaskellLine(line) {
|
|
988
|
-
const idx = line.indexOf("--");
|
|
989
|
-
if (idx >= 0) {
|
|
990
|
-
const spans = idx > 0 ? highlightHashCommentLang(line.slice(0, idx), KW.haskell) : [];
|
|
991
|
-
// wrong comment char — use plain keyword pass
|
|
992
|
-
spans.push({ kind: "comment", text: line.slice(idx) });
|
|
993
|
-
return spans;
|
|
994
|
-
}
|
|
995
|
-
return highlightHashCommentLang(line, KW.haskell);
|
|
996
|
-
}
|
|
997
|
-
function highlightLisp(line) {
|
|
998
|
-
const t = line.trimStart();
|
|
999
|
-
if (t.startsWith(";"))
|
|
1000
|
-
return [{ kind: "comment", text: line }];
|
|
1001
|
-
const spans = [];
|
|
1002
|
-
let i = 0;
|
|
1003
|
-
const n = line.length;
|
|
1004
|
-
while (i < n) {
|
|
1005
|
-
if (line[i] === ";") {
|
|
1006
|
-
push(spans, "comment", line.slice(i));
|
|
1007
|
-
return spans;
|
|
1008
|
-
}
|
|
1009
|
-
if (line[i] === '"') {
|
|
1010
|
-
i = readString(line, i, '"', spans);
|
|
1011
|
-
continue;
|
|
1012
|
-
}
|
|
1013
|
-
if (line[i] === "(" || line[i] === ")" || line[i] === "[" || line[i] === "]") {
|
|
1014
|
-
push(spans, "punctuation", line[i]);
|
|
1015
|
-
i += 1;
|
|
1016
|
-
continue;
|
|
1017
|
-
}
|
|
1018
|
-
if (isIdentStart(line[i]) || line[i] === ":" || line[i] === "*") {
|
|
1019
|
-
let j = i + 1;
|
|
1020
|
-
while (j < n && /[^\s()\[\]";]/.test(line[j]))
|
|
1021
|
-
j += 1;
|
|
1022
|
-
const word = line.slice(i, j);
|
|
1023
|
-
// first symbol after ( is function-ish
|
|
1024
|
-
const prev = spans[spans.length - 1]?.text;
|
|
1025
|
-
if (prev === "(")
|
|
1026
|
-
push(spans, "function", word);
|
|
1027
|
-
else if (word.startsWith(":"))
|
|
1028
|
-
push(spans, "property", word);
|
|
1029
|
-
else
|
|
1030
|
-
push(spans, "plain", word);
|
|
1031
|
-
i = j;
|
|
1032
|
-
continue;
|
|
1033
|
-
}
|
|
1034
|
-
if (/\d/.test(line[i])) {
|
|
1035
|
-
let j = i;
|
|
1036
|
-
while (j < n && /[\d./]/.test(line[j]))
|
|
1037
|
-
j += 1;
|
|
1038
|
-
push(spans, "number", line.slice(i, j));
|
|
1039
|
-
i = j;
|
|
1040
|
-
continue;
|
|
1041
|
-
}
|
|
1042
|
-
push(spans, "plain", line[i]);
|
|
1043
|
-
i += 1;
|
|
1044
|
-
}
|
|
1045
|
-
return spans;
|
|
1046
|
-
}
|
|
1047
|
-
function highlightMarkdown(line) {
|
|
1048
|
-
const t = line.trimStart();
|
|
1049
|
-
if (t.startsWith("#")) {
|
|
1050
|
-
return [{ kind: "keyword", text: line }];
|
|
1051
|
-
}
|
|
1052
|
-
if (t.startsWith("```") || t.startsWith("~~~")) {
|
|
1053
|
-
return [{ kind: "punctuation", text: line }];
|
|
1054
|
-
}
|
|
1055
|
-
if (t.startsWith(">")) {
|
|
1056
|
-
return [{ kind: "comment", text: line }];
|
|
1057
|
-
}
|
|
1058
|
-
if (t.startsWith("- ") || t.startsWith("* ") || /^\d+\.\s/.test(t)) {
|
|
1059
|
-
const spans = [];
|
|
1060
|
-
const indent = line.length - t.length;
|
|
1061
|
-
if (indent)
|
|
1062
|
-
push(spans, "plain", line.slice(0, indent));
|
|
1063
|
-
const m = t.match(/^([-*]|\d+\.)\s/);
|
|
1064
|
-
if (m) {
|
|
1065
|
-
push(spans, "keyword", m[0]);
|
|
1066
|
-
push(spans, "plain", t.slice(m[0].length));
|
|
1067
|
-
}
|
|
1068
|
-
else {
|
|
1069
|
-
push(spans, "plain", t);
|
|
1070
|
-
}
|
|
1071
|
-
return spans;
|
|
1072
|
-
}
|
|
1073
|
-
// inline `code` and **bold** lightly
|
|
1074
|
-
const spans = [];
|
|
1075
|
-
let i = 0;
|
|
1076
|
-
const n = line.length;
|
|
1077
|
-
while (i < n) {
|
|
1078
|
-
if (line[i] === "`") {
|
|
1079
|
-
const end = line.indexOf("`", i + 1);
|
|
1080
|
-
if (end > i) {
|
|
1081
|
-
push(spans, "string", line.slice(i, end + 1));
|
|
1082
|
-
i = end + 1;
|
|
1083
|
-
continue;
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
if (line.startsWith("**", i)) {
|
|
1087
|
-
const end = line.indexOf("**", i + 2);
|
|
1088
|
-
if (end > i) {
|
|
1089
|
-
push(spans, "keyword", line.slice(i, end + 2));
|
|
1090
|
-
i = end + 2;
|
|
1091
|
-
continue;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
if (line[i] === "[") {
|
|
1095
|
-
const end = line.indexOf(")", i);
|
|
1096
|
-
if (end > i && line.includes("](", i)) {
|
|
1097
|
-
push(spans, "property", line.slice(i, end + 1));
|
|
1098
|
-
i = end + 1;
|
|
1099
|
-
continue;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
push(spans, "plain", line[i]);
|
|
1103
|
-
i += 1;
|
|
1104
|
-
}
|
|
1105
|
-
return spans;
|
|
1106
|
-
}
|
|
1107
|
-
function highlightJsonLike(line) {
|
|
1108
|
-
const spans = [];
|
|
1109
|
-
let i = 0;
|
|
1110
|
-
const n = line.length;
|
|
1111
|
-
while (i < n) {
|
|
1112
|
-
const ch = line[i];
|
|
1113
|
-
if (ch === '"') {
|
|
1114
|
-
let j = i + 1;
|
|
1115
|
-
while (j < n) {
|
|
1116
|
-
if (line[j] === "\\") {
|
|
1117
|
-
j += 2;
|
|
1118
|
-
continue;
|
|
1119
|
-
}
|
|
1120
|
-
if (line[j] === '"') {
|
|
1121
|
-
j += 1;
|
|
1122
|
-
break;
|
|
1123
|
-
}
|
|
1124
|
-
j += 1;
|
|
1125
|
-
}
|
|
1126
|
-
let k = j;
|
|
1127
|
-
while (k < n && /\s/.test(line[k]))
|
|
1128
|
-
k += 1;
|
|
1129
|
-
push(spans, line[k] === ":" ? "property" : "string", line.slice(i, j));
|
|
1130
|
-
i = j;
|
|
1131
|
-
continue;
|
|
1132
|
-
}
|
|
1133
|
-
if (/\d/.test(ch) || (ch === "-" && line[i + 1] && /\d/.test(line[i + 1]))) {
|
|
1134
|
-
let j = i + 1;
|
|
1135
|
-
while (j < n && /[\d.eE+-]/.test(line[j]))
|
|
1136
|
-
j += 1;
|
|
1137
|
-
push(spans, "number", line.slice(i, j));
|
|
1138
|
-
i = j;
|
|
1139
|
-
continue;
|
|
1140
|
-
}
|
|
1141
|
-
if (line.startsWith("true", i) || line.startsWith("false", i) || line.startsWith("null", i)) {
|
|
1142
|
-
const w = line.startsWith("false", i) ? "false" : line.startsWith("true", i) ? "true" : "null";
|
|
1143
|
-
push(spans, "keyword", w);
|
|
1144
|
-
i += w.length;
|
|
1145
|
-
continue;
|
|
1146
|
-
}
|
|
1147
|
-
if (/[{}\[\]:,]/.test(ch)) {
|
|
1148
|
-
push(spans, "punctuation", ch);
|
|
1149
|
-
i += 1;
|
|
1150
|
-
continue;
|
|
1151
|
-
}
|
|
1152
|
-
push(spans, "plain", ch);
|
|
1153
|
-
i += 1;
|
|
1154
|
-
}
|
|
1155
|
-
return spans;
|
|
1156
|
-
}
|
|
1157
|
-
function highlightHtml(line, carry) {
|
|
1158
|
-
if (carry.inBlockComment || line.includes("<!--")) {
|
|
1159
|
-
if (carry.inBlockComment) {
|
|
1160
|
-
const end = line.indexOf("-->");
|
|
1161
|
-
if (end < 0)
|
|
1162
|
-
return [{ kind: "comment", text: line }];
|
|
1163
|
-
carry.inBlockComment = false;
|
|
1164
|
-
const spans = [{ kind: "comment", text: line.slice(0, end + 3) }];
|
|
1165
|
-
if (end + 3 < line.length)
|
|
1166
|
-
spans.push(...highlightHtml(line.slice(end + 3), carry));
|
|
1167
|
-
return spans;
|
|
1168
|
-
}
|
|
1169
|
-
const start = line.indexOf("<!--");
|
|
1170
|
-
if (start >= 0) {
|
|
1171
|
-
const spans = [];
|
|
1172
|
-
if (start > 0)
|
|
1173
|
-
spans.push(...highlightHtml(line.slice(0, start), carry));
|
|
1174
|
-
const end = line.indexOf("-->", start + 4);
|
|
1175
|
-
if (end < 0) {
|
|
1176
|
-
carry.inBlockComment = true;
|
|
1177
|
-
spans.push({ kind: "comment", text: line.slice(start) });
|
|
1178
|
-
return spans;
|
|
1179
|
-
}
|
|
1180
|
-
spans.push({ kind: "comment", text: line.slice(start, end + 3) });
|
|
1181
|
-
if (end + 3 < line.length)
|
|
1182
|
-
spans.push(...highlightHtml(line.slice(end + 3), carry));
|
|
1183
|
-
return spans;
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
const spans = [];
|
|
1187
|
-
let i = 0;
|
|
1188
|
-
const n = line.length;
|
|
1189
|
-
while (i < n) {
|
|
1190
|
-
if (line[i] === "<") {
|
|
1191
|
-
const close = line.indexOf(">", i);
|
|
1192
|
-
const end = close < 0 ? n : close + 1;
|
|
1193
|
-
spans.push(...highlightTag(line.slice(i, end)));
|
|
1194
|
-
i = end;
|
|
1195
|
-
continue;
|
|
1196
|
-
}
|
|
1197
|
-
let j = i + 1;
|
|
1198
|
-
while (j < n && line[j] !== "<")
|
|
1199
|
-
j += 1;
|
|
1200
|
-
push(spans, "plain", line.slice(i, j));
|
|
1201
|
-
i = j;
|
|
1202
|
-
}
|
|
1203
|
-
return spans;
|
|
1204
|
-
}
|
|
1205
|
-
function highlightTag(tag) {
|
|
1206
|
-
const spans = [];
|
|
1207
|
-
let i = 0;
|
|
1208
|
-
const n = tag.length;
|
|
1209
|
-
while (i < n) {
|
|
1210
|
-
const ch = tag[i];
|
|
1211
|
-
if (ch === "<" || ch === ">" || ch === "/") {
|
|
1212
|
-
push(spans, "punctuation", ch);
|
|
1213
|
-
i += 1;
|
|
1214
|
-
continue;
|
|
1215
|
-
}
|
|
1216
|
-
if (ch === '"' || ch === "'") {
|
|
1217
|
-
i = readString(tag, i, ch, spans);
|
|
1218
|
-
continue;
|
|
1219
|
-
}
|
|
1220
|
-
if (isIdentStart(ch)) {
|
|
1221
|
-
let j = i + 1;
|
|
1222
|
-
while (j < n && /[A-Za-z0-9_:-]/.test(tag[j]))
|
|
1223
|
-
j += 1;
|
|
1224
|
-
const word = tag.slice(i, j);
|
|
1225
|
-
const prev = spans[spans.length - 1]?.text;
|
|
1226
|
-
if (prev === "<" || prev === "/")
|
|
1227
|
-
push(spans, "keyword", word);
|
|
1228
|
-
else
|
|
1229
|
-
push(spans, "property", word);
|
|
1230
|
-
i = j;
|
|
1231
|
-
continue;
|
|
1232
|
-
}
|
|
1233
|
-
push(spans, "plain", ch);
|
|
1234
|
-
i += 1;
|
|
1235
|
-
}
|
|
1236
|
-
return spans;
|
|
1237
|
-
}
|
|
1238
|
-
function highlightYaml(line) {
|
|
1239
|
-
const trimmed = line.trimStart();
|
|
1240
|
-
if (trimmed.startsWith("#"))
|
|
1241
|
-
return [{ kind: "comment", text: line }];
|
|
1242
|
-
const spans = [];
|
|
1243
|
-
const indent = line.length - trimmed.length;
|
|
1244
|
-
if (indent)
|
|
1245
|
-
push(spans, "plain", line.slice(0, indent));
|
|
1246
|
-
if (trimmed.startsWith("- ")) {
|
|
1247
|
-
push(spans, "punctuation", "-");
|
|
1248
|
-
push(spans, "plain", " ");
|
|
1249
|
-
spans.push(...highlightYaml(trimmed.slice(2)));
|
|
1250
|
-
// fix indent double — simpler:
|
|
1251
|
-
return [
|
|
1252
|
-
...(indent ? [{ kind: "plain", text: line.slice(0, indent) }] : []),
|
|
1253
|
-
{ kind: "punctuation", text: "-" },
|
|
1254
|
-
{ kind: "plain", text: " " },
|
|
1255
|
-
...highlightJsonLike(trimmed.slice(2)),
|
|
1256
|
-
];
|
|
1257
|
-
}
|
|
1258
|
-
const colon = trimmed.indexOf(":");
|
|
1259
|
-
if (colon > 0) {
|
|
1260
|
-
push(spans, "property", trimmed.slice(0, colon));
|
|
1261
|
-
push(spans, "punctuation", ":");
|
|
1262
|
-
const rest = trimmed.slice(colon + 1);
|
|
1263
|
-
if (rest)
|
|
1264
|
-
spans.push(...highlightJsonLike(rest));
|
|
1265
|
-
return spans;
|
|
1266
|
-
}
|
|
1267
|
-
spans.push(...highlightJsonLike(trimmed));
|
|
1268
|
-
return spans;
|
|
1269
|
-
}
|
|
1270
|
-
function highlightIniToml(line) {
|
|
1271
|
-
const t = line.trimStart();
|
|
1272
|
-
if (t.startsWith("#") || t.startsWith(";"))
|
|
1273
|
-
return [{ kind: "comment", text: line }];
|
|
1274
|
-
if (t.startsWith("[") && t.includes("]")) {
|
|
1275
|
-
return [{ kind: "keyword", text: line }];
|
|
1276
|
-
}
|
|
1277
|
-
const eq = line.indexOf("=");
|
|
1278
|
-
if (eq > 0) {
|
|
1279
|
-
return [
|
|
1280
|
-
{ kind: "property", text: line.slice(0, eq) },
|
|
1281
|
-
{ kind: "operator", text: "=" },
|
|
1282
|
-
...highlightJsonLike(line.slice(eq + 1)),
|
|
1283
|
-
];
|
|
1284
|
-
}
|
|
1285
|
-
return highlightJsonLike(line);
|
|
1286
|
-
}
|
|
1287
|
-
function highlightDiff(line) {
|
|
1288
|
-
if (line.startsWith("+++") || line.startsWith("---") || line.startsWith("diff ") || line.startsWith("index ")) {
|
|
1289
|
-
return [{ kind: "keyword", text: line }];
|
|
1290
|
-
}
|
|
1291
|
-
if (line.startsWith("@@"))
|
|
1292
|
-
return [{ kind: "function", text: line }];
|
|
1293
|
-
if (line.startsWith("+"))
|
|
1294
|
-
return [{ kind: "string", text: line }];
|
|
1295
|
-
if (line.startsWith("-"))
|
|
1296
|
-
return [{ kind: "regex", text: line }];
|
|
1297
|
-
return [{ kind: "plain", text: line }];
|
|
1298
|
-
}
|
|
1299
|
-
/** List of extensions we explicitly map (for tests / docs). */
|
|
1300
|
-
export function supportedExtensions() {
|
|
1301
|
-
return Object.keys(EXT_FAMILY).sort();
|
|
1302
|
-
}
|
|
1303
131
|
//# sourceMappingURL=syntax-highlight.js.map
|