@gajae-code/coding-agent 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/dist/types/append-only-mode.d.ts +31 -0
- package/dist/types/capability/rule.d.ts +8 -0
- package/dist/types/cli/completion-cli.d.ts +41 -0
- package/dist/types/cli/config-cli.d.ts +1 -0
- package/dist/types/cli/fixture-report.d.ts +20 -0
- package/dist/types/cli/fixture-report.test.d.ts +1 -0
- package/dist/types/cli/nofile-limit.d.ts +11 -0
- package/dist/types/cli/notify-cli.d.ts +7 -0
- package/dist/types/cli/update-cli.d.ts +22 -0
- package/dist/types/cli.d.ts +124 -1
- package/dist/types/commands/completion.d.ts +29 -0
- package/dist/types/commands/config.d.ts +3 -0
- package/dist/types/commands/deep-interview.d.ts +3 -0
- package/dist/types/config/file-lock.d.ts +7 -6
- package/dist/types/config/keybindings.d.ts +2 -2
- package/dist/types/config/model-profile-activation.d.ts +6 -0
- package/dist/types/config/settings-schema.d.ts +105 -1
- package/dist/types/config/settings.d.ts +8 -0
- package/dist/types/discovery/index.d.ts +1 -0
- package/dist/types/export/html/template.generated.d.ts +1 -1
- package/dist/types/export/ttsr.d.ts +14 -3
- package/dist/types/extensibility/extensions/runner.d.ts +2 -1
- package/dist/types/extensibility/extensions/types.d.ts +8 -0
- package/dist/types/gjc-runtime/deep-interview-ambiguity.d.ts +39 -0
- package/dist/types/gjc-runtime/deep-interview-recorder.d.ts +10 -1
- package/dist/types/gjc-runtime/deep-interview-runtime.d.ts +1 -1
- package/dist/types/gjc-runtime/deep-interview-state.d.ts +17 -2
- package/dist/types/gjc-runtime/session-state-sidecar.d.ts +7 -0
- package/dist/types/gjc-runtime/state-writer.d.ts +3 -0
- package/dist/types/gjc-runtime/team-runtime.d.ts +28 -1
- package/dist/types/gjc-runtime/ultragoal-receipt-freshness.d.ts +42 -0
- package/dist/types/gjc-runtime/ultragoal-runtime.d.ts +120 -13
- package/dist/types/goals/runtime.d.ts +1 -0
- package/dist/types/hooks/native-skill-hook.d.ts +12 -0
- package/dist/types/main.d.ts +4 -1
- package/dist/types/modes/components/assistant-message.d.ts +5 -1
- package/dist/types/modes/components/model-selector.d.ts +4 -0
- package/dist/types/modes/components/queued-message-selector.d.ts +12 -0
- package/dist/types/modes/components/settings-selector.d.ts +2 -0
- package/dist/types/modes/components/status-line.d.ts +9 -0
- package/dist/types/modes/controllers/command-controller.d.ts +1 -0
- package/dist/types/modes/controllers/event-controller.d.ts +5 -0
- package/dist/types/modes/controllers/input-controller.d.ts +1 -3
- package/dist/types/modes/interactive-mode.d.ts +2 -0
- package/dist/types/modes/print-mode.d.ts +13 -1
- package/dist/types/modes/prompt-action-autocomplete.d.ts +1 -1
- package/dist/types/modes/rpc/rpc-types.d.ts +14 -0
- package/dist/types/modes/shared/agent-wire/event-contract.d.ts +19 -0
- package/dist/types/modes/shared/agent-wire/event-envelope.d.ts +23 -1
- package/dist/types/modes/types.d.ts +1 -0
- package/dist/types/modes/utils/ui-helpers.d.ts +1 -0
- package/dist/types/notifications/config.d.ts +14 -1
- package/dist/types/notifications/daemon-paths.d.ts +1 -0
- package/dist/types/notifications/index.d.ts +6 -3
- package/dist/types/notifications/lifecycle-commands.d.ts +11 -3
- package/dist/types/notifications/telegram-daemon.d.ts +23 -3
- package/dist/types/notifications/telegram-reference.d.ts +0 -5
- package/dist/types/notifications/threaded-render.d.ts +6 -0
- package/dist/types/runtime-api-key.d.ts +7 -0
- package/dist/types/sdk.d.ts +3 -0
- package/dist/types/session/agent-session.d.ts +53 -1
- package/dist/types/session/agent-storage.d.ts +1 -0
- package/dist/types/session/file-mention-pruning.d.ts +8 -0
- package/dist/types/session/messages.d.ts +4 -0
- package/dist/types/session/session-manager.d.ts +17 -1
- package/dist/types/skill-state/active-state.d.ts +18 -1
- package/dist/types/system-prompt.d.ts +18 -2
- package/dist/types/task/executor.d.ts +3 -0
- package/dist/types/task/fork-context-budget.d.ts +7 -0
- package/dist/types/task/token-log.d.ts +30 -0
- package/dist/types/task/token-log.test.d.ts +1 -0
- package/dist/types/tools/bisect.d.ts +81 -0
- package/dist/types/tools/computer.d.ts +2 -2
- package/dist/types/tools/index.d.ts +1 -0
- package/dist/types/tools/search.d.ts +2 -2
- package/dist/types/utils/file-mentions.d.ts +14 -0
- package/dist/types/utils/git.d.ts +32 -0
- package/dist/types/web/scrapers/youtube.d.ts +8 -0
- package/dist/types/workflow/workflow-intent-diff.d.ts +8 -2
- package/dist/types/workflow/workflow-intent-report-consumer.d.ts +50 -0
- package/dist/types/workflow/workflow-intent-report-schema.d.ts +2 -0
- package/dist/types/workflow/workflow-intent-report.d.ts +48 -0
- package/package.json +7 -7
- package/src/append-only-mode.ts +58 -0
- package/src/autoresearch/prompt.md +1 -1
- package/src/autoresearch/tools/log-experiment.ts +1 -1
- package/src/capability/rule.ts +9 -0
- package/src/cli/completion-cli.ts +234 -0
- package/src/cli/config-cli.ts +61 -9
- package/src/cli/fast-help.ts +1 -0
- package/src/cli/fixture-report.test.ts +230 -0
- package/src/cli/fixture-report.ts +171 -0
- package/src/cli/nofile-limit.ts +48 -0
- package/src/cli/notify-cli.ts +91 -7
- package/src/cli/update-cli.ts +85 -9
- package/src/cli.ts +29 -1
- package/src/commands/completion.ts +84 -0
- package/src/commands/config.ts +2 -0
- package/src/commands/contribution-prep.ts +1 -1
- package/src/commands/deep-interview.ts +2 -1
- package/src/config/file-lock.ts +73 -34
- package/src/config/keybindings.ts +2 -2
- package/src/config/model-profile-activation.ts +65 -0
- package/src/config/model-registry.ts +14 -2
- package/src/config/settings-schema.ts +68 -1
- package/src/config/settings.ts +22 -0
- package/src/coordinator-mcp/server.ts +34 -8
- package/src/defaults/gjc/skills/deep-interview/SKILL.md +50 -18
- package/src/defaults/gjc/skills/ralplan/SKILL.md +40 -99
- package/src/defaults/gjc/skills/team/SKILL.md +17 -14
- package/src/defaults/gjc/skills/ultragoal/SKILL.md +59 -4
- package/src/defaults/gjc/skills/ultragoal/pipeline-validation-contracts.md +30 -0
- package/src/defaults/gjc-defaults.ts +9 -0
- package/src/discovery/helpers.ts +10 -0
- package/src/discovery/index.ts +1 -0
- package/src/export/html/template.generated.ts +1 -1
- package/src/export/html/template.js +60 -2
- package/src/export/ttsr.ts +96 -18
- package/src/extensibility/extensions/runner.ts +183 -219
- package/src/extensibility/extensions/types.ts +9 -0
- package/src/extensibility/gjc-plugins/runtime-adapters.ts +156 -44
- package/src/gjc-runtime/deep-interview-ambiguity.ts +206 -0
- package/src/gjc-runtime/deep-interview-recorder.ts +62 -8
- package/src/gjc-runtime/deep-interview-runtime.ts +210 -2
- package/src/gjc-runtime/deep-interview-state.ts +44 -2
- package/src/gjc-runtime/session-state-sidecar.ts +263 -20
- package/src/gjc-runtime/state-runtime.ts +12 -2
- package/src/gjc-runtime/state-writer.ts +15 -0
- package/src/gjc-runtime/team-runtime.ts +187 -15
- package/src/gjc-runtime/ultragoal-guard.ts +55 -66
- package/src/gjc-runtime/ultragoal-receipt-freshness.ts +315 -0
- package/src/gjc-runtime/ultragoal-runtime.ts +1663 -159
- package/src/gjc-runtime/workflow-manifest.generated.json +113 -2
- package/src/gjc-runtime/workflow-manifest.ts +74 -1
- package/src/goals/runtime.ts +10 -2
- package/src/hindsight/backend.ts +1 -3
- package/src/hooks/native-skill-hook.ts +124 -4
- package/src/internal-urls/docs-index.generated.ts +16 -7
- package/src/main.ts +95 -43
- package/src/memories/index.ts +12 -1
- package/src/modes/components/assistant-message.ts +241 -82
- package/src/modes/components/custom-editor.ts +1 -0
- package/src/modes/components/model-selector.ts +54 -11
- package/src/modes/components/queued-message-selector.ts +92 -0
- package/src/modes/components/settings-selector.ts +4 -0
- package/src/modes/components/status-line.ts +167 -54
- package/src/modes/components/tool-execution.ts +44 -19
- package/src/modes/components/welcome.ts +160 -44
- package/src/modes/controllers/command-controller.ts +40 -4
- package/src/modes/controllers/event-controller.ts +66 -47
- package/src/modes/controllers/extension-ui-controller.ts +4 -10
- package/src/modes/controllers/input-controller.ts +180 -18
- package/src/modes/controllers/selector-controller.ts +122 -27
- package/src/modes/interactive-mode.ts +51 -16
- package/src/modes/print-mode.ts +43 -4
- package/src/modes/prompt-action-autocomplete.ts +21 -20
- package/src/modes/rpc/rpc-mode.ts +29 -3
- package/src/modes/rpc/rpc-types.ts +9 -0
- package/src/modes/shared/agent-wire/command-validation.ts +4 -0
- package/src/modes/shared/agent-wire/event-contract.ts +22 -0
- package/src/modes/shared/agent-wire/event-envelope.ts +82 -0
- package/src/modes/shared/agent-wire/scopes.ts +1 -0
- package/src/modes/types.ts +1 -0
- package/src/modes/utils/hotkeys-markdown.ts +1 -0
- package/src/modes/utils/ui-helpers.ts +19 -6
- package/src/notifications/config.ts +25 -5
- package/src/notifications/daemon-paths.ts +2 -0
- package/src/notifications/index.ts +117 -14
- package/src/notifications/lifecycle-commands.ts +37 -7
- package/src/notifications/lifecycle-orchestrator.ts +19 -6
- package/src/notifications/telegram-daemon-cli.ts +2 -2
- package/src/notifications/telegram-daemon-control.ts +5 -3
- package/src/notifications/telegram-daemon.ts +302 -51
- package/src/notifications/telegram-reference.ts +0 -16
- package/src/notifications/threaded-render.ts +17 -1
- package/src/prompts/agents/architect.md +19 -10
- package/src/prompts/agents/critic.md +16 -18
- package/src/prompts/agents/executor.md +14 -11
- package/src/prompts/agents/planner.md +18 -13
- package/src/prompts/ci-green-request.md +3 -8
- package/src/prompts/goals/goal-continuation.md +0 -5
- package/src/prompts/goals/goal-mode-active.md +0 -5
- package/src/prompts/system/agent-creation-architect.md +2 -2
- package/src/prompts/system/plan-mode-active.md +1 -1
- package/src/prompts/system/plan-mode-subagent.md +3 -3
- package/src/prompts/system/project-prompt.md +0 -13
- package/src/prompts/system/subagent-system-prompt.md +3 -2
- package/src/prompts/system/system-prompt.md +29 -19
- package/src/prompts/system/volatile-project-context.md +10 -0
- package/src/prompts/system/web-search.md +4 -7
- package/src/prompts/tools/apply-patch.md +6 -0
- package/src/prompts/tools/ast-edit.md +1 -0
- package/src/prompts/tools/bash.md +1 -1
- package/src/prompts/tools/bisect.md +22 -0
- package/src/prompts/tools/browser.md +1 -1
- package/src/prompts/tools/computer.md +2 -2
- package/src/prompts/tools/cron.md +0 -2
- package/src/prompts/tools/eval.md +2 -2
- package/src/prompts/tools/find.md +1 -1
- package/src/prompts/tools/github.md +6 -6
- package/src/prompts/tools/goal.md +1 -3
- package/src/prompts/tools/image-gen.md +12 -5
- package/src/prompts/tools/irc.md +5 -4
- package/src/prompts/tools/job.md +2 -2
- package/src/prompts/tools/lsp.md +1 -1
- package/src/prompts/tools/monitor.md +2 -2
- package/src/prompts/tools/patch.md +2 -2
- package/src/prompts/tools/replace.md +2 -21
- package/src/prompts/tools/rewind.md +1 -1
- package/src/prompts/tools/search-tool-bm25.md +1 -11
- package/src/prompts/tools/search.md +1 -1
- package/src/prompts/tools/skill.md +3 -2
- package/src/prompts/tools/ssh.md +2 -1
- package/src/prompts/tools/subagent.md +2 -2
- package/src/prompts/tools/task.md +4 -5
- package/src/prompts/tools/todo-write.md +1 -1
- package/src/prompts/tools/vim.md +1 -0
- package/src/prompts/tools/web-search.md +2 -0
- package/src/prompts/tools/write.md +8 -2
- package/src/runtime-api-key.ts +16 -0
- package/src/sdk.ts +52 -28
- package/src/session/agent-session.ts +951 -132
- package/src/session/agent-storage.ts +4 -0
- package/src/session/file-mention-pruning.ts +64 -0
- package/src/session/messages.ts +4 -0
- package/src/session/session-manager.ts +103 -4
- package/src/skill-state/active-state.ts +141 -5
- package/src/skill-state/deep-interview-mutation-guard.ts +67 -3
- package/src/slash-commands/builtin-registry.ts +218 -71
- package/src/system-prompt.ts +57 -16
- package/src/task/executor.ts +132 -24
- package/src/task/fork-context-advisory.ts +2 -7
- package/src/task/fork-context-budget.ts +9 -0
- package/src/task/index.ts +13 -6
- package/src/task/output-manager.ts +20 -8
- package/src/task/receipt.ts +26 -7
- package/src/task/token-log.test.ts +188 -0
- package/src/task/token-log.ts +179 -0
- package/src/tools/bisect.ts +367 -0
- package/src/tools/computer.ts +246 -43
- package/src/tools/index.ts +3 -0
- package/src/tools/output-meta.ts +116 -4
- package/src/tools/search.ts +8 -2
- package/src/tools/skill.ts +15 -0
- package/src/tools/telegram-send.ts +6 -0
- package/src/utils/file-mentions.ts +39 -7
- package/src/utils/git.ts +73 -0
- package/src/web/scrapers/youtube.ts +24 -12
- package/src/workflow/workflow-intent-diff.ts +29 -6
- package/src/workflow/workflow-intent-report-consumer.ts +221 -0
- package/src/workflow/workflow-intent-report-schema.ts +129 -0
- package/src/workflow/workflow-intent-report.ts +135 -0
|
@@ -520,6 +520,66 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
520
520
|
}];
|
|
521
521
|
};
|
|
522
522
|
};
|
|
523
|
+
readonly "tools.readArtifactSpillThreshold": {
|
|
524
|
+
readonly type: "number";
|
|
525
|
+
readonly default: 0;
|
|
526
|
+
readonly ui: {
|
|
527
|
+
readonly tab: "tools";
|
|
528
|
+
readonly label: "Experimental read-tool artifact spill threshold (KB)";
|
|
529
|
+
readonly description: "Advanced opt-in only: combined-size cap for `read` output across all requested ranges. Above this the full output is saved as an artifact and a bounded head+tail snippet is kept inline. Live layofflabs/gpt-5.5 medium evidence on 2026-07-07 found no token savings and a lower cache-hit rate at 50 KB, so normal coding sessions should leave this Off unless intentionally measuring large-read behavior.";
|
|
530
|
+
readonly options: readonly [{
|
|
531
|
+
readonly value: "0";
|
|
532
|
+
readonly label: "Off";
|
|
533
|
+
readonly description: "Default; no read-specific spill (backstop only)";
|
|
534
|
+
}, {
|
|
535
|
+
readonly value: "50";
|
|
536
|
+
readonly label: "50 KB";
|
|
537
|
+
readonly description: "~12.5K tokens";
|
|
538
|
+
}, {
|
|
539
|
+
readonly value: "100";
|
|
540
|
+
readonly label: "100 KB";
|
|
541
|
+
readonly description: "~25K tokens";
|
|
542
|
+
}, {
|
|
543
|
+
readonly value: "256";
|
|
544
|
+
readonly label: "256 KB";
|
|
545
|
+
readonly description: "~64K tokens";
|
|
546
|
+
}, {
|
|
547
|
+
readonly value: "512";
|
|
548
|
+
readonly label: "512 KB";
|
|
549
|
+
readonly description: "~128K tokens";
|
|
550
|
+
}, {
|
|
551
|
+
readonly value: "1000";
|
|
552
|
+
readonly label: "1 MB";
|
|
553
|
+
readonly description: "~250K tokens";
|
|
554
|
+
}];
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
readonly "tools.fileMentionInlineBytes": {
|
|
558
|
+
readonly type: "number";
|
|
559
|
+
readonly default: 20;
|
|
560
|
+
readonly ui: {
|
|
561
|
+
readonly tab: "tools";
|
|
562
|
+
readonly label: "File-mention inline cap (KB)";
|
|
563
|
+
readonly description: "Inline byte cap for auto-read `@path` file mentions, deliberately below the read-tool cap so an incidental mention injects a smaller snippet than an explicit read. The full file is still available via the read tool.";
|
|
564
|
+
readonly options: readonly [{
|
|
565
|
+
readonly value: "5";
|
|
566
|
+
readonly label: "5 KB";
|
|
567
|
+
readonly description: "~1.25K tokens";
|
|
568
|
+
}, {
|
|
569
|
+
readonly value: "10";
|
|
570
|
+
readonly label: "10 KB";
|
|
571
|
+
readonly description: "~2.5K tokens";
|
|
572
|
+
}, {
|
|
573
|
+
readonly value: "20";
|
|
574
|
+
readonly label: "20 KB";
|
|
575
|
+
readonly description: "Default; ~5K tokens";
|
|
576
|
+
}, {
|
|
577
|
+
readonly value: "50";
|
|
578
|
+
readonly label: "50 KB";
|
|
579
|
+
readonly description: "~12.5K tokens (matches read cap)";
|
|
580
|
+
}];
|
|
581
|
+
};
|
|
582
|
+
};
|
|
523
583
|
readonly "tools.artifactTailBytes": {
|
|
524
584
|
readonly type: "number";
|
|
525
585
|
readonly default: 20;
|
|
@@ -681,6 +741,40 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
681
741
|
}];
|
|
682
742
|
};
|
|
683
743
|
};
|
|
744
|
+
readonly "tools.maxInlineResultBytes": {
|
|
745
|
+
readonly type: "number";
|
|
746
|
+
readonly default: 0;
|
|
747
|
+
readonly ui: {
|
|
748
|
+
readonly tab: "tools";
|
|
749
|
+
readonly label: "Max inline tool-result size (KB)";
|
|
750
|
+
readonly description: "Absolute backstop cap on inline tool-result text, enforced after artifact spill for every tool (including read and tools that set their own partial artifact meta). Output above this size is force-saved as an artifact and truncated to head+tail. 0 disables (default; opt-in pending measurement).";
|
|
751
|
+
readonly options: readonly [{
|
|
752
|
+
readonly value: "0";
|
|
753
|
+
readonly label: "Off";
|
|
754
|
+
readonly description: "Disabled; no absolute inline cap";
|
|
755
|
+
}, {
|
|
756
|
+
readonly value: "20";
|
|
757
|
+
readonly label: "20 KB";
|
|
758
|
+
readonly description: "~5K tokens";
|
|
759
|
+
}, {
|
|
760
|
+
readonly value: "30";
|
|
761
|
+
readonly label: "30 KB";
|
|
762
|
+
readonly description: "~7.5K tokens";
|
|
763
|
+
}, {
|
|
764
|
+
readonly value: "50";
|
|
765
|
+
readonly label: "50 KB";
|
|
766
|
+
readonly description: "~12.5K tokens";
|
|
767
|
+
}, {
|
|
768
|
+
readonly value: "75";
|
|
769
|
+
readonly label: "75 KB";
|
|
770
|
+
readonly description: "~19K tokens";
|
|
771
|
+
}, {
|
|
772
|
+
readonly value: "100";
|
|
773
|
+
readonly label: "100 KB";
|
|
774
|
+
readonly description: "~25K tokens";
|
|
775
|
+
}];
|
|
776
|
+
};
|
|
777
|
+
};
|
|
684
778
|
readonly "statusLine.showHookStatus": {
|
|
685
779
|
readonly type: "boolean";
|
|
686
780
|
readonly default: false;
|
|
@@ -1646,6 +1740,14 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
1646
1740
|
readonly type: "string";
|
|
1647
1741
|
readonly default: undefined;
|
|
1648
1742
|
};
|
|
1743
|
+
readonly "compaction.maintenancePruningEnabled": {
|
|
1744
|
+
readonly type: "boolean";
|
|
1745
|
+
readonly default: false;
|
|
1746
|
+
};
|
|
1747
|
+
readonly "compaction.maintenancePruningMinSavingsTokens": {
|
|
1748
|
+
readonly type: "number";
|
|
1749
|
+
readonly default: 8000;
|
|
1750
|
+
};
|
|
1649
1751
|
readonly "compaction.idleEnabled": {
|
|
1650
1752
|
readonly type: "boolean";
|
|
1651
1753
|
readonly default: false;
|
|
@@ -2001,7 +2103,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
2001
2103
|
readonly ui: {
|
|
2002
2104
|
readonly tab: "context";
|
|
2003
2105
|
readonly label: "TTSR Context Mode";
|
|
2004
|
-
readonly description: "What to do with partial output when TTSR triggers";
|
|
2106
|
+
readonly description: "What to do with partial output when TTSR triggers. 'discard' (recommended) drops the aborted partial turn so it never accumulates in context. 'keep' retains every aborted partial turn, which grows the token footprint each time a rule fires \u2014 prefer 'discard' unless you specifically need the partial output.";
|
|
2005
2107
|
};
|
|
2006
2108
|
};
|
|
2007
2109
|
readonly "ttsr.interruptMode": {
|
|
@@ -3640,6 +3742,8 @@ export interface CompactionSettings {
|
|
|
3640
3742
|
autoContinue: boolean;
|
|
3641
3743
|
remoteEnabled: boolean;
|
|
3642
3744
|
remoteEndpoint: string | undefined;
|
|
3745
|
+
maintenancePruningEnabled: boolean;
|
|
3746
|
+
maintenancePruningMinSavingsTokens: number;
|
|
3643
3747
|
idleEnabled: boolean;
|
|
3644
3748
|
idleThresholdTokens: number;
|
|
3645
3749
|
idleTimeoutSeconds: number;
|
|
@@ -108,6 +108,14 @@ export declare class Settings {
|
|
|
108
108
|
* Set a model role (helper for modelRoles record).
|
|
109
109
|
*/
|
|
110
110
|
setModelRole(role: ModelRole | string, modelId: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* Set an agent model override while keeping any live runtime override aligned.
|
|
113
|
+
*
|
|
114
|
+
* Runtime model profiles override `task.agentModelOverrides` for the current
|
|
115
|
+
* session. A user-selected role assignment must win immediately in that same
|
|
116
|
+
* session, but only the explicit agent change should be persisted.
|
|
117
|
+
*/
|
|
118
|
+
setAgentModelOverride(agentName: string, modelId: string): void;
|
|
111
119
|
/**
|
|
112
120
|
* Get a model role (helper for modelRoles record).
|
|
113
121
|
*/
|