@opencorelabs/lucidity 0.7.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 (219) hide show
  1. package/README.md +9 -2
  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 +57 -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 +116 -101
  44. package/dist/room/computer.d.ts.map +1 -1
  45. package/dist/room/computer.js +1 -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 +57 -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 +77 -74
  77. package/src/room/computer.ts +1 -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/mcp-server/dist/index.js +2 -0
  85. package/vendor/mcp-server/dist/tools/goals.d.ts +4 -0
  86. package/vendor/mcp-server/dist/tools/goals.d.ts.map +1 -0
  87. package/vendor/mcp-server/dist/tools/goals.js +38 -0
  88. package/vendor/mcp-server/package.json +1 -1
  89. package/vendor/mcp-server/src/index.ts +2 -0
  90. package/vendor/mcp-server/src/tools/goals.ts +62 -0
  91. package/vendor/runtime/README.md +2 -2
  92. package/vendor/runtime/dist/executor/asyncQueue.d.ts +1 -0
  93. package/vendor/runtime/dist/executor/asyncQueue.d.ts.map +1 -1
  94. package/vendor/runtime/dist/executor/asyncQueue.js +3 -0
  95. package/vendor/runtime/dist/executor/claudeAgent.d.ts +1 -1
  96. package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
  97. package/vendor/runtime/dist/executor/claudeAgent.js +20 -9
  98. package/vendor/runtime/dist/executor/codex.d.ts +1 -0
  99. package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
  100. package/vendor/runtime/dist/executor/codex.js +68 -36
  101. package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts +4 -1
  102. package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts.map +1 -1
  103. package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts +3 -0
  104. package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts.map +1 -1
  105. package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts +1 -1
  106. package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts.map +1 -1
  107. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts +6 -0
  108. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts.map +1 -0
  109. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.js +2 -0
  110. package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts +5 -0
  111. package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts.map +1 -1
  112. package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts +8 -0
  113. package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts.map +1 -1
  114. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts +11 -0
  115. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts.map +1 -0
  116. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.js +2 -0
  117. package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts +4 -0
  118. package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts.map +1 -1
  119. package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts +2 -0
  120. package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts.map +1 -1
  121. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts +4 -1
  122. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts.map +1 -1
  123. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts +3 -1
  124. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts.map +1 -1
  125. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts +7 -2
  126. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts.map +1 -1
  127. package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts +3 -0
  128. package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts.map +1 -1
  129. package/vendor/runtime/dist/executor/codexRpc.d.ts +10 -3
  130. package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
  131. package/vendor/runtime/dist/executor/codexRpc.js +18 -3
  132. package/vendor/runtime/dist/executor/codexSessions.d.ts +30 -0
  133. package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -0
  134. package/vendor/runtime/dist/executor/codexSessions.js +88 -0
  135. package/vendor/runtime/dist/executor/health.d.ts +2 -1
  136. package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
  137. package/vendor/runtime/dist/executor/health.js +17 -5
  138. package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -1
  139. package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
  140. package/vendor/runtime/dist/executor/liveTurns.js +12 -5
  141. package/vendor/runtime/dist/executor/ownership.d.ts +35 -0
  142. package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -0
  143. package/vendor/runtime/dist/executor/ownership.js +99 -0
  144. package/vendor/runtime/dist/executor/providerRouter.d.ts +1 -0
  145. package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
  146. package/vendor/runtime/dist/executor/providerRouter.js +5 -0
  147. package/vendor/runtime/dist/executor/types.d.ts +2 -0
  148. package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
  149. package/vendor/runtime/dist/index.d.ts +1 -0
  150. package/vendor/runtime/dist/index.d.ts.map +1 -1
  151. package/vendor/runtime/dist/index.js +1 -0
  152. package/vendor/runtime/src/executor/asyncQueue.ts +3 -0
  153. package/vendor/runtime/src/executor/claudeAgent.ts +16 -9
  154. package/vendor/runtime/src/executor/codex.ts +75 -44
  155. package/vendor/runtime/src/executor/codexProtocol/FunctionCallOutputContentItem.ts +1 -1
  156. package/vendor/runtime/src/executor/codexProtocol/Personality.ts +3 -0
  157. package/vendor/runtime/src/executor/codexProtocol/PlanType.ts +1 -1
  158. package/vendor/runtime/src/executor/codexProtocol/README.md +2 -2
  159. package/vendor/runtime/src/executor/codexProtocol/v2/CyberAccessProgram.ts +9 -0
  160. package/vendor/runtime/src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts +5 -0
  161. package/vendor/runtime/src/executor/codexProtocol/v2/Model.ts +11 -2
  162. package/vendor/runtime/src/executor/codexProtocol/v2/ModelAccessPrograms.ts +13 -0
  163. package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitSnapshot.ts +5 -1
  164. package/vendor/runtime/src/executor/codexProtocol/v2/ReviewStartParams.ts +2 -0
  165. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadResumeParams.ts +5 -1
  166. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStartParams.ts +4 -1
  167. package/vendor/runtime/src/executor/codexProtocol/v2/TurnStartParams.ts +7 -2
  168. package/vendor/runtime/src/executor/codexProtocol/v2/UserInput.ts +1 -1
  169. package/vendor/runtime/src/executor/codexRpc.ts +22 -4
  170. package/vendor/runtime/src/executor/codexSessions.ts +108 -0
  171. package/vendor/runtime/src/executor/health.ts +16 -6
  172. package/vendor/runtime/src/executor/liveTurns.ts +12 -5
  173. package/vendor/runtime/src/executor/ownership.ts +76 -0
  174. package/vendor/runtime/src/executor/providerRouter.ts +6 -0
  175. package/vendor/runtime/src/executor/types.ts +2 -0
  176. package/vendor/runtime/src/index.ts +1 -0
  177. package/vendor/shared/dist/agentCommands.d.ts +1 -0
  178. package/vendor/shared/dist/agentCommands.d.ts.map +1 -1
  179. package/vendor/shared/dist/cardStudio.d.ts +41 -0
  180. package/vendor/shared/dist/cardStudio.d.ts.map +1 -1
  181. package/vendor/shared/dist/cardStudio.js +13 -3
  182. package/vendor/shared/dist/computer.d.ts +7 -1
  183. package/vendor/shared/dist/computer.d.ts.map +1 -1
  184. package/vendor/shared/dist/computer.js +12 -2
  185. package/vendor/shared/dist/constants.d.ts +3 -3
  186. package/vendor/shared/dist/constants.d.ts.map +1 -1
  187. package/vendor/shared/dist/constants.js +5 -4
  188. package/vendor/shared/dist/goalNotes.d.ts +4 -0
  189. package/vendor/shared/dist/goalNotes.d.ts.map +1 -0
  190. package/vendor/shared/dist/goalNotes.js +23 -0
  191. package/vendor/shared/dist/goals.d.ts +835 -0
  192. package/vendor/shared/dist/goals.d.ts.map +1 -0
  193. package/vendor/shared/dist/goals.js +198 -0
  194. package/vendor/shared/dist/index.d.ts +3 -0
  195. package/vendor/shared/dist/index.d.ts.map +1 -1
  196. package/vendor/shared/dist/index.js +3 -0
  197. package/vendor/shared/dist/schemas/harness.d.ts +101 -0
  198. package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
  199. package/vendor/shared/dist/schemas/harness.js +6 -0
  200. package/vendor/shared/dist/workspaces.d.ts +138 -0
  201. package/vendor/shared/dist/workspaces.d.ts.map +1 -0
  202. package/vendor/shared/dist/workspaces.js +40 -0
  203. package/vendor/shared/src/agentCommands.ts +1 -0
  204. package/vendor/shared/src/cardStudio.ts +13 -3
  205. package/vendor/shared/src/computer.ts +16 -2
  206. package/vendor/shared/src/constants.ts +5 -4
  207. package/vendor/shared/src/goalNotes.ts +23 -0
  208. package/vendor/shared/src/goals.ts +237 -0
  209. package/vendor/shared/src/index.ts +4 -0
  210. package/vendor/shared/src/schemas/harness.ts +6 -0
  211. package/vendor/shared/src/workspaces.ts +48 -0
  212. package/dist/coding/fleetIntegrate.d.ts +0 -37
  213. package/dist/coding/fleetIntegrate.d.ts.map +0 -1
  214. package/dist/coding/fleetIntegrate.js +0 -64
  215. package/dist/coding/openFleetPr.d.ts +0 -41
  216. package/dist/coding/openFleetPr.d.ts.map +0 -1
  217. package/dist/coding/openFleetPr.js +0 -121
  218. package/src/coding/fleetIntegrate.ts +0 -95
  219. package/src/coding/openFleetPr.ts +0 -148
@@ -10,12 +10,14 @@ export function abortError(): Error {
10
10
 
11
11
  /** Request-scoped ownership. Control calls never wait behind the work queue. */
12
12
  export class LiveTurns {
13
+ private disposed = false;
13
14
  private turns = new Map<
14
15
  string,
15
- { abort: () => void; steer: (text: string) => Promise<void> }
16
+ { abort: () => void; steer: (text: string) => Promise<void>; settled: Promise<void> }
16
17
  >();
17
18
 
18
19
  open(input: ExecutorRunInput, steer: (text: string) => Promise<void>) {
20
+ if (this.disposed) throw new Error('The provider is shutting down.');
19
21
  const id = input.requestId ?? randomUUID();
20
22
  if (id && this.turns.has(id))
21
23
  throw new Error('This request is already running.');
@@ -28,7 +30,9 @@ export class LiveTurns {
28
30
  timedOut = true;
29
31
  abort();
30
32
  }, input.timeoutMs ?? 120_000);
31
- if (id) this.turns.set(id, { abort, steer });
33
+ let settle!: () => void;
34
+ const settled = new Promise<void>((resolve) => { settle = resolve; });
35
+ this.turns.set(id, { abort, steer, settled });
32
36
  return {
33
37
  controller,
34
38
  check: () => {
@@ -40,6 +44,7 @@ export class LiveTurns {
40
44
  input.signal?.removeEventListener('abort', abort);
41
45
  if (id) this.turns.delete(id);
42
46
  abort();
47
+ settle();
43
48
  },
44
49
  };
45
50
  }
@@ -63,8 +68,10 @@ export class LiveTurns {
63
68
  return true;
64
69
  }
65
70
 
66
- dispose(): void {
67
- for (const turn of this.turns.values()) turn.abort();
68
- this.turns.clear();
71
+ async dispose(): Promise<void> {
72
+ this.disposed = true;
73
+ const active = [...this.turns.values()];
74
+ for (const turn of active) turn.abort();
75
+ await Promise.all(active.map((turn) => turn.settled));
69
76
  }
70
77
  }
@@ -0,0 +1,76 @@
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
+ import { realpathSync } from 'node:fs';
3
+ import { resolve } from 'node:path';
4
+ import type { AgentExecutor, ExecutorRunInput } from './types.js';
5
+ import { abortError } from './liveTurns.js';
6
+
7
+ /** Shared across providers and callers, including scheduled and local chat work. */
8
+ export class ExecutionOwnership {
9
+ private context = new AsyncLocalStorage<Set<string>>();
10
+
11
+ async run<T>(keys: string[], action: () => Promise<T>, signal?: AbortSignal): Promise<T> {
12
+ const held = this.context.getStore() ?? new Set<string>();
13
+ const release = await this.acquire(keys, signal);
14
+ try { return await this.context.run(new Set([...held, ...keys]), action); }
15
+ finally { release(); }
16
+ }
17
+
18
+ private owners = new Map<string, Promise<void>>();
19
+
20
+ async acquire(keys: string[], signal?: AbortSignal): Promise<() => void> {
21
+ keys = [...new Set(keys)].filter((key) => !this.context.getStore()?.has(key));
22
+ for (;;) {
23
+ if (signal?.aborted) throw abortError();
24
+ const blocked = keys.flatMap((key) => this.owners.get(key) ?? []);
25
+ if (!blocked.length) break;
26
+ await new Promise<void>((resolve, reject) => {
27
+ const abort = () => reject(abortError());
28
+ signal?.addEventListener('abort', abort, { once: true });
29
+ Promise.race(blocked).then(resolve, reject).finally(() => signal?.removeEventListener('abort', abort));
30
+ });
31
+ }
32
+ let release!: () => void;
33
+ const settled = new Promise<void>((resolve) => { release = resolve; });
34
+ for (const key of keys) this.owners.set(key, settled);
35
+ return () => {
36
+ for (const key of keys) if (this.owners.get(key) === settled) this.owners.delete(key);
37
+ release();
38
+ };
39
+ }
40
+ }
41
+
42
+ function workspaceKey(path: string): string {
43
+ try { return realpathSync(path); } catch { return resolve(path); }
44
+ }
45
+
46
+ export class OwnedExecutor implements AgentExecutor {
47
+ constructor(private readonly executor: AgentExecutor, private readonly provider: string, private readonly ownership: ExecutionOwnership) {}
48
+ get name() { return this.executor.name; }
49
+ get strictResume() { return this.executor.strictResume; }
50
+ private keys(input: ExecutorRunInput): string[] {
51
+ const session = input.resume ?? input.sessionId;
52
+ return [
53
+ ...(session ? [`session:${this.provider}:${session}`] : []),
54
+ ...(input.cwd && input.permissionMode && !input.noTools ? [`workspace:${workspaceKey(input.cwd)}`] : []),
55
+ ];
56
+ }
57
+ withOwnership<T>(input: ExecutorRunInput, action: () => Promise<T>): Promise<T> {
58
+ return this.ownership.run(this.keys(input), action, input.signal);
59
+ }
60
+ async run(input: ExecutorRunInput) {
61
+ const release = await this.ownership.acquire(this.keys(input), input.signal);
62
+ try { return await this.executor.run(input); } finally { release(); }
63
+ }
64
+ async *runStream(input: ExecutorRunInput) {
65
+ const release = await this.ownership.acquire(this.keys(input), input.signal);
66
+ try {
67
+ if (!this.executor.runStream) throw new Error('This provider cannot stream.');
68
+ yield* this.executor.runStream(input);
69
+ } finally { release(); }
70
+ }
71
+ models() { return this.executor.models?.() ?? Promise.resolve([]); }
72
+ commands(input?: Pick<ExecutorRunInput, 'cwd' | 'permissionMode' | 'mcp'>) { return this.executor.commands?.(input) ?? Promise.resolve([]); }
73
+ steer(id: string, text: string) { return this.executor.steer?.(id, text) ?? Promise.reject(new Error('Steering is unavailable.')); }
74
+ interrupt(id: string) { return this.executor.interrupt?.(id) ?? Promise.resolve(false); }
75
+ async dispose() { await this.executor.dispose?.(); }
76
+ }
@@ -76,6 +76,12 @@ export class ProviderRouter implements AgentExecutor {
76
76
  };
77
77
  }
78
78
 
79
+ withOwnership<T>(input: ExecutorRunInput, action: () => Promise<T>): Promise<T> {
80
+ const r = this.resolve(input);
81
+ const executor = this.providers[r.provider];
82
+ return executor.withOwnership ? executor.withOwnership(r.input, action) : action();
83
+ }
84
+
79
85
  async run(input: ExecutorRunInput) {
80
86
  const r = this.resolve(input);
81
87
  const result = await this.providers[r.provider].run(r.input);
@@ -104,6 +104,8 @@ export interface AgentExecutor {
104
104
  commands?(input?: Pick<ExecutorRunInput, 'cwd' | 'permissionMode' | 'mcp'>): Promise<import('@lucidity/shared').AgentCommandOption[]>;
105
105
  dispose?(): Promise<void>;
106
106
 
107
+ /** Hold the same session and workspace through preparation and result collection. */
108
+ withOwnership?<T>(input: ExecutorRunInput, action: () => Promise<T>): Promise<T>;
107
109
  run(input: ExecutorRunInput): Promise<ExecutorResult>;
108
110
  /** Optional token-streaming variant for interactive chat. */
109
111
  runStream?(input: ExecutorRunInput): AsyncIterable<ExecutorStreamEvent>;
@@ -84,6 +84,7 @@ export { CODEX_RUNTIME_VERSION } from './executor/codexRpc.js';
84
84
  export { ProviderRouter, encodeSession, decodeSession } from './executor/providerRouter.js';
85
85
  export type { AgentProvider, ExecutorApproval, ExecutorModel } from './executor/types.js';
86
86
  export { HealthAwareExecutor, providerFailure } from './executor/health.js';
87
+ export { ExecutionOwnership, OwnedExecutor } from './executor/ownership.js';
87
88
 
88
89
  // Bounded decisions, independent of subscription-backed chat/coding executors.
89
90
  export * from '@lucidity/decisions';
@@ -15,6 +15,7 @@ export interface AgentCommandOption {
15
15
  argumentHint: string;
16
16
  /** SDK commands can accept freeform arguments without publishing a hint. */
17
17
  acceptsArguments?: boolean;
18
+ startsConversation?: boolean;
18
19
  aliases?: string[];
19
20
  clearsContext?: boolean;
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agentCommands.d.ts","sourceRoot":"","sources":["../src/agentCommands.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAIjD;AAED,qFAAqF;AACrF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,kCAQ5E"}
1
+ {"version":3,"file":"agentCommands.d.ts","sourceRoot":"","sources":["../src/agentCommands.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAIjD;AAED,qFAAqF;AACrF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,kCAQ5E"}
@@ -7,6 +7,7 @@ export declare const CardIdSchema: z.ZodEnum<{
7
7
  "habit-contributions": "habit-contributions";
8
8
  focus: "focus";
9
9
  "weekly-review": "weekly-review";
10
+ goals: "goals";
10
11
  }>;
11
12
  export type CardId = z.infer<typeof CardIdSchema>;
12
13
  export declare const CardStyleSchema: z.ZodEnum<{
@@ -30,8 +31,13 @@ export declare const CardPreferencesSchema: z.ZodObject<{
30
31
  "habit-contributions": "habit-contributions";
31
32
  focus: "focus";
32
33
  "weekly-review": "weekly-review";
34
+ goals: "goals";
33
35
  }>>;
34
36
  styles: z.ZodObject<{
37
+ goals: z.ZodDefault<z.ZodEnum<{
38
+ glance: "glance";
39
+ act: "act";
40
+ }>>;
35
41
  habits: z.ZodEnum<{
36
42
  glance: "glance";
37
43
  act: "act";
@@ -64,6 +70,7 @@ export declare const CardPreferenceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodO
64
70
  "habit-contributions": "habit-contributions";
65
71
  focus: "focus";
66
72
  "weekly-review": "weekly-review";
73
+ goals: "goals";
67
74
  }>;
68
75
  index: z.ZodOptional<z.ZodNumber>;
69
76
  }, z.core.$strip>, z.ZodObject<{
@@ -76,6 +83,7 @@ export declare const CardPreferenceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodO
76
83
  "habit-contributions": "habit-contributions";
77
84
  focus: "focus";
78
85
  "weekly-review": "weekly-review";
86
+ goals: "goals";
79
87
  }>;
80
88
  }, z.core.$strip>, z.ZodObject<{
81
89
  type: z.ZodLiteral<"move">;
@@ -87,6 +95,7 @@ export declare const CardPreferenceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodO
87
95
  "habit-contributions": "habit-contributions";
88
96
  focus: "focus";
89
97
  "weekly-review": "weekly-review";
98
+ goals: "goals";
90
99
  }>;
91
100
  before: z.ZodNullable<z.ZodEnum<{
92
101
  today: "today";
@@ -96,6 +105,7 @@ export declare const CardPreferenceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodO
96
105
  "habit-contributions": "habit-contributions";
97
106
  focus: "focus";
98
107
  "weekly-review": "weekly-review";
108
+ goals: "goals";
99
109
  }>>;
100
110
  }, z.core.$strip>, z.ZodObject<{
101
111
  type: z.ZodLiteral<"style">;
@@ -104,6 +114,7 @@ export declare const CardPreferenceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodO
104
114
  "habit-contributions": "habit-contributions";
105
115
  focus: "focus";
106
116
  "weekly-review": "weekly-review";
117
+ goals: "goals";
107
118
  }>;
108
119
  style: z.ZodEnum<{
109
120
  glance: "glance";
@@ -255,8 +266,13 @@ export declare const StudioSnapshotSchema: z.ZodObject<{
255
266
  "habit-contributions": "habit-contributions";
256
267
  focus: "focus";
257
268
  "weekly-review": "weekly-review";
269
+ goals: "goals";
258
270
  }>>;
259
271
  styles: z.ZodObject<{
272
+ goals: z.ZodDefault<z.ZodEnum<{
273
+ glance: "glance";
274
+ act: "act";
275
+ }>>;
260
276
  habits: z.ZodEnum<{
261
277
  glance: "glance";
262
278
  act: "act";
@@ -390,6 +406,7 @@ export declare const StudioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
406
  "habit-contributions": "habit-contributions";
391
407
  focus: "focus";
392
408
  "weekly-review": "weekly-review";
409
+ goals: "goals";
393
410
  }>;
394
411
  index: z.ZodOptional<z.ZodNumber>;
395
412
  }, z.core.$strip>, z.ZodObject<{
@@ -402,6 +419,7 @@ export declare const StudioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
402
419
  "habit-contributions": "habit-contributions";
403
420
  focus: "focus";
404
421
  "weekly-review": "weekly-review";
422
+ goals: "goals";
405
423
  }>;
406
424
  }, z.core.$strip>, z.ZodObject<{
407
425
  type: z.ZodLiteral<"move">;
@@ -413,6 +431,7 @@ export declare const StudioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
413
431
  "habit-contributions": "habit-contributions";
414
432
  focus: "focus";
415
433
  "weekly-review": "weekly-review";
434
+ goals: "goals";
416
435
  }>;
417
436
  before: z.ZodNullable<z.ZodEnum<{
418
437
  today: "today";
@@ -422,6 +441,7 @@ export declare const StudioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
422
441
  "habit-contributions": "habit-contributions";
423
442
  focus: "focus";
424
443
  "weekly-review": "weekly-review";
444
+ goals: "goals";
425
445
  }>>;
426
446
  }, z.core.$strip>, z.ZodObject<{
427
447
  type: z.ZodLiteral<"style">;
@@ -430,6 +450,7 @@ export declare const StudioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
430
450
  "habit-contributions": "habit-contributions";
431
451
  focus: "focus";
432
452
  "weekly-review": "weekly-review";
453
+ goals: "goals";
433
454
  }>;
434
455
  style: z.ZodEnum<{
435
456
  glance: "glance";
@@ -462,6 +483,7 @@ export declare const StudioOperationSchema: z.ZodObject<{
462
483
  "habit-contributions": "habit-contributions";
463
484
  focus: "focus";
464
485
  "weekly-review": "weekly-review";
486
+ goals: "goals";
465
487
  }>;
466
488
  index: z.ZodOptional<z.ZodNumber>;
467
489
  }, z.core.$strip>, z.ZodObject<{
@@ -474,6 +496,7 @@ export declare const StudioOperationSchema: z.ZodObject<{
474
496
  "habit-contributions": "habit-contributions";
475
497
  focus: "focus";
476
498
  "weekly-review": "weekly-review";
499
+ goals: "goals";
477
500
  }>;
478
501
  }, z.core.$strip>, z.ZodObject<{
479
502
  type: z.ZodLiteral<"move">;
@@ -485,6 +508,7 @@ export declare const StudioOperationSchema: z.ZodObject<{
485
508
  "habit-contributions": "habit-contributions";
486
509
  focus: "focus";
487
510
  "weekly-review": "weekly-review";
511
+ goals: "goals";
488
512
  }>;
489
513
  before: z.ZodNullable<z.ZodEnum<{
490
514
  today: "today";
@@ -494,6 +518,7 @@ export declare const StudioOperationSchema: z.ZodObject<{
494
518
  "habit-contributions": "habit-contributions";
495
519
  focus: "focus";
496
520
  "weekly-review": "weekly-review";
521
+ goals: "goals";
497
522
  }>>;
498
523
  }, z.core.$strip>, z.ZodObject<{
499
524
  type: z.ZodLiteral<"style">;
@@ -502,6 +527,7 @@ export declare const StudioOperationSchema: z.ZodObject<{
502
527
  "habit-contributions": "habit-contributions";
503
528
  focus: "focus";
504
529
  "weekly-review": "weekly-review";
530
+ goals: "goals";
505
531
  }>;
506
532
  style: z.ZodEnum<{
507
533
  glance: "glance";
@@ -532,8 +558,13 @@ export declare const StudioAcknowledgmentSchema: z.ZodObject<{
532
558
  "habit-contributions": "habit-contributions";
533
559
  focus: "focus";
534
560
  "weekly-review": "weekly-review";
561
+ goals: "goals";
535
562
  }>>;
536
563
  styles: z.ZodObject<{
564
+ goals: z.ZodDefault<z.ZodEnum<{
565
+ glance: "glance";
566
+ act: "act";
567
+ }>>;
537
568
  habits: z.ZodEnum<{
538
569
  glance: "glance";
539
570
  act: "act";
@@ -568,8 +599,13 @@ export declare const CardStoreRecordSchema: z.ZodObject<{
568
599
  "habit-contributions": "habit-contributions";
569
600
  focus: "focus";
570
601
  "weekly-review": "weekly-review";
602
+ goals: "goals";
571
603
  }>>;
572
604
  styles: z.ZodObject<{
605
+ goals: z.ZodDefault<z.ZodEnum<{
606
+ glance: "glance";
607
+ act: "act";
608
+ }>>;
573
609
  habits: z.ZodEnum<{
574
610
  glance: "glance";
575
611
  act: "act";
@@ -682,6 +718,7 @@ export declare const CardStoreRecordSchema: z.ZodObject<{
682
718
  "habit-contributions": "habit-contributions";
683
719
  focus: "focus";
684
720
  "weekly-review": "weekly-review";
721
+ goals: "goals";
685
722
  }>;
686
723
  index: z.ZodOptional<z.ZodNumber>;
687
724
  }, z.core.$strip>, z.ZodObject<{
@@ -694,6 +731,7 @@ export declare const CardStoreRecordSchema: z.ZodObject<{
694
731
  "habit-contributions": "habit-contributions";
695
732
  focus: "focus";
696
733
  "weekly-review": "weekly-review";
734
+ goals: "goals";
697
735
  }>;
698
736
  }, z.core.$strip>, z.ZodObject<{
699
737
  type: z.ZodLiteral<"move">;
@@ -705,6 +743,7 @@ export declare const CardStoreRecordSchema: z.ZodObject<{
705
743
  "habit-contributions": "habit-contributions";
706
744
  focus: "focus";
707
745
  "weekly-review": "weekly-review";
746
+ goals: "goals";
708
747
  }>;
709
748
  before: z.ZodNullable<z.ZodEnum<{
710
749
  today: "today";
@@ -714,6 +753,7 @@ export declare const CardStoreRecordSchema: z.ZodObject<{
714
753
  "habit-contributions": "habit-contributions";
715
754
  focus: "focus";
716
755
  "weekly-review": "weekly-review";
756
+ goals: "goals";
717
757
  }>>;
718
758
  }, z.core.$strip>, z.ZodObject<{
719
759
  type: z.ZodLiteral<"style">;
@@ -722,6 +762,7 @@ export declare const CardStoreRecordSchema: z.ZodObject<{
722
762
  "habit-contributions": "habit-contributions";
723
763
  focus: "focus";
724
764
  "weekly-review": "weekly-review";
765
+ goals: "goals";
725
766
  }>;
726
767
  style: z.ZodEnum<{
727
768
  glance: "glance";
@@ -1 +1 @@
1
- {"version":3,"file":"cardStudio.d.ts","sourceRoot":"","sources":["../src/cardStudio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;EAQvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,eAAO,MAAM,eAAe;;;EAA4B,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,C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,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAY9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,aAAa,GACrB,cAAc,CA4BhB"}
@@ -7,9 +7,17 @@ export const CardIdSchema = z.enum([
7
7
  'habit-contributions',
8
8
  'focus',
9
9
  'weekly-review',
10
+ 'goals',
10
11
  ]);
11
12
  export const CardStyleSchema = z.enum(['glance', 'act']);
12
13
  export const CARD_CATALOG = [
14
+ {
15
+ id: 'goals',
16
+ name: 'Goals',
17
+ description: 'Something you want to achieve, with a timeframe and quiet checks from Lucid.',
18
+ source: 'Linked tasks, projects, private notes and habits',
19
+ styles: true,
20
+ },
13
21
  {
14
22
  id: 'attention',
15
23
  name: 'Attention',
@@ -63,9 +71,10 @@ export const CARD_CATALOG = [
63
71
  export const CardPreferencesSchema = z.object({
64
72
  order: z
65
73
  .array(CardIdSchema)
66
- .max(7)
74
+ .max(8)
67
75
  .refine((ids) => new Set(ids).size === ids.length),
68
76
  styles: z.object({
77
+ goals: CardStyleSchema.default('glance'),
69
78
  habits: CardStyleSchema,
70
79
  'habit-contributions': CardStyleSchema.default('glance'),
71
80
  focus: CardStyleSchema,
@@ -76,6 +85,7 @@ export const CardPreferencesSchema = z.object({
76
85
  export const DEFAULT_CARD_PREFERENCES = {
77
86
  order: ['attention', 'today', 'github'],
78
87
  styles: {
88
+ goals: 'glance',
79
89
  habits: 'act',
80
90
  'habit-contributions': 'glance',
81
91
  focus: 'act',
@@ -87,7 +97,7 @@ export const CardPreferenceChangeSchema = z.discriminatedUnion('type', [
87
97
  z.object({
88
98
  type: z.literal('add'),
89
99
  id: CardIdSchema,
90
- index: z.number().int().min(0).max(6).optional(),
100
+ index: z.number().int().min(0).max(7).optional(),
91
101
  }),
92
102
  z.object({ type: z.literal('remove'), id: CardIdSchema }),
93
103
  z.object({
@@ -97,7 +107,7 @@ export const CardPreferenceChangeSchema = z.discriminatedUnion('type', [
97
107
  }),
98
108
  z.object({
99
109
  type: z.literal('style'),
100
- id: z.enum(['habits', 'habit-contributions', 'focus', 'weekly-review']),
110
+ id: z.enum(['habits', 'habit-contributions', 'focus', 'weekly-review', 'goals']),
101
111
  style: CardStyleSchema,
102
112
  }),
103
113
  z.object({ type: z.literal('dismiss'), key: z.string().min(1).max(240) }),
@@ -213,7 +213,7 @@ export declare const ComputerPresenceSchema: z.ZodObject<{
213
213
  }, z.core.$strip>>>;
214
214
  }, z.core.$strip>;
215
215
  export type ComputerPresence = z.infer<typeof ComputerPresenceSchema>;
216
- export type ComputerFeature = 'turn-queue' | 'provider-handoff' | 'queue-control' | 'day-plan' | 'ask' | 'code' | 'conduct' | 'briefing' | 'attention' | 'models' | 'commands' | 'steer' | 'permission' | 'pull' | 'repos' | 'prs' | 'clone' | 'getConfig' | 'getAutomations' | 'automation' | 'setConfig' | 'journal' | 'incident' | 'voice-diag' | 'transcribe' | 'voice-capture' | 'voice-capture-status' | 'cancel';
216
+ export type ComputerFeature = 'checkout-history' | 'workspaces' | 'turn-queue' | 'provider-handoff' | 'queue-control' | 'day-plan' | 'ask' | 'code' | 'conduct' | 'briefing' | 'attention' | 'models' | 'commands' | 'steer' | 'permission' | 'pull' | 'repos' | 'prs' | 'clone' | 'getConfig' | 'getAutomations' | 'automation' | 'setConfig' | 'journal' | 'incident' | 'voice-diag' | 'transcribe' | 'voice-capture' | 'voice-capture-status' | 'cancel';
217
217
  export type Availability = {
218
218
  state: 'checking' | 'network' | 'never_paired' | 'offline' | 'update' | 'permission' | 'other_device' | 'provider' | 'ready';
219
219
  title: string;
@@ -224,4 +224,10 @@ export declare const INFERENCE_FEATURES: Set<string>;
224
224
  export declare function computerAvailability(presence: ComputerPresence | null, network: 'checking' | 'online' | 'offline', feature?: string, provider?: ComputerProvider): Availability;
225
225
  /** Session affinity can be read in RN without importing Node Buffer. Legacy IDs are Claude. */
226
226
  export declare function sessionProvider(resume?: string): ComputerProvider | undefined;
227
+ /** Saved overrides are needed when a conversation keeps a different provider from settings. */
228
+ export declare function sessionPreferences(resume?: string): {
229
+ provider: ComputerProvider;
230
+ model?: string;
231
+ effort?: string;
232
+ } | undefined;
227
233
  //# sourceMappingURL=computer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"computer.d.ts","sourceRoot":"","sources":["../src/computer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,c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kB,CAAC,MAAM,CAAC,EAAE,MAAM,GAC9C;IAAE,QAAQ,EAAE,gBAAgB,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/D,SAAS,CAkBZ"}
@@ -113,17 +113,27 @@ export function computerAvailability(presence, network, feature = 'ask', provide
113
113
  }
114
114
  /** Session affinity can be read in RN without importing Node Buffer. Legacy IDs are Claude. */
115
115
  export function sessionProvider(resume) {
116
+ return sessionPreferences(resume)?.provider;
117
+ }
118
+ /** Saved overrides are needed when a conversation keeps a different provider from settings. */
119
+ export function sessionPreferences(resume) {
116
120
  if (!resume)
117
121
  return undefined;
118
122
  if (!resume.startsWith('lucidity-session:'))
119
- return 'claude';
123
+ return { provider: 'claude' };
120
124
  try {
121
125
  const encoded = resume
122
126
  .slice('lucidity-session:'.length)
123
127
  .replace(/-/g, '+')
124
128
  .replace(/_/g, '/');
125
129
  const session = JSON.parse(atob(encoded));
126
- return session.provider === 'codex' ? 'codex' : 'claude';
130
+ if (session.provider !== 'codex' && session.provider !== 'claude')
131
+ return undefined;
132
+ return {
133
+ provider: session.provider,
134
+ model: typeof session.model === 'string' ? session.model : undefined,
135
+ effort: typeof session.effort === 'string' ? session.effort : undefined,
136
+ };
127
137
  }
128
138
  catch {
129
139
  return undefined;
@@ -110,11 +110,11 @@ export declare const BIO_MAX_LENGTH = 80;
110
110
  * would otherwise break the header) and turns an all-blank value into null, so
111
111
  * "cleared" and "never set" are the same state rather than two. */
112
112
  export declare function normalizeBio(input: string): string | null;
113
- export declare const HARNESS_REQUEST_KINDS: readonly ["getAutomations", "automation", "queue-control", "ask", "briefing", "journal", "code", "repos", "prs", "clone", "cancel", "pull", "getConfig", "setConfig", "incident", "conduct", "attention", "voice-diag", "transcribe", "voice-capture", "voice-capture-status", "steer", "permission", "models", "commands"];
113
+ export declare const HARNESS_REQUEST_KINDS: readonly ["workspaces", "getAutomations", "automation", "queue-control", "ask", "briefing", "journal", "code", "repos", "prs", "clone", "cancel", "pull", "getConfig", "setConfig", "incident", "conduct", "attention", "voice-diag", "transcribe", "voice-capture", "voice-capture-status", "steer", "permission", "models", "commands"];
114
114
  export declare const EFFORT_LEVELS: readonly ["auto", "low", "medium", "high", "xhigh", "max", "ultra"];
115
115
  export declare const EFFORT_OPTIONS: readonly [{
116
116
  readonly value: "auto";
117
- readonly label: "Provider default";
117
+ readonly label: "Automatic";
118
118
  readonly blurb: "Use the model’s recommended effort";
119
119
  }, {
120
120
  readonly value: "low";
@@ -143,7 +143,7 @@ export declare const EFFORT_OPTIONS: readonly [{
143
143
  }];
144
144
  /** A safe fallback when the live provider catalog is unavailable. Never guess a version. */
145
145
  export declare function claudeModelLabel(alias: string): string;
146
- /** Friendly label for an effort level; unset (null) reads as "Provider default". */
146
+ /** Friendly label for an effort level; unset values use automatic reasoning. */
147
147
  export declare function effortLabel(value: string | null | undefined): string;
148
148
  export declare const DELIVERY_CHANNELS: readonly ["macos", "stdout"];
149
149
  export declare const AGENT_MODES: readonly ["off", "auto", "danger"];
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,yEAMrB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,0BAA0B,mDAK7B,CAAC;AAEX,eAAO,MAAM,qBAAqB,6BAA8B,CAAC;AACjE,eAAO,MAAM,sBAAsB,oCAAqC,CAAC;AAEzE,eAAO,MAAM,0BAA0B,qCAAsC,CAAC;AAE9E,eAAO,MAAM,yBAAyB,0CAI5B,CAAC;AACX,eAAO,MAAM,oBAAoB,2BAA4B,CAAC;AAK9D,eAAO,MAAM,qBAAqB,oCAAqC,CAAC;AAUxE,eAAO,MAAM,YAAY,6BAA8B,CAAC;AA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eAAO,MAAM,2BAA2B,MAAM,CAAC;AAI/C,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAIhD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAavD;AAID,eAAO,MAAM,kBAAkB,4BAA6B,CAAC;AAW7D,eAAO,MAAM,eAAe,mCAAoC,CAAC"}
@@ -335,6 +335,7 @@ export function normalizeBio(input) {
335
335
  // re-fetches an interrupted turn's frames from the daemon's durable turn log
336
336
  // (`sinceSeq` onward) so a dropped reply is recovered, never re-run.
337
337
  export const HARNESS_REQUEST_KINDS = [
338
+ 'workspaces',
338
339
  'getAutomations',
339
340
  'automation',
340
341
  'queue-control',
@@ -383,7 +384,7 @@ export const EFFORT_LEVELS = [
383
384
  export const EFFORT_OPTIONS = [
384
385
  {
385
386
  value: 'auto',
386
- label: 'Provider default',
387
+ label: 'Automatic',
387
388
  blurb: 'Use the model’s recommended effort',
388
389
  },
389
390
  { value: 'low', label: 'Low', blurb: 'Fastest, least thorough' },
@@ -399,11 +400,11 @@ export const EFFORT_OPTIONS = [
399
400
  ];
400
401
  /** A safe fallback when the live provider catalog is unavailable. Never guess a version. */
401
402
  export function claudeModelLabel(alias) {
402
- return alias === 'default' ? 'Provider default' : alias;
403
+ return alias === 'default' ? 'Claude' : alias;
403
404
  }
404
- /** Friendly label for an effort level; unset (null) reads as "Provider default". */
405
+ /** Friendly label for an effort level; unset values use automatic reasoning. */
405
406
  export function effortLabel(value) {
406
- return (EFFORT_OPTIONS.find((e) => e.value === value)?.label ?? 'Provider default');
407
+ return (EFFORT_OPTIONS.find((e) => e.value === value)?.label ?? 'Automatic');
407
408
  }
408
409
  // The daemon's user-facing delivery channels (macOS notification vs stdout). Mirror of
409
410
  // the daemon's own `DELIVERY_CHANNELS`; the daemon re-validates on write.
@@ -0,0 +1,4 @@
1
+ /** The UUID travels with the note when it is renamed or moved in the private vault. */
2
+ export declare function goalNoteId(content: string): string | null;
3
+ export declare function withGoalNoteId(content: string, id: string): string;
4
+ //# sourceMappingURL=goalNotes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goalNotes.d.ts","sourceRoot":"","sources":["../src/goalNotes.ts"],"names":[],"mappings":"AAGA,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGzD;AACD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAclE"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { parseFrontmatter } from './notes.js';
3
+ /** The UUID travels with the note when it is renamed or moved in the private vault. */
4
+ export function goalNoteId(content) {
5
+ const parsed = z.uuid().safeParse(parseFrontmatter(content).data.lucidity_id);
6
+ return parsed.success ? parsed.data : null;
7
+ }
8
+ export function withGoalNoteId(content, id) {
9
+ z.uuid().parse(id);
10
+ const existing = goalNoteId(content);
11
+ if (existing) {
12
+ if (existing !== id)
13
+ throw new Error('This note already has a different identity. Reload it.');
14
+ return content;
15
+ }
16
+ if (content.startsWith('---')) {
17
+ const open = /^---[ \t]*\r?\n/.exec(content);
18
+ if (!open || !/^---[ \t]*(?:\r?\n|$)/m.test(content.slice(open[0].length)) || /^lucidity_id\s*:/m.test(content))
19
+ throw new Error('Fix the note’s frontmatter before linking it.');
20
+ return open[0] + `lucidity_id: ${id}\n` + content.slice(open[0].length);
21
+ }
22
+ return `---\nlucidity_id: ${id}\n---\n${content}`;
23
+ }