@scotthuang/agent-knock-knock 0.13.2 → 0.13.4

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 (278) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +27 -6
  3. package/dist/src/callback-outbox-policy.js +27 -6
  4. package/dist/src/callback-outbox-policy.js.map +1 -1
  5. package/dist/src/callback-outbox-service.d.ts +4 -30
  6. package/dist/src/callback-outbox-service.js +21 -154
  7. package/dist/src/callback-outbox-service.js.map +1 -1
  8. package/dist/src/callback-outbox-settlement.js +13 -8
  9. package/dist/src/callback-outbox-settlement.js.map +1 -1
  10. package/dist/src/callback-route-service.d.ts +46 -0
  11. package/dist/src/callback-route-service.js +155 -0
  12. package/dist/src/callback-route-service.js.map +1 -0
  13. package/dist/src/claude-terminal-agent-adapter.js +4 -0
  14. package/dist/src/claude-terminal-agent-adapter.js.map +1 -1
  15. package/dist/src/cli-core.js +9 -1
  16. package/dist/src/cli-core.js.map +1 -1
  17. package/dist/src/codex-process-incarnation.d.ts +8 -0
  18. package/dist/src/codex-process-incarnation.js +36 -0
  19. package/dist/src/codex-process-incarnation.js.map +1 -0
  20. package/dist/src/codex-terminal-agent-adapter.js +4 -0
  21. package/dist/src/codex-terminal-agent-adapter.js.map +1 -1
  22. package/dist/src/deferred-foreground-conflict-policy.d.ts +22 -0
  23. package/dist/src/deferred-foreground-conflict-policy.js +52 -0
  24. package/dist/src/deferred-foreground-conflict-policy.js.map +1 -0
  25. package/dist/src/durable-notification-kernel.d.ts +94 -0
  26. package/dist/src/durable-notification-kernel.js +68 -0
  27. package/dist/src/durable-notification-kernel.js.map +1 -0
  28. package/dist/src/herdr-socket-transport.d.ts +43 -0
  29. package/dist/src/herdr-socket-transport.js +170 -0
  30. package/dist/src/herdr-socket-transport.js.map +1 -0
  31. package/dist/src/herdr-terminal-control-provider.d.ts +2 -45
  32. package/dist/src/herdr-terminal-control-provider.js +8 -173
  33. package/dist/src/herdr-terminal-control-provider.js.map +1 -1
  34. package/dist/src/host-adapter-capabilities.d.ts +35 -0
  35. package/dist/src/host-adapter-capabilities.js +146 -0
  36. package/dist/src/host-adapter-capabilities.js.map +1 -0
  37. package/dist/src/host-adapter.d.ts +9 -3
  38. package/dist/src/host-adapter.js +33 -9
  39. package/dist/src/host-adapter.js.map +1 -1
  40. package/dist/src/host-bridge-tools.d.ts +3 -4
  41. package/dist/src/host-bridge-tools.js +49 -92
  42. package/dist/src/host-bridge-tools.js.map +1 -1
  43. package/dist/src/host-bridge.js +5 -5
  44. package/dist/src/host-bridge.js.map +1 -1
  45. package/dist/src/host-monitor-reconciliation.d.ts +6 -0
  46. package/dist/src/host-monitor-reconciliation.js +96 -0
  47. package/dist/src/host-monitor-reconciliation.js.map +1 -0
  48. package/dist/src/managed-session.js +2 -18
  49. package/dist/src/managed-session.js.map +1 -1
  50. package/dist/src/native-thread-lifecycle-cli-adapter.d.ts +13 -0
  51. package/dist/src/native-thread-lifecycle-cli-adapter.js +635 -3
  52. package/dist/src/native-thread-lifecycle-cli-adapter.js.map +1 -1
  53. package/dist/src/openclaw-list-projection.d.ts +2 -0
  54. package/dist/src/openclaw-list-projection.js +3 -0
  55. package/dist/src/openclaw-list-projection.js.map +1 -0
  56. package/dist/src/openclaw-model-facing-field-policy.d.ts +2 -0
  57. package/dist/src/openclaw-model-facing-field-policy.js +3 -0
  58. package/dist/src/openclaw-model-facing-field-policy.js.map +1 -0
  59. package/dist/src/openclaw-plugin-command-adapter.d.ts +6 -29
  60. package/dist/src/openclaw-plugin-command-adapter.js +7 -2370
  61. package/dist/src/openclaw-plugin-command-adapter.js.map +1 -1
  62. package/dist/src/openclaw-plugin-helpers.d.ts +2 -121
  63. package/dist/src/openclaw-plugin-helpers.js +2 -1164
  64. package/dist/src/openclaw-plugin-helpers.js.map +1 -1
  65. package/dist/src/openclaw-plugin-schemas.d.ts +2 -510
  66. package/dist/src/openclaw-plugin-schemas.js +2 -519
  67. package/dist/src/openclaw-plugin-schemas.js.map +1 -1
  68. package/dist/src/openclaw-plugin-supervisor.d.ts +4 -5
  69. package/dist/src/openclaw-plugin-supervisor.js +5 -94
  70. package/dist/src/openclaw-plugin-supervisor.js.map +1 -1
  71. package/dist/src/openclaw-plugin-value-helpers.d.ts +2 -0
  72. package/dist/src/openclaw-plugin-value-helpers.js +3 -0
  73. package/dist/src/openclaw-plugin-value-helpers.js.map +1 -0
  74. package/dist/src/openclaw-private-authority-offers.d.ts +4 -39
  75. package/dist/src/openclaw-private-authority-offers.js +3 -258
  76. package/dist/src/openclaw-private-authority-offers.js.map +1 -1
  77. package/dist/src/semantic-private-authority-offers.d.ts +41 -0
  78. package/dist/src/semantic-private-authority-offers.js +261 -0
  79. package/dist/src/semantic-private-authority-offers.js.map +1 -0
  80. package/dist/src/semantic-tool-arguments.d.ts +9 -0
  81. package/dist/src/semantic-tool-arguments.js +64 -0
  82. package/dist/src/semantic-tool-arguments.js.map +1 -0
  83. package/dist/src/semantic-tool-catalog.d.ts +48 -0
  84. package/dist/src/semantic-tool-catalog.js +105 -0
  85. package/dist/src/semantic-tool-catalog.js.map +1 -0
  86. package/dist/src/semantic-tool-command-helpers.d.ts +145 -0
  87. package/dist/src/semantic-tool-command-helpers.js +1272 -0
  88. package/dist/src/semantic-tool-command-helpers.js.map +1 -0
  89. package/dist/src/semantic-tool-list-projection.d.ts +10 -0
  90. package/dist/src/semantic-tool-list-projection.js +497 -0
  91. package/dist/src/semantic-tool-list-projection.js.map +1 -0
  92. package/dist/src/semantic-tool-model-facing-field-policy.d.ts +3 -0
  93. package/dist/src/semantic-tool-model-facing-field-policy.js +66 -0
  94. package/dist/src/semantic-tool-model-facing-field-policy.js.map +1 -0
  95. package/dist/src/semantic-tool-presentation.d.ts +37 -0
  96. package/dist/src/semantic-tool-presentation.js +680 -0
  97. package/dist/src/semantic-tool-presentation.js.map +1 -0
  98. package/dist/src/semantic-tool-private-authority.d.ts +39 -0
  99. package/dist/src/semantic-tool-private-authority.js +602 -0
  100. package/dist/src/semantic-tool-private-authority.js.map +1 -0
  101. package/dist/src/semantic-tool-relay.d.ts +16 -0
  102. package/dist/src/semantic-tool-relay.js +175 -0
  103. package/dist/src/semantic-tool-relay.js.map +1 -0
  104. package/dist/src/semantic-tool-runtime.d.ts +10 -0
  105. package/dist/src/semantic-tool-runtime.js +1157 -0
  106. package/dist/src/semantic-tool-runtime.js.map +1 -0
  107. package/dist/src/semantic-tool-schemas.d.ts +563 -0
  108. package/dist/src/semantic-tool-schemas.js +573 -0
  109. package/dist/src/semantic-tool-schemas.js.map +1 -0
  110. package/dist/src/semantic-tool-value-helpers.d.ts +5 -0
  111. package/dist/src/semantic-tool-value-helpers.js +27 -0
  112. package/dist/src/semantic-tool-value-helpers.js.map +1 -0
  113. package/dist/src/store-event-presentation.d.ts +17 -0
  114. package/dist/src/store-event-presentation.js +33 -0
  115. package/dist/src/store-event-presentation.js.map +1 -0
  116. package/dist/src/store.d.ts +3 -16
  117. package/dist/src/store.js +2 -30
  118. package/dist/src/store.js.map +1 -1
  119. package/dist/src/terminal-action-projection.d.ts +3 -17
  120. package/dist/src/terminal-action-projection.js +13 -41
  121. package/dist/src/terminal-action-projection.js.map +1 -1
  122. package/dist/src/terminal-agent-adapter.d.ts +7 -0
  123. package/dist/src/terminal-agent-adapter.js +8 -0
  124. package/dist/src/terminal-agent-adapter.js.map +1 -1
  125. package/dist/src/terminal-agent-bridge.d.ts +35 -332
  126. package/dist/src/terminal-agent-bridge.js +293 -2798
  127. package/dist/src/terminal-agent-bridge.js.map +1 -1
  128. package/dist/src/terminal-approval-cli-adapter.d.ts +17 -0
  129. package/dist/src/terminal-approval-cli-adapter.js +921 -0
  130. package/dist/src/terminal-approval-cli-adapter.js.map +1 -0
  131. package/dist/src/terminal-command-cli-adapter.d.ts +2 -429
  132. package/dist/src/terminal-command-cli-adapter.js +344 -6061
  133. package/dist/src/terminal-command-cli-adapter.js.map +1 -1
  134. package/dist/src/terminal-command-cli-ports.d.ts +443 -0
  135. package/dist/src/terminal-command-cli-ports.js +2 -0
  136. package/dist/src/terminal-command-cli-ports.js.map +1 -0
  137. package/dist/src/terminal-command-dispatch-preparation.d.ts +81 -0
  138. package/dist/src/terminal-command-dispatch-preparation.js +209 -0
  139. package/dist/src/terminal-command-dispatch-preparation.js.map +1 -0
  140. package/dist/src/terminal-command-dispatch-transport.d.ts +35 -0
  141. package/dist/src/terminal-command-dispatch-transport.js +859 -0
  142. package/dist/src/terminal-command-dispatch-transport.js.map +1 -0
  143. package/dist/src/terminal-command-foreground-proof.d.ts +32 -0
  144. package/dist/src/terminal-command-foreground-proof.js +72 -0
  145. package/dist/src/terminal-command-foreground-proof.js.map +1 -0
  146. package/dist/src/terminal-command-send-preflight.d.ts +41 -0
  147. package/dist/src/terminal-command-send-preflight.js +86 -0
  148. package/dist/src/terminal-command-send-preflight.js.map +1 -0
  149. package/dist/src/terminal-composer-classifier.d.ts +55 -0
  150. package/dist/src/terminal-composer-classifier.js +638 -0
  151. package/dist/src/terminal-composer-classifier.js.map +1 -0
  152. package/dist/src/terminal-control-ref.d.ts +23 -0
  153. package/dist/src/terminal-control-ref.js +32 -0
  154. package/dist/src/terminal-control-ref.js.map +1 -1
  155. package/dist/src/terminal-dispatch-recovery-authority.d.ts +56 -0
  156. package/dist/src/terminal-dispatch-recovery-authority.js +251 -0
  157. package/dist/src/terminal-dispatch-recovery-authority.js.map +1 -0
  158. package/dist/src/terminal-dispatch-recovery-cli-adapter.d.ts +1 -9
  159. package/dist/src/terminal-dispatch-recovery-cli-adapter.js +5 -240
  160. package/dist/src/terminal-dispatch-recovery-cli-adapter.js.map +1 -1
  161. package/dist/src/terminal-handoff-cli-adapter.d.ts +1 -11
  162. package/dist/src/terminal-handoff-cli-adapter.js +2 -39
  163. package/dist/src/terminal-handoff-cli-adapter.js.map +1 -1
  164. package/dist/src/terminal-human-explicit-send-cli-adapter.d.ts +25 -0
  165. package/dist/src/terminal-human-explicit-send-cli-adapter.js +903 -0
  166. package/dist/src/terminal-human-explicit-send-cli-adapter.js.map +1 -0
  167. package/dist/src/terminal-identity-authority-cli-adapter.d.ts +1 -6
  168. package/dist/src/terminal-identity-authority-cli-adapter.js +3 -33
  169. package/dist/src/terminal-identity-authority-cli-adapter.js.map +1 -1
  170. package/dist/src/terminal-interaction-cli-adapter.js +209 -210
  171. package/dist/src/terminal-interaction-cli-adapter.js.map +1 -1
  172. package/dist/src/terminal-interaction-core.d.ts +0 -2
  173. package/dist/src/terminal-interaction-core.js +4 -3
  174. package/dist/src/terminal-interaction-core.js.map +1 -1
  175. package/dist/src/terminal-interaction-protocol.d.ts +21 -0
  176. package/dist/src/terminal-interaction-protocol.js +74 -0
  177. package/dist/src/terminal-interaction-protocol.js.map +1 -1
  178. package/dist/src/terminal-interaction-response-bridge.d.ts +126 -0
  179. package/dist/src/terminal-interaction-response-bridge.js +579 -0
  180. package/dist/src/terminal-interaction-response-bridge.js.map +1 -0
  181. package/dist/src/terminal-interaction-response-transaction.d.ts +44 -0
  182. package/dist/src/terminal-interaction-response-transaction.js +56 -0
  183. package/dist/src/terminal-interaction-response-transaction.js.map +1 -0
  184. package/dist/src/terminal-list-action-policy.d.ts +43 -0
  185. package/dist/src/terminal-list-action-policy.js +164 -0
  186. package/dist/src/terminal-list-action-policy.js.map +1 -0
  187. package/dist/src/terminal-list-cli-adapter.d.ts +6 -36
  188. package/dist/src/terminal-list-cli-adapter.js +314 -1711
  189. package/dist/src/terminal-list-cli-adapter.js.map +1 -1
  190. package/dist/src/terminal-list-facts.d.ts +129 -0
  191. package/dist/src/terminal-list-facts.js +179 -0
  192. package/dist/src/terminal-list-facts.js.map +1 -0
  193. package/dist/src/terminal-list-inventory.d.ts +59 -0
  194. package/dist/src/terminal-list-inventory.js +194 -0
  195. package/dist/src/terminal-list-inventory.js.map +1 -0
  196. package/dist/src/terminal-list-ownership-service.d.ts +118 -0
  197. package/dist/src/terminal-list-ownership-service.js +1003 -0
  198. package/dist/src/terminal-list-ownership-service.js.map +1 -0
  199. package/dist/src/terminal-list-projection-service.d.ts +49 -0
  200. package/dist/src/terminal-list-projection-service.js +407 -0
  201. package/dist/src/terminal-list-projection-service.js.map +1 -0
  202. package/dist/src/terminal-list-renderer.d.ts +12 -11
  203. package/dist/src/terminal-list-renderer.js +237 -104
  204. package/dist/src/terminal-list-renderer.js.map +1 -1
  205. package/dist/src/terminal-managed-send-cli-adapter.d.ts +33 -0
  206. package/dist/src/terminal-managed-send-cli-adapter.js +994 -0
  207. package/dist/src/terminal-managed-send-cli-adapter.js.map +1 -0
  208. package/dist/src/terminal-managed-turn-list-action-policy.d.ts +47 -0
  209. package/dist/src/terminal-managed-turn-list-action-policy.js +64 -0
  210. package/dist/src/terminal-managed-turn-list-action-policy.js.map +1 -0
  211. package/dist/src/terminal-model-control-action-policy.d.ts +60 -0
  212. package/dist/src/terminal-model-control-action-policy.js +96 -0
  213. package/dist/src/terminal-model-control-action-policy.js.map +1 -0
  214. package/dist/src/terminal-model-control-availability.d.ts +68 -0
  215. package/dist/src/terminal-model-control-availability.js +157 -0
  216. package/dist/src/terminal-model-control-availability.js.map +1 -0
  217. package/dist/src/terminal-model-control-bridge.d.ts +48 -0
  218. package/dist/src/terminal-model-control-bridge.js +259 -0
  219. package/dist/src/terminal-model-control-bridge.js.map +1 -0
  220. package/dist/src/terminal-model-control-profile.d.ts +55 -0
  221. package/dist/src/terminal-model-control-profile.js +137 -0
  222. package/dist/src/terminal-model-control-profile.js.map +1 -0
  223. package/dist/src/terminal-model-control-subject.d.ts +34 -0
  224. package/dist/src/terminal-model-control-subject.js +58 -0
  225. package/dist/src/terminal-model-control-subject.js.map +1 -0
  226. package/dist/src/terminal-model-control-transaction.d.ts +19 -0
  227. package/dist/src/terminal-model-control-transaction.js +39 -0
  228. package/dist/src/terminal-model-control-transaction.js.map +1 -0
  229. package/dist/src/terminal-model-control.d.ts +331 -0
  230. package/dist/src/terminal-model-control.js +1686 -0
  231. package/dist/src/terminal-model-control.js.map +1 -0
  232. package/dist/src/terminal-monitor-application-service.js +50 -17
  233. package/dist/src/terminal-monitor-application-service.js.map +1 -1
  234. package/dist/src/terminal-native-inspection-bridge.d.ts +211 -0
  235. package/dist/src/terminal-native-inspection-bridge.js +1127 -0
  236. package/dist/src/terminal-native-inspection-bridge.js.map +1 -0
  237. package/dist/src/terminal-runtime-cli-adapter.d.ts +2 -0
  238. package/dist/src/terminal-runtime-cli-adapter.js +59 -17
  239. package/dist/src/terminal-runtime-cli-adapter.js.map +1 -1
  240. package/dist/src/terminal-submission-retry-application.d.ts +24 -0
  241. package/dist/src/terminal-submission-retry-application.js +402 -0
  242. package/dist/src/terminal-submission-retry-application.js.map +1 -0
  243. package/dist/src/terminal-submission-retry-ports.d.ts +30 -0
  244. package/dist/src/terminal-submission-retry-ports.js +2 -0
  245. package/dist/src/terminal-submission-retry-ports.js.map +1 -0
  246. package/dist/src/terminal-submission-retry-reconciliation.d.ts +236 -0
  247. package/dist/src/terminal-submission-retry-reconciliation.js +1130 -0
  248. package/dist/src/terminal-submission-retry-reconciliation.js.map +1 -0
  249. package/dist/src/terminal-submission-retry-transport.d.ts +58 -0
  250. package/dist/src/terminal-submission-retry-transport.js +675 -0
  251. package/dist/src/terminal-submission-retry-transport.js.map +1 -0
  252. package/dist/src/terminal-text-submission-bridge.d.ts +200 -0
  253. package/dist/src/terminal-text-submission-bridge.js +632 -0
  254. package/dist/src/terminal-text-submission-bridge.js.map +1 -0
  255. package/dist/src/terminal-user-explicit-send-policy.d.ts +29 -0
  256. package/dist/src/terminal-user-explicit-send-policy.js +46 -0
  257. package/dist/src/terminal-user-explicit-send-policy.js.map +1 -0
  258. package/dist/src/terminal-watch-cli-adapter.js +91 -143
  259. package/dist/src/terminal-watch-cli-adapter.js.map +1 -1
  260. package/dist/src/terminal-watch-codec.d.ts +9 -0
  261. package/dist/src/terminal-watch-codec.js +1051 -0
  262. package/dist/src/terminal-watch-codec.js.map +1 -0
  263. package/dist/src/terminal-watch-interaction-response-store.d.ts +19 -0
  264. package/dist/src/terminal-watch-interaction-response-store.js +87 -0
  265. package/dist/src/terminal-watch-interaction-response-store.js.map +1 -0
  266. package/dist/src/terminal-watch-record.d.ts +319 -0
  267. package/dist/src/terminal-watch-record.js +742 -0
  268. package/dist/src/terminal-watch-record.js.map +1 -0
  269. package/dist/src/terminal-watch-service.js +48 -27
  270. package/dist/src/terminal-watch-service.js.map +1 -1
  271. package/dist/src/terminal-watch-store.d.ts +3 -279
  272. package/dist/src/terminal-watch-store.js +5 -1779
  273. package/dist/src/terminal-watch-store.js.map +1 -1
  274. package/docs/quickstart-herdr.md +1 -1
  275. package/docs/quickstart-tmux.md +27 -2
  276. package/openclaw.plugin.json +13 -1
  277. package/package.json +7 -2
  278. package/templates/openclaw-skills/agent-knock-knock/SKILL.md +54 -11
@@ -0,0 +1,573 @@
1
+ import { EXECUTOR_KINDS } from "./executors.js";
2
+ import { TERMINAL_INTERACTION_LIMITS } from "./terminal-interaction-protocol.js";
3
+ const terminalInteractionIdentifierSchema = {
4
+ type: "string",
5
+ minLength: 1,
6
+ maxLength: TERMINAL_INTERACTION_LIMITS.maxIdentifierLength,
7
+ pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
8
+ };
9
+ const terminalInteractionAnswerBase = {
10
+ question_id: {
11
+ ...terminalInteractionIdentifierSchema,
12
+ description: "Opaque semantic question_id from the current interaction_state projection."
13
+ }
14
+ };
15
+ export const respondInteractionParameters = {
16
+ type: "object",
17
+ additionalProperties: false,
18
+ required: ["interaction_id", "answers"],
19
+ oneOf: [
20
+ {
21
+ required: ["turn_id"],
22
+ not: { required: ["watch_id"] }
23
+ },
24
+ {
25
+ required: ["watch_id"],
26
+ not: { required: ["turn_id"] }
27
+ }
28
+ ],
29
+ properties: {
30
+ turn_id: {
31
+ ...terminalInteractionIdentifierSchema,
32
+ description: "Exact authoritative Turn id from the current interaction_state projection."
33
+ },
34
+ watch_id: {
35
+ ...terminalInteractionIdentifierSchema,
36
+ description: "Exact authoritative Terminal Watch id from the current interaction_state projection. Supply exactly one of turn_id or watch_id."
37
+ },
38
+ interaction_id: {
39
+ ...terminalInteractionIdentifierSchema,
40
+ description: "Exact opaque interaction id from the current status response in this controller conversation."
41
+ },
42
+ answers: {
43
+ type: "array",
44
+ minItems: 1,
45
+ maxItems: TERMINAL_INTERACTION_LIMITS.maxQuestions,
46
+ description: "One typed current-step answer using only advertised opaque semantic ids. For single_select supply selected_option_ids; for free_text supply text; for confirm supply confirm. Supply no other answer field. Raw keys, indexes, rendered labels, fingerprints, versions, and terminal commands are not accepted.",
47
+ items: {
48
+ type: "object",
49
+ additionalProperties: false,
50
+ required: ["question_id", "response_kind"],
51
+ description: "Provider-portable answer envelope. AKK revalidates the exact discriminator-specific shape against the current authoritative interaction before sending terminal input.",
52
+ properties: {
53
+ ...terminalInteractionAnswerBase,
54
+ response_kind: {
55
+ type: "string",
56
+ enum: ["single_select", "free_text", "confirm"],
57
+ description: "Exact response_kind advertised for the current question. multi_select remains manual-only and is not accepted here."
58
+ },
59
+ selected_option_ids: {
60
+ type: "array",
61
+ minItems: 1,
62
+ maxItems: 1,
63
+ uniqueItems: true,
64
+ items: terminalInteractionIdentifierSchema,
65
+ description: "Required only for single_select; exactly one advertised opaque option_id."
66
+ },
67
+ text: {
68
+ type: "string",
69
+ minLength: 1,
70
+ maxLength: TERMINAL_INTERACTION_LIMITS.maxTextAnswerLength,
71
+ pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f]+$",
72
+ description: "Required only for free_text; one non-empty line with no terminal control characters."
73
+ },
74
+ confirm: {
75
+ type: "boolean",
76
+ description: "Required only for confirm."
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ };
83
+ export const sendParameters = {
84
+ type: "object",
85
+ additionalProperties: false,
86
+ oneOf: [
87
+ {
88
+ required: ["request"],
89
+ not: { required: ["turn_id"] }
90
+ },
91
+ {
92
+ required: ["turn_id"],
93
+ not: {
94
+ anyOf: [
95
+ { required: ["request"] },
96
+ { required: ["session_id"] },
97
+ { required: ["terminal_id"] },
98
+ { required: ["type"] },
99
+ { required: ["idleTimeoutMinutes"] },
100
+ { required: ["agentTimeoutMinutes"] },
101
+ { required: ["agentHardTimeoutMinutes"] }
102
+ ]
103
+ }
104
+ }
105
+ ],
106
+ not: { required: ["session_id", "terminal_id"] },
107
+ properties: {
108
+ turn_id: {
109
+ type: "string",
110
+ minLength: 1,
111
+ description: "Exact authoritative Turn id only from a current available_actions.retry_submission action. This retry form is exactly {turn_id}: the caller never supplies request text, terminal or Session target, timeout override, or callback route. AKK may use only the immutable original request, and only after revalidating the durable submission and live composer under lock."
112
+ },
113
+ session_id: {
114
+ type: "string",
115
+ minLength: 1,
116
+ description: "Strict session-scoped AKK id only when the current list action prefills it. This preserves that exact native context and never follows the pane after a human switches threads. A rollout-backed Codex Session is a continuing context label but is not a direct ordinary-send target; use that terminal row's follow-current selector action instead. Discovery selectors, terminal ids, and turn ids are never session_id destinations."
117
+ },
118
+ terminal_id: {
119
+ type: "string",
120
+ minLength: 1,
121
+ pattern: "^terminal:v[0-9]+:\\S+$",
122
+ description: "Exact full terminal_id from the current terminal-scoped send action. Codex terminal_user_explicit identifies one exact live physical terminal/process with a scanned, non-blocked approval state; Composer visibility, stability, exactness, and parsed working activity are not eligibility vetoes. Physical fallback sends C-u once to replace the current Composer, injects this request, waits through the paste window, and dispatches Enter exactly once without a post-text Composer veto. Claude Code terminal_user_explicit remains exact-empty-only. Broken AKK state cannot veto the user; unmanaged delivery has no managed callback Turn, but AKK best-effort attaches an exact Terminal Watch callback before management release. Watch failure is reported without changing a successful Send. Once mutation begins, an uncertain result must not be retried automatically. Human discovery selectors are not structured-tool authority. Omit both target fields only when AKK should select the unique send-ready pane."
123
+ },
124
+ request: {
125
+ type: "string",
126
+ minLength: 1,
127
+ description: "Message for the coding agent. Each accepted ordinary send creates a new turn inside the selected session without clearing native agent context."
128
+ },
129
+ type: {
130
+ type: "string",
131
+ enum: ["task"],
132
+ description: "Ordinary sends always create a task turn. Use agent_knock_knock_respond for an answer to an in-flight turn."
133
+ },
134
+ idleTimeoutMinutes: {
135
+ type: "number",
136
+ description: "Minutes an idle or completed AKK Turn record is retained before controlled reconciliation closes it."
137
+ },
138
+ agentTimeoutMinutes: {
139
+ type: "number",
140
+ description: "Callback timeout in minutes; terminal bridge tasks treat it as an inactivity timeout."
141
+ },
142
+ agentHardTimeoutMinutes: {
143
+ type: "number",
144
+ exclusiveMinimum: 0,
145
+ description: "Maximum terminal monitor lifetime in minutes."
146
+ }
147
+ }
148
+ };
149
+ export const respondParameters = {
150
+ type: "object",
151
+ additionalProperties: false,
152
+ required: ["turn_id", "request"],
153
+ properties: {
154
+ turn_id: {
155
+ type: "string",
156
+ description: "Authoritative AKK turn id from a question or blocked callback, never a discovery selector or terminal id. A response continues this exact in-flight turn and does not create a new turn."
157
+ },
158
+ request: {
159
+ type: "string",
160
+ description: "Answer or decision for the coding agent's exact in-flight turn."
161
+ }
162
+ }
163
+ };
164
+ export const listParameters = {
165
+ type: "object",
166
+ additionalProperties: false,
167
+ properties: {
168
+ agent: {
169
+ type: "string",
170
+ enum: EXECUTOR_KINDS
171
+ },
172
+ status: {
173
+ type: "string"
174
+ },
175
+ all: {
176
+ type: "boolean"
177
+ },
178
+ noApprovalScan: {
179
+ type: "boolean",
180
+ description: "When true, list live terminals without scanning their panes for approval prompts."
181
+ },
182
+ terminalDebug: {
183
+ type: "boolean",
184
+ description: "When true, include terminal-provider discovery diagnostics for debugging Gateway environment issues."
185
+ },
186
+ idleTimeoutMinutes: {
187
+ type: "number"
188
+ }
189
+ }
190
+ };
191
+ export const watchParameters = {
192
+ type: "object",
193
+ additionalProperties: false,
194
+ required: ["terminal_id"],
195
+ properties: {
196
+ terminal_id: {
197
+ type: "string",
198
+ minLength: 1,
199
+ pattern: "^terminal:v[0-9]+:\\S+$",
200
+ description: "Exact full terminal_id selected by the user, normally copied from the current terminal row. Watch is read-only: AKK prefers an exact task anchor and otherwise uses a warning-bearing best-effort terminal-activity fallback."
201
+ },
202
+ hardTimeoutMinutes: {
203
+ type: "number",
204
+ exclusiveMinimum: 0,
205
+ description: "Optional maximum lifetime for observing this exact terminal."
206
+ }
207
+ }
208
+ };
209
+ export const unwatchParameters = {
210
+ type: "object",
211
+ additionalProperties: false,
212
+ required: ["watch_id"],
213
+ properties: {
214
+ watch_id: {
215
+ type: "string",
216
+ minLength: 1,
217
+ description: "Authoritative Terminal Watch id returned by watch or prefilled by list/status."
218
+ }
219
+ }
220
+ };
221
+ export const listResumableThreadsParameters = {
222
+ type: "object",
223
+ additionalProperties: false,
224
+ required: ["terminal_id"],
225
+ properties: {
226
+ terminal_id: {
227
+ type: "string",
228
+ minLength: 1,
229
+ pattern: "^terminal:v[0-9]+:\\S+$",
230
+ description: "Exact full terminal_id from the selected terminal row's current available_actions. Do not use a short ref, session id, turn id, or constructed selector."
231
+ }
232
+ }
233
+ };
234
+ export const nativeInspectParameters = {
235
+ type: "object",
236
+ additionalProperties: false,
237
+ required: ["terminal_id", "inspection"],
238
+ properties: {
239
+ terminal_id: {
240
+ type: "string",
241
+ minLength: 1,
242
+ pattern: "^terminal:v[0-9]+:\\S+$",
243
+ description: "Exact full terminal_id from the current native_inspect action. Never use a short ref, Session id, Turn id, or constructed selector. AKK refreshes and revalidates the binding internally."
244
+ },
245
+ inspection: {
246
+ type: "string",
247
+ enum: ["status"],
248
+ description: "Closed adapter-owned inspection kind. Codex 0.146.0/0.146.1/0.147.0/0.148.0/0.149.1/0.150.1/0.151.0/0.153.0/0.153.4/0.154.0 and Claude Code 2.1.218/2.1.226/2.1.237/2.1.251/2.1.259/2.1.263/2.1.266/2.1.267 are regression-tested; another complete x.y.z version remains callable through the generic runtime profile with a compatibility warning. This is never an arbitrary native command string."
249
+ }
250
+ }
251
+ };
252
+ export const modelOptionsParameters = {
253
+ type: "object",
254
+ additionalProperties: false,
255
+ required: ["terminal_id"],
256
+ properties: {
257
+ terminal_id: {
258
+ type: "string",
259
+ minLength: 1,
260
+ pattern: "^terminal:v[0-9]+:\\S+$",
261
+ description: "Exact full terminal_id from the current terminal row's advertised model_options action. This is explicit current-snapshot authority for one live physical pane/process, including a Codex pane with no materialized rollout or one exact stable Codex 0.154 /model residual. AKK consumes any residual-entry authority during this closed discovery; after exact dismissal it retains only a fresh ordinary terminal/catalog offer for one set_model attempt."
262
+ }
263
+ }
264
+ };
265
+ export const repairModelControlParameters = {
266
+ type: "object",
267
+ additionalProperties: false,
268
+ required: ["terminal_id"],
269
+ properties: {
270
+ terminal_id: {
271
+ type: "string",
272
+ minLength: 1,
273
+ pattern: "^terminal:v[0-9]+:\\S+$",
274
+ description: "Exact full terminal_id from the current terminal row's advertised repair_model_control action. AKK privately binds this one-shot repair to the exact Codex 0.154 pane/process and exact native /model Composer residue or open profiled model picker; no command, key, menu index, draft text, token, or fingerprint is accepted."
275
+ }
276
+ }
277
+ };
278
+ export const setModelParameters = {
279
+ type: "object",
280
+ additionalProperties: false,
281
+ required: ["terminal_id", "model", "reasoning_effort"],
282
+ properties: {
283
+ terminal_id: {
284
+ type: "string",
285
+ minLength: 1,
286
+ pattern: "^terminal:v[0-9]+:\\S+$",
287
+ description: "Exact full physical-pane terminal_id used in the immediately preceding agent_knock_knock_model_options call in this controller conversation. For a verified-zero-rollout Codex 0.154 pane, foreground attribution and identify_foreground are not prerequisites; Claude Code still requires its exact current native Session."
288
+ },
289
+ model: {
290
+ type: "string",
291
+ minLength: 1,
292
+ maxLength: 160,
293
+ pattern: "^[A-Za-z0-9][A-Za-z0-9._:/+\\-]*$",
294
+ description: "Exact semantic model id advertised by the current model-options catalog. Display labels, menu indexes, slash commands, keys, and constructed model names are not accepted."
295
+ },
296
+ reasoning_effort: {
297
+ type: "string",
298
+ minLength: 1,
299
+ maxLength: 64,
300
+ pattern: "^[a-z][a-z0-9_-]*$",
301
+ description: "Exact reasoning-effort value advertised for this model. The full model/effort tuple is required so AKK can verify an unambiguous postcondition."
302
+ }
303
+ }
304
+ };
305
+ export const identifyForegroundParameters = {
306
+ type: "object",
307
+ additionalProperties: false,
308
+ required: ["terminal_id"],
309
+ properties: {
310
+ terminal_id: {
311
+ type: "string",
312
+ minLength: 1,
313
+ pattern: "^terminal:v[0-9]+:\\S+$",
314
+ description: "Exact full Codex terminal_id from the current identify_foreground action. AKK sends the closed /status probe exactly once under the terminal lock and returns only a short-lived diagnostic foreground observation. It does not bind a Session or authorize later input."
315
+ }
316
+ }
317
+ };
318
+ export const identifyAndSendParameters = {
319
+ type: "object",
320
+ additionalProperties: false,
321
+ required: ["terminal_id", "request"],
322
+ properties: {
323
+ terminal_id: {
324
+ type: "string",
325
+ minLength: 1,
326
+ pattern: "^terminal:v[0-9]+:\\S+$",
327
+ description: "Exact full Codex terminal_id from the current identify_and_send action. AKK keeps one terminal lock from the explicit /status foreground probe through the single task dispatch; final durable identity still comes only from exact request acceptance."
328
+ },
329
+ request: {
330
+ type: "string",
331
+ minLength: 1,
332
+ description: "Task text sent exactly once after the foreground probe remains current."
333
+ },
334
+ idleTimeoutMinutes: {
335
+ type: "number",
336
+ description: "Minutes a completed or idle AKK Turn record is retained before controlled reconciliation closes it."
337
+ },
338
+ agentTimeoutMinutes: {
339
+ type: "number",
340
+ description: "Callback inactivity timeout in minutes."
341
+ },
342
+ agentHardTimeoutMinutes: {
343
+ type: "number",
344
+ exclusiveMinimum: 0,
345
+ description: "Maximum terminal monitor lifetime in minutes."
346
+ }
347
+ }
348
+ };
349
+ export const newThreadParameters = {
350
+ type: "object",
351
+ additionalProperties: false,
352
+ required: ["terminal_id"],
353
+ properties: {
354
+ terminal_id: {
355
+ type: "string",
356
+ minLength: 1,
357
+ pattern: "^terminal:v[0-9]+:\\S+$",
358
+ description: "Exact full terminal_id from the current new_thread action. AKK refreshes and revalidates the lifecycle binding internally."
359
+ }
360
+ }
361
+ };
362
+ export const reconcileBindingParameters = {
363
+ type: "object",
364
+ additionalProperties: false,
365
+ required: [
366
+ "terminal_id",
367
+ "conflicting_session_id"
368
+ ],
369
+ properties: {
370
+ terminal_id: {
371
+ type: "string",
372
+ minLength: 1,
373
+ pattern: "^terminal:v[0-9]+:\\S+$",
374
+ description: "Exact full terminal_id from the current reconcile_binding action."
375
+ },
376
+ conflicting_session_id: {
377
+ type: "string",
378
+ minLength: 1,
379
+ description: "Exact conflicting managed Session id prefilled by AKK list. Never choose or construct one independently."
380
+ }
381
+ }
382
+ };
383
+ export const resumeThreadParameters = {
384
+ type: "object",
385
+ additionalProperties: false,
386
+ required: [
387
+ "terminal_id",
388
+ "native_thread_id"
389
+ ],
390
+ properties: {
391
+ terminal_id: {
392
+ type: "string",
393
+ minLength: 1,
394
+ pattern: "^terminal:v[0-9]+:\\S+$",
395
+ description: "Exact full terminal_id passed to agent_knock_knock_list_resumable_threads."
396
+ },
397
+ native_thread_id: {
398
+ type: "string",
399
+ pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
400
+ description: "Complete native thread UUID from a resumable=true row returned for this exact terminal. Never truncate, guess, or select an unavailable row."
401
+ }
402
+ }
403
+ };
404
+ export const renewParameters = {
405
+ type: "object",
406
+ additionalProperties: false,
407
+ not: { required: ["turn_id", "conversation_id"] },
408
+ anyOf: [
409
+ { required: ["turn_id"] },
410
+ { required: ["conversation_id"] }
411
+ ],
412
+ properties: {
413
+ turn_id: {
414
+ type: "string",
415
+ description: "Authoritative AKK turn id whose monitoring should be renewed."
416
+ },
417
+ conversation_id: {
418
+ type: "string",
419
+ deprecated: true,
420
+ description: "Deprecated compatibility alias for turn_id."
421
+ },
422
+ minutes: {
423
+ type: "number",
424
+ exclusiveMinimum: 0,
425
+ description: "New terminal inactivity timeout in minutes."
426
+ }
427
+ }
428
+ };
429
+ export const retryCallbackParameters = {
430
+ type: "object",
431
+ additionalProperties: false,
432
+ not: { required: ["turn_id", "conversation_id"] },
433
+ anyOf: [
434
+ { required: ["turn_id"] },
435
+ { required: ["conversation_id"] }
436
+ ],
437
+ properties: {
438
+ turn_id: {
439
+ type: "string",
440
+ description: "Authoritative AKK turn id whose persisted callback should be retried."
441
+ },
442
+ conversation_id: {
443
+ type: "string",
444
+ deprecated: true,
445
+ description: "Deprecated compatibility alias for turn_id."
446
+ }
447
+ }
448
+ };
449
+ export const statusParameters = {
450
+ type: "object",
451
+ additionalProperties: false,
452
+ not: {
453
+ anyOf: [
454
+ { required: ["turn_id", "conversation_id"] },
455
+ { required: ["turn_id", "watch_id"] },
456
+ { required: ["conversation_id", "watch_id"] }
457
+ ]
458
+ },
459
+ anyOf: [
460
+ { required: ["turn_id"] },
461
+ { required: ["conversation_id"] },
462
+ { required: ["watch_id"] }
463
+ ],
464
+ properties: {
465
+ turn_id: {
466
+ type: "string",
467
+ description: "Authoritative AKK turn id to inspect."
468
+ },
469
+ conversation_id: {
470
+ type: "string",
471
+ deprecated: true,
472
+ description: "Deprecated legacy Turn alias, or the exact raw-terminal selector prefilled by that terminal row's available status action. Managed Turn status must use turn_id; never construct or guess a raw-terminal selector."
473
+ },
474
+ watch_id: {
475
+ type: "string",
476
+ minLength: 1,
477
+ description: "Authoritative Terminal Watch id prefilled by a current watch row. This inspects externally started work and is mutually exclusive with Turn targets."
478
+ },
479
+ idleTimeoutMinutes: {
480
+ type: "number"
481
+ },
482
+ trace: {
483
+ type: "boolean",
484
+ description: "Include a safe executor trace summary with tool calls, permission requests, monitor events, and redacted thinking markers."
485
+ }
486
+ }
487
+ };
488
+ export const cancelParameters = {
489
+ type: "object",
490
+ additionalProperties: false,
491
+ not: { required: ["turn_id", "conversation_id"] },
492
+ anyOf: [
493
+ { required: ["turn_id"] },
494
+ { required: ["conversation_id"] }
495
+ ],
496
+ properties: {
497
+ turn_id: {
498
+ type: "string",
499
+ description: "Authoritative AKK turn id to interrupt."
500
+ },
501
+ conversation_id: {
502
+ type: "string",
503
+ deprecated: true,
504
+ description: "Deprecated legacy Turn alias, or the exact raw-terminal selector prefilled by that terminal row's available cancel action. Managed Turn cancellation must use turn_id; never construct or guess a raw-terminal selector."
505
+ },
506
+ idleTimeoutMinutes: {
507
+ type: "number"
508
+ }
509
+ }
510
+ };
511
+ export const closeParameters = {
512
+ type: "object",
513
+ additionalProperties: false,
514
+ not: {
515
+ anyOf: [
516
+ { required: ["turn_id", "conversation_id"] },
517
+ { required: ["expected_message_id", "expected_transition_id"] }
518
+ ]
519
+ },
520
+ anyOf: [
521
+ { required: ["turn_id"] },
522
+ { required: ["conversation_id"] }
523
+ ],
524
+ properties: {
525
+ turn_id: {
526
+ type: "string",
527
+ description: "Authoritative AKK turn id whose managed record should be closed."
528
+ },
529
+ conversation_id: {
530
+ type: "string",
531
+ deprecated: true,
532
+ description: "Deprecated legacy Turn alias, or an exact list-prefilled raw-terminal/orphan recovery selector. Managed Turn close must use turn_id; never construct or guess a raw-terminal selector."
533
+ },
534
+ reason: {
535
+ type: "string"
536
+ },
537
+ expected_message_id: {
538
+ type: "string",
539
+ description: "Required only to clear an orphaned terminal dispatch shown by AKK list. Must exactly match that entry's current message_id and must not be combined with expected_transition_id."
540
+ },
541
+ expected_transition_id: {
542
+ type: "string",
543
+ description: "Required only to recover an unresolved native-thread lifecycle transition shown by AKK list. Must exactly match that entry's current transition_id and must not be combined with expected_message_id."
544
+ }
545
+ }
546
+ };
547
+ export const approveParameters = {
548
+ type: "object",
549
+ additionalProperties: false,
550
+ not: { required: ["turn_id", "terminal_id"] },
551
+ anyOf: [
552
+ { required: ["turn_id"] },
553
+ { required: ["terminal_id"] }
554
+ ],
555
+ properties: {
556
+ decision: {
557
+ type: "string",
558
+ enum: ["approve_once", "reject"],
559
+ description: "Closed semantic decision from the current AKK status offer. Defaults to approve_once. Raw keys, menu indexes, and rendered labels are never accepted."
560
+ },
561
+ turn_id: {
562
+ type: "string",
563
+ description: "Authoritative AKK turn id containing the approval prompt."
564
+ },
565
+ terminal_id: {
566
+ type: "string",
567
+ minLength: 1,
568
+ pattern: "^terminal:v[0-9]+:\\S+$",
569
+ description: "Exact full terminal_id from the current terminal-scoped approval action. Managed Turn approval must use turn_id. AKK binds the user's reviewed prompt and revalidates terminal authority internally."
570
+ }
571
+ }
572
+ };
573
+ //# sourceMappingURL=semantic-tool-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semantic-tool-schemas.js","sourceRoot":"","sources":["../../src/semantic-tool-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MACpC,oCAAoC,CAAC;AAEvC,MAAM,mCAAmC,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,2BAA2B,CAAC,mBAAmB;IAC1D,OAAO,EAAE,+BAA+B;CACzC,CAAC;AAEF,MAAM,6BAA6B,GAAG;IACpC,WAAW,EAAE;QACX,GAAG,mCAAmC;QACtC,WAAW,EACT,4EAA4E;KAC/E;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC;IACvC,KAAK,EAAE;QACL;YACE,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE;SAChC;QACD;YACE,QAAQ,EAAE,CAAC,UAAU,CAAC;YACtB,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE;SAC/B;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE;YACP,GAAG,mCAAmC;YACtC,WAAW,EACT,4EAA4E;SAC/E;QACD,QAAQ,EAAE;YACR,GAAG,mCAAmC;YACtC,WAAW,EACT,iIAAiI;SACpI;QACD,cAAc,EAAE;YACd,GAAG,mCAAmC;YACtC,WAAW,EACT,+FAA+F;SAClG;QACD,OAAO,EAAE;YACP,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,C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,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE;IAC7C,KAAK,EAAE;QACL,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE;QACzB,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;KAC9B;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,CAAC;YAChC,WAAW,EACT,uJAAuJ;SAC1J;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2DAA2D;SACzE;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,yBAAyB;YAClC,WAAW,EACT,sMAAsM;SACzM;KACF;CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function nonEmptyString(value: unknown): string | undefined;
2
+ export declare function arrayValue(value: unknown): Record<string, unknown>[];
3
+ export declare function stringArrayValue(value: unknown): string[];
4
+ export declare function finiteNumber(value: unknown): number | undefined;
5
+ export declare function truncateText(value: unknown, maxLength: number): string;
@@ -0,0 +1,27 @@
1
+ export function nonEmptyString(value) {
2
+ return typeof value === "string" && value.trim().length > 0
3
+ ? value
4
+ : undefined;
5
+ }
6
+ export function arrayValue(value) {
7
+ return Array.isArray(value)
8
+ ? value.filter((item) => item !== null && typeof item === "object" && !Array.isArray(item))
9
+ : [];
10
+ }
11
+ export function stringArrayValue(value) {
12
+ return Array.isArray(value)
13
+ ? value.filter((item) => typeof item === "string" && item.trim().length > 0)
14
+ : [];
15
+ }
16
+ export function finiteNumber(value) {
17
+ return typeof value === "number" && Number.isFinite(value)
18
+ ? value
19
+ : undefined;
20
+ }
21
+ export function truncateText(value, maxLength) {
22
+ const text = String(value ?? "").replace(/\s+/g, " ").trim();
23
+ return text.length <= maxLength
24
+ ? text
25
+ : `${text.slice(0, Math.max(0, maxLength - 1))}...`;
26
+ }
27
+ //# sourceMappingURL=semantic-tool-value-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semantic-tool-value-helpers.js","sourceRoot":"","sources":["../../src/semantic-tool-value-helpers.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;QACzD,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAmC,EAAE,CACrD,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAClE;QACH,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CACpC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CACnD;QACH,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QACxD,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAc,EAAE,SAAiB;IAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7D,OAAO,IAAI,CAAC,MAAM,IAAI,SAAS;QAC7B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;AACxD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type AgentMessage } from "./protocol.js";
2
+ export interface EventRecord {
3
+ event: string;
4
+ [key: string]: unknown;
5
+ }
6
+ /** Build the durable audit-event projection for one validated Agent message. */
7
+ export declare function messageEvent(message: AgentMessage): EventRecord;
8
+ /** Build the legacy raw-exchange audit projection without owning persistence. */
9
+ export declare function rawExchangeEvent({ conversationId, from, to, prompt, response, round, type }: {
10
+ conversationId: string;
11
+ from: string;
12
+ to: string;
13
+ prompt: string;
14
+ response: string;
15
+ round: number;
16
+ type?: string;
17
+ }): EventRecord;