@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../src/goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,kBAAkB,aAUE,CAAC;AAClC,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU7B,CAAC;AACJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;EAA0C,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;iBAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGzB,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKrB,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,eAAO,MAAM,mBAAmB;;;;;;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB,GAAI,KAAK,aAAa,WAA4B,CA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,0 +1,198 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { StudioDateSchema, studioLocalDate, shiftStudioDate, } from './cardStudio.js';
|
|
3
|
+
export const GoalTimeZoneSchema = z
|
|
4
|
+
.string()
|
|
5
|
+
.max(100)
|
|
6
|
+
.refine((zone) => {
|
|
7
|
+
try {
|
|
8
|
+
new Intl.DateTimeFormat('en', { timeZone: zone });
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}, 'Choose a valid time zone.');
|
|
15
|
+
export const GoalTimeframeSchema = z
|
|
16
|
+
.object({
|
|
17
|
+
start: StudioDateSchema,
|
|
18
|
+
end: StudioDateSchema,
|
|
19
|
+
precision: z.enum(['month', 'quarter', 'year', 'custom']),
|
|
20
|
+
timeZone: GoalTimeZoneSchema,
|
|
21
|
+
})
|
|
22
|
+
.refine((value) => value.end >= value.start, 'The end must be on or after the start.');
|
|
23
|
+
export const GoalStatusSchema = z.enum([
|
|
24
|
+
'active',
|
|
25
|
+
'paused',
|
|
26
|
+
'completed',
|
|
27
|
+
'archived',
|
|
28
|
+
]);
|
|
29
|
+
export const GoalCadenceSchema = z.enum(['weekly', 'monthly', 'yearly']);
|
|
30
|
+
export const GoalInputSchema = z.object({
|
|
31
|
+
title: z.string().trim().min(1).max(240),
|
|
32
|
+
timeframe: GoalTimeframeSchema,
|
|
33
|
+
status: GoalStatusSchema.default('active'),
|
|
34
|
+
tracking: z.boolean().default(true),
|
|
35
|
+
reviews: z
|
|
36
|
+
.array(GoalCadenceSchema)
|
|
37
|
+
.max(3)
|
|
38
|
+
.default(['weekly', 'monthly'])
|
|
39
|
+
.refine((values) => new Set(values).size === values.length),
|
|
40
|
+
});
|
|
41
|
+
export const SaveGoalSchema = GoalInputSchema.extend({
|
|
42
|
+
id: z.uuid(),
|
|
43
|
+
revision: z.number().int().nonnegative(),
|
|
44
|
+
});
|
|
45
|
+
export const GoalSchema = GoalInputSchema.extend({
|
|
46
|
+
id: z.uuid(),
|
|
47
|
+
revision: z.number().int().nonnegative(),
|
|
48
|
+
createdAt: z.iso.datetime(),
|
|
49
|
+
updatedAt: z.iso.datetime(),
|
|
50
|
+
});
|
|
51
|
+
export const GoalReferenceSchema = z.object({
|
|
52
|
+
kind: z.enum(['task', 'project', 'habit', 'note']),
|
|
53
|
+
id: z.uuid(),
|
|
54
|
+
});
|
|
55
|
+
export const goalReferenceKey = (ref) => `${ref.kind}:${ref.id}`;
|
|
56
|
+
export const GoalLinkInputSchema = GoalReferenceSchema.extend({
|
|
57
|
+
source: z.enum(['manual', 'ai']).default('manual'),
|
|
58
|
+
reason: z.string().trim().min(1).max(240),
|
|
59
|
+
state: z.enum(['active', 'rejected']).default('active'),
|
|
60
|
+
});
|
|
61
|
+
export const GoalLinkSchema = GoalLinkInputSchema.extend({
|
|
62
|
+
title: z.string().nullable(),
|
|
63
|
+
available: z.boolean(),
|
|
64
|
+
updatedAt: z.iso.datetime(),
|
|
65
|
+
});
|
|
66
|
+
export const GoalEvidenceSchema = z.object({
|
|
67
|
+
key: z.string(),
|
|
68
|
+
reference: GoalReferenceSchema,
|
|
69
|
+
at: z.iso.datetime(),
|
|
70
|
+
kind: z.enum([
|
|
71
|
+
'task_completed',
|
|
72
|
+
'task_started',
|
|
73
|
+
'task_reopened',
|
|
74
|
+
'task_changed',
|
|
75
|
+
'habit_check_in',
|
|
76
|
+
'note_changed',
|
|
77
|
+
]),
|
|
78
|
+
title: z.string().nullable(),
|
|
79
|
+
available: z.boolean(),
|
|
80
|
+
});
|
|
81
|
+
export const GoalCheckSchema = z.object({
|
|
82
|
+
key: z.string(),
|
|
83
|
+
cadence: z.enum(['daily', 'weekly', 'monthly', 'yearly']),
|
|
84
|
+
start: StudioDateSchema,
|
|
85
|
+
end: StudioDateSchema,
|
|
86
|
+
checkedAt: z.iso.datetime(),
|
|
87
|
+
signal: z.enum(['moving', 'quiet', 'unknown']),
|
|
88
|
+
summary: z.string(),
|
|
89
|
+
evidence: z.array(GoalEvidenceSchema),
|
|
90
|
+
references: z.array(GoalReferenceSchema),
|
|
91
|
+
timeframe: GoalTimeframeSchema,
|
|
92
|
+
});
|
|
93
|
+
export const GoalActionSchema = z.object({
|
|
94
|
+
id: z.uuid(),
|
|
95
|
+
goalId: z.uuid(),
|
|
96
|
+
title: z.string(),
|
|
97
|
+
instruction: z.string(),
|
|
98
|
+
references: z.array(GoalReferenceSchema),
|
|
99
|
+
status: z.enum([
|
|
100
|
+
'proposed',
|
|
101
|
+
'approved',
|
|
102
|
+
'running',
|
|
103
|
+
'completed',
|
|
104
|
+
'cancelled',
|
|
105
|
+
'failed',
|
|
106
|
+
]),
|
|
107
|
+
createdAt: z.iso.datetime(),
|
|
108
|
+
updatedAt: z.iso.datetime(),
|
|
109
|
+
resultNoteId: z.uuid().nullable(),
|
|
110
|
+
resultMarkdown: z.string().nullable(),
|
|
111
|
+
error: z.string().nullable(),
|
|
112
|
+
});
|
|
113
|
+
export const GoalDetailSchema = z.object({
|
|
114
|
+
goal: GoalSchema,
|
|
115
|
+
links: z.array(GoalLinkSchema),
|
|
116
|
+
checks: z.array(GoalCheckSchema),
|
|
117
|
+
actions: z.array(GoalActionSchema),
|
|
118
|
+
});
|
|
119
|
+
export const GoalsSnapshotSchema = z.object({
|
|
120
|
+
goals: z.array(GoalDetailSchema),
|
|
121
|
+
refreshedAt: z.iso.datetime(),
|
|
122
|
+
});
|
|
123
|
+
/** Date-only arithmetic deliberately ignores DST and the computer's current zone. */
|
|
124
|
+
export function goalDaysRemaining(timeframe, now = new Date()) {
|
|
125
|
+
return Math.round((Date.parse(timeframe.end) -
|
|
126
|
+
Date.parse(studioLocalDate(now, timeframe.timeZone))) /
|
|
127
|
+
86_400_000);
|
|
128
|
+
}
|
|
129
|
+
export function goalPeriod(cadence, today) {
|
|
130
|
+
StudioDateSchema.parse(today);
|
|
131
|
+
let start = today, end = today;
|
|
132
|
+
if (cadence === 'weekly') {
|
|
133
|
+
const day = new Date(today + 'T12:00:00Z').getUTCDay();
|
|
134
|
+
end = shiftStudioDate(today, -((day + 6) % 7) - 1);
|
|
135
|
+
start = shiftStudioDate(end, -6);
|
|
136
|
+
}
|
|
137
|
+
else if (cadence === 'monthly') {
|
|
138
|
+
end = shiftStudioDate(today.slice(0, 8) + '01', -1);
|
|
139
|
+
start = end.slice(0, 8) + '01';
|
|
140
|
+
}
|
|
141
|
+
else if (cadence === 'yearly') {
|
|
142
|
+
const year = Number(today.slice(0, 4)) - 1;
|
|
143
|
+
start = `${year}-01-01`;
|
|
144
|
+
end = `${year}-12-31`;
|
|
145
|
+
}
|
|
146
|
+
return { start, end, key: `${cadence}:${start}` };
|
|
147
|
+
}
|
|
148
|
+
/** Completed periods only, with no backlog flood after a computer wakes. */
|
|
149
|
+
export function dueGoalPeriods(goal, existing, now = new Date()) {
|
|
150
|
+
if (!goal.tracking || goal.status !== 'active')
|
|
151
|
+
return [];
|
|
152
|
+
const today = studioLocalDate(now, goal.timeframe.timeZone);
|
|
153
|
+
if (today < goal.timeframe.start)
|
|
154
|
+
return [];
|
|
155
|
+
const created = studioLocalDate(new Date(goal.createdAt), goal.timeframe.timeZone);
|
|
156
|
+
return ['daily', ...goal.reviews]
|
|
157
|
+
.map((cadence) => ({ cadence, ...goalPeriod(cadence, today) }))
|
|
158
|
+
.filter((period) => period.end >= created &&
|
|
159
|
+
period.end >= goal.timeframe.start &&
|
|
160
|
+
!existing.some((check) => check.key === period.key));
|
|
161
|
+
}
|
|
162
|
+
export const GoalAnalysisSchema = z.object({
|
|
163
|
+
links: z
|
|
164
|
+
.array(GoalReferenceSchema.extend({ reason: z.string().max(240) }))
|
|
165
|
+
.max(12),
|
|
166
|
+
summary: z.string().trim().min(1).max(400),
|
|
167
|
+
help: z
|
|
168
|
+
.object({
|
|
169
|
+
title: z.string().max(100),
|
|
170
|
+
instruction: z.string().max(800),
|
|
171
|
+
references: z.array(GoalReferenceSchema).min(1).max(12),
|
|
172
|
+
})
|
|
173
|
+
.nullable(),
|
|
174
|
+
});
|
|
175
|
+
export const GoalCandidateSchema = GoalReferenceSchema.extend({
|
|
176
|
+
title: z.string(),
|
|
177
|
+
description: z.string().nullable(),
|
|
178
|
+
updatedAt: z.iso.datetime().nullable(),
|
|
179
|
+
status: z.string().nullable(),
|
|
180
|
+
projectId: z.uuid().nullable(),
|
|
181
|
+
});
|
|
182
|
+
export const GoalTrackingContextSchema = z.object({
|
|
183
|
+
detail: GoalDetailSchema,
|
|
184
|
+
candidates: z.array(GoalCandidateSchema),
|
|
185
|
+
evidence: z.array(GoalEvidenceSchema),
|
|
186
|
+
complete: z.boolean(),
|
|
187
|
+
});
|
|
188
|
+
export const RecordGoalCheckSchema = z.object({
|
|
189
|
+
revision: z.number().int().positive(),
|
|
190
|
+
cadence: z.enum(['daily', 'weekly', 'monthly', 'yearly']),
|
|
191
|
+
summary: z.string().trim().min(1).max(400),
|
|
192
|
+
noteObservations: z
|
|
193
|
+
.array(z.object({ id: z.uuid(), at: z.iso.datetime() }))
|
|
194
|
+
.max(100)
|
|
195
|
+
.default([]),
|
|
196
|
+
notesAvailable: z.boolean().default(false),
|
|
197
|
+
help: GoalAnalysisSchema.shape.help,
|
|
198
|
+
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './dayPlanning.js';
|
|
2
|
+
export * from './workspaces.js';
|
|
1
3
|
export * from './githubContributions.js';
|
|
2
4
|
export * from './projectCapture.js';
|
|
3
5
|
export * from './taskActivity.js';
|
|
@@ -45,6 +47,9 @@ export * from './spokenNames.js';
|
|
|
45
47
|
export * from './voiceCapture.js';
|
|
46
48
|
export * from './automations.js';
|
|
47
49
|
export * from './automationTemplates.js';
|
|
50
|
+
export * from './dayPlan.js';
|
|
48
51
|
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
49
52
|
export type { AgentCommandOption, AgentCommandContext } from './agentCommands.js';
|
|
53
|
+
export * from './goals.js';
|
|
54
|
+
export * from './goalNotes.js';
|
|
50
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,4BAA4B,EAC5B,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,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9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB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,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElF,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './dayPlanning.js';
|
|
2
|
+
export * from './workspaces.js';
|
|
1
3
|
export * from './githubContributions.js';
|
|
2
4
|
export * from './projectCapture.js';
|
|
3
5
|
export * from './taskActivity.js';
|
|
@@ -44,4 +46,7 @@ export * from './spokenNames.js';
|
|
|
44
46
|
export * from './voiceCapture.js';
|
|
45
47
|
export * from './automations.js';
|
|
46
48
|
export * from './automationTemplates.js';
|
|
49
|
+
export * from './dayPlan.js';
|
|
47
50
|
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
51
|
+
export * from './goals.js';
|
|
52
|
+
export * from './goalNotes.js';
|
|
@@ -40,6 +40,33 @@ export declare const AskRequestSchema: z.ZodObject<{
|
|
|
40
40
|
handle: z.ZodString;
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
|
+
dayPlan: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
+
phase: z.ZodLiteral<"extract">;
|
|
45
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodUUID;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
key: z.ZodNullable<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
phase: z.ZodLiteral<"match">;
|
|
52
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
53
|
+
words: z.ZodString;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
56
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
focus: z.ZodBoolean;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
60
|
+
actionIndex: z.ZodNumber;
|
|
61
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodUUID;
|
|
63
|
+
title: z.ZodString;
|
|
64
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
65
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
66
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>], "phase">>;
|
|
43
70
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
71
|
mediaType: z.ZodEnum<{
|
|
45
72
|
"image/jpeg": "image/jpeg";
|
|
@@ -673,6 +700,45 @@ export declare const AttentionRequestSchema: z.ZodObject<{
|
|
|
673
700
|
refresh: z.ZodOptional<z.ZodBoolean>;
|
|
674
701
|
}, z.core.$strip>;
|
|
675
702
|
export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
703
|
+
id: z.ZodUUID;
|
|
704
|
+
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
705
|
+
agent: "agent";
|
|
706
|
+
human: "human";
|
|
707
|
+
}>>;
|
|
708
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
709
|
+
kind: z.ZodLiteral<"workspaces">;
|
|
710
|
+
command: z.ZodObject<{
|
|
711
|
+
action: z.ZodEnum<{
|
|
712
|
+
archive: "archive";
|
|
713
|
+
history: "history";
|
|
714
|
+
list: "list";
|
|
715
|
+
create: "create";
|
|
716
|
+
restore: "restore";
|
|
717
|
+
import: "import";
|
|
718
|
+
"clear-history": "clear-history";
|
|
719
|
+
}>;
|
|
720
|
+
repoId: z.ZodOptional<z.ZodString>;
|
|
721
|
+
workerId: z.ZodOptional<z.ZodUUID>;
|
|
722
|
+
checkout: z.ZodOptional<z.ZodBoolean>;
|
|
723
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
724
|
+
title: z.ZodOptional<z.ZodString>;
|
|
725
|
+
brief: z.ZodOptional<z.ZodString>;
|
|
726
|
+
before: z.ZodOptional<z.ZodString>;
|
|
727
|
+
legacy: z.ZodOptional<z.ZodObject<{
|
|
728
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
role: z.ZodEnum<{
|
|
731
|
+
user: "user";
|
|
732
|
+
lucid: "lucid";
|
|
733
|
+
notice: "notice";
|
|
734
|
+
}>;
|
|
735
|
+
text: z.ZodString;
|
|
736
|
+
}, z.core.$loose>>;
|
|
737
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
738
|
+
sessionCheckout: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
}, z.core.$strip>>;
|
|
740
|
+
}, z.core.$strip>;
|
|
741
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
676
742
|
id: z.ZodUUID;
|
|
677
743
|
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
678
744
|
agent: "agent";
|
|
@@ -961,6 +1027,33 @@ export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
961
1027
|
handle: z.ZodString;
|
|
962
1028
|
}, z.core.$strip>>;
|
|
963
1029
|
}, z.core.$strip>>;
|
|
1030
|
+
dayPlan: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1031
|
+
phase: z.ZodLiteral<"extract">;
|
|
1032
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
1033
|
+
id: z.ZodUUID;
|
|
1034
|
+
name: z.ZodString;
|
|
1035
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1036
|
+
}, z.core.$strip>>;
|
|
1037
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1038
|
+
phase: z.ZodLiteral<"match">;
|
|
1039
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1040
|
+
words: z.ZodString;
|
|
1041
|
+
title: z.ZodString;
|
|
1042
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
1043
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
1044
|
+
focus: z.ZodBoolean;
|
|
1045
|
+
}, z.core.$strict>>;
|
|
1046
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
1047
|
+
actionIndex: z.ZodNumber;
|
|
1048
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1049
|
+
id: z.ZodUUID;
|
|
1050
|
+
title: z.ZodString;
|
|
1051
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
1052
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
1053
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
1054
|
+
}, z.core.$strip>>;
|
|
1055
|
+
}, z.core.$strip>>;
|
|
1056
|
+
}, z.core.$strip>], "phase">>;
|
|
964
1057
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
965
1058
|
mediaType: z.ZodEnum<{
|
|
966
1059
|
"image/jpeg": "image/jpeg";
|
|
@@ -1599,11 +1692,70 @@ export declare const CommandsResponseSchema: z.ZodObject<{
|
|
|
1599
1692
|
description: z.ZodString;
|
|
1600
1693
|
argumentHint: z.ZodString;
|
|
1601
1694
|
acceptsArguments: z.ZodOptional<z.ZodBoolean>;
|
|
1695
|
+
startsConversation: z.ZodOptional<z.ZodBoolean>;
|
|
1602
1696
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1603
1697
|
clearsContext: z.ZodOptional<z.ZodBoolean>;
|
|
1604
1698
|
}, z.core.$strip>>;
|
|
1605
1699
|
}, z.core.$strip>;
|
|
1606
1700
|
export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1701
|
+
requestId: z.ZodUUID;
|
|
1702
|
+
kind: z.ZodLiteral<"workspaces">;
|
|
1703
|
+
snapshot: z.ZodObject<{
|
|
1704
|
+
workers: z.ZodArray<z.ZodObject<{
|
|
1705
|
+
workerId: z.ZodUUID;
|
|
1706
|
+
repoId: z.ZodString;
|
|
1707
|
+
title: z.ZodString;
|
|
1708
|
+
brief: z.ZodDefault<z.ZodString>;
|
|
1709
|
+
workspaceId: z.ZodString;
|
|
1710
|
+
conversationId: z.ZodString;
|
|
1711
|
+
state: z.ZodEnum<{
|
|
1712
|
+
ready: "ready";
|
|
1713
|
+
archived: "archived";
|
|
1714
|
+
creating: "creating";
|
|
1715
|
+
setup_failed: "setup_failed";
|
|
1716
|
+
}>;
|
|
1717
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
baseSha: z.ZodOptional<z.ZodString>;
|
|
1720
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1722
|
+
createdAt: z.ZodString;
|
|
1723
|
+
updatedAt: z.ZodString;
|
|
1724
|
+
}, z.core.$strip>>;
|
|
1725
|
+
checkout: z.ZodOptional<z.ZodObject<{
|
|
1726
|
+
repoId: z.ZodString;
|
|
1727
|
+
conversationId: z.ZodString;
|
|
1728
|
+
revision: z.ZodString;
|
|
1729
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
}, z.core.$strip>>;
|
|
1731
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1732
|
+
requestId: z.ZodString;
|
|
1733
|
+
prompt: z.ZodString;
|
|
1734
|
+
handoff: z.ZodOptional<z.ZodObject<{
|
|
1735
|
+
from: z.ZodEnum<{
|
|
1736
|
+
claude: "claude";
|
|
1737
|
+
codex: "codex";
|
|
1738
|
+
}>;
|
|
1739
|
+
to: z.ZodEnum<{
|
|
1740
|
+
claude: "claude";
|
|
1741
|
+
codex: "codex";
|
|
1742
|
+
}>;
|
|
1743
|
+
}, z.core.$strip>>;
|
|
1744
|
+
frames: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1745
|
+
terminated: z.ZodBoolean;
|
|
1746
|
+
}, z.core.$strip>>>;
|
|
1747
|
+
legacyMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1748
|
+
id: z.ZodString;
|
|
1749
|
+
role: z.ZodEnum<{
|
|
1750
|
+
user: "user";
|
|
1751
|
+
lucid: "lucid";
|
|
1752
|
+
notice: "notice";
|
|
1753
|
+
}>;
|
|
1754
|
+
text: z.ZodString;
|
|
1755
|
+
}, z.core.$loose>>>;
|
|
1756
|
+
nextBefore: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
}, z.core.$strip>;
|
|
1758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1607
1759
|
requestId: z.ZodUUID;
|
|
1608
1760
|
kind: z.ZodLiteral<"voice-capture">;
|
|
1609
1761
|
receipt: z.ZodNullable<z.ZodObject<{
|
|
@@ -1995,6 +2147,7 @@ export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1995
2147
|
description: z.ZodString;
|
|
1996
2148
|
argumentHint: z.ZodString;
|
|
1997
2149
|
acceptsArguments: z.ZodOptional<z.ZodBoolean>;
|
|
2150
|
+
startsConversation: z.ZodOptional<z.ZodBoolean>;
|
|
1998
2151
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1999
2152
|
clearsContext: z.ZodOptional<z.ZodBoolean>;
|
|
2000
2153
|
}, z.core.$strip>>;
|
|
@@ -2217,6 +2370,7 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2217
2370
|
"in-place": "in-place";
|
|
2218
2371
|
}>>;
|
|
2219
2372
|
movedFrom: z.ZodOptional<z.ZodString>;
|
|
2373
|
+
checkpointWarning: z.ZodOptional<z.ZodString>;
|
|
2220
2374
|
}, z.core.$strip>, z.ZodObject<{
|
|
2221
2375
|
type: z.ZodLiteral<"clone_result">;
|
|
2222
2376
|
requestId: z.ZodUUID;
|
|
@@ -2280,6 +2434,7 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2280
2434
|
type: z.ZodLiteral<"error">;
|
|
2281
2435
|
requestId: z.ZodUUID;
|
|
2282
2436
|
message: z.ZodString;
|
|
2437
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2283
2438
|
}, z.core.$strip>, z.ZodObject<{
|
|
2284
2439
|
type: z.ZodLiteral<"cancelled">;
|
|
2285
2440
|
requestId: z.ZodUUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BhC,CAAC;AAcH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4InC,CAAC;AAQH,eAAO,MAAM,oBAAoB;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkspaceCommandSchema, WorkspaceSnapshotSchema } from '../workspaces.js';
|
|
2
3
|
import { VoiceCaptureAudioSchema, VoiceCaptureReceiptSchema, } from '../voiceCapture.js';
|
|
3
4
|
import { ComputerSpeechSchema, SpeechAudioSchema, SpeechModelIdSchema, SpeechTranscriptSchema, } from '../speech.js';
|
|
4
5
|
import { AutomationCommandSchema, AutomationSnapshotSchema, } from '../automations.js';
|
|
6
|
+
import { DayPlanningContextSchema } from '../dayPlanning.js';
|
|
5
7
|
import { ProjectPlanningContextSchema } from '../projectCapture.js';
|
|
6
8
|
import { validatedCardSegments } from '../cardStatement.js';
|
|
7
9
|
import { SENDER_KINDS, APPROVAL_DECISIONS, WORKSPACE_MODES, WORKER_STATUSES, EFFORT_LEVELS, DELIVERY_CHANNELS, AGENT_MODES, } from '../constants.js';
|
|
@@ -52,6 +54,7 @@ export const AskRequestSchema = HarnessRequestBase.extend({
|
|
|
52
54
|
prompt: z.string().min(1).max(8000),
|
|
53
55
|
/** Feature-gated, tool-free project interpretation; never resumes a chat session. */
|
|
54
56
|
projectPlan: ProjectPlanningContextSchema.optional(),
|
|
57
|
+
dayPlan: DayPlanningContextSchema.optional(),
|
|
55
58
|
/** Photos attached to the question (vision). Optional; absent on a text-only ask. */
|
|
56
59
|
images: harnessImagesField,
|
|
57
60
|
/** Claude Code session id to continue (conversation continuity via --resume). */
|
|
@@ -441,6 +444,7 @@ export const AttentionRequestSchema = HarnessRequestBase.extend({
|
|
|
441
444
|
refresh: z.boolean().optional(),
|
|
442
445
|
});
|
|
443
446
|
export const HarnessRequestSchema = z.discriminatedUnion('kind', [
|
|
447
|
+
HarnessRequestBase.extend({ kind: z.literal('workspaces'), command: WorkspaceCommandSchema }),
|
|
444
448
|
HarnessRequestBase.extend({
|
|
445
449
|
kind: z.literal('voice-capture'),
|
|
446
450
|
credentialId: z.uuid(),
|
|
@@ -696,11 +700,13 @@ export const CommandsResponseSchema = HarnessResponseBase.extend({
|
|
|
696
700
|
description: z.string(),
|
|
697
701
|
argumentHint: z.string(),
|
|
698
702
|
acceptsArguments: z.boolean().optional(),
|
|
703
|
+
startsConversation: z.boolean().optional(),
|
|
699
704
|
aliases: z.array(z.string()).optional(),
|
|
700
705
|
clearsContext: z.boolean().optional(),
|
|
701
706
|
})),
|
|
702
707
|
});
|
|
703
708
|
export const HarnessResponseSchema = z.discriminatedUnion('kind', [
|
|
709
|
+
HarnessResponseBase.extend({ kind: z.literal('workspaces'), snapshot: WorkspaceSnapshotSchema }),
|
|
704
710
|
HarnessResponseBase.extend({
|
|
705
711
|
kind: z.literal('voice-capture'),
|
|
706
712
|
receipt: VoiceCaptureReceiptSchema.nullable(),
|
|
@@ -798,6 +804,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
798
804
|
// ran — on `branch` — so the phone shows a quiet "checkout moved" notice on the bubble
|
|
799
805
|
// instead of the old dead-end rejection that made the user re-send.
|
|
800
806
|
movedFrom: z.string().optional(),
|
|
807
|
+
checkpointWarning: z.string().optional(),
|
|
801
808
|
}),
|
|
802
809
|
z.object({
|
|
803
810
|
// The result of a `clone` turn (#78): the new repo's id, once cloned into the
|
|
@@ -868,6 +875,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
868
875
|
type: z.literal('error'),
|
|
869
876
|
requestId: z.uuidv7(),
|
|
870
877
|
message: z.string(),
|
|
878
|
+
code: z.string().optional(),
|
|
871
879
|
}),
|
|
872
880
|
// A `cancel` request successfully stopped this in-flight turn.
|
|
873
881
|
z.object({
|