@gajae-code/coding-agent 0.11.9 → 0.11.10
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 +18 -1
- package/dist/types/config/model-registry.d.ts +2 -0
- package/dist/types/gjc-runtime/state-writer.d.ts +1 -0
- package/dist/types/modes/controllers/selector-controller.d.ts +16 -8
- package/dist/types/sdk/bus/daemon-paths.d.ts +1 -0
- package/dist/types/sdk/bus/index.d.ts +8 -1
- package/dist/types/sdk/bus/operator-runtime.d.ts +1 -0
- package/dist/types/sdk/bus/telegram-daemon-contract.d.ts +12 -7
- package/dist/types/sdk/bus/telegram-daemon.d.ts +74 -5
- package/dist/types/sdk/session.d.ts +7 -0
- package/dist/types/session/agent-session.d.ts +2 -0
- package/dist/types/session/internal/managed-session-scope.d.ts +1 -1
- package/dist/types/task/provider-retry-status.d.ts +13 -0
- package/dist/types/task/types.d.ts +3 -0
- package/dist/types/tools/index.d.ts +3 -1
- package/package.json +8 -8
- package/scripts/generate-sdk-operation-inventory.ts +1 -0
- package/src/cli/notify-cli.ts +1 -0
- package/src/config/model-profiles.ts +7 -7
- package/src/config/model-registry.ts +4 -2
- package/src/eval/js/tool-bridge.ts +1 -1
- package/src/gjc-runtime/deep-interview-draft.ts +2 -1
- package/src/gjc-runtime/deep-interview-recorder.ts +16 -1
- package/src/gjc-runtime/state-writer.ts +1 -1
- package/src/hooks/skill-state.ts +23 -1
- package/src/internal-urls/docs-index.generated.ts +3 -3
- package/src/modes/controllers/selector-controller.ts +38 -8
- package/src/prompts/agent-fragments/restricted-bash.md +1 -1
- package/src/prompts/agents/architect.md +8 -1
- package/src/prompts/agents/critic.md +8 -1
- package/src/prompts/agents/planner.md +8 -1
- package/src/sdk/broker/identity.ts +22 -12
- package/src/sdk/bus/daemon-paths.ts +2 -0
- package/src/sdk/bus/index.ts +60 -5
- package/src/sdk/bus/notification-service.ts +19 -5
- package/src/sdk/bus/operator-runtime.ts +31 -5
- package/src/sdk/bus/telegram-cli.ts +6 -13
- package/src/sdk/bus/telegram-daemon-cli.ts +8 -3
- package/src/sdk/bus/telegram-daemon-contract.ts +13 -7
- package/src/sdk/bus/telegram-daemon-control.ts +14 -5
- package/src/sdk/bus/telegram-daemon.ts +667 -118
- package/src/sdk/protocol/operation-inventory.generated.json +11 -0
- package/src/sdk/session.ts +12 -0
- package/src/session/agent-session.ts +54 -10
- package/src/session/internal/managed-session-scope.ts +133 -117
- package/src/skill-state/workflow-mutation-guard.ts +41 -7
- package/src/task/executor.ts +141 -39
- package/src/task/provider-retry-status.ts +88 -0
- package/src/task/render.ts +45 -26
- package/src/task/types.ts +3 -0
- package/src/tools/bash-allowed-prefixes.ts +45 -1
- package/src/tools/index.ts +3 -1
- package/src/tools/subagent-render.ts +74 -16
- package/src/tools/subagent.ts +2 -0
- package/vendor/insane-search/MANIFEST.json +4 -1
- package/vendor/insane-search/engine/bias_check.py +5 -0
- package/vendor/insane-search/engine/fetch_chain.py +67 -1
- package/vendor/insane-search/engine/transport.py +13 -2
- package/vendor/insane-search/engine/validators.py +4 -1
package/src/hooks/skill-state.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as path from "node:path";
|
|
|
3
3
|
import { logger } from "@gajae-code/utils";
|
|
4
4
|
import type { SkillDiscoverySettings } from "../config/skill-settings-defaults";
|
|
5
5
|
import { detectDeepInterviewPlaintextAskLeak } from "../deep-interview/plaintext-gate-guard";
|
|
6
|
+
import { scoreToUnits } from "../gjc-runtime/deep-interview-ambiguity";
|
|
6
7
|
import { activeSnapshotPath, modeStatePath as sessionModeStatePath } from "../gjc-runtime/session-layout";
|
|
7
8
|
import { resolveGjcSessionForRead } from "../gjc-runtime/session-resolution";
|
|
8
9
|
import { ModeStateSchema, SkillActiveStateSchema } from "../gjc-runtime/state-schema";
|
|
@@ -410,8 +411,29 @@ async function seedSkillActivationState(
|
|
|
410
411
|
...(input.turnId ? { turn_id: input.turnId } : {}),
|
|
411
412
|
};
|
|
412
413
|
if (skill === "deep-interview") {
|
|
413
|
-
|
|
414
|
+
const threshold = DEFAULT_DEEP_INTERVIEW_AMBIGUITY_THRESHOLD;
|
|
415
|
+
const thresholdUnits = scoreToUnits(threshold);
|
|
416
|
+
modeState.schema_version = 1;
|
|
417
|
+
modeState.resolution = "standard";
|
|
418
|
+
modeState.threshold = threshold;
|
|
419
|
+
modeState.threshold_units = thresholdUnits;
|
|
414
420
|
modeState.threshold_source = "default";
|
|
421
|
+
modeState.state = {
|
|
422
|
+
setup: { status: "unresolved" },
|
|
423
|
+
type: "greenfield",
|
|
424
|
+
intent_contract_required: true,
|
|
425
|
+
rounds: [],
|
|
426
|
+
established_facts: [],
|
|
427
|
+
topology: { status: "pending", components: [], deferred_components: [] },
|
|
428
|
+
ontology_snapshots: [],
|
|
429
|
+
auto_researched_rounds: [],
|
|
430
|
+
auto_answered_rounds: [],
|
|
431
|
+
architect_failures: 0,
|
|
432
|
+
current_ambiguity: 1.0,
|
|
433
|
+
threshold,
|
|
434
|
+
threshold_units: thresholdUnits,
|
|
435
|
+
threshold_source: "default",
|
|
436
|
+
};
|
|
415
437
|
}
|
|
416
438
|
|
|
417
439
|
await readExistingStateForMutation(initializedStatePath);
|