@gajae-code/coding-agent 0.16.4 → 0.16.6
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 +54 -0
- package/dist/types/capability/types.d.ts +4 -0
- package/dist/types/cli/customize-doctor.d.ts +22 -0
- package/dist/types/config/file-lock.d.ts +31 -3
- package/dist/types/coordinator-mcp/question-state.d.ts +7 -0
- package/dist/types/coordinator-mcp/server.d.ts +7 -0
- package/dist/types/discovery/helpers.d.ts +33 -0
- package/dist/types/exec/bash-executor.d.ts +17 -1
- package/dist/types/exec/bash-shell-guardian.d.ts +15 -0
- package/dist/types/exec/bash-shell-runtime-entry.d.ts +2 -0
- package/dist/types/exec/bash-shell-signals.d.ts +2 -0
- package/dist/types/exec/bash-shell-supervisor-entry.d.ts +1 -0
- package/dist/types/exec/bash-shell-supervisor.d.ts +10 -0
- package/dist/types/exec/bash-shell-worker-entry.d.ts +2 -0
- package/dist/types/exec/bash-shell-worker-protocol.d.ts +63 -0
- package/dist/types/exec/bash-shell-worker.d.ts +1 -0
- package/dist/types/exec/isolated-shell.d.ts +19 -0
- package/dist/types/extensibility/extensions/function-hooks-internal.d.ts +9 -0
- package/dist/types/extensibility/extensions/function-hooks.d.ts +169 -0
- package/dist/types/extensibility/extensions/index.d.ts +1 -0
- package/dist/types/extensibility/extensions/runner.d.ts +46 -6
- package/dist/types/extensibility/extensions/types.d.ts +16 -0
- package/dist/types/extensibility/extensions/wrapper.d.ts +3 -1
- package/dist/types/extensibility/gjc-plugins/constrained-hooks.d.ts +35 -2
- package/dist/types/extensibility/gjc-plugins/types.d.ts +25 -0
- package/dist/types/extensibility/hooks/types.d.ts +4 -0
- package/dist/types/extensibility/runtime-skill-discovery.d.ts +4 -1
- package/dist/types/extensibility/skill-management.d.ts +9 -4
- package/dist/types/extensibility/skills.d.ts +2 -0
- package/dist/types/gjc-runtime/empty-delete-gc.d.ts +4 -1
- package/dist/types/gjc-runtime/linux-proc.d.ts +2 -0
- package/dist/types/gjc-runtime/session-state-lock.d.ts +12 -0
- package/dist/types/gjc-runtime/ultragoal-runtime.d.ts +41 -3
- package/dist/types/gjc-runtime/ultragoal-succession.d.ts +251 -0
- package/dist/types/modes/components/bash-execution.d.ts +1 -0
- package/dist/types/modes/components/execution-shared.d.ts +1 -0
- package/dist/types/modes/interactive-mode.d.ts +2 -0
- package/dist/types/modes/types.d.ts +6 -0
- package/dist/types/sdk/broker/ensure.d.ts +32 -0
- package/dist/types/sdk/broker/lifecycle-ledger.d.ts +0 -1
- package/dist/types/sdk/broker/lifecycle.d.ts +6 -0
- package/dist/types/sdk/broker/startup-failure.d.ts +4 -1
- package/dist/types/sdk/bus/chat-daemon-control.d.ts +2 -0
- package/dist/types/sdk/bus/chat-effect-journal.d.ts +17 -2
- package/dist/types/sdk/bus/conversation-store.d.ts +11 -0
- package/dist/types/sdk/bus/lifecycle-commands.d.ts +8 -8
- package/dist/types/sdk/bus/slack-daemon.d.ts +1 -1
- package/dist/types/sdk/bus/topic-registry.d.ts +8 -0
- package/dist/types/sdk/client/client.d.ts +6 -0
- package/dist/types/sdk/host/host.d.ts +3 -1
- package/dist/types/sdk/host/session-runtime.d.ts +4 -2
- package/dist/types/sdk/lifecycle/service.d.ts +1 -0
- package/dist/types/sdk/router/session-router.d.ts +10 -2
- package/dist/types/sdk/session.d.ts +5 -1
- package/dist/types/session/agent-session.d.ts +2 -0
- package/dist/types/session/fallback-chain-controller.d.ts +15 -0
- package/dist/types/session/internal/managed-session-storage.d.ts +7 -0
- package/dist/types/session/messages.d.ts +1 -0
- package/dist/types/session/session-manager.d.ts +3 -1
- package/dist/types/setup/paseo/announce.d.ts +4 -3
- package/dist/types/skill-state/canonical-skills.d.ts +4 -0
- package/dist/types/system-prompt.d.ts +8 -0
- package/dist/types/task/executor.d.ts +3 -0
- package/dist/types/tools/bash.d.ts +1 -0
- package/dist/types/tools/github-cache.d.ts +2 -1
- package/dist/types/tools/index.d.ts +2 -0
- package/package.json +9 -7
- package/scripts/generate-sdk-operation-inventory.ts +2 -0
- package/src/capability/index.ts +14 -2
- package/src/capability/types.ts +4 -0
- package/src/cli/customize-doctor.ts +155 -12
- package/src/cli.ts +22 -0
- package/src/commands/sdk.ts +74 -31
- package/src/config/file-lock-gc.ts +40 -2
- package/src/config/file-lock.ts +198 -14
- package/src/config/model-preset-registry.ts +115 -16
- package/src/config/model-registry.ts +16 -12
- package/src/coordinator-mcp/question-state.ts +33 -2
- package/src/coordinator-mcp/server.ts +477 -101
- package/src/crash/sanitize.ts +1 -1
- package/src/defaults/gjc/skills/ultragoal/SKILL.md +22 -0
- package/src/discovery/builtin.ts +50 -62
- package/src/discovery/helpers.ts +297 -32
- package/src/exec/bash-executor.ts +330 -50
- package/src/exec/bash-shell-guardian.ts +388 -0
- package/src/exec/bash-shell-runtime-entry.ts +5 -0
- package/src/exec/bash-shell-signals.ts +29 -0
- package/src/exec/bash-shell-supervisor-entry.ts +3 -0
- package/src/exec/bash-shell-supervisor.ts +359 -0
- package/src/exec/bash-shell-worker-entry.ts +5 -0
- package/src/exec/bash-shell-worker-protocol.ts +36 -0
- package/src/exec/bash-shell-worker.ts +116 -0
- package/src/exec/isolated-shell.ts +393 -0
- package/src/extensibility/extensions/function-hooks-internal.ts +73 -0
- package/src/extensibility/extensions/function-hooks.ts +959 -0
- package/src/extensibility/extensions/index.ts +22 -0
- package/src/extensibility/extensions/loader.ts +53 -2
- package/src/extensibility/extensions/runner.ts +895 -264
- package/src/extensibility/extensions/types.ts +42 -0
- package/src/extensibility/extensions/wrapper.ts +56 -15
- package/src/extensibility/gjc-plugins/compiler.ts +20 -2
- package/src/extensibility/gjc-plugins/constrained-hooks.ts +321 -23
- package/src/extensibility/gjc-plugins/registry.ts +113 -1
- package/src/extensibility/gjc-plugins/runtime-quarantine.ts +20 -2
- package/src/extensibility/gjc-plugins/schema.ts +121 -4
- package/src/extensibility/gjc-plugins/types.ts +25 -0
- package/src/extensibility/hooks/loader.ts +133 -16
- package/src/extensibility/hooks/types.ts +28 -0
- package/src/extensibility/runtime-skill-discovery.ts +80 -47
- package/src/extensibility/skill-management.ts +200 -52
- package/src/extensibility/skills.ts +29 -9
- package/src/gjc-runtime/empty-delete-gc.ts +94 -4
- package/src/gjc-runtime/gc-runtime.ts +29 -0
- package/src/gjc-runtime/linux-proc.ts +14 -0
- package/src/gjc-runtime/session-state-lock.ts +51 -8
- package/src/gjc-runtime/session-state-sidecar.ts +27 -11
- package/src/gjc-runtime/state-writer.ts +30 -29
- package/src/gjc-runtime/ultragoal-runtime.ts +189 -47
- package/src/gjc-runtime/ultragoal-succession.ts +1667 -0
- package/src/gjc-runtime/workflow-manifest.generated.json +52 -1
- package/src/gjc-runtime/workflow-manifest.ts +16 -0
- package/src/harness-control-plane/session-lease.ts +2 -2
- package/src/internal-urls/docs-index.generated.ts +6 -6
- package/src/lsp/config.ts +10 -3
- package/src/lsp/index.ts +1 -1
- package/src/lsp/path-trust.ts +69 -14
- package/src/main.ts +6 -1
- package/src/modes/acp/acp-agent.ts +16 -3
- package/src/modes/components/bash-execution.ts +4 -1
- package/src/modes/components/execution-shared.ts +4 -1
- package/src/modes/components/session-observer-overlay.ts +1 -1
- package/src/modes/components/tool-status-header.ts +3 -1
- package/src/modes/controllers/command-controller.ts +1 -0
- package/src/modes/controllers/event-controller.ts +3 -2
- package/src/modes/controllers/extension-ui-controller.ts +1 -0
- package/src/modes/controllers/input-controller.ts +6 -3
- package/src/modes/interactive-mode.ts +6 -5
- package/src/modes/print-mode.ts +5 -1
- package/src/modes/prompt-action-autocomplete.ts +54 -27
- package/src/modes/runtime-init.ts +2 -0
- package/src/modes/types.ts +16 -3
- package/src/modes/utils/ui-helpers.ts +1 -0
- package/src/prompts/tools/subagent.md +1 -0
- package/src/runtime-mcp/manager.ts +20 -2
- package/src/runtime-mcp/pool.test.ts +20 -11
- package/src/sdk/broker/broker.ts +119 -28
- package/src/sdk/broker/ensure.ts +248 -41
- package/src/sdk/broker/lifecycle-ledger.ts +7 -17
- package/src/sdk/broker/lifecycle.ts +56 -6
- package/src/sdk/broker/startup-failure.ts +15 -6
- package/src/sdk/bus/chat-daemon-control.ts +3 -1
- package/src/sdk/bus/chat-daemon-runtime.ts +35 -5
- package/src/sdk/bus/chat-effect-journal.ts +132 -7
- package/src/sdk/bus/conversation-store.ts +29 -0
- package/src/sdk/bus/lifecycle-commands.ts +17 -11
- package/src/sdk/bus/slack-conversation.ts +1 -0
- package/src/sdk/bus/slack-daemon.ts +387 -48
- package/src/sdk/bus/telegram-daemon.ts +16 -2
- package/src/sdk/bus/topic-registry.ts +19 -0
- package/src/sdk/cli/master-cli.ts +1 -1
- package/src/sdk/cli/session-cli.ts +2 -2
- package/src/sdk/client/client.ts +66 -17
- package/src/sdk/host/host.ts +29 -9
- package/src/sdk/host/query/revision-store.ts +19 -13
- package/src/sdk/host/reverse-leases.ts +7 -4
- package/src/sdk/host/session-runtime.test.ts +50 -8
- package/src/sdk/host/session-runtime.ts +158 -51
- package/src/sdk/lifecycle/service.ts +4 -0
- package/src/sdk/protocol/operation-inventory.generated.json +11 -0
- package/src/sdk/router/session-router.ts +89 -38
- package/src/sdk/session.ts +155 -26
- package/src/sdk/transport/relay.ts +35 -13
- package/src/session/agent-session.ts +117 -52
- package/src/session/fallback-chain-controller.ts +38 -0
- package/src/session/internal/managed-session-storage.ts +19 -5
- package/src/session/messages.ts +5 -0
- package/src/session/session-manager.ts +29 -5
- package/src/session-import/redact.ts +5 -1
- package/src/setup/paseo/announce.ts +49 -43
- package/src/setup/paseo/setup-deps.ts +1 -1
- package/src/skill-state/canonical-skills.ts +12 -0
- package/src/skills/skills.test.ts +41 -21
- package/src/system-prompt.ts +25 -3
- package/src/task/executor.ts +5 -0
- package/src/task/index.ts +4 -0
- package/src/tools/bash.ts +28 -11
- package/src/tools/gh.ts +26 -3
- package/src/tools/github-cache.ts +68 -16
- package/src/tools/index.ts +2 -0
- package/src/tools/job.ts +13 -2
- package/src/tools/read.ts +14 -2
- package/src/tools/render-utils.ts +1 -3
- package/src/tools/resource-gc.ts +28 -8
- package/src/tools/skill-discovery.ts +5 -0
- package/src/tools/skill.ts +15 -0
- package/src/tools/subagent.ts +3 -2
- package/src/tools/tool-catalog.generated.ts +2 -2
- package/src/tools/ultragoal-ask-guard.ts +2 -2
|
@@ -1611,6 +1611,52 @@
|
|
|
1611
1611
|
"name": "classification-event-id",
|
|
1612
1612
|
"type": "string"
|
|
1613
1613
|
},
|
|
1614
|
+
{
|
|
1615
|
+
"appliesToVerbs": [
|
|
1616
|
+
"succession"
|
|
1617
|
+
],
|
|
1618
|
+
"name": "target-repo",
|
|
1619
|
+
"type": "string"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"appliesToVerbs": [
|
|
1623
|
+
"succession"
|
|
1624
|
+
],
|
|
1625
|
+
"name": "goal-id",
|
|
1626
|
+
"type": "string"
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"appliesToVerbs": [
|
|
1630
|
+
"succession"
|
|
1631
|
+
],
|
|
1632
|
+
"name": "authorize",
|
|
1633
|
+
"type": "string"
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"appliesToVerbs": [
|
|
1637
|
+
"succession"
|
|
1638
|
+
],
|
|
1639
|
+
"name": "authorized-by",
|
|
1640
|
+
"type": "string"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"appliesToVerbs": [
|
|
1644
|
+
"succession"
|
|
1645
|
+
],
|
|
1646
|
+
"name": "offer",
|
|
1647
|
+
"type": "string"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"appliesToVerbs": [
|
|
1651
|
+
"succession"
|
|
1652
|
+
],
|
|
1653
|
+
"enumValues": [
|
|
1654
|
+
"aggregate",
|
|
1655
|
+
"per-story"
|
|
1656
|
+
],
|
|
1657
|
+
"name": "gjc-goal-mode",
|
|
1658
|
+
"type": "enum"
|
|
1659
|
+
},
|
|
1614
1660
|
{
|
|
1615
1661
|
"appliesToVerbs": [
|
|
1616
1662
|
"checkpoint",
|
|
@@ -1754,7 +1800,8 @@
|
|
|
1754
1800
|
"steer",
|
|
1755
1801
|
"classify-blocker",
|
|
1756
1802
|
"record-critic-verdict",
|
|
1757
|
-
"record-critic-gate-override"
|
|
1803
|
+
"record-critic-gate-override",
|
|
1804
|
+
"succession"
|
|
1758
1805
|
],
|
|
1759
1806
|
"name": "json",
|
|
1760
1807
|
"type": "boolean"
|
|
@@ -1851,6 +1898,10 @@
|
|
|
1851
1898
|
"name": "quality-gate",
|
|
1852
1899
|
"surface": "command-positional"
|
|
1853
1900
|
},
|
|
1901
|
+
{
|
|
1902
|
+
"name": "succession",
|
|
1903
|
+
"surface": "command-positional"
|
|
1904
|
+
},
|
|
1854
1905
|
{
|
|
1855
1906
|
"name": "graph",
|
|
1856
1907
|
"planned": true,
|
|
@@ -322,6 +322,7 @@ export const WORKFLOW_MANIFEST: Record<CanonicalGjcWorkflowSkill, SkillManifest>
|
|
|
322
322
|
"record-critic-verdict",
|
|
323
323
|
"record-critic-gate-override",
|
|
324
324
|
"quality-gate",
|
|
325
|
+
"succession",
|
|
325
326
|
]),
|
|
326
327
|
...plannedVerbs(PLANNED_ADMIN_VERBS),
|
|
327
328
|
],
|
|
@@ -376,6 +377,20 @@ export const WORKFLOW_MANIFEST: Record<CanonicalGjcWorkflowSkill, SkillManifest>
|
|
|
376
377
|
{ name: "blockers-json", type: "string", appliesToVerbs: ["record-critic-verdict"] },
|
|
377
378
|
{ name: "goal-id", type: "string", appliesToVerbs: ["record-critic-verdict"] },
|
|
378
379
|
{ name: "classification-event-id", type: "string", appliesToVerbs: ["record-critic-verdict"] },
|
|
380
|
+
// Cross-repository succession (#5353). Requiredness varies by subcommand
|
|
381
|
+
// (`offer` needs the target/selection/authorization, `adopt` needs the
|
|
382
|
+
// offer), so these are declared optional here — matching `quality-gate`.
|
|
383
|
+
{ name: "target-repo", type: "string", appliesToVerbs: ["succession"] },
|
|
384
|
+
{ name: "goal-id", type: "string", appliesToVerbs: ["succession"] },
|
|
385
|
+
{ name: "authorize", type: "string", appliesToVerbs: ["succession"] },
|
|
386
|
+
{ name: "authorized-by", type: "string", appliesToVerbs: ["succession"] },
|
|
387
|
+
{ name: "offer", type: "string", appliesToVerbs: ["succession"] },
|
|
388
|
+
{
|
|
389
|
+
name: "gjc-goal-mode",
|
|
390
|
+
type: "enum",
|
|
391
|
+
enumValues: ["aggregate", "per-story"],
|
|
392
|
+
appliesToVerbs: ["succession"],
|
|
393
|
+
},
|
|
379
394
|
{ name: "quality-gate-json", type: "string", appliesToVerbs: ["checkpoint", "quality-gate"] },
|
|
380
395
|
{ name: "goal-id", type: "string", appliesToVerbs: ["quality-gate"] },
|
|
381
396
|
{ name: "goal-id", type: "string", appliesToVerbs: ["steer"] },
|
|
@@ -429,6 +444,7 @@ export const WORKFLOW_MANIFEST: Record<CanonicalGjcWorkflowSkill, SkillManifest>
|
|
|
429
444
|
"classify-blocker",
|
|
430
445
|
"record-critic-verdict",
|
|
431
446
|
"record-critic-gate-override",
|
|
447
|
+
"succession",
|
|
432
448
|
],
|
|
433
449
|
},
|
|
434
450
|
{ name: "directive-json", type: "string", appliesToVerbs: ["steer"], planned: true },
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { createHash, randomBytes } from "node:crypto";
|
|
10
10
|
import * as fs from "node:fs/promises";
|
|
11
11
|
import * as path from "node:path";
|
|
12
|
-
import { withFileLock } from "../config/file-lock";
|
|
12
|
+
import { FileLockAcquireError, withFileLock } from "../config/file-lock";
|
|
13
13
|
|
|
14
14
|
import { controlSocketPath, sessionPaths } from "./storage";
|
|
15
15
|
|
|
@@ -76,7 +76,7 @@ async function withLeaseMutationLock<T>(root: string, sessionId: string, fn: ()
|
|
|
76
76
|
retryDelayMs: 20,
|
|
77
77
|
});
|
|
78
78
|
} catch (error) {
|
|
79
|
-
if (error instanceof
|
|
79
|
+
if (error instanceof FileLockAcquireError && error.code === "acquire_timeout") {
|
|
80
80
|
throw new LeaseError(`lease_lock_timeout:${sessionId}`, "lease_lock_timeout");
|
|
81
81
|
}
|
|
82
82
|
throw error;
|