@opencorelabs/lucidity 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/README.md +18 -3
  2. package/dist/assets/speech/lucidity-speech +0 -0
  3. package/dist/automations/agent.d.ts.map +1 -1
  4. package/dist/automations/agent.js +2 -0
  5. package/dist/automations/designer.d.ts +1 -1
  6. package/dist/chat/server.d.ts +1 -0
  7. package/dist/chat/server.d.ts.map +1 -1
  8. package/dist/chat/server.js +6 -1
  9. package/dist/coding/conduct.d.ts +1 -22
  10. package/dist/coding/conduct.d.ts.map +1 -1
  11. package/dist/coding/conduct.js +9 -94
  12. package/dist/coding/runCodeTurn.d.ts +3 -16
  13. package/dist/coding/runCodeTurn.d.ts.map +1 -1
  14. package/dist/coding/runCodeTurn.js +157 -165
  15. package/dist/coding/workspaceRegistry.d.ts +24 -0
  16. package/dist/coding/workspaceRegistry.d.ts.map +1 -0
  17. package/dist/coding/workspaceRegistry.js +230 -0
  18. package/dist/coding/worktree.d.ts +11 -14
  19. package/dist/coding/worktree.d.ts.map +1 -1
  20. package/dist/coding/worktree.js +41 -21
  21. package/dist/config.d.ts +2 -0
  22. package/dist/config.d.ts.map +1 -1
  23. package/dist/daemonLease.d.ts +12 -0
  24. package/dist/daemonLease.d.ts.map +1 -0
  25. package/dist/daemonLease.js +32 -0
  26. package/dist/goals/assessment.d.ts +115 -0
  27. package/dist/goals/assessment.d.ts.map +1 -0
  28. package/dist/goals/assessment.js +67 -0
  29. package/dist/goals/notes.d.ts +18 -0
  30. package/dist/goals/notes.d.ts.map +1 -0
  31. package/dist/goals/notes.js +72 -0
  32. package/dist/index.js +63 -15
  33. package/dist/jobs/goals.d.ts +15 -0
  34. package/dist/jobs/goals.d.ts.map +1 -0
  35. package/dist/jobs/goals.js +286 -0
  36. package/dist/jobs/weeklyReview.d.ts.map +1 -1
  37. package/dist/jobs/weeklyReview.js +3 -2
  38. package/dist/queue.d.ts +1 -0
  39. package/dist/queue.d.ts.map +1 -1
  40. package/dist/queue.js +4 -0
  41. package/dist/room/client.d.ts +5 -0
  42. package/dist/room/client.d.ts.map +1 -1
  43. package/dist/room/client.js +124 -107
  44. package/dist/room/computer.d.ts.map +1 -1
  45. package/dist/room/computer.js +2 -0
  46. package/dist/room/durablePublish.d.ts +6 -0
  47. package/dist/room/durablePublish.d.ts.map +1 -0
  48. package/dist/room/durablePublish.js +19 -0
  49. package/dist/room/incidents.d.ts +1 -1
  50. package/dist/room/incidents.d.ts.map +1 -1
  51. package/dist/room/incidents.js +14 -7
  52. package/dist/room/turnQueue.d.ts.map +1 -1
  53. package/dist/room/turnQueue.js +27 -24
  54. package/dist/runtimeStore.d.ts +44 -0
  55. package/dist/runtimeStore.d.ts.map +1 -0
  56. package/dist/runtimeStore.js +188 -0
  57. package/dist/setup/server.js +1 -1
  58. package/dist/turnLog.d.ts +10 -40
  59. package/dist/turnLog.d.ts.map +1 -1
  60. package/dist/turnLog.js +33 -56
  61. package/package.json +4 -4
  62. package/src/automations/agent.ts +2 -0
  63. package/src/chat/server.ts +7 -1
  64. package/src/coding/conduct.ts +10 -147
  65. package/src/coding/runCodeTurn.ts +42 -61
  66. package/src/coding/workspaceRegistry.ts +210 -0
  67. package/src/coding/worktree.ts +44 -20
  68. package/src/config.ts +2 -0
  69. package/src/daemonLease.ts +33 -0
  70. package/src/goals/assessment.ts +106 -0
  71. package/src/goals/notes.ts +88 -0
  72. package/src/index.ts +63 -18
  73. package/src/jobs/goals.ts +384 -0
  74. package/src/jobs/weeklyReview.ts +4 -3
  75. package/src/queue.ts +4 -0
  76. package/src/room/client.ts +85 -80
  77. package/src/room/computer.ts +2 -0
  78. package/src/room/durablePublish.ts +25 -0
  79. package/src/room/incidents.ts +16 -8
  80. package/src/room/turnQueue.ts +26 -27
  81. package/src/runtimeStore.ts +190 -0
  82. package/src/setup/server.ts +1 -1
  83. package/src/turnLog.ts +32 -75
  84. package/vendor/decisions/dist/dayPlan.d.ts +9 -0
  85. package/vendor/decisions/dist/dayPlan.js +82 -0
  86. package/vendor/decisions/dist/index.d.ts +1 -0
  87. package/vendor/decisions/dist/index.js +1 -0
  88. package/vendor/decisions/dist/jev.js +3 -1
  89. package/vendor/decisions/src/dayPlan.ts +80 -0
  90. package/vendor/decisions/src/index.ts +1 -0
  91. package/vendor/decisions/src/jev.ts +3 -1
  92. package/vendor/mcp-server/dist/index.js +2 -0
  93. package/vendor/mcp-server/dist/tools/goals.d.ts +4 -0
  94. package/vendor/mcp-server/dist/tools/goals.d.ts.map +1 -0
  95. package/vendor/mcp-server/dist/tools/goals.js +38 -0
  96. package/vendor/mcp-server/package.json +1 -1
  97. package/vendor/mcp-server/src/index.ts +2 -0
  98. package/vendor/mcp-server/src/tools/goals.ts +62 -0
  99. package/vendor/runtime/README.md +2 -2
  100. package/vendor/runtime/dist/executor/asyncQueue.d.ts +1 -0
  101. package/vendor/runtime/dist/executor/asyncQueue.d.ts.map +1 -1
  102. package/vendor/runtime/dist/executor/asyncQueue.js +3 -0
  103. package/vendor/runtime/dist/executor/claudeAgent.d.ts +1 -1
  104. package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
  105. package/vendor/runtime/dist/executor/claudeAgent.js +25 -10
  106. package/vendor/runtime/dist/executor/codex.d.ts +1 -0
  107. package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
  108. package/vendor/runtime/dist/executor/codex.js +69 -36
  109. package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts +4 -1
  110. package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts.map +1 -1
  111. package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts +3 -0
  112. package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts.map +1 -1
  113. package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts +1 -1
  114. package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts.map +1 -1
  115. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts +6 -0
  116. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts.map +1 -0
  117. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.js +2 -0
  118. package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts +5 -0
  119. package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts.map +1 -1
  120. package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts +8 -0
  121. package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts.map +1 -1
  122. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts +11 -0
  123. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts.map +1 -0
  124. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.js +2 -0
  125. package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts +4 -0
  126. package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts.map +1 -1
  127. package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts +2 -0
  128. package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts.map +1 -1
  129. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts +4 -1
  130. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts.map +1 -1
  131. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts +3 -1
  132. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts.map +1 -1
  133. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts +7 -2
  134. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts.map +1 -1
  135. package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts +3 -0
  136. package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts.map +1 -1
  137. package/vendor/runtime/dist/executor/codexRpc.d.ts +10 -3
  138. package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
  139. package/vendor/runtime/dist/executor/codexRpc.js +18 -3
  140. package/vendor/runtime/dist/executor/codexSessions.d.ts +30 -0
  141. package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -0
  142. package/vendor/runtime/dist/executor/codexSessions.js +88 -0
  143. package/vendor/runtime/dist/executor/health.d.ts +2 -1
  144. package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
  145. package/vendor/runtime/dist/executor/health.js +17 -5
  146. package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -1
  147. package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
  148. package/vendor/runtime/dist/executor/liveTurns.js +12 -5
  149. package/vendor/runtime/dist/executor/ownership.d.ts +35 -0
  150. package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -0
  151. package/vendor/runtime/dist/executor/ownership.js +99 -0
  152. package/vendor/runtime/dist/executor/providerRouter.d.ts +1 -0
  153. package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
  154. package/vendor/runtime/dist/executor/providerRouter.js +5 -0
  155. package/vendor/runtime/dist/executor/types.d.ts +4 -0
  156. package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
  157. package/vendor/runtime/dist/harness/index.d.ts +1 -0
  158. package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
  159. package/vendor/runtime/dist/harness/index.js +12 -1
  160. package/vendor/runtime/dist/harness/types.d.ts +2 -1
  161. package/vendor/runtime/dist/harness/types.d.ts.map +1 -1
  162. package/vendor/runtime/dist/index.d.ts +1 -0
  163. package/vendor/runtime/dist/index.d.ts.map +1 -1
  164. package/vendor/runtime/dist/index.js +1 -0
  165. package/vendor/runtime/dist/prompts/dayPlanning.d.ts +44 -0
  166. package/vendor/runtime/dist/prompts/dayPlanning.d.ts.map +1 -0
  167. package/vendor/runtime/dist/prompts/dayPlanning.js +42 -0
  168. package/vendor/runtime/src/executor/asyncQueue.ts +3 -0
  169. package/vendor/runtime/src/executor/claudeAgent.ts +20 -9
  170. package/vendor/runtime/src/executor/codex.ts +76 -44
  171. package/vendor/runtime/src/executor/codexProtocol/FunctionCallOutputContentItem.ts +1 -1
  172. package/vendor/runtime/src/executor/codexProtocol/Personality.ts +3 -0
  173. package/vendor/runtime/src/executor/codexProtocol/PlanType.ts +1 -1
  174. package/vendor/runtime/src/executor/codexProtocol/README.md +2 -2
  175. package/vendor/runtime/src/executor/codexProtocol/v2/CyberAccessProgram.ts +9 -0
  176. package/vendor/runtime/src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts +5 -0
  177. package/vendor/runtime/src/executor/codexProtocol/v2/Model.ts +11 -2
  178. package/vendor/runtime/src/executor/codexProtocol/v2/ModelAccessPrograms.ts +13 -0
  179. package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitSnapshot.ts +5 -1
  180. package/vendor/runtime/src/executor/codexProtocol/v2/ReviewStartParams.ts +2 -0
  181. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadResumeParams.ts +5 -1
  182. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStartParams.ts +4 -1
  183. package/vendor/runtime/src/executor/codexProtocol/v2/TurnStartParams.ts +7 -2
  184. package/vendor/runtime/src/executor/codexProtocol/v2/UserInput.ts +1 -1
  185. package/vendor/runtime/src/executor/codexRpc.ts +22 -4
  186. package/vendor/runtime/src/executor/codexSessions.ts +108 -0
  187. package/vendor/runtime/src/executor/health.ts +16 -6
  188. package/vendor/runtime/src/executor/liveTurns.ts +12 -5
  189. package/vendor/runtime/src/executor/ownership.ts +76 -0
  190. package/vendor/runtime/src/executor/providerRouter.ts +6 -0
  191. package/vendor/runtime/src/executor/types.ts +4 -0
  192. package/vendor/runtime/src/harness/index.ts +12 -1
  193. package/vendor/runtime/src/harness/types.ts +2 -1
  194. package/vendor/runtime/src/index.ts +1 -0
  195. package/vendor/runtime/src/prompts/dayPlanning.ts +46 -0
  196. package/vendor/shared/dist/agentCommands.d.ts +1 -0
  197. package/vendor/shared/dist/agentCommands.d.ts.map +1 -1
  198. package/vendor/shared/dist/cardStudio.d.ts +41 -0
  199. package/vendor/shared/dist/cardStudio.d.ts.map +1 -1
  200. package/vendor/shared/dist/cardStudio.js +13 -3
  201. package/vendor/shared/dist/commandLocal.d.ts.map +1 -1
  202. package/vendor/shared/dist/commandLocal.js +2 -0
  203. package/vendor/shared/dist/commands.d.ts +18 -0
  204. package/vendor/shared/dist/commands.d.ts.map +1 -1
  205. package/vendor/shared/dist/commands.js +2 -0
  206. package/vendor/shared/dist/computer.d.ts +7 -1
  207. package/vendor/shared/dist/computer.d.ts.map +1 -1
  208. package/vendor/shared/dist/computer.js +13 -2
  209. package/vendor/shared/dist/constants.d.ts +3 -3
  210. package/vendor/shared/dist/constants.d.ts.map +1 -1
  211. package/vendor/shared/dist/constants.js +5 -4
  212. package/vendor/shared/dist/dayPlan.d.ts +86 -0
  213. package/vendor/shared/dist/dayPlan.d.ts.map +1 -0
  214. package/vendor/shared/dist/dayPlan.js +46 -0
  215. package/vendor/shared/dist/dayPlanning.d.ts +139 -0
  216. package/vendor/shared/dist/dayPlanning.d.ts.map +1 -0
  217. package/vendor/shared/dist/dayPlanning.js +67 -0
  218. package/vendor/shared/dist/goalNotes.d.ts +4 -0
  219. package/vendor/shared/dist/goalNotes.d.ts.map +1 -0
  220. package/vendor/shared/dist/goalNotes.js +23 -0
  221. package/vendor/shared/dist/goals.d.ts +835 -0
  222. package/vendor/shared/dist/goals.d.ts.map +1 -0
  223. package/vendor/shared/dist/goals.js +198 -0
  224. package/vendor/shared/dist/index.d.ts +5 -0
  225. package/vendor/shared/dist/index.d.ts.map +1 -1
  226. package/vendor/shared/dist/index.js +5 -0
  227. package/vendor/shared/dist/schemas/harness.d.ts +155 -0
  228. package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
  229. package/vendor/shared/dist/schemas/harness.js +8 -0
  230. package/vendor/shared/dist/workspaces.d.ts +138 -0
  231. package/vendor/shared/dist/workspaces.d.ts.map +1 -0
  232. package/vendor/shared/dist/workspaces.js +40 -0
  233. package/vendor/shared/src/agentCommands.ts +1 -0
  234. package/vendor/shared/src/cardStudio.ts +13 -3
  235. package/vendor/shared/src/commandLocal.ts +2 -0
  236. package/vendor/shared/src/commands.ts +2 -0
  237. package/vendor/shared/src/computer.ts +18 -2
  238. package/vendor/shared/src/constants.ts +5 -4
  239. package/vendor/shared/src/dayPlan.ts +81 -0
  240. package/vendor/shared/src/dayPlanning.ts +77 -0
  241. package/vendor/shared/src/goalNotes.ts +23 -0
  242. package/vendor/shared/src/goals.ts +237 -0
  243. package/vendor/shared/src/index.ts +6 -0
  244. package/vendor/shared/src/schemas/harness.ts +8 -0
  245. package/vendor/shared/src/workspaces.ts +48 -0
  246. package/dist/coding/fleetIntegrate.d.ts +0 -37
  247. package/dist/coding/fleetIntegrate.d.ts.map +0 -1
  248. package/dist/coding/fleetIntegrate.js +0 -64
  249. package/dist/coding/openFleetPr.d.ts +0 -41
  250. package/dist/coding/openFleetPr.d.ts.map +0 -1
  251. package/dist/coding/openFleetPr.js +0 -121
  252. package/src/coding/fleetIntegrate.ts +0 -95
  253. package/src/coding/openFleetPr.ts +0 -148
@@ -9,6 +9,7 @@ import { registerTaskTrashTools } from './tools/taskTrash.js';
9
9
  import { registerTaskOccurrenceTools } from './tools/taskOccurrences.js';
10
10
  import { setClientNameReader } from './client.js';
11
11
  import { registerProjectTools } from './tools/projects.js';
12
+ import { registerGoalTools } from './tools/goals.js';
12
13
  import { registerQueryTools } from './tools/queries.js';
13
14
  import { registerMilestoneTools } from './tools/milestones.js';
14
15
  import { registerCommentTools } from './tools/comments.js';
@@ -41,6 +42,7 @@ registerTaskActivityTools(server);
41
42
  registerTaskTrashTools(server);
42
43
  registerTaskOccurrenceTools(server);
43
44
  registerProjectTools(server);
45
+ registerGoalTools(server);
44
46
  registerQueryTools(server);
45
47
  registerMilestoneTools(server);
46
48
  registerCommentTools(server);
@@ -0,0 +1,62 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { z } from '#lucidity-zod';
3
+ import { apiRequest } from '../client.js';
4
+ // This independently published package keeps its small API projection local.
5
+ interface GoalsSnapshot {
6
+ goals: {
7
+ goal: { id: string; [key: string]: unknown };
8
+ checks: { cadence: string; [key: string]: unknown }[];
9
+ }[];
10
+ }
11
+
12
+ /** Discussion can inspect goals; it cannot approve its own proposed work. */
13
+ export function registerGoalTools(server: McpServer) {
14
+ const annotations = {
15
+ readOnlyHint: true,
16
+ destructiveHint: false,
17
+ idempotentHint: true,
18
+ openWorldHint: false,
19
+ };
20
+ server.tool(
21
+ 'list_goals',
22
+ 'List personal goals, their timeframes and latest dated observations. Missing checks do not mean inactivity.',
23
+ {},
24
+ annotations,
25
+ async () => {
26
+ const result = await apiRequest<GoalsSnapshot>('/api/goals');
27
+ return {
28
+ content: [
29
+ {
30
+ type: 'text' as const,
31
+ text: JSON.stringify(
32
+ result.goals.map(({ goal, checks }) => ({
33
+ goal,
34
+ latestCheck:
35
+ checks.find((check) => check.cadence === 'daily') ?? null,
36
+ })),
37
+ ),
38
+ },
39
+ ],
40
+ };
41
+ },
42
+ );
43
+ server.tool(
44
+ 'get_goal',
45
+ 'Read one personal goal with linked sources, evidence, reviews and draft proposals. Work must be approved in the app; a context link is not permission to act.',
46
+ { id: z.string().uuid() },
47
+ annotations,
48
+ async ({ id }) => {
49
+ const result = await apiRequest<GoalsSnapshot>('/api/goals');
50
+ const goal = result.goals.find((detail) => detail.goal.id === id);
51
+ return {
52
+ content: [
53
+ {
54
+ type: 'text' as const,
55
+ text: goal ? JSON.stringify(goal) : 'Goal not found.',
56
+ },
57
+ ],
58
+ isError: !goal,
59
+ };
60
+ },
61
+ );
62
+ }
@@ -17,9 +17,9 @@ The runtime just turns data into prompts and runs them through an executor.
17
17
 
18
18
  **Executor seam** — the boundary between prompt assembly and the model engine:
19
19
  - `AgentExecutor`: buffered/streamed runs, active-turn correction, model discovery, and disposal.
20
- - `ClaudeAgentExecutor`: pinned Agent SDK 0.3.267 and its bundled runtime, with subscription
20
+ - `ClaudeAgentExecutor`: pinned Agent SDK 0.3.287 and its bundled runtime, with subscription
21
21
  authentication, streaming input, cancellation, and tool permissions.
22
- - `CodexExecutor`: pinned Codex 0.153.4 App Server over local stdio, with ChatGPT login,
22
+ - `CodexExecutor`: pinned Codex 0.160.0 App Server over local stdio, with ChatGPT login,
23
23
  generated protocol types, thread resume, steering, interruption, and scoped MCP tools.
24
24
  - `HealthAwareExecutor`: observes authentication and inference failures on the same adapters
25
25
  used for interactive and scheduled work. Catalog success leaves allowance unknown;
@@ -6,6 +6,7 @@ export declare class AsyncQueue<T> implements AsyncIterable<T> {
6
6
  private error?;
7
7
  push(item: T): void;
8
8
  end(error?: Error): void;
9
+ discardPending(): void;
9
10
  [Symbol.asyncIterator](): AsyncGenerator<T>;
10
11
  }
11
12
  //# sourceMappingURL=asyncQueue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asyncQueue.d.ts","sourceRoot":"","sources":["../../src/executor/asyncQueue.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IACpD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,IAAI,CAAC,CAAa;IAC1B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAC,CAAQ;IAEtB,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAKnB,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAKjB,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC;CAenD"}
1
+ {"version":3,"file":"asyncQueue.d.ts","sourceRoot":"","sources":["../../src/executor/asyncQueue.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IACpD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,IAAI,CAAC,CAAa;IAC1B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAC,CAAQ;IAEtB,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAKnB,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAKxB,cAAc,IAAI,IAAI;IAGf,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC;CAenD"}
@@ -15,6 +15,9 @@ export class AsyncQueue {
15
15
  this.error = error;
16
16
  this.wake?.();
17
17
  }
18
+ discardPending() {
19
+ this.items = [];
20
+ }
18
21
  async *[Symbol.asyncIterator]() {
19
22
  for (;;) {
20
23
  if (this.items.length) {
@@ -1,7 +1,7 @@
1
1
  import { type AgentCommandOption } from '@lucidity/shared';
2
2
  import { query, type Options, type AccountInfo } from '@anthropic-ai/claude-agent-sdk';
3
3
  import type { AgentExecutor, ExecutorRunInput, ExecutorStreamEvent, ExecutorResult, ExecutorModel } from './types.js';
4
- export declare const CLAUDE_AGENT_SDK_VERSION = "0.3.267";
4
+ export declare const CLAUDE_AGENT_SDK_VERSION = "0.3.287";
5
5
  export declare function claudeSubscriptionEnv(oauthToken?: string): NodeJS.ProcessEnv;
6
6
  export declare function claudeAgentOptions(input: ExecutorRunInput, oauthToken?: string): Options;
7
7
  /** Check resolved authentication after settings load, before sending any prompt. */
@@ -1 +1 @@
1
- {"version":3,"file":"claudeAgent.d.ts","sourceRoot":"","sources":["../../src/executor/claudeAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,KAAK,EACL,KAAK,OAAO,EAGZ,KAAK,WAAW,EACjB,MAAM,gC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AC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC;IAMpD,SAAS,CACd,KAAK,EAAE,gBAAgB,GACtB,aAAa,CAAC,mBAAmB,CAAC;CA4JtC"}
@@ -5,7 +5,7 @@ import { query, } from '@anthropic-ai/claude-agent-sdk';
5
5
  import { stripUnsafeEnv } from './claudeCode.js';
6
6
  import { AsyncQueue } from './asyncQueue.js';
7
7
  import { LiveTurns } from './liveTurns.js';
8
- export const CLAUDE_AGENT_SDK_VERSION = '0.3.267';
8
+ export const CLAUDE_AGENT_SDK_VERSION = '0.3.287';
9
9
  const INTERACTIVE_TOOLS = ['AskUserQuestion', 'EnterPlanMode', 'ExitPlanMode'];
10
10
  const WRITE_TOOLS = ['Bash', 'Write', 'Edit', 'NotebookEdit'];
11
11
  export function claudeSubscriptionEnv(oauthToken) {
@@ -57,6 +57,7 @@ export function claudeAgentOptions(input, oauthToken) {
57
57
  env: claudeSubscriptionEnv(oauthToken),
58
58
  model: input.model,
59
59
  effort: input.effort,
60
+ outputFormat: input.outputSchema ? { type: 'json_schema', schema: input.outputSchema } : undefined,
60
61
  resume: input.resume,
61
62
  sessionId: input.resume ? undefined : input.sessionId,
62
63
  systemPrompt: input.systemPrompt
@@ -162,7 +163,7 @@ export class ClaudeAgentExecutor {
162
163
  return this.turns.interrupt(requestId);
163
164
  }
164
165
  async dispose() {
165
- this.turns.dispose();
166
+ await this.turns.dispose();
166
167
  }
167
168
  /** Start the SDK control channel without ever supplying an inference prompt. */
168
169
  async models() {
@@ -201,6 +202,7 @@ export class ClaudeAgentExecutor {
201
202
  incoming.end();
202
203
  abortController.abort();
203
204
  active.close();
205
+ await active.return();
204
206
  }
205
207
  }
206
208
  async commands(input = {}) {
@@ -230,6 +232,7 @@ export class ClaudeAgentExecutor {
230
232
  incoming.end();
231
233
  abortController.abort();
232
234
  active.close();
235
+ await active.return();
233
236
  }
234
237
  }
235
238
  async run(input) {
@@ -330,23 +333,30 @@ export class ClaudeAgentExecutor {
330
333
  }
331
334
  }
332
335
  else if (event.type === 'result') {
336
+ // A priority correction interrupts the old native loop before its own loop
337
+ // starts. The pinned SDK reports this intermediate result before echoing
338
+ // the queued correction. Drain it without turning it into a Lucidity terminal.
339
+ if (pending.size && event.subtype === 'error_during_execution' &&
340
+ event.errors.length === 1 &&
341
+ event.errors[0] === '[ede_diagnostic] result_type=user last_content_type=n/a stop_reason=null')
342
+ continue;
333
343
  if (event.subtype !== 'success' || event.is_error) {
334
- throw new Error((command &&
335
- (event.subtype === 'success'
336
- ? event.result
337
- : event.errors.join('\n'))) ||
338
- `Claude could not complete the turn (${event.subtype}). Check subscription access and usage limits.`);
344
+ throw new Error((event.subtype === 'success' ? event.result : event.errors.join('\n')) ||
345
+ `Claude turn ended with ${event.subtype}.`);
339
346
  }
340
347
  // A late priority message may become a subsequent loop in this same SDK
341
348
  // query. Keep consuming until its echoed user message and result arrive.
342
349
  if (pending.size)
343
350
  continue;
351
+ if (input.outputSchema && event.structured_output === undefined)
352
+ throw new Error('Claude did not return the requested structured result.');
344
353
  ended = true;
345
354
  if (command)
346
355
  yield { type: 'tool_call', name: `/${commandName}`, phase: 'end' };
347
356
  yield {
348
357
  type: 'done',
349
- text: event.result.trim() ||
358
+ text: (input.outputSchema ? JSON.stringify(event.structured_output) : '') ||
359
+ event.result.trim() ||
350
360
  commandOutput.trim() ||
351
361
  (compacted
352
362
  ? 'Conversation compacted. You can continue here.'
@@ -373,8 +383,13 @@ export class ClaudeAgentExecutor {
373
383
  finally {
374
384
  ended = true;
375
385
  incoming.end();
376
- active?.close();
377
- owner.close();
386
+ try {
387
+ active?.close();
388
+ await active?.return();
389
+ }
390
+ finally {
391
+ owner.close();
392
+ }
378
393
  }
379
394
  }
380
395
  }
@@ -9,6 +9,7 @@ export declare class CodexExecutor implements AgentExecutor {
9
9
  readonly name = "codex-app-server";
10
10
  readonly strictResume = true;
11
11
  private readonly turns;
12
+ private readonly sessions;
12
13
  constructor(options?: {
13
14
  command?: string;
14
15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BAAgB,EAAE,KAAK,GAAG,gBAAgB,CAAM,GAC3D,OAAO,CAAC,kBAAkB,EAAE,CAAC;IA2C1B,GAAG,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC;IAMpD,SAAS,CACd,KAAK,EAAE,gBAAgB,GACtB,aAAa,CAAC,mBAAmB,CAAC;CA6YtC"}
@@ -3,6 +3,7 @@ import { readFileSync } from 'node:fs';
3
3
  import { randomUUID } from 'node:crypto';
4
4
  import { CodexRpc, initializeCodex, } from './codexRpc.js';
5
5
  import { LiveTurns, abortError } from './liveTurns.js';
6
+ import { CodexSessions, codexBindingFingerprint, } from './codexSessions.js';
6
7
  // App-server does not persist an empty thread until its first turn. Keep a durable
7
8
  // reset marker in Lucidity's provider session envelope until that turn starts.
8
9
  const EMPTY_SESSION_PREFIX = 'lucidity-codex-empty:';
@@ -101,6 +102,7 @@ export class CodexExecutor {
101
102
  name = 'codex-app-server';
102
103
  strictResume = true;
103
104
  turns = new LiveTurns();
105
+ sessions = new CodexSessions();
104
106
  constructor(options = {}) {
105
107
  this.options = options;
106
108
  }
@@ -114,7 +116,7 @@ export class CodexExecutor {
114
116
  return this.turns.interrupt(requestId);
115
117
  }
116
118
  async dispose() {
117
- this.turns.dispose();
119
+ await Promise.all([this.turns.dispose(), this.sessions.dispose()]);
118
120
  }
119
121
  async models() {
120
122
  const rpc = this.connect();
@@ -141,7 +143,7 @@ export class CodexExecutor {
141
143
  return models;
142
144
  }
143
145
  finally {
144
- rpc.close();
146
+ await rpc.close();
145
147
  }
146
148
  }
147
149
  async commands(input = {}) {
@@ -230,40 +232,39 @@ export class CodexExecutor {
230
232
  let threadId = '';
231
233
  let turnId = '';
232
234
  let ended = false;
233
- const rpc = this.connect(input.cwd);
234
- let owner;
235
- try {
236
- owner = this.turns.open(input, async (text) => {
237
- if (command)
238
- throw new Error('Wait for the command to finish before sending a message.');
239
- if (!turnId || ended)
240
- throw new Error('Codex has no active turn to steer.');
241
- const params = {
242
- threadId,
243
- expectedTurnId: turnId,
244
- input: userInput({ userPrompt: text }),
245
- };
246
- await rpc.request('turn/steer', params);
247
- });
248
- }
249
- catch (error) {
250
- rpc.close();
251
- throw error;
252
- }
235
+ let rpc;
236
+ let thread;
237
+ let fingerprint = '';
238
+ let reusable = false;
239
+ const owner = this.turns.open(input, async (text) => {
240
+ if (command)
241
+ throw new Error('Wait for the command to finish before sending a message.');
242
+ if (!rpc || !turnId || ended)
243
+ throw new Error('Codex has no active turn to steer.');
244
+ const params = {
245
+ threadId,
246
+ expectedTurnId: turnId,
247
+ input: userInput({ userPrompt: text }),
248
+ };
249
+ await rpc.request('turn/steer', params);
250
+ });
253
251
  const abort = () => {
252
+ const active = rpc;
253
+ if (!active)
254
+ return;
254
255
  if (turnId && !ended) {
255
- void rpc
256
+ void active
256
257
  .request('turn/interrupt', { threadId, turnId })
257
258
  .catch(() => { })
258
- .finally(() => rpc.close());
259
- const timer = setTimeout(() => rpc.close(), 1000);
259
+ .finally(() => active.close());
260
+ const timer = setTimeout(() => active.close(), 1000);
260
261
  timer.unref();
261
262
  }
262
263
  else
263
- rpc.close();
264
+ active.close();
264
265
  };
265
266
  owner.controller.signal.addEventListener('abort', abort, { once: true });
266
- rpc.onRequest = async (request) => {
267
+ const onRequest = async (request) => {
267
268
  const p = request.params ?? {};
268
269
  if (ended ||
269
270
  owner.controller.signal.aborted ||
@@ -300,7 +301,17 @@ export class CodexExecutor {
300
301
  };
301
302
  try {
302
303
  owner.check();
303
- await initializeCodex(rpc);
304
+ const pooled = await this.sessions.take(input.resume);
305
+ rpc = pooled?.rpc ?? this.connect(input.cwd);
306
+ rpc.onRequest = onRequest;
307
+ owner.check();
308
+ if (!pooled)
309
+ await initializeCodex(rpc);
310
+ else {
311
+ const account = await rpc.request('account/read', { refreshToken: false });
312
+ if (account.account?.type !== 'chatgpt')
313
+ throw new Error('Codex needs ChatGPT subscription login. Run codex login on this computer.');
314
+ }
304
315
  const inherited = await rpc.request('config/read', { includeLayers: false, cwd: input.cwd });
305
316
  const params = {
306
317
  cwd: input.cwd,
@@ -322,12 +333,25 @@ export class CodexExecutor {
322
333
  developerInstructions: input.systemPrompt,
323
334
  config: codexRunConfig(input, inherited.config),
324
335
  };
325
- const thread = input.resume && !isEmptySession(input.resume)
326
- ? await rpc.request('thread/resume', {
327
- ...params,
328
- threadId: input.resume,
329
- })
330
- : await rpc.request('thread/start', params);
336
+ fingerprint = codexBindingFingerprint(params);
337
+ if (pooled && pooled.fingerprint !== fingerprint) {
338
+ // Permissions, MCP tools, model, cwd or instructions changed. A new transport
339
+ // resumes only after the old owner has fully exited.
340
+ await rpc.close();
341
+ owner.check();
342
+ rpc = this.connect(input.cwd);
343
+ rpc.onRequest = onRequest;
344
+ await initializeCodex(rpc);
345
+ }
346
+ thread =
347
+ pooled?.fingerprint === fingerprint
348
+ ? pooled.thread
349
+ : input.resume && !isEmptySession(input.resume)
350
+ ? await rpc.request('thread/resume', {
351
+ ...params,
352
+ threadId: input.resume,
353
+ })
354
+ : await rpc.request('thread/start', params);
331
355
  threadId = thread.thread.id;
332
356
  const sessionId = isEmptySession(input.resume) &&
333
357
  command &&
@@ -389,6 +413,7 @@ export class CodexExecutor {
389
413
  input: userInput(input),
390
414
  model: input.model,
391
415
  effort: input.effort,
416
+ outputSchema: input.outputSchema,
392
417
  };
393
418
  if (command?.name === 'compact') {
394
419
  yield {
@@ -472,6 +497,7 @@ export class CodexExecutor {
472
497
  throw abortError();
473
498
  if (completed.status !== 'completed')
474
499
  throw new Error(completed.error?.message ?? `Codex turn ${completed.status}.`);
500
+ reusable = true;
475
501
  if (command)
476
502
  yield {
477
503
  type: 'tool_call',
@@ -499,8 +525,15 @@ export class CodexExecutor {
499
525
  finally {
500
526
  ended = true;
501
527
  owner.controller.signal.removeEventListener('abort', abort);
502
- rpc.close();
503
- owner.close();
528
+ try {
529
+ if (rpc && reusable && thread && !owner.controller.signal.aborted)
530
+ await this.sessions.keep({ rpc, thread, fingerprint });
531
+ else
532
+ await rpc?.close();
533
+ }
534
+ finally {
535
+ owner.close();
536
+ }
504
537
  }
505
538
  }
506
539
  }
@@ -8,9 +8,12 @@ export type FunctionCallOutputContentItem = {
8
8
  text: string;
9
9
  } | {
10
10
  "type": "input_image";
11
- image_url: string;
12
11
  detail?: ImageDetail;
12
+ } & ({
13
+ image_url: string;
13
14
  } | {
15
+ file_id: string;
16
+ }) | {
14
17
  "type": "input_audio";
15
18
  audio_url: string;
16
19
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionCallOutputContentItem.d.ts","sourceRoot":"","sources":["../../../src/executor/codexProtocol/FunctionCallOutputContentItem.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAC;CAAE,CAAC"}
1
+ {"version":3,"file":"FunctionCallOutputContentItem.d.ts","sourceRoot":"","sources":["../../../src/executor/codexProtocol/FunctionCallOutputContentItem.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAAE,GAAG,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;CAAE,CAAC,GAAG;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Deprecated: `friendly` and `pragmatic` no longer select a style.
3
+ */
1
4
  export type Personality = "none" | "friendly" | "pragmatic";
2
5
  //# sourceMappingURL=Personality.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Personality.d.ts","sourceRoot":"","sources":["../../../src/executor/codexProtocol/Personality.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"Personality.d.ts","sourceRoot":"","sources":["../../../src/executor/codexProtocol/Personality.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC"}
@@ -1,2 +1,2 @@
1
- export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown";
1
+ export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "promax" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown";
2
2
  //# sourceMappingURL=PlanType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanType.d.ts","sourceRoot":"","sources":["../../../src/executor/codexProtocol/PlanType.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,6BAA6B,GAAG,iCAAiC,GAAG,UAAU,GAAG,OAAO,GAAG,2BAA2B,GAAG,4BAA4B,GAAG,YAAY,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"PlanType.d.ts","sourceRoot":"","sources":["../../../src/executor/codexProtocol/PlanType.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,6BAA6B,GAAG,iCAAiC,GAAG,UAAU,GAAG,OAAO,GAAG,2BAA2B,GAAG,4BAA4B,GAAG,YAAY,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Requested cyber treatment for a ChatGPT-authenticated Codex turn.
3
+ * Authorization and model-tier restrictions remain server-owned.
4
+ */
5
+ export type CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed";
6
+ //# sourceMappingURL=CyberAccessProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyberAccessProgram.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/CyberAccessProgram.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
@@ -2,6 +2,11 @@ import type { JsonValue } from "../serde_json/JsonValue.js";
2
2
  import type { RateLimitResetCreditsSummary } from "./RateLimitResetCreditsSummary.js";
3
3
  import type { RateLimitSnapshot } from "./RateLimitSnapshot.js";
4
4
  export type GetAccountRateLimitsResponse = {
5
+ /**
6
+ * Backend permission for ordinary included usage, validated against the active account.
7
+ * Null means unavailable; clients must not infer recovery from percentages or reset times.
8
+ */
9
+ ordinaryUsageAllowed: boolean | null;
5
10
  /**
6
11
  * Backward-compatible single-bucket view; mirrors the historical payload.
7
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"GetAccountRateLimitsResponse.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;OAEG;IACH,mBAAmB,EAAE;SAAG,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,iBAAiB;KAAE,GAAG,IAAI,CAAC;IAAC,qBAAqB,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAChI;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
1
+ {"version":3,"file":"GetAccountRateLimitsResponse.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GAAG;IAC3C;;;OAGG;IACH,oBAAoB,EAAE,OAAO,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;OAEG;IACH,mBAAmB,EAAE;SAAG,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,iBAAiB;KAAE,GAAG,IAAI,CAAC;IAAC,qBAAqB,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAChI;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { InputModality } from "../InputModality.js";
2
2
  import type { ReasoningEffort } from "../ReasoningEffort.js";
3
+ import type { ModelAccessPrograms } from "./ModelAccessPrograms.js";
3
4
  import type { ModelAvailabilityNux } from "./ModelAvailabilityNux.js";
4
5
  import type { ModelServiceTier } from "./ModelServiceTier.js";
5
6
  import type { ModelUpgradeInfo } from "./ModelUpgradeInfo.js";
@@ -18,6 +19,9 @@ export type Model = {
18
19
  supportedReasoningEfforts: Array<ReasoningEffortOption>;
19
20
  defaultReasoningEffort: ReasoningEffort;
20
21
  inputModalities: Array<InputModality>;
22
+ /**
23
+ * @deprecated Always false; models no longer support personality selection.
24
+ */
21
25
  supportsPersonality: boolean;
22
26
  /**
23
27
  * Multi-agent runtime declared by this model, when available.
@@ -32,6 +36,10 @@ export type Model = {
32
36
  * Catalog default service tier id for this model, when one is configured.
33
37
  */
34
38
  defaultServiceTier: string | null;
39
+ /**
40
+ * Null when the catalog does not provide access-program metadata.
41
+ */
42
+ availableAccessPrograms: ModelAccessPrograms | null;
35
43
  isDefault: boolean;
36
44
  };
37
45
  //# sourceMappingURL=Model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/Model.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,oBA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E,OAAO,CAAC;CAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { CyberAccessProgram } from "./CyberAccessProgram.js";
2
+ /**
3
+ * Caller-specific explicit access programs advertised by model discovery.
4
+ */
5
+ export type ModelAccessPrograms = {
6
+ /**
7
+ * Accepted explicit selections.
8
+ */
9
+ cyber: Array<CyberAccessProgram>;
10
+ };
11
+ //# sourceMappingURL=ModelAccessPrograms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelAccessPrograms.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/ModelAccessPrograms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
@@ -6,6 +6,10 @@ import type { SpendControlLimitSnapshot } from "./SpendControlLimitSnapshot.js";
6
6
  export type RateLimitSnapshot = {
7
7
  limitId: string | null;
8
8
  limitName: string | null;
9
+ /**
10
+ * Normal model whose display name and reasoning options describe this quota alias.
11
+ */
12
+ normalModelSlug: string | null;
9
13
  primary: RateLimitWindow | null;
10
14
  secondary: RateLimitWindow | null;
11
15
  credits: CreditsSnapshot | null;
@@ -1 +1 @@
1
- {"version":3,"file":"RateLimitSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/RateLimitSnapshot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAA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IAAC,eAAe,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACvL;;OAEG;IACH,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAAC,oBAAoB,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAAE,CAAC"}
@@ -6,6 +6,8 @@ export type ReviewStartParams = {
6
6
  /**
7
7
  * Where to run the review: inline (default) on the current thread or
8
8
  * detached on a new thread (returned in `reviewThreadId`).
9
+ * Detached delivery is deprecated and emits `deprecationNotice`.
10
+ * Use `thread/start` followed by an inline review for a separate review thread.
9
11
  */
10
12
  delivery?: ReviewDelivery | null;
11
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ReviewStartParams.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/ReviewStartParams.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,YAAY,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAAE,CAAC"}
1
+ {"version":3,"file":"ReviewStartParams.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/ReviewStartParams.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,YAAY,CAAC;IACzE;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAAE,CAAC"}
@@ -37,7 +37,10 @@ export type ThreadResumeParams = {
37
37
  [key in string]?: JsonValue;
38
38
  } | null;
39
39
  baseInstructions?: string | null;
40
- developerInstructions?: string | null;
40
+ developerInstructions?: string | null; /**
41
+ * @deprecated `friendly` and `pragmatic` no longer select a style.
42
+ * Changing this does not rewrite the thread's existing instructions.
43
+ */
41
44
  personality?: Personality | null; /**
42
45
  * When true, return only thread metadata and live-resume state without
43
46
  * populating `thread.turns`. This is useful when the client plans to call
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadResumeParams.d.ts","sourceRoot":"","sources":["../../../../src/executor/codexProtocol/v2/ThreadResumeParams.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;;OAEjD;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC,CAAC;;;OAGpJ;IACH,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE;SAAG,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,SAA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