@staff0rd/assist 0.1128.1 → 0.1129.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/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.1129.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -7152,7 +7152,7 @@ var harnessCapabilityDeclarations = {
|
|
|
7152
7152
|
"the shared policy still applies the allowlist, restricted paths and docs/schema locks; run work that must keep those guards on Claude",
|
|
7153
7153
|
"a1592"
|
|
7154
7154
|
),
|
|
7155
|
-
// codex-cli 0.167.1 reports request_user_input via PreToolUse; captured in
|
|
7155
|
+
// codex-cli 0.167.1 reports request_user_input and selectable request_user_input_async via PreToolUse; captured in question fixtures and replayed through codexHook.
|
|
7156
7156
|
"intercept.question": supported,
|
|
7157
7157
|
"slashCommands.suggest": unsupported(
|
|
7158
7158
|
"assist reads skills and commands only from Claude's home and project dirs",
|
|
@@ -7863,6 +7863,39 @@ function condense(value) {
|
|
|
7863
7863
|
return value.replace(/\s+/g, " ").trim().slice(0, 120);
|
|
7864
7864
|
}
|
|
7865
7865
|
|
|
7866
|
+
// src/shared/harnessAdapters/codexAsyncQuestionOperation.ts
|
|
7867
|
+
import { z as z11 } from "zod";
|
|
7868
|
+
var inputSchema = z11.object({
|
|
7869
|
+
questions: z11.array(
|
|
7870
|
+
z11.object({
|
|
7871
|
+
title: z11.string().min(1),
|
|
7872
|
+
options: z11.array(z11.string().min(1)).min(2).max(4)
|
|
7873
|
+
})
|
|
7874
|
+
).min(1).max(4)
|
|
7875
|
+
});
|
|
7876
|
+
function codexAsyncQuestionOperation({
|
|
7877
|
+
toolName,
|
|
7878
|
+
toolInput
|
|
7879
|
+
}) {
|
|
7880
|
+
if (toolName !== "request_user_input_async") return [];
|
|
7881
|
+
const input = inputSchema.safeParse(toolInput);
|
|
7882
|
+
if (!input.success) return [];
|
|
7883
|
+
return [
|
|
7884
|
+
{
|
|
7885
|
+
kind: "question",
|
|
7886
|
+
tool: toolName,
|
|
7887
|
+
questionsJson: JSON.stringify({
|
|
7888
|
+
questions: input.data.questions.map(({ title, options: options2 }) => ({
|
|
7889
|
+
question: title,
|
|
7890
|
+
header: "Question",
|
|
7891
|
+
multiSelect: false,
|
|
7892
|
+
options: options2.map((label) => ({ label, description: "" }))
|
|
7893
|
+
}))
|
|
7894
|
+
})
|
|
7895
|
+
}
|
|
7896
|
+
];
|
|
7897
|
+
}
|
|
7898
|
+
|
|
7866
7899
|
// src/shared/harnessAdapters/parseApplyPatch.ts
|
|
7867
7900
|
var FILE_HEADER = /^\*\*\* (?:Add|Update|Delete) File: (.+)$/;
|
|
7868
7901
|
var MOVE_TO = /^\*\*\* Move to: (.+)$/;
|
|
@@ -7946,7 +7979,8 @@ function codexToolOperations({
|
|
|
7946
7979
|
];
|
|
7947
7980
|
return command.includes(PATCH_MARKER2) ? [...operations2, ...patchWrites(toolName, command)] : operations2;
|
|
7948
7981
|
}
|
|
7949
|
-
if (!PATCH_TOOLS.has(toolName))
|
|
7982
|
+
if (!PATCH_TOOLS.has(toolName))
|
|
7983
|
+
return codexAsyncQuestionOperation({ toolName, toolInput });
|
|
7950
7984
|
const patch2 = patchText(toolInput);
|
|
7951
7985
|
if (patch2) return patchWrites(toolName, patch2);
|
|
7952
7986
|
const { file_path: path128, content } = toolInput;
|
|
@@ -9180,13 +9214,13 @@ function docsFeedbackPrompt({
|
|
|
9180
9214
|
}
|
|
9181
9215
|
|
|
9182
9216
|
// src/commands/sessions/web/docsFeedback/docsFeedbackSchema.ts
|
|
9183
|
-
import { z as
|
|
9184
|
-
var docsFeedbackSchema =
|
|
9185
|
-
pageId:
|
|
9186
|
-
heading:
|
|
9187
|
-
source:
|
|
9188
|
-
selection:
|
|
9189
|
-
prompt:
|
|
9217
|
+
import { z as z12 } from "zod";
|
|
9218
|
+
var docsFeedbackSchema = z12.object({
|
|
9219
|
+
pageId: z12.string().min(1),
|
|
9220
|
+
heading: z12.string().min(1),
|
|
9221
|
+
source: z12.string().min(1),
|
|
9222
|
+
selection: z12.string().min(1),
|
|
9223
|
+
prompt: z12.string().trim().min(1)
|
|
9190
9224
|
});
|
|
9191
9225
|
|
|
9192
9226
|
// src/commands/sessions/web/docsFeedback/docsFeedback.ts
|
|
@@ -13270,14 +13304,14 @@ function jiraSite(_req, res) {
|
|
|
13270
13304
|
}
|
|
13271
13305
|
|
|
13272
13306
|
// src/commands/sessions/web/linkStatus/linkStatusSchema.ts
|
|
13273
|
-
import { z as
|
|
13307
|
+
import { z as z13 } from "zod";
|
|
13274
13308
|
var NAME = /^[A-Za-z0-9_.-]+$/;
|
|
13275
|
-
var linkStatusSchema =
|
|
13276
|
-
refs:
|
|
13277
|
-
|
|
13278
|
-
owner:
|
|
13279
|
-
repo:
|
|
13280
|
-
number:
|
|
13309
|
+
var linkStatusSchema = z13.object({
|
|
13310
|
+
refs: z13.array(
|
|
13311
|
+
z13.object({
|
|
13312
|
+
owner: z13.string().regex(NAME),
|
|
13313
|
+
repo: z13.string().regex(NAME),
|
|
13314
|
+
number: z13.number().int().positive()
|
|
13281
13315
|
})
|
|
13282
13316
|
).max(1e3)
|
|
13283
13317
|
});
|
|
@@ -14909,20 +14943,20 @@ async function failStaleJobRuns(db, { startedBefore, detail }) {
|
|
|
14909
14943
|
}
|
|
14910
14944
|
|
|
14911
14945
|
// src/commands/inbox/inboxConnectorRun.ts
|
|
14912
|
-
import { z as
|
|
14946
|
+
import { z as z15 } from "zod";
|
|
14913
14947
|
|
|
14914
14948
|
// src/commands/inbox/inboxScanSchema.ts
|
|
14915
|
-
import { z as
|
|
14916
|
-
var flaggedMessageSchema =
|
|
14917
|
-
source:
|
|
14918
|
-
messageId:
|
|
14919
|
-
sender:
|
|
14920
|
-
summary:
|
|
14921
|
-
link:
|
|
14922
|
-
receivedAt:
|
|
14949
|
+
import { z as z14 } from "zod";
|
|
14950
|
+
var flaggedMessageSchema = z14.object({
|
|
14951
|
+
source: z14.enum(["gmail", "slack"]),
|
|
14952
|
+
messageId: z14.string().min(1),
|
|
14953
|
+
sender: z14.string().min(1),
|
|
14954
|
+
summary: z14.string().min(1),
|
|
14955
|
+
link: z14.string().min(1),
|
|
14956
|
+
receivedAt: z14.string().optional()
|
|
14923
14957
|
});
|
|
14924
|
-
var inboxScanSchema =
|
|
14925
|
-
messages:
|
|
14958
|
+
var inboxScanSchema = z14.object({
|
|
14959
|
+
messages: z14.array(flaggedMessageSchema)
|
|
14926
14960
|
});
|
|
14927
14961
|
|
|
14928
14962
|
// src/commands/inbox/inboxConnectorRun.ts
|
|
@@ -14931,7 +14965,7 @@ async function inboxConnectorRun(adapter, prompt, tools, onEvent) {
|
|
|
14931
14965
|
try {
|
|
14932
14966
|
return await adapter.connectorRun({
|
|
14933
14967
|
prompt,
|
|
14934
|
-
schema:
|
|
14968
|
+
schema: z15.toJSONSchema(inboxScanSchema, { target: "draft-07" }),
|
|
14935
14969
|
tools,
|
|
14936
14970
|
timeoutMs: INBOX_SCAN_TIMEOUT_MS,
|
|
14937
14971
|
onEvent
|
|
@@ -21603,12 +21637,12 @@ async function moveManualCheck(orm, item, fromIdx, checkIdx, toIdx) {
|
|
|
21603
21637
|
}
|
|
21604
21638
|
|
|
21605
21639
|
// src/commands/sessions/shared/askCheckInputSchema.ts
|
|
21606
|
-
import { z as
|
|
21607
|
-
var text17 =
|
|
21608
|
-
var askCheckInputSchema =
|
|
21640
|
+
import { z as z16 } from "zod";
|
|
21641
|
+
var text17 = z16.string().trim().min(1);
|
|
21642
|
+
var askCheckInputSchema = z16.object({
|
|
21609
21643
|
title: text17,
|
|
21610
|
-
steps:
|
|
21611
|
-
before:
|
|
21644
|
+
steps: z16.array(text17).min(1, "Give at least 1 step"),
|
|
21645
|
+
before: z16.array(text17).optional(),
|
|
21612
21646
|
changed: text17.optional()
|
|
21613
21647
|
});
|
|
21614
21648
|
var CHECK_RESULT_KEY = "result";
|
|
@@ -21976,19 +22010,10 @@ function useBuiltIn(reason4) {
|
|
|
21976
22010
|
console.error(`Error: ${reason4}; use the built-in AskUserQuestion tool.`);
|
|
21977
22011
|
process.exit(1);
|
|
21978
22012
|
}
|
|
21979
|
-
function askInChat2(blocker) {
|
|
21980
|
-
console.error(
|
|
21981
|
-
`Error: ${blocker}
|
|
21982
|
-
Do not wait for a preview-pane answer; ask the user these questions in chat instead and end your turn.`
|
|
21983
|
-
);
|
|
21984
|
-
process.exit(1);
|
|
21985
|
-
}
|
|
21986
22013
|
async function requireQuestionSession() {
|
|
21987
22014
|
const sessionId2 = process.env.ASSIST_SESSION_ID;
|
|
21988
22015
|
if (process.env.ASSIST_SESSION !== "1" || !sessionId2)
|
|
21989
22016
|
useBuiltIn("not running in an assist session");
|
|
21990
|
-
const blocker = previewAnswerWaitBlocker();
|
|
21991
|
-
if (blocker) askInChat2(blocker);
|
|
21992
22017
|
if (!askQuestionEnabled(loadConfig()))
|
|
21993
22018
|
useBuiltIn("assist ask-question is disabled (sessions.askQuestion)");
|
|
21994
22019
|
if (!await isLiveDaemonSession(sessionId2))
|
|
@@ -21999,23 +22024,23 @@ async function requireQuestionSession() {
|
|
|
21999
22024
|
}
|
|
22000
22025
|
|
|
22001
22026
|
// src/commands/sessions/shared/askQuestionInputSchema.ts
|
|
22002
|
-
import { z as
|
|
22003
|
-
var askQuestionOptionSchema =
|
|
22004
|
-
label:
|
|
22005
|
-
description:
|
|
22006
|
-
preview:
|
|
22027
|
+
import { z as z17 } from "zod";
|
|
22028
|
+
var askQuestionOptionSchema = z17.object({
|
|
22029
|
+
label: z17.string().min(1),
|
|
22030
|
+
description: z17.string(),
|
|
22031
|
+
preview: z17.string().optional()
|
|
22007
22032
|
});
|
|
22008
|
-
var askQuestionSchema =
|
|
22009
|
-
question:
|
|
22010
|
-
header:
|
|
22011
|
-
multiSelect:
|
|
22012
|
-
options:
|
|
22033
|
+
var askQuestionSchema = z17.object({
|
|
22034
|
+
question: z17.string().min(1),
|
|
22035
|
+
header: z17.string().min(1),
|
|
22036
|
+
multiSelect: z17.boolean(),
|
|
22037
|
+
options: z17.array(askQuestionOptionSchema).min(2, "Each question needs at least 2 options").max(4, "Each question allows at most 4 options").refine(
|
|
22013
22038
|
(options2) => new Set(options2.map((option) => option.label)).size === options2.length,
|
|
22014
22039
|
"Option labels must be unique within a question"
|
|
22015
22040
|
)
|
|
22016
22041
|
});
|
|
22017
|
-
var askQuestionInputSchema =
|
|
22018
|
-
questions:
|
|
22042
|
+
var askQuestionInputSchema = z17.object({
|
|
22043
|
+
questions: z17.array(askQuestionSchema).min(1, "Ask at least 1 question").max(4, "Ask at most 4 questions").refine(
|
|
22019
22044
|
(questions) => new Set(questions.map((q) => q.question)).size === questions.length,
|
|
22020
22045
|
"Question texts must be unique"
|
|
22021
22046
|
)
|
|
@@ -23600,21 +23625,21 @@ async function list(options2) {
|
|
|
23600
23625
|
import chalk64 from "chalk";
|
|
23601
23626
|
|
|
23602
23627
|
// src/commands/backlog/propose/proposedItemSchema.ts
|
|
23603
|
-
import { z as
|
|
23604
|
-
var proposedPhaseSchema =
|
|
23605
|
-
name:
|
|
23628
|
+
import { z as z18 } from "zod";
|
|
23629
|
+
var proposedPhaseSchema = z18.strictObject({
|
|
23630
|
+
name: z18.string().trim().min(1, "phase name is required").refine(
|
|
23606
23631
|
(name2) => name2.toLowerCase() !== REVIEW_PHASE_NAME.toLowerCase(),
|
|
23607
23632
|
`"${REVIEW_PHASE_NAME}" is owned by the runner and appended to every plan automatically \u2014 remove this phase`
|
|
23608
23633
|
),
|
|
23609
|
-
tasks:
|
|
23610
|
-
manualChecks:
|
|
23634
|
+
tasks: z18.array(z18.string().trim().min(1)).min(1, "a phase needs at least one task"),
|
|
23635
|
+
manualChecks: z18.array(z18.string().trim().min(1)).default([])
|
|
23611
23636
|
});
|
|
23612
|
-
var proposedItemSchema =
|
|
23613
|
-
name:
|
|
23614
|
-
type:
|
|
23615
|
-
description:
|
|
23616
|
-
acceptanceCriteria:
|
|
23617
|
-
phases:
|
|
23637
|
+
var proposedItemSchema = z18.strictObject({
|
|
23638
|
+
name: z18.string().trim().min(1, "name is required"),
|
|
23639
|
+
type: z18.enum(["story", "bug"]),
|
|
23640
|
+
description: z18.string().optional(),
|
|
23641
|
+
acceptanceCriteria: z18.array(z18.string().trim().min(1)).default([]),
|
|
23642
|
+
phases: z18.array(proposedPhaseSchema).default([])
|
|
23618
23643
|
});
|
|
23619
23644
|
|
|
23620
23645
|
// src/commands/backlog/propose/readProposedItem.ts
|
|
@@ -25201,21 +25226,21 @@ async function persistPhaseSessionId(itemId2, phaseIdx, claudeSessionId) {
|
|
|
25201
25226
|
import { mkdirSync as mkdirSync18, readFileSync as readFileSync36, rmSync as rmSync4, writeFileSync as writeFileSync27 } from "fs";
|
|
25202
25227
|
import { homedir as homedir18 } from "os";
|
|
25203
25228
|
import { dirname as dirname31, join as join63 } from "path";
|
|
25204
|
-
import { z as
|
|
25205
|
-
var activitySchema =
|
|
25206
|
-
kind:
|
|
25207
|
-
harness:
|
|
25208
|
-
name:
|
|
25209
|
-
itemId:
|
|
25210
|
-
itemName:
|
|
25211
|
-
itemIds:
|
|
25212
|
-
phase:
|
|
25213
|
-
phaseName:
|
|
25214
|
-
totalPhases:
|
|
25215
|
-
claudeSessionId:
|
|
25216
|
-
harnessSessionId:
|
|
25217
|
-
watchState:
|
|
25218
|
-
startedAt:
|
|
25229
|
+
import { z as z19 } from "zod";
|
|
25230
|
+
var activitySchema = z19.object({
|
|
25231
|
+
kind: z19.enum(["command", "backlog"]),
|
|
25232
|
+
harness: z19.enum(["claude", "codex", "pi"]).optional(),
|
|
25233
|
+
name: z19.string().optional(),
|
|
25234
|
+
itemId: z19.number().optional(),
|
|
25235
|
+
itemName: z19.string().optional(),
|
|
25236
|
+
itemIds: z19.array(z19.number()).optional(),
|
|
25237
|
+
phase: z19.number().optional(),
|
|
25238
|
+
phaseName: z19.string().optional(),
|
|
25239
|
+
totalPhases: z19.number().optional(),
|
|
25240
|
+
claudeSessionId: z19.string().optional(),
|
|
25241
|
+
harnessSessionId: z19.string().optional(),
|
|
25242
|
+
watchState: z19.enum(["waiting", "updating"]).optional(),
|
|
25243
|
+
startedAt: z19.number()
|
|
25219
25244
|
});
|
|
25220
25245
|
function activityPath(sessionId2) {
|
|
25221
25246
|
return join63(homedir18(), ".assist", "activity", `activity-${sessionId2}.json`);
|
|
@@ -26665,9 +26690,9 @@ function registerUpdateFieldCommand(cmd) {
|
|
|
26665
26690
|
import chalk114 from "chalk";
|
|
26666
26691
|
|
|
26667
26692
|
// src/commands/backlog/updatePlan/planUpdateSchema.ts
|
|
26668
|
-
import { z as
|
|
26669
|
-
var planUpdateSchema =
|
|
26670
|
-
phases:
|
|
26693
|
+
import { z as z20 } from "zod";
|
|
26694
|
+
var planUpdateSchema = z20.strictObject({
|
|
26695
|
+
phases: z20.array(proposedPhaseSchema).min(1, "a plan needs at least one phase")
|
|
26671
26696
|
});
|
|
26672
26697
|
|
|
26673
26698
|
// src/commands/backlog/updatePlan/readPlanUpdate.ts
|
|
@@ -33091,30 +33116,30 @@ import { dirname as dirname36 } from "path";
|
|
|
33091
33116
|
import chalk172 from "chalk";
|
|
33092
33117
|
|
|
33093
33118
|
// src/commands/devlog/write/devEntryInputSchema.ts
|
|
33094
|
-
import { z as
|
|
33095
|
-
var oneLine =
|
|
33096
|
-
var isoDate =
|
|
33119
|
+
import { z as z21 } from "zod";
|
|
33120
|
+
var oneLine = z21.string().trim().min(1).refine((value) => !value.includes("\n"), "must be a single line");
|
|
33121
|
+
var isoDate = z21.string().regex(/^\d{4}-\d{2}-\d{2}$/, "must be a date like 2026-08-10");
|
|
33097
33122
|
var MAX_ITEM_LENGTH = 80;
|
|
33098
33123
|
var itemText = oneLine.refine(
|
|
33099
33124
|
(value) => value.length <= MAX_ITEM_LENGTH,
|
|
33100
33125
|
`must be a short changelog phrase (at most ${MAX_ITEM_LENGTH} characters)`
|
|
33101
33126
|
);
|
|
33102
|
-
var changeItems =
|
|
33127
|
+
var changeItems = z21.array(z21.object({ text: itemText, version: oneLine.optional() }).strict()).default([]);
|
|
33103
33128
|
function datesWithinWeek(week, dates) {
|
|
33104
33129
|
if (!isValidWeek(week)) return true;
|
|
33105
33130
|
const { start: start2, end } = isoWeekRange(week);
|
|
33106
33131
|
return start2 <= dates.first && dates.first <= dates.last && dates.last <= end;
|
|
33107
33132
|
}
|
|
33108
|
-
var devEntryInputSchema =
|
|
33109
|
-
week:
|
|
33133
|
+
var devEntryInputSchema = z21.object({
|
|
33134
|
+
week: z21.string().refine(isValidWeek, "must be an ISO week like 2026-W33"),
|
|
33110
33135
|
title: oneLine,
|
|
33111
|
-
dates:
|
|
33112
|
-
versions:
|
|
33136
|
+
dates: z21.object({ first: isoDate, last: isoDate }).strict(),
|
|
33137
|
+
versions: z21.object({ first: oneLine, last: oneLine }).strict().optional(),
|
|
33113
33138
|
aiGenerated: oneLine,
|
|
33114
33139
|
added: changeItems,
|
|
33115
33140
|
changed: changeItems,
|
|
33116
33141
|
fixed: changeItems,
|
|
33117
|
-
lede:
|
|
33142
|
+
lede: z21.string().trim().min(1)
|
|
33118
33143
|
}).strict().refine((entry) => datesWithinWeek(entry.week, entry.dates), {
|
|
33119
33144
|
message: "first and last must be in order and within the week",
|
|
33120
33145
|
path: ["dates"]
|
|
@@ -37333,12 +37358,12 @@ function truncate2(text18) {
|
|
|
37333
37358
|
}
|
|
37334
37359
|
|
|
37335
37360
|
// src/commands/inbox/parseInboxScanOutput.ts
|
|
37336
|
-
import { z as
|
|
37361
|
+
import { z as z22 } from "zod";
|
|
37337
37362
|
function parseInboxScanOutput(output) {
|
|
37338
37363
|
const parsed = inboxScanSchema.safeParse(output);
|
|
37339
37364
|
if (!parsed.success)
|
|
37340
37365
|
throw new Error(
|
|
37341
|
-
`Inbox scan returned malformed output: ${
|
|
37366
|
+
`Inbox scan returned malformed output: ${z22.prettifyError(parsed.error)}`
|
|
37342
37367
|
);
|
|
37343
37368
|
return parsed.data.messages;
|
|
37344
37369
|
}
|
|
@@ -37941,41 +37966,41 @@ function stringOrUndefined(value) {
|
|
|
37941
37966
|
}
|
|
37942
37967
|
|
|
37943
37968
|
// src/commands/sessions/daemon/persistedSessionSchema.ts
|
|
37944
|
-
import { z as
|
|
37945
|
-
var persistedSessionSchema =
|
|
37946
|
-
id:
|
|
37947
|
-
name:
|
|
37948
|
-
title:
|
|
37949
|
-
generatedTitle:
|
|
37950
|
-
subtitle:
|
|
37951
|
-
commandType:
|
|
37952
|
-
harness:
|
|
37953
|
-
status:
|
|
37954
|
-
error:
|
|
37955
|
-
cwd:
|
|
37956
|
-
startedAt:
|
|
37957
|
-
runningMs:
|
|
37958
|
-
claudeSessionId:
|
|
37959
|
-
harnessSessionId:
|
|
37960
|
-
initialPrompt:
|
|
37961
|
-
runName:
|
|
37962
|
-
runArgs:
|
|
37963
|
-
assistArgs:
|
|
37969
|
+
import { z as z23 } from "zod";
|
|
37970
|
+
var persistedSessionSchema = z23.object({
|
|
37971
|
+
id: z23.string().optional(),
|
|
37972
|
+
name: z23.string(),
|
|
37973
|
+
title: z23.string().optional(),
|
|
37974
|
+
generatedTitle: z23.string().optional(),
|
|
37975
|
+
subtitle: z23.string().optional(),
|
|
37976
|
+
commandType: z23.enum(["claude", "run", "assist"]),
|
|
37977
|
+
harness: z23.enum(["claude", "codex", "pi"]).optional(),
|
|
37978
|
+
status: z23.enum(["running", "waiting", "done", "error", "stopped"]).optional(),
|
|
37979
|
+
error: z23.string().optional(),
|
|
37980
|
+
cwd: z23.string(),
|
|
37981
|
+
startedAt: z23.number(),
|
|
37982
|
+
runningMs: z23.number().optional(),
|
|
37983
|
+
claudeSessionId: z23.string().optional(),
|
|
37984
|
+
harnessSessionId: z23.string().optional(),
|
|
37985
|
+
initialPrompt: z23.string().optional(),
|
|
37986
|
+
runName: z23.string().optional(),
|
|
37987
|
+
runArgs: z23.array(z23.string()).optional(),
|
|
37988
|
+
assistArgs: z23.array(z23.string()).optional(),
|
|
37964
37989
|
activity: activitySchema.optional(),
|
|
37965
|
-
starred:
|
|
37966
|
-
watcher:
|
|
37967
|
-
divergenceEscalation:
|
|
37968
|
-
design:
|
|
37969
|
-
auto:
|
|
37970
|
-
model:
|
|
37971
|
-
autoAdvance:
|
|
37972
|
-
autoApprove:
|
|
37973
|
-
reviewStarted:
|
|
37974
|
-
launchedFrom:
|
|
37975
|
-
pendingPrompts:
|
|
37976
|
-
interrupted:
|
|
37977
|
-
awaitingSeed:
|
|
37978
|
-
undurable:
|
|
37990
|
+
starred: z23.boolean().optional(),
|
|
37991
|
+
watcher: z23.boolean().optional(),
|
|
37992
|
+
divergenceEscalation: z23.boolean().optional(),
|
|
37993
|
+
design: z23.boolean().optional(),
|
|
37994
|
+
auto: z23.boolean().optional(),
|
|
37995
|
+
model: z23.string().optional(),
|
|
37996
|
+
autoAdvance: z23.boolean().optional(),
|
|
37997
|
+
autoApprove: z23.boolean().optional(),
|
|
37998
|
+
reviewStarted: z23.boolean().optional(),
|
|
37999
|
+
launchedFrom: z23.string().optional(),
|
|
38000
|
+
pendingPrompts: z23.array(z23.string()).optional(),
|
|
38001
|
+
interrupted: z23.object({ reason: z23.string(), at: z23.number() }).optional(),
|
|
38002
|
+
awaitingSeed: z23.boolean().optional(),
|
|
38003
|
+
undurable: z23.object({ reason: z23.string(), removesTree: z23.boolean().optional() }).optional()
|
|
37979
38004
|
});
|
|
37980
38005
|
|
|
37981
38006
|
// src/commands/sessions/daemon/toPersistedSession.ts
|
|
@@ -47358,21 +47383,21 @@ function readJsonFile(path128) {
|
|
|
47358
47383
|
}
|
|
47359
47384
|
|
|
47360
47385
|
// src/commands/review/highLevel/parseHighLevelSlicesInput.ts
|
|
47361
|
-
import { z as
|
|
47362
|
-
var slicesSchema =
|
|
47363
|
-
|
|
47364
|
-
title:
|
|
47365
|
-
summary:
|
|
47366
|
-
hunks:
|
|
47386
|
+
import { z as z24 } from "zod";
|
|
47387
|
+
var slicesSchema = z24.array(
|
|
47388
|
+
z24.object({
|
|
47389
|
+
title: z24.string().min(1),
|
|
47390
|
+
summary: z24.string(),
|
|
47391
|
+
hunks: z24.array(z24.string())
|
|
47367
47392
|
})
|
|
47368
47393
|
);
|
|
47369
|
-
var manualTestingSchema =
|
|
47370
|
-
setup:
|
|
47371
|
-
steps:
|
|
47394
|
+
var manualTestingSchema = z24.object({
|
|
47395
|
+
setup: z24.array(z24.string()),
|
|
47396
|
+
steps: z24.array(z24.object({ action: z24.string(), expect: z24.string() }))
|
|
47372
47397
|
});
|
|
47373
|
-
var slicesInputSchema =
|
|
47398
|
+
var slicesInputSchema = z24.union([
|
|
47374
47399
|
slicesSchema.transform((slices) => ({ slices })),
|
|
47375
|
-
|
|
47400
|
+
z24.object({ slices: slicesSchema, manualTesting: manualTestingSchema })
|
|
47376
47401
|
]);
|
|
47377
47402
|
function parseHighLevelSlicesInput(raw) {
|
|
47378
47403
|
const parsed = slicesInputSchema.safeParse(raw);
|
|
@@ -52714,16 +52739,16 @@ function selectPassages(sources, selection) {
|
|
|
52714
52739
|
}
|
|
52715
52740
|
|
|
52716
52741
|
// src/commands/transcript/selectionSchema.ts
|
|
52717
|
-
import { z as
|
|
52718
|
-
var selectionSchema =
|
|
52719
|
-
keep:
|
|
52720
|
-
|
|
52721
|
-
file:
|
|
52722
|
-
from:
|
|
52723
|
-
to:
|
|
52742
|
+
import { z as z25 } from "zod";
|
|
52743
|
+
var selectionSchema = z25.strictObject({
|
|
52744
|
+
keep: z25.array(
|
|
52745
|
+
z25.strictObject({
|
|
52746
|
+
file: z25.string().trim().min(1, "file is required"),
|
|
52747
|
+
from: z25.string().trim().min(1, "from is required"),
|
|
52748
|
+
to: z25.string().trim().min(1, "to is required")
|
|
52724
52749
|
})
|
|
52725
52750
|
).min(1, "a selection needs at least one keep range"),
|
|
52726
|
-
removed:
|
|
52751
|
+
removed: z25.array(z25.string().trim().min(1)).default([])
|
|
52727
52752
|
});
|
|
52728
52753
|
|
|
52729
52754
|
// src/commands/transcript/widenAudienceInText.ts
|
|
@@ -55698,9 +55723,9 @@ async function refreshRepoConfigCacheOnStart() {
|
|
|
55698
55723
|
}
|
|
55699
55724
|
|
|
55700
55725
|
// src/commands/sessions/daemon/loadActiveSelection.ts
|
|
55701
|
-
import { z as
|
|
55726
|
+
import { z as z26 } from "zod";
|
|
55702
55727
|
var ACTIVE_FILE = "active.json";
|
|
55703
|
-
var activeSelectionSchema =
|
|
55728
|
+
var activeSelectionSchema = z26.record(z26.string(), z26.string());
|
|
55704
55729
|
function loadActiveSelection() {
|
|
55705
55730
|
const parsed = activeSelectionSchema.safeParse(
|
|
55706
55731
|
loadJson(ACTIVE_FILE)
|
|
@@ -58353,9 +58378,9 @@ function buildPrompt3(prompt) {
|
|
|
58353
58378
|
}
|
|
58354
58379
|
|
|
58355
58380
|
// src/commands/sessions/shared/loadSessionTitles.ts
|
|
58356
|
-
import { z as
|
|
58381
|
+
import { z as z27 } from "zod";
|
|
58357
58382
|
var TITLES_FILE = "session-titles.json";
|
|
58358
|
-
var sessionTitlesSchema =
|
|
58383
|
+
var sessionTitlesSchema = z27.record(z27.string(), z27.string());
|
|
58359
58384
|
function loadSessionTitles() {
|
|
58360
58385
|
const parsed = sessionTitlesSchema.safeParse(
|
|
58361
58386
|
loadJson(TITLES_FILE)
|