@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.
- package/README.md +18 -3
- package/dist/assets/speech/lucidity-speech +0 -0
- package/dist/automations/agent.d.ts.map +1 -1
- package/dist/automations/agent.js +2 -0
- package/dist/automations/designer.d.ts +1 -1
- package/dist/chat/server.d.ts +1 -0
- package/dist/chat/server.d.ts.map +1 -1
- package/dist/chat/server.js +6 -1
- package/dist/coding/conduct.d.ts +1 -22
- package/dist/coding/conduct.d.ts.map +1 -1
- package/dist/coding/conduct.js +9 -94
- package/dist/coding/runCodeTurn.d.ts +3 -16
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +157 -165
- package/dist/coding/workspaceRegistry.d.ts +24 -0
- package/dist/coding/workspaceRegistry.d.ts.map +1 -0
- package/dist/coding/workspaceRegistry.js +230 -0
- package/dist/coding/worktree.d.ts +11 -14
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +41 -21
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/daemonLease.d.ts +12 -0
- package/dist/daemonLease.d.ts.map +1 -0
- package/dist/daemonLease.js +32 -0
- package/dist/goals/assessment.d.ts +115 -0
- package/dist/goals/assessment.d.ts.map +1 -0
- package/dist/goals/assessment.js +67 -0
- package/dist/goals/notes.d.ts +18 -0
- package/dist/goals/notes.d.ts.map +1 -0
- package/dist/goals/notes.js +72 -0
- package/dist/index.js +63 -15
- package/dist/jobs/goals.d.ts +15 -0
- package/dist/jobs/goals.d.ts.map +1 -0
- package/dist/jobs/goals.js +286 -0
- package/dist/jobs/weeklyReview.d.ts.map +1 -1
- package/dist/jobs/weeklyReview.js +3 -2
- package/dist/queue.d.ts +1 -0
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +4 -0
- package/dist/room/client.d.ts +5 -0
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +124 -107
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +2 -0
- package/dist/room/durablePublish.d.ts +6 -0
- package/dist/room/durablePublish.d.ts.map +1 -0
- package/dist/room/durablePublish.js +19 -0
- package/dist/room/incidents.d.ts +1 -1
- package/dist/room/incidents.d.ts.map +1 -1
- package/dist/room/incidents.js +14 -7
- package/dist/room/turnQueue.d.ts.map +1 -1
- package/dist/room/turnQueue.js +27 -24
- package/dist/runtimeStore.d.ts +44 -0
- package/dist/runtimeStore.d.ts.map +1 -0
- package/dist/runtimeStore.js +188 -0
- package/dist/setup/server.js +1 -1
- package/dist/turnLog.d.ts +10 -40
- package/dist/turnLog.d.ts.map +1 -1
- package/dist/turnLog.js +33 -56
- package/package.json +4 -4
- package/src/automations/agent.ts +2 -0
- package/src/chat/server.ts +7 -1
- package/src/coding/conduct.ts +10 -147
- package/src/coding/runCodeTurn.ts +42 -61
- package/src/coding/workspaceRegistry.ts +210 -0
- package/src/coding/worktree.ts +44 -20
- package/src/config.ts +2 -0
- package/src/daemonLease.ts +33 -0
- package/src/goals/assessment.ts +106 -0
- package/src/goals/notes.ts +88 -0
- package/src/index.ts +63 -18
- package/src/jobs/goals.ts +384 -0
- package/src/jobs/weeklyReview.ts +4 -3
- package/src/queue.ts +4 -0
- package/src/room/client.ts +85 -80
- package/src/room/computer.ts +2 -0
- package/src/room/durablePublish.ts +25 -0
- package/src/room/incidents.ts +16 -8
- package/src/room/turnQueue.ts +26 -27
- package/src/runtimeStore.ts +190 -0
- package/src/setup/server.ts +1 -1
- package/src/turnLog.ts +32 -75
- package/vendor/decisions/dist/dayPlan.d.ts +9 -0
- package/vendor/decisions/dist/dayPlan.js +82 -0
- package/vendor/decisions/dist/index.d.ts +1 -0
- package/vendor/decisions/dist/index.js +1 -0
- package/vendor/decisions/dist/jev.js +3 -1
- package/vendor/decisions/src/dayPlan.ts +80 -0
- package/vendor/decisions/src/index.ts +1 -0
- package/vendor/decisions/src/jev.ts +3 -1
- package/vendor/mcp-server/dist/index.js +2 -0
- package/vendor/mcp-server/dist/tools/goals.d.ts +4 -0
- package/vendor/mcp-server/dist/tools/goals.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/goals.js +38 -0
- package/vendor/mcp-server/package.json +1 -1
- package/vendor/mcp-server/src/index.ts +2 -0
- package/vendor/mcp-server/src/tools/goals.ts +62 -0
- package/vendor/runtime/README.md +2 -2
- package/vendor/runtime/dist/executor/asyncQueue.d.ts +1 -0
- package/vendor/runtime/dist/executor/asyncQueue.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/asyncQueue.js +3 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +25 -10
- package/vendor/runtime/dist/executor/codex.d.ts +1 -0
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +69 -36
- package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts +4 -1
- package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts +3 -0
- package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts +4 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts +3 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts +7 -2
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts +3 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexRpc.d.ts +10 -3
- package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexRpc.js +18 -3
- package/vendor/runtime/dist/executor/codexSessions.d.ts +30 -0
- package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexSessions.js +88 -0
- package/vendor/runtime/dist/executor/health.d.ts +2 -1
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +17 -5
- package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -1
- package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/liveTurns.js +12 -5
- package/vendor/runtime/dist/executor/ownership.d.ts +35 -0
- package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/ownership.js +99 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts +1 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/providerRouter.js +5 -0
- package/vendor/runtime/dist/executor/types.d.ts +4 -0
- package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.d.ts +1 -0
- package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.js +12 -1
- package/vendor/runtime/dist/harness/types.d.ts +2 -1
- package/vendor/runtime/dist/harness/types.d.ts.map +1 -1
- package/vendor/runtime/dist/index.d.ts +1 -0
- package/vendor/runtime/dist/index.d.ts.map +1 -1
- package/vendor/runtime/dist/index.js +1 -0
- package/vendor/runtime/dist/prompts/dayPlanning.d.ts +44 -0
- package/vendor/runtime/dist/prompts/dayPlanning.d.ts.map +1 -0
- package/vendor/runtime/dist/prompts/dayPlanning.js +42 -0
- package/vendor/runtime/src/executor/asyncQueue.ts +3 -0
- package/vendor/runtime/src/executor/claudeAgent.ts +20 -9
- package/vendor/runtime/src/executor/codex.ts +76 -44
- package/vendor/runtime/src/executor/codexProtocol/FunctionCallOutputContentItem.ts +1 -1
- package/vendor/runtime/src/executor/codexProtocol/Personality.ts +3 -0
- package/vendor/runtime/src/executor/codexProtocol/PlanType.ts +1 -1
- package/vendor/runtime/src/executor/codexProtocol/README.md +2 -2
- package/vendor/runtime/src/executor/codexProtocol/v2/CyberAccessProgram.ts +9 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Model.ts +11 -2
- package/vendor/runtime/src/executor/codexProtocol/v2/ModelAccessPrograms.ts +13 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitSnapshot.ts +5 -1
- package/vendor/runtime/src/executor/codexProtocol/v2/ReviewStartParams.ts +2 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadResumeParams.ts +5 -1
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStartParams.ts +4 -1
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnStartParams.ts +7 -2
- package/vendor/runtime/src/executor/codexProtocol/v2/UserInput.ts +1 -1
- package/vendor/runtime/src/executor/codexRpc.ts +22 -4
- package/vendor/runtime/src/executor/codexSessions.ts +108 -0
- package/vendor/runtime/src/executor/health.ts +16 -6
- package/vendor/runtime/src/executor/liveTurns.ts +12 -5
- package/vendor/runtime/src/executor/ownership.ts +76 -0
- package/vendor/runtime/src/executor/providerRouter.ts +6 -0
- package/vendor/runtime/src/executor/types.ts +4 -0
- package/vendor/runtime/src/harness/index.ts +12 -1
- package/vendor/runtime/src/harness/types.ts +2 -1
- package/vendor/runtime/src/index.ts +1 -0
- package/vendor/runtime/src/prompts/dayPlanning.ts +46 -0
- package/vendor/shared/dist/agentCommands.d.ts +1 -0
- package/vendor/shared/dist/agentCommands.d.ts.map +1 -1
- package/vendor/shared/dist/cardStudio.d.ts +41 -0
- package/vendor/shared/dist/cardStudio.d.ts.map +1 -1
- package/vendor/shared/dist/cardStudio.js +13 -3
- package/vendor/shared/dist/commandLocal.d.ts.map +1 -1
- package/vendor/shared/dist/commandLocal.js +2 -0
- package/vendor/shared/dist/commands.d.ts +18 -0
- package/vendor/shared/dist/commands.d.ts.map +1 -1
- package/vendor/shared/dist/commands.js +2 -0
- package/vendor/shared/dist/computer.d.ts +7 -1
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +13 -2
- package/vendor/shared/dist/constants.d.ts +3 -3
- package/vendor/shared/dist/constants.d.ts.map +1 -1
- package/vendor/shared/dist/constants.js +5 -4
- package/vendor/shared/dist/dayPlan.d.ts +86 -0
- package/vendor/shared/dist/dayPlan.d.ts.map +1 -0
- package/vendor/shared/dist/dayPlan.js +46 -0
- package/vendor/shared/dist/dayPlanning.d.ts +139 -0
- package/vendor/shared/dist/dayPlanning.d.ts.map +1 -0
- package/vendor/shared/dist/dayPlanning.js +67 -0
- package/vendor/shared/dist/goalNotes.d.ts +4 -0
- package/vendor/shared/dist/goalNotes.d.ts.map +1 -0
- package/vendor/shared/dist/goalNotes.js +23 -0
- package/vendor/shared/dist/goals.d.ts +835 -0
- package/vendor/shared/dist/goals.d.ts.map +1 -0
- package/vendor/shared/dist/goals.js +198 -0
- package/vendor/shared/dist/index.d.ts +5 -0
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +5 -0
- package/vendor/shared/dist/schemas/harness.d.ts +155 -0
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +8 -0
- package/vendor/shared/dist/workspaces.d.ts +138 -0
- package/vendor/shared/dist/workspaces.d.ts.map +1 -0
- package/vendor/shared/dist/workspaces.js +40 -0
- package/vendor/shared/src/agentCommands.ts +1 -0
- package/vendor/shared/src/cardStudio.ts +13 -3
- package/vendor/shared/src/commandLocal.ts +2 -0
- package/vendor/shared/src/commands.ts +2 -0
- package/vendor/shared/src/computer.ts +18 -2
- package/vendor/shared/src/constants.ts +5 -4
- package/vendor/shared/src/dayPlan.ts +81 -0
- package/vendor/shared/src/dayPlanning.ts +77 -0
- package/vendor/shared/src/goalNotes.ts +23 -0
- package/vendor/shared/src/goals.ts +237 -0
- package/vendor/shared/src/index.ts +6 -0
- package/vendor/shared/src/schemas/harness.ts +8 -0
- package/vendor/shared/src/workspaces.ts +48 -0
- package/dist/coding/fleetIntegrate.d.ts +0 -37
- package/dist/coding/fleetIntegrate.d.ts.map +0 -1
- package/dist/coding/fleetIntegrate.js +0 -64
- package/dist/coding/openFleetPr.d.ts +0 -41
- package/dist/coding/openFleetPr.d.ts.map +0 -1
- package/dist/coding/openFleetPr.js +0 -121
- package/src/coding/fleetIntegrate.ts +0 -95
- package/src/coding/openFleetPr.ts +0 -148
|
@@ -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
|
|
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;;;;;;;;;EASv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|
'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(
|
|
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(
|
|
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) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandLocal.d.ts","sourceRoot":"","sources":["../src/commandLocal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiG,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAG1J;;;;;;;;GAQG;AAEH,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxC,UAAU,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC1C,8EAA8E;IAC9E,aAAa,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC9C,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACpC;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,EAAE;IAAE,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"commandLocal.d.ts","sourceRoot":"","sources":["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,GAAG,UAAU,CAAC;AAEvH,sFAAsF;AACtF,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAW3E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAGrD;AAED,uGAAuG;AACvG,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKtD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,CAKtG;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGtD;AAED,oGAAoG;AACpG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtD"}
|
|
@@ -6,6 +6,8 @@ import { normalizeInstruction, proposeClauses } from './commandText.js';
|
|
|
6
6
|
*/
|
|
7
7
|
const ALIASES = {
|
|
8
8
|
dash: ['home', 'go home', 'main'],
|
|
9
|
+
plan: ['daily plan', 'day plan', 'plan my day'],
|
|
10
|
+
deck: ['my deck'],
|
|
9
11
|
search: ['task list', 'search'],
|
|
10
12
|
today: ['todays tasks', 'tasks for today', 'whats due today'],
|
|
11
13
|
inbox: [],
|
|
@@ -141,6 +141,14 @@ export declare const COMMAND_DESTINATIONS: readonly [{
|
|
|
141
141
|
readonly key: "ask_lucid";
|
|
142
142
|
readonly label: "Lucid";
|
|
143
143
|
readonly description: "A conversation with Lucid on your computer";
|
|
144
|
+
}, {
|
|
145
|
+
readonly key: "plan";
|
|
146
|
+
readonly label: "My day";
|
|
147
|
+
readonly description: "Plan the day and review its chosen tasks and main focus";
|
|
148
|
+
}, {
|
|
149
|
+
readonly key: "deck";
|
|
150
|
+
readonly label: "Deck";
|
|
151
|
+
readonly description: "The cards for habits, projects and daily summaries";
|
|
144
152
|
}];
|
|
145
153
|
export type CommandDestination = (typeof COMMAND_DESTINATIONS)[number]['key'];
|
|
146
154
|
/**
|
|
@@ -239,6 +247,8 @@ declare const ExecutableStep: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
239
247
|
weekly_review: "weekly_review";
|
|
240
248
|
card_studio: "card_studio";
|
|
241
249
|
ask_lucid: "ask_lucid";
|
|
250
|
+
plan: "plan";
|
|
251
|
+
deck: "deck";
|
|
242
252
|
}>;
|
|
243
253
|
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
244
254
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -476,6 +486,8 @@ export declare const CommandStepSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
476
486
|
weekly_review: "weekly_review";
|
|
477
487
|
card_studio: "card_studio";
|
|
478
488
|
ask_lucid: "ask_lucid";
|
|
489
|
+
plan: "plan";
|
|
490
|
+
deck: "deck";
|
|
479
491
|
}>;
|
|
480
492
|
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
481
493
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -716,6 +728,8 @@ export declare const CommandStepSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
716
728
|
weekly_review: "weekly_review";
|
|
717
729
|
card_studio: "card_studio";
|
|
718
730
|
ask_lucid: "ask_lucid";
|
|
731
|
+
plan: "plan";
|
|
732
|
+
deck: "deck";
|
|
719
733
|
}>;
|
|
720
734
|
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
721
735
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -971,6 +985,8 @@ export declare const CommandResponseSchema: z.ZodObject<{
|
|
|
971
985
|
weekly_review: "weekly_review";
|
|
972
986
|
card_studio: "card_studio";
|
|
973
987
|
ask_lucid: "ask_lucid";
|
|
988
|
+
plan: "plan";
|
|
989
|
+
deck: "deck";
|
|
974
990
|
}>;
|
|
975
991
|
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
976
992
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1211,6 +1227,8 @@ export declare const CommandResponseSchema: z.ZodObject<{
|
|
|
1211
1227
|
weekly_review: "weekly_review";
|
|
1212
1228
|
card_studio: "card_studio";
|
|
1213
1229
|
ask_lucid: "ask_lucid";
|
|
1230
|
+
plan: "plan";
|
|
1231
|
+
deck: "deck";
|
|
1214
1232
|
}>;
|
|
1215
1233
|
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
1216
1234
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCvB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC;AAC9E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAWvF,CAAC;AACF,+FAA+F;AAC/F,eAAO,MAAM,yBAAyB,EAAE,SAAS,kBAAkB,EAAgC,CAAC;AAGpG,QAAA,MAAM,QAAQ;;;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AAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oKAGzB,CAAC;AAGX,oFAAoF;AACpF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -45,6 +45,8 @@ export const COMMAND_DESTINATIONS = [
|
|
|
45
45
|
{ key: 'focus', label: 'Focus', description: 'The focus timer' },
|
|
46
46
|
{ key: 'card_studio', label: 'Card Studio', description: 'Choosing the cards on the Dashboard' },
|
|
47
47
|
{ key: 'ask_lucid', label: 'Lucid', description: 'A conversation with Lucid on your computer' },
|
|
48
|
+
{ key: 'plan', label: 'My day', description: 'Plan the day and review its chosen tasks and main focus' },
|
|
49
|
+
{ key: 'deck', label: 'Deck', description: 'The cards for habits, projects and daily summaries' },
|
|
48
50
|
];
|
|
49
51
|
/**
|
|
50
52
|
* The place each one sits under, so "voice settings" and "settings voice" find Voice without an
|
|
@@ -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' | '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,cAAc;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,eAA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U,GACV,OAAO,GACP,YAAY,GACZ,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,WAAW,GACX,SAAS,GACT,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,sBAAsB,GACtB,QAAQ,CAAC;AACb,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EACD,UAAU,GACV,SAAS,GACT,cAAc,GACd,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,UAAU,GACV,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,eAAO,MAAM,kBAAkB,aAO7B,CAAC;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,EACjC,OAAO,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,EAC1C,OAAO,GAAE,MAAc,EACvB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,YAAY,CAwHd;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAE7E;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,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"}
|
|
@@ -44,6 +44,7 @@ export const ComputerPresenceSchema = z.object({
|
|
|
44
44
|
});
|
|
45
45
|
export const INFERENCE_FEATURES = new Set([
|
|
46
46
|
'ask',
|
|
47
|
+
'day-plan',
|
|
47
48
|
'code',
|
|
48
49
|
'conduct',
|
|
49
50
|
'briefing',
|
|
@@ -112,17 +113,27 @@ export function computerAvailability(presence, network, feature = 'ask', provide
|
|
|
112
113
|
}
|
|
113
114
|
/** Session affinity can be read in RN without importing Node Buffer. Legacy IDs are Claude. */
|
|
114
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) {
|
|
115
120
|
if (!resume)
|
|
116
121
|
return undefined;
|
|
117
122
|
if (!resume.startsWith('lucidity-session:'))
|
|
118
|
-
return 'claude';
|
|
123
|
+
return { provider: 'claude' };
|
|
119
124
|
try {
|
|
120
125
|
const encoded = resume
|
|
121
126
|
.slice('lucidity-session:'.length)
|
|
122
127
|
.replace(/-/g, '+')
|
|
123
128
|
.replace(/_/g, '/');
|
|
124
129
|
const session = JSON.parse(atob(encoded));
|
|
125
|
-
|
|
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
|
+
};
|
|
126
137
|
}
|
|
127
138
|
catch {
|
|
128
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: "
|
|
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
|
|
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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
// 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: '
|
|
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' ? '
|
|
403
|
+
return alias === 'default' ? 'Claude' : alias;
|
|
403
404
|
}
|
|
404
|
-
/** Friendly label for an effort level; unset
|
|
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 ?? '
|
|
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,86 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PlanDateSchema: z.ZodISODate;
|
|
3
|
+
export declare const PlanTimeZoneSchema: z.ZodString;
|
|
4
|
+
export declare const PlanTaskLinkSchema: z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"task">;
|
|
6
|
+
taskId: z.ZodUUID;
|
|
7
|
+
occurrenceId: z.ZodNullable<z.ZodUUID>;
|
|
8
|
+
focus: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const PlanNewTaskSchema: z.ZodObject<{
|
|
11
|
+
kind: z.ZodLiteral<"new">;
|
|
12
|
+
taskId: z.ZodUUID;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
focus: z.ZodBoolean;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const PlanInputItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"task">;
|
|
18
|
+
taskId: z.ZodUUID;
|
|
19
|
+
occurrenceId: z.ZodNullable<z.ZodUUID>;
|
|
20
|
+
focus: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
kind: z.ZodLiteral<"new">;
|
|
23
|
+
taskId: z.ZodUUID;
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
focus: z.ZodBoolean;
|
|
26
|
+
}, z.core.$strip>], "kind">;
|
|
27
|
+
export declare const SaveDayPlanSchema: z.ZodObject<{
|
|
28
|
+
timeZone: z.ZodString;
|
|
29
|
+
revision: z.ZodNumber;
|
|
30
|
+
mutationId: z.ZodUUID;
|
|
31
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"task">;
|
|
33
|
+
taskId: z.ZodUUID;
|
|
34
|
+
occurrenceId: z.ZodNullable<z.ZodUUID>;
|
|
35
|
+
focus: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"new">;
|
|
38
|
+
taskId: z.ZodUUID;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
focus: z.ZodBoolean;
|
|
41
|
+
}, z.core.$strip>], "kind">>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type PlanTaskLink = z.infer<typeof PlanTaskLinkSchema>;
|
|
44
|
+
export type PlanInputItem = z.infer<typeof PlanInputItemSchema>;
|
|
45
|
+
export type SaveDayPlan = z.infer<typeof SaveDayPlanSchema>;
|
|
46
|
+
/** A task becoming private or deleted leaves a placeholder, never a cached title. */
|
|
47
|
+
export interface PlanTask {
|
|
48
|
+
id: string;
|
|
49
|
+
title: string;
|
|
50
|
+
projectName: string | null;
|
|
51
|
+
projectKey: string | null;
|
|
52
|
+
taskNumber: number | null;
|
|
53
|
+
occurrenceId: string | null;
|
|
54
|
+
completed: boolean;
|
|
55
|
+
canComplete: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface DayPlanItem extends PlanTaskLink {
|
|
58
|
+
task: PlanTask | null;
|
|
59
|
+
}
|
|
60
|
+
export interface DayPlan {
|
|
61
|
+
date: string;
|
|
62
|
+
timeZone: string;
|
|
63
|
+
revision: number;
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
items: DayPlanItem[];
|
|
66
|
+
}
|
|
67
|
+
export interface DayPlanResponse {
|
|
68
|
+
plan: DayPlan | null;
|
|
69
|
+
previous: DayPlan | null;
|
|
70
|
+
}
|
|
71
|
+
export declare const InterpretDayPlanSchema: z.ZodObject<{
|
|
72
|
+
text: z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export interface PlanSuggestion {
|
|
75
|
+
words: string;
|
|
76
|
+
title: string;
|
|
77
|
+
task: PlanTask | null;
|
|
78
|
+
focus: boolean;
|
|
79
|
+
}
|
|
80
|
+
export interface PlanInterpretation {
|
|
81
|
+
suggestions: PlanSuggestion[];
|
|
82
|
+
unresolved: string[];
|
|
83
|
+
}
|
|
84
|
+
export declare function localPlanDate(now: Date, timeZone: string): string;
|
|
85
|
+
export declare const planItemKey: (item: Pick<PlanTaskLink, "taskId" | "occurrenceId">) => string;
|
|
86
|
+
//# sourceMappingURL=dayPlan.d.ts.map
|