@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.
- package/README.md +9 -2
- 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 +57 -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 +116 -101
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +1 -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 +57 -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 +77 -74
- package/src/room/computer.ts +1 -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/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 +20 -9
- 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 +68 -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 +2 -0
- package/vendor/runtime/dist/executor/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/src/executor/asyncQueue.ts +3 -0
- package/vendor/runtime/src/executor/claudeAgent.ts +16 -9
- package/vendor/runtime/src/executor/codex.ts +75 -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 +2 -0
- package/vendor/runtime/src/index.ts +1 -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/computer.d.ts +7 -1
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +12 -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/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 +3 -0
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +3 -0
- package/vendor/shared/dist/schemas/harness.d.ts +101 -0
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +6 -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/computer.ts +16 -2
- package/vendor/shared/src/constants.ts +5 -4
- package/vendor/shared/src/goalNotes.ts +23 -0
- package/vendor/shared/src/goals.ts +237 -0
- package/vendor/shared/src/index.ts +4 -0
- package/vendor/shared/src/schemas/harness.ts +6 -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,KA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AC;AAC5E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUhC,CAAC"}
|
|
@@ -0,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,4 +1,5 @@
|
|
|
1
1
|
export * from './dayPlanning.js';
|
|
2
|
+
export * from './workspaces.js';
|
|
2
3
|
export * from './githubContributions.js';
|
|
3
4
|
export * from './projectCapture.js';
|
|
4
5
|
export * from './taskActivity.js';
|
|
@@ -49,4 +50,6 @@ export * from './automationTemplates.js';
|
|
|
49
50
|
export * from './dayPlan.js';
|
|
50
51
|
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
51
52
|
export type { AgentCommandOption, AgentCommandContext } from './agentCommands.js';
|
|
53
|
+
export * from './goals.js';
|
|
54
|
+
export * from './goalNotes.js';
|
|
52
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,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,q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,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,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,4 +1,5 @@
|
|
|
1
1
|
export * from './dayPlanning.js';
|
|
2
|
+
export * from './workspaces.js';
|
|
2
3
|
export * from './githubContributions.js';
|
|
3
4
|
export * from './projectCapture.js';
|
|
4
5
|
export * from './taskActivity.js';
|
|
@@ -47,3 +48,5 @@ export * from './automations.js';
|
|
|
47
48
|
export * from './automationTemplates.js';
|
|
48
49
|
export * from './dayPlan.js';
|
|
49
50
|
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
51
|
+
export * from './goals.js';
|
|
52
|
+
export * from './goalNotes.js';
|
|
@@ -700,6 +700,45 @@ export declare const AttentionRequestSchema: z.ZodObject<{
|
|
|
700
700
|
refresh: z.ZodOptional<z.ZodBoolean>;
|
|
701
701
|
}, z.core.$strip>;
|
|
702
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<{
|
|
703
742
|
id: z.ZodUUID;
|
|
704
743
|
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
705
744
|
agent: "agent";
|
|
@@ -1653,11 +1692,70 @@ export declare const CommandsResponseSchema: z.ZodObject<{
|
|
|
1653
1692
|
description: z.ZodString;
|
|
1654
1693
|
argumentHint: z.ZodString;
|
|
1655
1694
|
acceptsArguments: z.ZodOptional<z.ZodBoolean>;
|
|
1695
|
+
startsConversation: z.ZodOptional<z.ZodBoolean>;
|
|
1656
1696
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1657
1697
|
clearsContext: z.ZodOptional<z.ZodBoolean>;
|
|
1658
1698
|
}, z.core.$strip>>;
|
|
1659
1699
|
}, z.core.$strip>;
|
|
1660
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<{
|
|
1661
1759
|
requestId: z.ZodUUID;
|
|
1662
1760
|
kind: z.ZodLiteral<"voice-capture">;
|
|
1663
1761
|
receipt: z.ZodNullable<z.ZodObject<{
|
|
@@ -2049,6 +2147,7 @@ export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
2049
2147
|
description: z.ZodString;
|
|
2050
2148
|
argumentHint: z.ZodString;
|
|
2051
2149
|
acceptsArguments: z.ZodOptional<z.ZodBoolean>;
|
|
2150
|
+
startsConversation: z.ZodOptional<z.ZodBoolean>;
|
|
2052
2151
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2053
2152
|
clearsContext: z.ZodOptional<z.ZodBoolean>;
|
|
2054
2153
|
}, z.core.$strip>>;
|
|
@@ -2271,6 +2370,7 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2271
2370
|
"in-place": "in-place";
|
|
2272
2371
|
}>>;
|
|
2273
2372
|
movedFrom: z.ZodOptional<z.ZodString>;
|
|
2373
|
+
checkpointWarning: z.ZodOptional<z.ZodString>;
|
|
2274
2374
|
}, z.core.$strip>, z.ZodObject<{
|
|
2275
2375
|
type: z.ZodLiteral<"clone_result">;
|
|
2276
2376
|
requestId: z.ZodUUID;
|
|
@@ -2334,6 +2434,7 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2334
2434
|
type: z.ZodLiteral<"error">;
|
|
2335
2435
|
requestId: z.ZodUUID;
|
|
2336
2436
|
message: z.ZodString;
|
|
2437
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2337
2438
|
}, z.core.$strip>, z.ZodObject<{
|
|
2338
2439
|
type: z.ZodLiteral<"cancelled">;
|
|
2339
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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuDxB,eAAO,MAAM,kBAAkB;;;;;;;;iBAI7B,CAAC;AAKH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;iBAEhC,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAI/B,CAAC;AAKH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4B5B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;iBAEhC,CAAC;AAKH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAI/B,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;iBAGjC,CAAC;AAUH,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AAKH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;iBAkB1B,CAAC;AAcH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa/B,CAAC;AAKH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAG9B,CAAC;AASH,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAM5B,CAAC;AAMH,eAAO,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BhC,CAAC;AAcH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4InC,CAAC;AAQH,eAAO,MAAM,oBAAoB;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
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';
|
|
@@ -443,6 +444,7 @@ export const AttentionRequestSchema = HarnessRequestBase.extend({
|
|
|
443
444
|
refresh: z.boolean().optional(),
|
|
444
445
|
});
|
|
445
446
|
export const HarnessRequestSchema = z.discriminatedUnion('kind', [
|
|
447
|
+
HarnessRequestBase.extend({ kind: z.literal('workspaces'), command: WorkspaceCommandSchema }),
|
|
446
448
|
HarnessRequestBase.extend({
|
|
447
449
|
kind: z.literal('voice-capture'),
|
|
448
450
|
credentialId: z.uuid(),
|
|
@@ -698,11 +700,13 @@ export const CommandsResponseSchema = HarnessResponseBase.extend({
|
|
|
698
700
|
description: z.string(),
|
|
699
701
|
argumentHint: z.string(),
|
|
700
702
|
acceptsArguments: z.boolean().optional(),
|
|
703
|
+
startsConversation: z.boolean().optional(),
|
|
701
704
|
aliases: z.array(z.string()).optional(),
|
|
702
705
|
clearsContext: z.boolean().optional(),
|
|
703
706
|
})),
|
|
704
707
|
});
|
|
705
708
|
export const HarnessResponseSchema = z.discriminatedUnion('kind', [
|
|
709
|
+
HarnessResponseBase.extend({ kind: z.literal('workspaces'), snapshot: WorkspaceSnapshotSchema }),
|
|
706
710
|
HarnessResponseBase.extend({
|
|
707
711
|
kind: z.literal('voice-capture'),
|
|
708
712
|
receipt: VoiceCaptureReceiptSchema.nullable(),
|
|
@@ -800,6 +804,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
800
804
|
// ran — on `branch` — so the phone shows a quiet "checkout moved" notice on the bubble
|
|
801
805
|
// instead of the old dead-end rejection that made the user re-send.
|
|
802
806
|
movedFrom: z.string().optional(),
|
|
807
|
+
checkpointWarning: z.string().optional(),
|
|
803
808
|
}),
|
|
804
809
|
z.object({
|
|
805
810
|
// The result of a `clone` turn (#78): the new repo's id, once cloned into the
|
|
@@ -870,6 +875,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
870
875
|
type: z.literal('error'),
|
|
871
876
|
requestId: z.uuidv7(),
|
|
872
877
|
message: z.string(),
|
|
878
|
+
code: z.string().optional(),
|
|
873
879
|
}),
|
|
874
880
|
// A `cancel` request successfully stopped this in-flight turn.
|
|
875
881
|
z.object({
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SavedChatMessageSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
role: z.ZodEnum<{
|
|
5
|
+
user: "user";
|
|
6
|
+
lucid: "lucid";
|
|
7
|
+
notice: "notice";
|
|
8
|
+
}>;
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
export declare const WorkerWorkspaceSchema: z.ZodObject<{
|
|
12
|
+
workerId: z.ZodUUID;
|
|
13
|
+
repoId: z.ZodString;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
brief: z.ZodDefault<z.ZodString>;
|
|
16
|
+
workspaceId: z.ZodString;
|
|
17
|
+
conversationId: z.ZodString;
|
|
18
|
+
state: z.ZodEnum<{
|
|
19
|
+
ready: "ready";
|
|
20
|
+
archived: "archived";
|
|
21
|
+
creating: "creating";
|
|
22
|
+
setup_failed: "setup_failed";
|
|
23
|
+
}>;
|
|
24
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
25
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
26
|
+
baseSha: z.ZodOptional<z.ZodString>;
|
|
27
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
28
|
+
error: z.ZodOptional<z.ZodString>;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
updatedAt: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type WorkerWorkspace = z.infer<typeof WorkerWorkspaceSchema>;
|
|
33
|
+
export declare const WorkspaceCommandSchema: z.ZodObject<{
|
|
34
|
+
action: z.ZodEnum<{
|
|
35
|
+
archive: "archive";
|
|
36
|
+
history: "history";
|
|
37
|
+
list: "list";
|
|
38
|
+
create: "create";
|
|
39
|
+
restore: "restore";
|
|
40
|
+
import: "import";
|
|
41
|
+
"clear-history": "clear-history";
|
|
42
|
+
}>;
|
|
43
|
+
repoId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
workerId: z.ZodOptional<z.ZodUUID>;
|
|
45
|
+
checkout: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
47
|
+
title: z.ZodOptional<z.ZodString>;
|
|
48
|
+
brief: z.ZodOptional<z.ZodString>;
|
|
49
|
+
before: z.ZodOptional<z.ZodString>;
|
|
50
|
+
legacy: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
role: z.ZodEnum<{
|
|
54
|
+
user: "user";
|
|
55
|
+
lucid: "lucid";
|
|
56
|
+
notice: "notice";
|
|
57
|
+
}>;
|
|
58
|
+
text: z.ZodString;
|
|
59
|
+
}, z.core.$loose>>;
|
|
60
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
61
|
+
sessionCheckout: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type WorkspaceCommand = z.infer<typeof WorkspaceCommandSchema>;
|
|
65
|
+
export declare const WorkspaceRunSchema: z.ZodObject<{
|
|
66
|
+
requestId: z.ZodString;
|
|
67
|
+
prompt: z.ZodString;
|
|
68
|
+
handoff: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
from: z.ZodEnum<{
|
|
70
|
+
claude: "claude";
|
|
71
|
+
codex: "codex";
|
|
72
|
+
}>;
|
|
73
|
+
to: z.ZodEnum<{
|
|
74
|
+
claude: "claude";
|
|
75
|
+
codex: "codex";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
frames: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
|
+
terminated: z.ZodBoolean;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type WorkspaceRun = z.infer<typeof WorkspaceRunSchema>;
|
|
82
|
+
export declare const WorkspaceSnapshotSchema: z.ZodObject<{
|
|
83
|
+
workers: z.ZodArray<z.ZodObject<{
|
|
84
|
+
workerId: z.ZodUUID;
|
|
85
|
+
repoId: z.ZodString;
|
|
86
|
+
title: z.ZodString;
|
|
87
|
+
brief: z.ZodDefault<z.ZodString>;
|
|
88
|
+
workspaceId: z.ZodString;
|
|
89
|
+
conversationId: z.ZodString;
|
|
90
|
+
state: z.ZodEnum<{
|
|
91
|
+
ready: "ready";
|
|
92
|
+
archived: "archived";
|
|
93
|
+
creating: "creating";
|
|
94
|
+
setup_failed: "setup_failed";
|
|
95
|
+
}>;
|
|
96
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
97
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
98
|
+
baseSha: z.ZodOptional<z.ZodString>;
|
|
99
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
100
|
+
error: z.ZodOptional<z.ZodString>;
|
|
101
|
+
createdAt: z.ZodString;
|
|
102
|
+
updatedAt: z.ZodString;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
checkout: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
repoId: z.ZodString;
|
|
106
|
+
conversationId: z.ZodString;
|
|
107
|
+
revision: z.ZodString;
|
|
108
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
requestId: z.ZodString;
|
|
112
|
+
prompt: z.ZodString;
|
|
113
|
+
handoff: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
from: z.ZodEnum<{
|
|
115
|
+
claude: "claude";
|
|
116
|
+
codex: "codex";
|
|
117
|
+
}>;
|
|
118
|
+
to: z.ZodEnum<{
|
|
119
|
+
claude: "claude";
|
|
120
|
+
codex: "codex";
|
|
121
|
+
}>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
frames: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
|
+
terminated: z.ZodBoolean;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
legacyMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
role: z.ZodEnum<{
|
|
129
|
+
user: "user";
|
|
130
|
+
lucid: "lucid";
|
|
131
|
+
notice: "notice";
|
|
132
|
+
}>;
|
|
133
|
+
text: z.ZodString;
|
|
134
|
+
}, z.core.$loose>>>;
|
|
135
|
+
nextBefore: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type WorkspaceSnapshot = z.infer<typeof WorkspaceSnapshotSchema>;
|
|
138
|
+
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;iBAEnB,CAAC;AAEjB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;iBAQhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const SavedChatMessageSchema = z.object({
|
|
3
|
+
id: z.string().min(1), role: z.enum(['user', 'lucid', 'notice']), text: z.string(),
|
|
4
|
+
}).passthrough();
|
|
5
|
+
export const WorkerWorkspaceSchema = z.object({
|
|
6
|
+
workerId: z.uuidv7(), repoId: z.string().min(1), title: z.string().min(1).max(200),
|
|
7
|
+
brief: z.string().max(8000).default(''),
|
|
8
|
+
workspaceId: z.string(), conversationId: z.string(),
|
|
9
|
+
state: z.enum(['creating', 'ready', 'setup_failed', 'archived']),
|
|
10
|
+
branch: z.string().optional(), baseRef: z.string().optional(), baseSha: z.string().optional(),
|
|
11
|
+
resume: z.string().optional(), error: z.string().optional(),
|
|
12
|
+
createdAt: z.string(), updatedAt: z.string(),
|
|
13
|
+
});
|
|
14
|
+
export const WorkspaceCommandSchema = z.object({
|
|
15
|
+
action: z.enum(['list', 'create', 'history', 'archive', 'restore', 'import', 'clear-history']),
|
|
16
|
+
repoId: z.string().min(1).optional(), workerId: z.uuidv7().optional(),
|
|
17
|
+
checkout: z.boolean().optional(), revision: z.string().optional(),
|
|
18
|
+
title: z.string().trim().min(1).max(200).optional(),
|
|
19
|
+
brief: z.string().max(8000).optional(), before: z.string().optional(),
|
|
20
|
+
legacy: z.object({
|
|
21
|
+
messages: z.array(SavedChatMessageSchema).max(10_000), resume: z.string().optional(),
|
|
22
|
+
sessionCheckout: z.boolean().optional(),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
export const WorkspaceRunSchema = z.object({
|
|
26
|
+
requestId: z.string(), prompt: z.string(),
|
|
27
|
+
handoff: z.object({ from: z.enum(['claude', 'codex']), to: z.enum(['claude', 'codex']) }).optional(),
|
|
28
|
+
frames: z.array(z.record(z.string(), z.unknown())),
|
|
29
|
+
terminated: z.boolean(),
|
|
30
|
+
});
|
|
31
|
+
export const WorkspaceSnapshotSchema = z.object({
|
|
32
|
+
workers: z.array(WorkerWorkspaceSchema),
|
|
33
|
+
checkout: z.object({
|
|
34
|
+
repoId: z.string(), conversationId: z.string(), revision: z.string(),
|
|
35
|
+
resume: z.string().optional(),
|
|
36
|
+
}).optional(),
|
|
37
|
+
runs: z.array(WorkspaceRunSchema).optional(),
|
|
38
|
+
legacyMessages: z.array(SavedChatMessageSchema).optional(),
|
|
39
|
+
nextBefore: z.string().optional(),
|
|
40
|
+
});
|
|
@@ -20,6 +20,7 @@ export interface AgentCommandOption {
|
|
|
20
20
|
argumentHint: string;
|
|
21
21
|
/** SDK commands can accept freeform arguments without publishing a hint. */
|
|
22
22
|
acceptsArguments?: boolean;
|
|
23
|
+
startsConversation?: boolean;
|
|
23
24
|
aliases?: string[];
|
|
24
25
|
clearsContext?: boolean;
|
|
25
26
|
}
|