kiokuko-dsh 0.1.69 → 0.1.71

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.
Files changed (135) hide show
  1. package/PERMISSIONS.md +12 -1
  2. package/README.ja.md +36 -1
  3. package/README.md +37 -7
  4. package/THIRD_PARTY_NOTICES.md +21 -0
  5. package/dist/akinator/memory-probe-types.d.ts +6 -6
  6. package/dist/context/continuity-view.d.ts +1 -1
  7. package/dist/deep-thinker/core/contracts.d.ts +34 -34
  8. package/dist/deep-thinker/memory-finalizer.d.ts +12 -12
  9. package/dist/deep-thinker/prompts.d.ts +3 -3
  10. package/dist/deep-thinker/quality-prompts.d.ts +3 -3
  11. package/dist/deep-thinker/report.d.ts +8 -8
  12. package/dist/deep-thinker/store.d.ts +3 -3
  13. package/dist/dsh/composition.d.ts.map +1 -1
  14. package/dist/dsh/composition.js +1 -0
  15. package/dist/dsh/composition.js.map +1 -1
  16. package/dist/dsh/config.d.ts +32 -10
  17. package/dist/dsh/config.d.ts.map +1 -1
  18. package/dist/dsh/config.js +2 -0
  19. package/dist/dsh/config.js.map +1 -1
  20. package/dist/dsh/core/host.d.ts +25 -3
  21. package/dist/dsh/core/host.d.ts.map +1 -1
  22. package/dist/dsh/core/host.js +5 -2
  23. package/dist/dsh/core/host.js.map +1 -1
  24. package/dist/dsh/core/index.d.ts +50 -6
  25. package/dist/dsh/core/index.d.ts.map +1 -1
  26. package/dist/dsh/decisions/compaction-batches.d.ts.map +1 -1
  27. package/dist/dsh/decisions/compaction-batches.js +6 -1
  28. package/dist/dsh/decisions/compaction-batches.js.map +1 -1
  29. package/dist/dsh/decisions/config.d.ts +52 -1
  30. package/dist/dsh/decisions/config.d.ts.map +1 -1
  31. package/dist/dsh/decisions/config.js +35 -1
  32. package/dist/dsh/decisions/config.js.map +1 -1
  33. package/dist/dsh/decisions/contracts.d.ts +5 -3
  34. package/dist/dsh/decisions/contracts.d.ts.map +1 -1
  35. package/dist/dsh/decisions/contracts.js.map +1 -1
  36. package/dist/dsh/decisions/host.d.ts +1 -1
  37. package/dist/dsh/decisions/host.d.ts.map +1 -1
  38. package/dist/dsh/decisions/host.js +63 -32
  39. package/dist/dsh/decisions/host.js.map +1 -1
  40. package/dist/dsh/decisions/laya-coreml.d.ts +35 -0
  41. package/dist/dsh/decisions/laya-coreml.d.ts.map +1 -0
  42. package/dist/dsh/decisions/laya-coreml.js +149 -0
  43. package/dist/dsh/decisions/laya-coreml.js.map +1 -0
  44. package/dist/dsh/decisions/laya-transport.d.ts +5 -0
  45. package/dist/dsh/decisions/laya-transport.d.ts.map +1 -0
  46. package/dist/dsh/decisions/laya-transport.js +83 -0
  47. package/dist/dsh/decisions/laya-transport.js.map +1 -0
  48. package/dist/dsh/decisions/memory-batches.d.ts +2 -1
  49. package/dist/dsh/decisions/memory-batches.d.ts.map +1 -1
  50. package/dist/dsh/decisions/memory-batches.js.map +1 -1
  51. package/dist/dsh/decisions/readiness.d.ts +1 -1
  52. package/dist/dsh/decisions/readiness.d.ts.map +1 -1
  53. package/dist/dsh/decisions/readiness.js +5 -5
  54. package/dist/dsh/decisions/readiness.js.map +1 -1
  55. package/dist/dsh/decisions/selection-store.d.ts +12 -0
  56. package/dist/dsh/decisions/selection-store.d.ts.map +1 -0
  57. package/dist/dsh/decisions/selection-store.js +27 -0
  58. package/dist/dsh/decisions/selection-store.js.map +1 -0
  59. package/dist/dsh/decisions/service.d.ts +20 -2
  60. package/dist/dsh/decisions/service.d.ts.map +1 -1
  61. package/dist/dsh/decisions/service.js +170 -18
  62. package/dist/dsh/decisions/service.js.map +1 -1
  63. package/dist/dsh/decisions/workflows.js +1 -1
  64. package/dist/dsh/decisions/workflows.js.map +1 -1
  65. package/dist/dsh/enno-delegation.d.ts.map +1 -1
  66. package/dist/dsh/enno-delegation.js +5 -1
  67. package/dist/dsh/enno-delegation.js.map +1 -1
  68. package/dist/dsh/execution-selection.d.ts +6 -6
  69. package/dist/dsh/finalization-request.d.ts.map +1 -1
  70. package/dist/dsh/finalization-request.js +1 -0
  71. package/dist/dsh/finalization-request.js.map +1 -1
  72. package/dist/dsh/host-adapter.d.ts +2 -0
  73. package/dist/dsh/host-adapter.d.ts.map +1 -1
  74. package/dist/dsh/host-adapter.js +3 -2
  75. package/dist/dsh/host-adapter.js.map +1 -1
  76. package/dist/dsh/index.js +2 -2
  77. package/dist/dsh/index.js.map +1 -1
  78. package/dist/dsh/lisp/surface.js +1 -1
  79. package/dist/dsh/lisp/surface.js.map +1 -1
  80. package/dist/dsh/memory-application.js +1 -1
  81. package/dist/dsh/memory-application.js.map +1 -1
  82. package/dist/dsh/memory-reuse.js +1 -1
  83. package/dist/dsh/memory-reuse.js.map +1 -1
  84. package/dist/dsh/model-configuration.d.ts +6 -6
  85. package/dist/dsh/modules/enno.d.ts +4 -4
  86. package/dist/dsh/observation-pack/policy.d.ts +28 -0
  87. package/dist/dsh/observation-pack/policy.d.ts.map +1 -0
  88. package/dist/dsh/observation-pack/policy.js +81 -0
  89. package/dist/dsh/observation-pack/policy.js.map +1 -0
  90. package/dist/dsh/observation-pack/service.d.ts +45 -0
  91. package/dist/dsh/observation-pack/service.d.ts.map +1 -0
  92. package/dist/dsh/observation-pack/service.js +151 -0
  93. package/dist/dsh/observation-pack/service.js.map +1 -0
  94. package/dist/dsh/semantic-compaction/contracts.d.ts +4 -2
  95. package/dist/dsh/semantic-compaction/contracts.d.ts.map +1 -1
  96. package/dist/dsh/semantic-compaction/contracts.js +2 -1
  97. package/dist/dsh/semantic-compaction/contracts.js.map +1 -1
  98. package/dist/dsh/semantic-compaction/coordinator.d.ts +8 -1
  99. package/dist/dsh/semantic-compaction/coordinator.d.ts.map +1 -1
  100. package/dist/dsh/semantic-compaction/coordinator.js +117 -15
  101. package/dist/dsh/semantic-compaction/coordinator.js.map +1 -1
  102. package/dist/dsh/semantic-compaction/policy.d.ts +3 -2
  103. package/dist/dsh/semantic-compaction/policy.d.ts.map +1 -1
  104. package/dist/dsh/semantic-compaction/policy.js +6 -6
  105. package/dist/dsh/semantic-compaction/policy.js.map +1 -1
  106. package/dist/dsh/semantic-compaction/progress.d.ts +24 -0
  107. package/dist/dsh/semantic-compaction/progress.d.ts.map +1 -0
  108. package/dist/dsh/semantic-compaction/progress.js +46 -0
  109. package/dist/dsh/semantic-compaction/progress.js.map +1 -0
  110. package/dist/dsh/session-memory-finalizer.d.ts +1 -0
  111. package/dist/dsh/session-memory-finalizer.d.ts.map +1 -1
  112. package/dist/dsh/session-memory-finalizer.js +11 -1
  113. package/dist/dsh/session-memory-finalizer.js.map +1 -1
  114. package/dist/enno-oduno/schemas.d.ts +73 -73
  115. package/dist/enno-oduno/validation-errors.d.ts +2 -2
  116. package/dist/ledger/checkpoint-contract.d.ts +4 -4
  117. package/dist/memory/application.d.ts +4 -4
  118. package/dist/memory/checkpoint-contract.d.ts +12 -12
  119. package/dist/memory/evolution/contracts.d.ts +1 -1
  120. package/dist/memory/reuse.d.ts +1 -1
  121. package/dist/memory/review/contracts.d.ts +1 -1
  122. package/dist/memory/review/evidence.js +1 -1
  123. package/dist/memory/review/evidence.js.map +1 -1
  124. package/dist/model-tools/contracts.d.ts +31 -31
  125. package/docs/Laya-CoreML-ja.md +684 -0
  126. package/docs/dependency-security.md +17 -11
  127. package/docs/laya-coreml-LICENSE.txt +176 -0
  128. package/docs/laya-coreml.md +143 -0
  129. package/docs/memory-reuse.md +7 -0
  130. package/docs/semantic-compaction.md +66 -23
  131. package/docs/typed-decisions.md +31 -3
  132. package/migrations/024_decision_selection.sql +8 -0
  133. package/package.json +9 -5
  134. package/scripts/laya-worker.py +378 -0
  135. package/scripts/smoke-laya-coreml.mjs +53 -0
package/PERMISSIONS.md CHANGED
@@ -208,7 +208,11 @@ installed Skill descriptions, sanitized candidate plan or explicitly selected Li
208
208
  evidence to the configured adapter. TypeSafe uses its fixed HTTPS endpoint and
209
209
  DSH-managed TYPESAFE_API_KEY. Nimble requires an explicit complete HTTPS or loopback
210
210
  HTTP endpoint and model; an optional separate bearer reference is resolved through
211
- DSH. Credentials never enter workers, prompts, logs or Kiokuko SQLite. No redirects,
211
+ DSH. Laya-CoreML uses an explicitly configured owner-access Unix socket (default
212
+ `~/Library/Caches/laya-coreml/worker.sock`) from the host, with bounded strict
213
+ requests, cancellation and a pinned runtime fingerprint. It does not resolve cloud
214
+ credentials or grant socket access to the protected Lisp worker. The optional
215
+ Python worker is installed/restarted explicitly by the user, never by DSH. Credentials never enter workers, prompts, logs or Kiokuko SQLite. No redirects,
212
216
  HTTP retries, provider substitution or runtime/model installation occur. `/kioku-decisions
213
217
  status` reports configuration, limits and the last fallback without a network call.
214
218
  Review fallback sends the full sanitized plan to the exact configured `roles.check`
@@ -231,3 +235,10 @@ eligible old tool results through DSH's append-only history protocol; original l
231
235
  events remain available. They never grant execution authority or change stored Lisp
232
236
  values. Set `semanticCompaction.mode: off` to disable this use independently.
233
237
  See [semantic compaction](docs/semantic-compaction.md) for protection and failure behavior.
238
+
239
+ `/kioku-decisions use jev|laya|nimble` performs a bounded synthetic probe and
240
+ saves the selected configuration in Kiokuko SQLite for the repository and base
241
+ plugin configuration. Laya health discovery reads model identity from the local
242
+ worker. No credential value is stored in this selection. Existing request
243
+ bindings remain immutable; the command does not edit DSH profile files or restart
244
+ DSH or the worker. `use default` restores the plugin configuration.
package/README.ja.md CHANGED
@@ -102,6 +102,41 @@ Lisp を選ぶと、Lisp 用ツールで通常実行します。役小角を使
102
102
  削除・既存ファイルの置換はユーザーの確認後に実行します。
103
103
  [設定、API、停止・復旧方法](docs/lisp.md)を参照してください。
104
104
 
105
+ ## 型付き判定(Jev / Laya / Nimble)
106
+
107
+ Jevが既定です。DSHのコマンド入力欄で切り替えられます。設定編集や再起動は不要です。
108
+
109
+ ```text
110
+ /kioku-decisions use jev
111
+ /kioku-decisions use laya
112
+ /kioku-decisions use nimble
113
+ /kioku-decisions use default
114
+ ```
115
+
116
+ Layaは起動済みの拡張workerからモデル名とfingerprintを自動取得します。JevにはTypeSafeキー、Nimbleには接続先・モデルの事前設定が必要です。probeが成功してから選択をプロジェクト単位で保存し、次のリクエストへ適用します。再起動後も保持し、進行中のリクエストは変更しません。`use default`でプラグイン設定へ戻せます。
117
+
118
+ APIキーは DSH の `~/.dsh/.credentials.yaml`(`DSH_HOME` を設定している場合は `$DSH_HOME/.credentials.yaml`)に書くか、`/kioku-typesafe-key YOUR_KEY` で保存します。既存の項目は残してください。
119
+
120
+ ```yaml
121
+ version: 1
122
+ refs:
123
+ TYPESAFE_API_KEY: YOUR_KEY
124
+ ```
125
+
126
+ YAMLファイルを手動で作る場合は `chmod 600 ~/.dsh/.credentials.yaml` を実行してください(`DSH_HOME` を設定している場合はそのパスを使用)。
127
+
128
+ DSHのコマンド入力欄で利用可能な状態を確認します。
129
+
130
+ ```text
131
+ /kioku-typesafe-key status
132
+ /kioku-decisions probe
133
+ /kioku-decisions status
134
+ ```
135
+
136
+ `probe` は検査用のAPIリクエストを送ります。`status` は送信しません。保存したキーは `/kioku-typesafe-key clear` で削除できます。`/kioku-typesafe-key YOUR_KEY` の入力中はキーが画面に表示されます。詳しくは[型付き判定](docs/typed-decisions.md)と[Lispからの明示的な呼び出し](docs/typesafe.md)を参照してください。
137
+
138
+ Jevが既定です。Nimbleとローカルの[Laya-CoreML](docs/Laya-CoreML-ja.md)も選べます。Layaは`~/Library/Caches/laya-coreml/worker.sock`へ直接接続し、文書に記載した厳密検査対応workerへの更新が必要です。
139
+
105
140
  ## 過去の記憶を意味で選別
106
141
 
107
142
  TypeSafe または Nimble の利用確認が成功すると、既存検索の候補を今回の依頼に使えるか判定します。埋め込みは必須ではありません。`memoryReuse.mode: off` で停止できます。[設定・確認コマンド・評価方法](docs/memory-reuse.md)を参照してください。
@@ -110,4 +145,4 @@ TypeSafe または Nimble の利用確認が成功すると、既存検索の候
110
145
 
111
146
  ### 過去のツール出力の短縮
112
147
 
113
- [Semantic compaction](docs/semantic-compaction.md) は、通常・Enno・Lisp モードで、DSH の自動圧縮前に古いツール出力を選んで短縮します。既定値は `semanticCompaction: { mode: auto, budgetMs: 5000 }` です。利用可能と確認された型付き判定バックエンドと、対応するネイティブサービスが必要です。`/kioku-decisions status` で有効状態と直近の結果を確認できます。
148
+ ObservationPack(既定値 `observationPack: { mode: auto }`)は、大きな正常終了のツール結果をモデルへ2回提示した後、抜粋と `observation_read` で原文を取得できる参照に置き換えます。[Semantic compaction](docs/semantic-compaction.md) は、TODOの完了境界でも前倒し判定を行い、通常・Enno・Lisp モードで、DSH の自動圧縮前に古いツール出力を選んで短縮します。既定値は `semanticCompaction: { mode: auto, preemptive: true, budgetMs: 5000 }` です。利用可能と確認された型付き判定バックエンドと、対応するネイティブサービスが必要です。`/kioku-decisions status` で有効状態と直近の結果を確認できます。
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # Kiokuko(記憶庫) DeepSeek Harness Plugin
3
2
  [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [한국어](README.ko.md)
4
3
 
@@ -104,7 +103,42 @@ if you want Enno. Free text is passed to the AI as a discussion or correction.
104
103
  Deletion and replacement of existing files require human confirmation.
105
104
  See [setup, APIs, limits and recovery](docs/lisp.md).
106
105
 
107
- [Provider-independent typed decisions](docs/typed-decisions.md) route Akinator, installed Skills, Zenki draft review and Lisp through configured TypeSafe or Nimble HTTP adapters.
106
+ ## Typed decisions (Jev / Laya / Nimble)
107
+
108
+ Jev is the default. Switch in DSH's command input without editing configuration or restarting DSH:
109
+
110
+ ```text
111
+ /kioku-decisions use jev
112
+ /kioku-decisions use laya
113
+ /kioku-decisions use nimble
114
+ /kioku-decisions use default
115
+ ```
116
+
117
+ Laya discovers the model and runtime fingerprint from an already running strict worker. Jev needs a TypeSafe key; Nimble needs an endpoint and model configured first. A successful probe saves the selection for this project and applies it to new requests. It survives restarts and preserves in-flight request bindings. `use default` restores the plugin configuration.
118
+
119
+ Set the API key in DSH's `~/.dsh/.credentials.yaml` (`$DSH_HOME/.credentials.yaml` if set), or use `/kioku-typesafe-key YOUR_KEY`. Keep any existing entries:
120
+
121
+ ```yaml
122
+ version: 1
123
+ refs:
124
+ TYPESAFE_API_KEY: YOUR_KEY
125
+ ```
126
+
127
+ If creating the YAML file yourself, run `chmod 600 ~/.dsh/.credentials.yaml` (use `$DSH_HOME` if set).
128
+
129
+ In the DSH command UI, check the key and test the connection:
130
+
131
+ ```text
132
+ /kioku-typesafe-key status
133
+ /kioku-decisions probe
134
+ /kioku-decisions status
135
+ ```
136
+
137
+ `probe` sends a synthetic API request; `status` does not. `/kioku-typesafe-key clear` removes the stored key. Key input is visible when using `/kioku-typesafe-key YOUR_KEY`. See [typed decisions](docs/typed-decisions.md) and the [explicit Lisp API](docs/typesafe.md) for more.
138
+
139
+ Jev remains the default. Nimble and local [Laya-CoreML](docs/laya-coreml.md) are optional alternatives; Laya connects directly to `~/Library/Caches/laya-coreml/worker.sock` and requires the documented strict worker update.
140
+
141
+ ## Semantic memory reuse
108
142
 
109
143
  [Semantic memory reuse](docs/memory-reuse.md) checks existing retrieval candidates
110
144
  against the current request after a synthetic provider probe succeeds. Embeddings
@@ -112,10 +146,6 @@ are optional; `memoryReuse.mode: off` disables this additional selection.
112
146
 
113
147
  [Memory application and verification](docs/memory-application.md) records dispositions and host-observed regression evidence. Check the current native session with `/kioku-memory-application status` or `/kioku-memory-application status --json`.
114
148
 
115
- The compatibility [TypeSafe API](docs/typesafe.md) use `/kioku-typesafe-key` for
116
- DSH-managed credentials and `kioku.typesafe:evaluate` for explicit semantic
117
- questions. Lisp consumes the answers; file-change approval remains required.
118
-
119
149
  ### Semantic compaction
120
150
 
121
- [Semantic compaction](docs/semantic-compaction.md) selectively shortens old tool results before native automatic compaction in normal, Enno and Lisp modes. It defaults to `semanticCompaction: { mode: auto, budgetMs: 5000 }` and requires a ready typed-decision backend and supported native services. Inspect activation and the last outcome with `/kioku-decisions status`.
151
+ ObservationPack (`observationPack: { mode: auto }`) preserves large successful native tool results for two model calls, then replaces them with excerpts and an `observation_read` handle. [Semantic compaction](docs/semantic-compaction.md) evaluates TODO completion boundaries and selectively shortens old tool results before native automatic compaction in normal, Enno and Lisp modes. It defaults to `semanticCompaction: { mode: auto, preemptive: true, budgetMs: 5000 }` and requires a ready typed-decision backend and supported native services. Inspect activation and the last outcome with `/kioku-decisions status`.
@@ -54,3 +54,24 @@ CL-UNICODE's generated tables are produced from its bundled Unicode data by its
54
54
  upstream `cl-unicode/build` system and shipped as source, so plugin users do not
55
55
  need to regenerate them. No SBCL binary, Python runtime, Bubblewrap, VM runtime,
56
56
  or Homebrew bottle is included in the plugin package.
57
+
58
+ # Optional Laya-CoreML worker
59
+
60
+ `scripts/laya-worker.py` implements a strict input checker for Laya-CoreML's
61
+ Apache-2.0 prompt layout. Changes: independent untruncated input construction,
62
+ prepare/collate comparison, bounded Unix framing, runtime fingerprinting and
63
+ strict operations. The inference runtime and model weights are installed
64
+ separately; neither is bundled. [Apache-2.0 license](docs/laya-coreml-LICENSE.txt).
65
+
66
+ - Laya-CoreML: https://github.com/mizorewww/laya-coreml
67
+ Copyright 2026 laya-coreml contributors.
68
+ Referenced revision: `12b7501583c7f03a6b2e49ebe118a2c6302505b9`.
69
+ - Laya: https://github.com/NandhaKishorM/laya
70
+ Copyright Convai Innovations and Laya contributors.
71
+ Upstream revision: `6a5819129eb220570792e417e49723d697efd76f`.
72
+ - Laya-MLX: https://github.com/mizorewww/laya-mlx
73
+ Copyright 2026 laya-mlx contributors. Apache-2.0.
74
+ Adapted revision: `fc1df62828a3fedf4d8229fdac1cbd85f1cdf337`.
75
+
76
+ The model's original checkpoint weights retain their upstream authors' notices.
77
+ This is an independent integration, not an official Convai Innovations or Apple release.
@@ -32,10 +32,10 @@ export declare const ProfileEvidenceSchema: z.ZodObject<{
32
32
  export type ProfileEvidenceRef = z.infer<typeof ProfileEvidenceSchema>;
33
33
  export declare const FieldResolutionSchema: z.ZodObject<{
34
34
  field: z.ZodEnum<{
35
+ target: "target";
36
+ taskType: "taskType";
35
37
  expected: "expected";
36
38
  constraints: "constraints";
37
- taskType: "taskType";
38
- target: "target";
39
39
  }>;
40
40
  decision: z.ZodEnum<{
41
41
  suggest: "suggest";
@@ -73,9 +73,9 @@ export declare const MemoryProbeResultSchema: z.ZodObject<{
73
73
  resolve: "resolve";
74
74
  }>;
75
75
  status: z.ZodEnum<{
76
- skipped: "skipped";
77
- unavailable: "unavailable";
78
76
  complete: "complete";
77
+ unavailable: "unavailable";
78
+ skipped: "skipped";
79
79
  incomplete: "incomplete";
80
80
  }>;
81
81
  coverage: z.ZodEnum<{
@@ -84,10 +84,10 @@ export declare const MemoryProbeResultSchema: z.ZodObject<{
84
84
  }>;
85
85
  resolutions: z.ZodArray<z.ZodObject<{
86
86
  field: z.ZodEnum<{
87
+ target: "target";
88
+ taskType: "taskType";
87
89
  expected: "expected";
88
90
  constraints: "constraints";
89
- taskType: "taskType";
90
- target: "target";
91
91
  }>;
92
92
  decision: z.ZodEnum<{
93
93
  suggest: "suggest";
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ContinuityConfig: z.ZodObject<{
3
3
  mode: z.ZodDefault<z.ZodEnum<{
4
- off: "off";
5
4
  active: "active";
5
+ off: "off";
6
6
  shadow: "shadow";
7
7
  }>>;
8
8
  maxSupplementBytes: z.ZodDefault<z.ZodNumber>;
@@ -24,6 +24,7 @@ export type DeepBudget = z.infer<typeof DeepBudgetSchema>;
24
24
  export declare const DeepRouteSchema: z.ZodObject<{
25
25
  provider: z.ZodString;
26
26
  family: z.ZodEnum<{
27
+ other: "other";
27
28
  openai: "openai";
28
29
  deepseek: "deepseek";
29
30
  "opencode-go": "opencode-go";
@@ -31,12 +32,11 @@ export declare const DeepRouteSchema: z.ZodObject<{
31
32
  openrouter: "openrouter";
32
33
  orcarouter: "orcarouter";
33
34
  ollama: "ollama";
34
- other: "other";
35
35
  }>;
36
36
  connection: z.ZodEnum<{
37
+ local: "local";
37
38
  api: "api";
38
39
  codex: "codex";
39
- local: "local";
40
40
  }>;
41
41
  protocol: z.ZodEnum<{
42
42
  unknown: "unknown";
@@ -93,6 +93,7 @@ export declare const DeepConfigurationSchema: z.ZodObject<{
93
93
  routeBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
94
  provider: z.ZodString;
95
95
  family: z.ZodEnum<{
96
+ other: "other";
96
97
  openai: "openai";
97
98
  deepseek: "deepseek";
98
99
  "opencode-go": "opencode-go";
@@ -100,12 +101,11 @@ export declare const DeepConfigurationSchema: z.ZodObject<{
100
101
  openrouter: "openrouter";
101
102
  orcarouter: "orcarouter";
102
103
  ollama: "ollama";
103
- other: "other";
104
104
  }>;
105
105
  connection: z.ZodEnum<{
106
+ local: "local";
106
107
  api: "api";
107
108
  codex: "codex";
108
- local: "local";
109
109
  }>;
110
110
  protocol: z.ZodEnum<{
111
111
  unknown: "unknown";
@@ -348,10 +348,10 @@ export declare const QualityReviewSchema: z.ZodObject<{
348
348
  kind: z.ZodLiteral<"quality-review">;
349
349
  action: z.ZodEnum<{
350
350
  unresolved: "unresolved";
351
+ replan: "replan";
351
352
  select: "select";
352
353
  repair: "repair";
353
354
  synthesize: "synthesize";
354
- replan: "replan";
355
355
  }>;
356
356
  selectedCandidateId: z.ZodNullable<z.ZodString>;
357
357
  requirementIds: z.ZodArray<z.ZodString>;
@@ -365,8 +365,8 @@ export declare const QualityReviewSchema: z.ZodObject<{
365
365
  checkId: z.ZodString;
366
366
  verdict: z.ZodEnum<{
367
367
  unresolved: "unresolved";
368
- supported: "supported";
369
368
  contradicted: "contradicted";
369
+ supported: "supported";
370
370
  }>;
371
371
  reason: z.ZodString;
372
372
  evidence: z.ZodArray<z.ZodObject<{
@@ -378,8 +378,8 @@ export declare const QualityReviewSchema: z.ZodObject<{
378
378
  checkId: z.ZodString;
379
379
  kind: z.ZodEnum<{
380
380
  unknown: "unknown";
381
- agreement: "agreement";
382
381
  contradiction: "contradiction";
382
+ agreement: "agreement";
383
383
  complementary: "complementary";
384
384
  }>;
385
385
  reason: z.ZodString;
@@ -402,9 +402,9 @@ export declare const QualityReviewSchema: z.ZodObject<{
402
402
  }, z.core.$strict>>;
403
403
  }, z.core.$strict>;
404
404
  export declare const QualityPhaseSchema: z.ZodEnum<{
405
+ plan: "plan";
405
406
  repair: "repair";
406
407
  synthesize: "synthesize";
407
- plan: "plan";
408
408
  "plan-review": "plan-review";
409
409
  "draft-a": "draft-a";
410
410
  "draft-b": "draft-b";
@@ -414,9 +414,9 @@ export declare const QualityPhaseSchema: z.ZodEnum<{
414
414
  }>;
415
415
  export declare const QualityNodeSchema: z.ZodObject<{
416
416
  phase: z.ZodEnum<{
417
+ plan: "plan";
417
418
  repair: "repair";
418
419
  synthesize: "synthesize";
419
- plan: "plan";
420
420
  "plan-review": "plan-review";
421
421
  "draft-a": "draft-a";
422
422
  "draft-b": "draft-b";
@@ -501,10 +501,10 @@ export declare const QualityNodeSchema: z.ZodObject<{
501
501
  kind: z.ZodLiteral<"quality-review">;
502
502
  action: z.ZodEnum<{
503
503
  unresolved: "unresolved";
504
+ replan: "replan";
504
505
  select: "select";
505
506
  repair: "repair";
506
507
  synthesize: "synthesize";
507
- replan: "replan";
508
508
  }>;
509
509
  selectedCandidateId: z.ZodNullable<z.ZodString>;
510
510
  requirementIds: z.ZodArray<z.ZodString>;
@@ -518,8 +518,8 @@ export declare const QualityNodeSchema: z.ZodObject<{
518
518
  checkId: z.ZodString;
519
519
  verdict: z.ZodEnum<{
520
520
  unresolved: "unresolved";
521
- supported: "supported";
522
521
  contradicted: "contradicted";
522
+ supported: "supported";
523
523
  }>;
524
524
  reason: z.ZodString;
525
525
  evidence: z.ZodArray<z.ZodObject<{
@@ -531,8 +531,8 @@ export declare const QualityNodeSchema: z.ZodObject<{
531
531
  checkId: z.ZodString;
532
532
  kind: z.ZodEnum<{
533
533
  unknown: "unknown";
534
- agreement: "agreement";
535
534
  contradiction: "contradiction";
535
+ agreement: "agreement";
536
536
  complementary: "complementary";
537
537
  }>;
538
538
  reason: z.ZodString;
@@ -561,9 +561,9 @@ export type QualityReply = z.infer<typeof QualityPlanSchema> | z.infer<typeof Qu
561
561
  export declare const QualityJobSchema: z.ZodObject<{
562
562
  protocolVersion: z.ZodLiteral<2>;
563
563
  phase: z.ZodEnum<{
564
+ plan: "plan";
564
565
  repair: "repair";
565
566
  synthesize: "synthesize";
566
- plan: "plan";
567
567
  "plan-review": "plan-review";
568
568
  "draft-a": "draft-a";
569
569
  "draft-b": "draft-b";
@@ -594,8 +594,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
594
594
  replans: z.ZodNumber;
595
595
  status: z.ZodEnum<{
596
596
  superseded: "superseded";
597
- ready: "ready";
598
597
  unresolved: "unresolved";
598
+ ready: "ready";
599
599
  accepted: "accepted";
600
600
  planning: "planning";
601
601
  "verifying-plan": "verifying-plan";
@@ -635,9 +635,9 @@ export declare const GoalNodeSchema: z.ZodObject<{
635
635
  reason: z.ZodString;
636
636
  quality: z.ZodOptional<z.ZodObject<{
637
637
  phase: z.ZodEnum<{
638
+ plan: "plan";
638
639
  repair: "repair";
639
640
  synthesize: "synthesize";
640
- plan: "plan";
641
641
  "plan-review": "plan-review";
642
642
  "draft-a": "draft-a";
643
643
  "draft-b": "draft-b";
@@ -722,10 +722,10 @@ export declare const GoalNodeSchema: z.ZodObject<{
722
722
  kind: z.ZodLiteral<"quality-review">;
723
723
  action: z.ZodEnum<{
724
724
  unresolved: "unresolved";
725
+ replan: "replan";
725
726
  select: "select";
726
727
  repair: "repair";
727
728
  synthesize: "synthesize";
728
- replan: "replan";
729
729
  }>;
730
730
  selectedCandidateId: z.ZodNullable<z.ZodString>;
731
731
  requirementIds: z.ZodArray<z.ZodString>;
@@ -739,8 +739,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
739
739
  checkId: z.ZodString;
740
740
  verdict: z.ZodEnum<{
741
741
  unresolved: "unresolved";
742
- supported: "supported";
743
742
  contradicted: "contradicted";
743
+ supported: "supported";
744
744
  }>;
745
745
  reason: z.ZodString;
746
746
  evidence: z.ZodArray<z.ZodObject<{
@@ -752,8 +752,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
752
752
  checkId: z.ZodString;
753
753
  kind: z.ZodEnum<{
754
754
  unknown: "unknown";
755
- agreement: "agreement";
756
755
  contradiction: "contradiction";
756
+ agreement: "agreement";
757
757
  complementary: "complementary";
758
758
  }>;
759
759
  reason: z.ZodString;
@@ -808,10 +808,10 @@ export declare const GoalNodeSchema: z.ZodObject<{
808
808
  kind: z.ZodLiteral<"quality-review">;
809
809
  action: z.ZodEnum<{
810
810
  unresolved: "unresolved";
811
+ replan: "replan";
811
812
  select: "select";
812
813
  repair: "repair";
813
814
  synthesize: "synthesize";
814
- replan: "replan";
815
815
  }>;
816
816
  selectedCandidateId: z.ZodNullable<z.ZodString>;
817
817
  requirementIds: z.ZodArray<z.ZodString>;
@@ -825,8 +825,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
825
825
  checkId: z.ZodString;
826
826
  verdict: z.ZodEnum<{
827
827
  unresolved: "unresolved";
828
- supported: "supported";
829
828
  contradicted: "contradicted";
829
+ supported: "supported";
830
830
  }>;
831
831
  reason: z.ZodString;
832
832
  evidence: z.ZodArray<z.ZodObject<{
@@ -838,8 +838,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
838
838
  checkId: z.ZodString;
839
839
  kind: z.ZodEnum<{
840
840
  unknown: "unknown";
841
- agreement: "agreement";
842
841
  contradiction: "contradiction";
842
+ agreement: "agreement";
843
843
  complementary: "complementary";
844
844
  }>;
845
845
  reason: z.ZodString;
@@ -877,13 +877,13 @@ export declare const DeepStateSchema: z.ZodObject<{
877
877
  ownerId: z.ZodNullable<z.ZodString>;
878
878
  leaseUntil: z.ZodNumber;
879
879
  phase: z.ZodEnum<{
880
- cancelled: "cancelled";
881
- ready: "ready";
882
880
  failed: "failed";
881
+ cancelled: "cancelled";
883
882
  blocked: "blocked";
884
883
  answered: "answered";
885
- running: "running";
884
+ ready: "ready";
886
885
  partial: "partial";
886
+ running: "running";
887
887
  paused: "paused";
888
888
  }>;
889
889
  task: z.ZodString;
@@ -938,6 +938,7 @@ export declare const DeepStateSchema: z.ZodObject<{
938
938
  routeBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
939
939
  provider: z.ZodString;
940
940
  family: z.ZodEnum<{
941
+ other: "other";
941
942
  openai: "openai";
942
943
  deepseek: "deepseek";
943
944
  "opencode-go": "opencode-go";
@@ -945,12 +946,11 @@ export declare const DeepStateSchema: z.ZodObject<{
945
946
  openrouter: "openrouter";
946
947
  orcarouter: "orcarouter";
947
948
  ollama: "ollama";
948
- other: "other";
949
949
  }>;
950
950
  connection: z.ZodEnum<{
951
+ local: "local";
951
952
  api: "api";
952
953
  codex: "codex";
953
- local: "local";
954
954
  }>;
955
955
  protocol: z.ZodEnum<{
956
956
  unknown: "unknown";
@@ -982,8 +982,8 @@ export declare const DeepStateSchema: z.ZodObject<{
982
982
  replans: z.ZodNumber;
983
983
  status: z.ZodEnum<{
984
984
  superseded: "superseded";
985
- ready: "ready";
986
985
  unresolved: "unresolved";
986
+ ready: "ready";
987
987
  accepted: "accepted";
988
988
  planning: "planning";
989
989
  "verifying-plan": "verifying-plan";
@@ -1023,9 +1023,9 @@ export declare const DeepStateSchema: z.ZodObject<{
1023
1023
  reason: z.ZodString;
1024
1024
  quality: z.ZodOptional<z.ZodObject<{
1025
1025
  phase: z.ZodEnum<{
1026
+ plan: "plan";
1026
1027
  repair: "repair";
1027
1028
  synthesize: "synthesize";
1028
- plan: "plan";
1029
1029
  "plan-review": "plan-review";
1030
1030
  "draft-a": "draft-a";
1031
1031
  "draft-b": "draft-b";
@@ -1110,10 +1110,10 @@ export declare const DeepStateSchema: z.ZodObject<{
1110
1110
  kind: z.ZodLiteral<"quality-review">;
1111
1111
  action: z.ZodEnum<{
1112
1112
  unresolved: "unresolved";
1113
+ replan: "replan";
1113
1114
  select: "select";
1114
1115
  repair: "repair";
1115
1116
  synthesize: "synthesize";
1116
- replan: "replan";
1117
1117
  }>;
1118
1118
  selectedCandidateId: z.ZodNullable<z.ZodString>;
1119
1119
  requirementIds: z.ZodArray<z.ZodString>;
@@ -1127,8 +1127,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1127
1127
  checkId: z.ZodString;
1128
1128
  verdict: z.ZodEnum<{
1129
1129
  unresolved: "unresolved";
1130
- supported: "supported";
1131
1130
  contradicted: "contradicted";
1131
+ supported: "supported";
1132
1132
  }>;
1133
1133
  reason: z.ZodString;
1134
1134
  evidence: z.ZodArray<z.ZodObject<{
@@ -1140,8 +1140,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1140
1140
  checkId: z.ZodString;
1141
1141
  kind: z.ZodEnum<{
1142
1142
  unknown: "unknown";
1143
- agreement: "agreement";
1144
1143
  contradiction: "contradiction";
1144
+ agreement: "agreement";
1145
1145
  complementary: "complementary";
1146
1146
  }>;
1147
1147
  reason: z.ZodString;
@@ -1196,10 +1196,10 @@ export declare const DeepStateSchema: z.ZodObject<{
1196
1196
  kind: z.ZodLiteral<"quality-review">;
1197
1197
  action: z.ZodEnum<{
1198
1198
  unresolved: "unresolved";
1199
+ replan: "replan";
1199
1200
  select: "select";
1200
1201
  repair: "repair";
1201
1202
  synthesize: "synthesize";
1202
- replan: "replan";
1203
1203
  }>;
1204
1204
  selectedCandidateId: z.ZodNullable<z.ZodString>;
1205
1205
  requirementIds: z.ZodArray<z.ZodString>;
@@ -1213,8 +1213,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1213
1213
  checkId: z.ZodString;
1214
1214
  verdict: z.ZodEnum<{
1215
1215
  unresolved: "unresolved";
1216
- supported: "supported";
1217
1216
  contradicted: "contradicted";
1217
+ supported: "supported";
1218
1218
  }>;
1219
1219
  reason: z.ZodString;
1220
1220
  evidence: z.ZodArray<z.ZodObject<{
@@ -1226,8 +1226,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1226
1226
  checkId: z.ZodString;
1227
1227
  kind: z.ZodEnum<{
1228
1228
  unknown: "unknown";
1229
- agreement: "agreement";
1230
1229
  contradiction: "contradiction";
1230
+ agreement: "agreement";
1231
1231
  complementary: "complementary";
1232
1232
  }>;
1233
1233
  reason: z.ZodString;