@staff0rd/assist 0.974.1 → 0.975.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.974.1",
9
+ version: "0.975.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -4232,6 +4232,44 @@ async function browserRelay(req, res) {
4232
4232
  }
4233
4233
  }
4234
4234
 
4235
+ // src/commands/sessions/web/clientErrors/clientErrorsSchema.ts
4236
+ import { z as z8 } from "zod";
4237
+ var clientFailureSchema = z8.object({
4238
+ at: z8.string(),
4239
+ method: z8.string(),
4240
+ path: z8.string(),
4241
+ base: z8.string(),
4242
+ node: z8.string().optional(),
4243
+ status: z8.number().optional(),
4244
+ error: z8.string().optional(),
4245
+ durationMs: z8.number()
4246
+ });
4247
+ var clientErrorsSchema = z8.object({
4248
+ failures: z8.array(clientFailureSchema).max(100)
4249
+ });
4250
+
4251
+ // src/commands/sessions/web/clientErrors/clientErrors.ts
4252
+ function formatClientFailure(failure) {
4253
+ const target = failure.node ? `node=${failure.node} via ${failure.base}` : failure.base;
4254
+ const outcome = [
4255
+ failure.status === void 0 ? void 0 : `HTTP ${failure.status}`,
4256
+ failure.error
4257
+ ].filter(Boolean).join(" ");
4258
+ return `client: ${failure.method} ${failure.path} -> ${target} failed: ${outcome || "unknown error"} (${failure.durationMs}ms) at ${failure.at}`;
4259
+ }
4260
+ async function clientErrors(req, res) {
4261
+ const parsed = clientErrorsSchema.safeParse(
4262
+ await readJsonBody(req).catch(() => void 0)
4263
+ );
4264
+ if (!parsed.success) {
4265
+ respondJson(res, 400, { error: "Invalid client errors body" });
4266
+ return;
4267
+ }
4268
+ for (const failure of parsed.data.failures)
4269
+ console.log(formatClientFailure(failure));
4270
+ respondJson(res, 200, { received: parsed.data.failures.length });
4271
+ }
4272
+
4235
4273
  // src/commands/sessions/shared/readLogTail.ts
4236
4274
  import { closeSync as closeSync2, fstatSync, openSync as openSync2, readSync } from "fs";
4237
4275
  var MAX_TAIL_BYTES = 4 * 1024 * 1024;
@@ -4719,13 +4757,13 @@ function docsFeedbackPrompt({
4719
4757
  }
4720
4758
 
4721
4759
  // src/commands/sessions/web/docsFeedback/docsFeedbackSchema.ts
4722
- import { z as z8 } from "zod";
4723
- var docsFeedbackSchema = z8.object({
4724
- pageId: z8.string().min(1),
4725
- heading: z8.string().min(1),
4726
- source: z8.string().min(1),
4727
- selection: z8.string().min(1),
4728
- prompt: z8.string().trim().min(1)
4760
+ import { z as z9 } from "zod";
4761
+ var docsFeedbackSchema = z9.object({
4762
+ pageId: z9.string().min(1),
4763
+ heading: z9.string().min(1),
4764
+ source: z9.string().min(1),
4765
+ selection: z9.string().min(1),
4766
+ prompt: z9.string().trim().min(1)
4729
4767
  });
4730
4768
 
4731
4769
  // src/commands/sessions/web/docsFeedback/docsFeedback.ts
@@ -12527,6 +12565,7 @@ var routes2 = {
12527
12565
  "POST /api/sessions/docs-feedback": docsFeedback,
12528
12566
  "OPTIONS /api/sessions/docs-feedback": sessionFromGithubPreflight,
12529
12567
  "POST /api/browser": browserRelay,
12568
+ "POST /api/client-errors": clientErrors,
12530
12569
  "POST /api/open-in-code": openInCode,
12531
12570
  "POST /api/pr-preview/upload-image": uploadPrImage,
12532
12571
  "GET /api/pr-preview/image": previewImage,
@@ -15290,28 +15329,39 @@ ${issues}`);
15290
15329
  }
15291
15330
 
15292
15331
  // src/commands/sessions/shared/askQuestionInputSchema.ts
15293
- import { z as z9 } from "zod";
15294
- var askQuestionOptionSchema = z9.object({
15295
- label: z9.string().min(1),
15296
- description: z9.string(),
15297
- preview: z9.string().optional()
15332
+ import { z as z10 } from "zod";
15333
+ var askQuestionOptionSchema = z10.object({
15334
+ label: z10.string().min(1),
15335
+ description: z10.string(),
15336
+ preview: z10.string().optional()
15298
15337
  });
15299
- var askQuestionSchema = z9.object({
15300
- question: z9.string().min(1),
15301
- header: z9.string().min(1),
15302
- multiSelect: z9.boolean(),
15303
- options: z9.array(askQuestionOptionSchema).min(2, "Each question needs at least 2 options").max(4, "Each question allows at most 4 options").refine(
15338
+ var askQuestionSchema = z10.object({
15339
+ question: z10.string().min(1),
15340
+ header: z10.string().min(1),
15341
+ multiSelect: z10.boolean(),
15342
+ options: z10.array(askQuestionOptionSchema).min(2, "Each question needs at least 2 options").max(4, "Each question allows at most 4 options").refine(
15304
15343
  (options2) => new Set(options2.map((option) => option.label)).size === options2.length,
15305
15344
  "Option labels must be unique within a question"
15306
15345
  )
15307
15346
  });
15308
- var askQuestionInputSchema = z9.object({
15309
- questions: z9.array(askQuestionSchema).min(1, "Ask at least 1 question").max(4, "Ask at most 4 questions").refine(
15347
+ var askQuestionInputSchema = z10.object({
15348
+ questions: z10.array(askQuestionSchema).min(1, "Ask at least 1 question").max(4, "Ask at most 4 questions").refine(
15310
15349
  (questions) => new Set(questions.map((q) => q.question)).size === questions.length,
15311
15350
  "Question texts must be unique"
15312
15351
  )
15313
15352
  });
15314
15353
 
15354
+ // src/commands/sessions/shared/isLiveDaemonSession.ts
15355
+ var LIVE_TIMEOUT_MS = 1e3;
15356
+ async function isLiveDaemonSession(sessionId) {
15357
+ const reply2 = await requestDaemonReply(
15358
+ { type: "session-live", sessionId },
15359
+ "session-live",
15360
+ LIVE_TIMEOUT_MS
15361
+ );
15362
+ return reply2?.live === true;
15363
+ }
15364
+
15315
15365
  // src/commands/askQuestion.ts
15316
15366
  function useBuiltIn(reason4) {
15317
15367
  console.error(`Error: ${reason4}; use the built-in AskUserQuestion tool.`);
@@ -15328,6 +15378,10 @@ async function askQuestion(options2) {
15328
15378
  useBuiltIn("not running in an assist session");
15329
15379
  if (!loadConfig().sessions?.askQuestion)
15330
15380
  useBuiltIn("assist ask-question is disabled (sessions.askQuestion)");
15381
+ if (!await isLiveDaemonSession(sessionId))
15382
+ useBuiltIn(
15383
+ `session ${sessionId} is not live in the assist daemon, so no preview pane can show the form`
15384
+ );
15331
15385
  const title = questions.length === 1 ? "Claude is asking a question" : `Claude is asking ${questions.length} questions`;
15332
15386
  const decision = await awaitPreviewApproval(
15333
15387
  title,
@@ -16936,21 +16990,21 @@ async function list(options2) {
16936
16990
  import chalk62 from "chalk";
16937
16991
 
16938
16992
  // src/commands/backlog/propose/proposedItemSchema.ts
16939
- import { z as z10 } from "zod";
16940
- var proposedPhaseSchema = z10.strictObject({
16941
- name: z10.string().trim().min(1, "phase name is required").refine(
16993
+ import { z as z11 } from "zod";
16994
+ var proposedPhaseSchema = z11.strictObject({
16995
+ name: z11.string().trim().min(1, "phase name is required").refine(
16942
16996
  (name) => name.toLowerCase() !== REVIEW_PHASE_NAME.toLowerCase(),
16943
16997
  `"${REVIEW_PHASE_NAME}" is owned by the runner and appended to every plan automatically \u2014 remove this phase`
16944
16998
  ),
16945
- tasks: z10.array(z10.string().trim().min(1)).min(1, "a phase needs at least one task"),
16946
- manualChecks: z10.array(z10.string().trim().min(1)).default([])
16999
+ tasks: z11.array(z11.string().trim().min(1)).min(1, "a phase needs at least one task"),
17000
+ manualChecks: z11.array(z11.string().trim().min(1)).default([])
16947
17001
  });
16948
- var proposedItemSchema = z10.strictObject({
16949
- name: z10.string().trim().min(1, "name is required"),
16950
- type: z10.enum(["story", "bug"]),
16951
- description: z10.string().optional(),
16952
- acceptanceCriteria: z10.array(z10.string().trim().min(1)).default([]),
16953
- phases: z10.array(proposedPhaseSchema).default([])
17002
+ var proposedItemSchema = z11.strictObject({
17003
+ name: z11.string().trim().min(1, "name is required"),
17004
+ type: z11.enum(["story", "bug"]),
17005
+ description: z11.string().optional(),
17006
+ acceptanceCriteria: z11.array(z11.string().trim().min(1)).default([]),
17007
+ phases: z11.array(proposedPhaseSchema).default([])
16954
17008
  });
16955
17009
 
16956
17010
  // src/commands/backlog/propose/readProposedItem.ts
@@ -18450,19 +18504,19 @@ async function persistPhaseSessionId(itemId2, phaseIdx, claudeSessionId) {
18450
18504
  import { mkdirSync as mkdirSync13, readFileSync as readFileSync26, rmSync as rmSync4, writeFileSync as writeFileSync22 } from "fs";
18451
18505
  import { homedir as homedir16 } from "os";
18452
18506
  import { dirname as dirname26, join as join48 } from "path";
18453
- import { z as z11 } from "zod";
18454
- var activitySchema = z11.object({
18455
- kind: z11.enum(["command", "backlog"]),
18456
- harness: z11.enum(["claude", "codex", "pi"]).optional(),
18457
- name: z11.string().optional(),
18458
- itemId: z11.number().optional(),
18459
- itemName: z11.string().optional(),
18460
- phase: z11.number().optional(),
18461
- phaseName: z11.string().optional(),
18462
- totalPhases: z11.number().optional(),
18463
- claudeSessionId: z11.string().optional(),
18464
- watchState: z11.enum(["waiting", "updating"]).optional(),
18465
- startedAt: z11.number()
18507
+ import { z as z12 } from "zod";
18508
+ var activitySchema = z12.object({
18509
+ kind: z12.enum(["command", "backlog"]),
18510
+ harness: z12.enum(["claude", "codex", "pi"]).optional(),
18511
+ name: z12.string().optional(),
18512
+ itemId: z12.number().optional(),
18513
+ itemName: z12.string().optional(),
18514
+ phase: z12.number().optional(),
18515
+ phaseName: z12.string().optional(),
18516
+ totalPhases: z12.number().optional(),
18517
+ claudeSessionId: z12.string().optional(),
18518
+ watchState: z12.enum(["waiting", "updating"]).optional(),
18519
+ startedAt: z12.number()
18466
18520
  });
18467
18521
  function activityPath(sessionId) {
18468
18522
  return join48(homedir16(), ".assist", "activity", `activity-${sessionId}.json`);
@@ -19828,9 +19882,9 @@ function registerUpdateFieldCommand(cmd) {
19828
19882
  import chalk107 from "chalk";
19829
19883
 
19830
19884
  // src/commands/backlog/updatePlan/planUpdateSchema.ts
19831
- import { z as z12 } from "zod";
19832
- var planUpdateSchema = z12.strictObject({
19833
- phases: z12.array(proposedPhaseSchema).min(1, "a plan needs at least one phase")
19885
+ import { z as z13 } from "zod";
19886
+ var planUpdateSchema = z13.strictObject({
19887
+ phases: z13.array(proposedPhaseSchema).min(1, "a plan needs at least one phase")
19834
19888
  });
19835
19889
 
19836
19890
  // src/commands/backlog/updatePlan/readPlanUpdate.ts
@@ -21322,10 +21376,17 @@ function decideCommand(toolName, rawCommand) {
21322
21376
  return findRestrictedPathDenyRaw(rawCommand) ?? findTruncatedReadDenyRaw(rawCommand) ?? findDeny(toolName, [rawCommand]);
21323
21377
  }
21324
21378
 
21379
+ // src/commands/sessions/shared/inWebSession.ts
21380
+ function inWebSession() {
21381
+ return process.env.ASSIST_SESSION === "1" && !!process.env.ASSIST_SESSION_ID;
21382
+ }
21383
+
21325
21384
  // src/commands/cliHook/findAskQuestionDeny.ts
21326
- function findAskQuestionDeny(questionsJson) {
21327
- if (process.env.ASSIST_SESSION !== "1") return void 0;
21385
+ async function findAskQuestionDeny(questionsJson) {
21386
+ if (!inWebSession()) return void 0;
21328
21387
  if (!loadConfig().sessions?.askQuestion) return void 0;
21388
+ if (!await isLiveDaemonSession(process.env.ASSIST_SESSION_ID))
21389
+ return void 0;
21329
21390
  return {
21330
21391
  permissionDecision: "deny",
21331
21392
  permissionDecisionReason: `Do not use AskUserQuestion in assist sessions: the user answers from the web preview pane, which cannot drive the terminal prompt. Write the same input as JSON to a scratch file and run \`assist ask-question --json - < <file>\` as a background task, doing no other work until it returns. It prints the same answer text AskUserQuestion would. The input to write:
@@ -21464,7 +21525,7 @@ async function decideBash(toolName, command) {
21464
21525
  async function cliHook() {
21465
21526
  const input = tryParseInput(await readStdin());
21466
21527
  if (!input) return;
21467
- const decision = input.kind === "command" ? await decideBash(input.toolName, input.command) : input.kind === "question" ? findAskQuestionDeny(input.command) : findRestrictedPathDeny(input.paths);
21528
+ const decision = input.kind === "command" ? await decideBash(input.toolName, input.command) : input.kind === "question" ? await findAskQuestionDeny(input.command) : findRestrictedPathDeny(input.paths);
21468
21529
  if (!decision) return;
21469
21530
  console.log(
21470
21531
  JSON.stringify({
@@ -28085,11 +28146,6 @@ The project scope is needed for --project: gh auth refresh -h github.com -s proj
28085
28146
  internalCommand(createCommand, "/github create");
28086
28147
  }
28087
28148
 
28088
- // src/commands/sessions/shared/inWebSession.ts
28089
- function inWebSession() {
28090
- return process.env.ASSIST_SESSION === "1" && !!process.env.ASSIST_SESSION_ID;
28091
- }
28092
-
28093
28149
  // src/commands/github/issue/fetchIssue.ts
28094
28150
  import { execFileSync as execFileSync12 } from "child_process";
28095
28151
  function fetchIssue2(number, repo) {
@@ -28666,7 +28722,7 @@ async function writeInboxLastScan(orm, at2) {
28666
28722
  // src/commands/inbox/runInboxScanClaude.ts
28667
28723
  import { execFile as execFile12 } from "child_process";
28668
28724
  import { promisify as promisify12 } from "util";
28669
- import { z as z14 } from "zod";
28725
+ import { z as z15 } from "zod";
28670
28726
 
28671
28727
  // src/commands/inbox/buildInboxScanPrompt.ts
28672
28728
  function buildInboxScanPrompt(since) {
@@ -28702,17 +28758,17 @@ function buildInboxScanPrompt(since) {
28702
28758
  }
28703
28759
 
28704
28760
  // src/commands/inbox/inboxScanSchema.ts
28705
- import { z as z13 } from "zod";
28706
- var flaggedMessageSchema = z13.object({
28707
- source: z13.enum(["gmail", "slack"]),
28708
- messageId: z13.string().min(1),
28709
- sender: z13.string().min(1),
28710
- summary: z13.string().min(1),
28711
- link: z13.string().min(1),
28712
- receivedAt: z13.string().optional()
28761
+ import { z as z14 } from "zod";
28762
+ var flaggedMessageSchema = z14.object({
28763
+ source: z14.enum(["gmail", "slack"]),
28764
+ messageId: z14.string().min(1),
28765
+ sender: z14.string().min(1),
28766
+ summary: z14.string().min(1),
28767
+ link: z14.string().min(1),
28768
+ receivedAt: z14.string().optional()
28713
28769
  });
28714
- var inboxScanSchema = z13.object({
28715
- messages: z13.array(flaggedMessageSchema)
28770
+ var inboxScanSchema = z14.object({
28771
+ messages: z14.array(flaggedMessageSchema)
28716
28772
  });
28717
28773
 
28718
28774
  // src/commands/inbox/inboxScanTools.ts
@@ -28781,7 +28837,7 @@ function buildInboxScanArgs(since) {
28781
28837
  "--output-format",
28782
28838
  "json",
28783
28839
  "--json-schema",
28784
- JSON.stringify(z14.toJSONSchema(inboxScanSchema, { target: "draft-07" })),
28840
+ JSON.stringify(z15.toJSONSchema(inboxScanSchema, { target: "draft-07" })),
28785
28841
  "--",
28786
28842
  buildInboxScanPrompt(since)
28787
28843
  ];
@@ -29232,39 +29288,39 @@ function stringOrUndefined(value) {
29232
29288
  }
29233
29289
 
29234
29290
  // src/commands/sessions/daemon/persistedSessionSchema.ts
29235
- import { z as z15 } from "zod";
29236
- var persistedSessionSchema = z15.object({
29237
- id: z15.string().optional(),
29238
- name: z15.string(),
29239
- title: z15.string().optional(),
29240
- generatedTitle: z15.string().optional(),
29241
- subtitle: z15.string().optional(),
29242
- commandType: z15.enum(["claude", "run", "assist"]),
29243
- harness: z15.enum(["claude", "codex", "pi"]).optional(),
29244
- status: z15.enum(["running", "waiting", "done", "error", "stopped"]).optional(),
29245
- cwd: z15.string(),
29246
- startedAt: z15.number(),
29247
- runningMs: z15.number().optional(),
29248
- claudeSessionId: z15.string().optional(),
29249
- harnessSessionId: z15.string().optional(),
29250
- initialPrompt: z15.string().optional(),
29251
- runName: z15.string().optional(),
29252
- runArgs: z15.array(z15.string()).optional(),
29253
- assistArgs: z15.array(z15.string()).optional(),
29291
+ import { z as z16 } from "zod";
29292
+ var persistedSessionSchema = z16.object({
29293
+ id: z16.string().optional(),
29294
+ name: z16.string(),
29295
+ title: z16.string().optional(),
29296
+ generatedTitle: z16.string().optional(),
29297
+ subtitle: z16.string().optional(),
29298
+ commandType: z16.enum(["claude", "run", "assist"]),
29299
+ harness: z16.enum(["claude", "codex", "pi"]).optional(),
29300
+ status: z16.enum(["running", "waiting", "done", "error", "stopped"]).optional(),
29301
+ cwd: z16.string(),
29302
+ startedAt: z16.number(),
29303
+ runningMs: z16.number().optional(),
29304
+ claudeSessionId: z16.string().optional(),
29305
+ harnessSessionId: z16.string().optional(),
29306
+ initialPrompt: z16.string().optional(),
29307
+ runName: z16.string().optional(),
29308
+ runArgs: z16.array(z16.string()).optional(),
29309
+ assistArgs: z16.array(z16.string()).optional(),
29254
29310
  activity: activitySchema.optional(),
29255
- starred: z15.boolean().optional(),
29256
- watcher: z15.boolean().optional(),
29257
- divergenceEscalation: z15.boolean().optional(),
29258
- design: z15.boolean().optional(),
29259
- auto: z15.boolean().optional(),
29260
- autoAdvance: z15.boolean().optional(),
29261
- autoApprove: z15.boolean().optional(),
29262
- reviewStarted: z15.boolean().optional(),
29263
- launchedFrom: z15.string().optional(),
29264
- pendingPrompts: z15.array(z15.string()).optional(),
29265
- interrupted: z15.object({ reason: z15.string(), at: z15.number() }).optional(),
29266
- awaitingSeed: z15.boolean().optional(),
29267
- undurable: z15.object({ reason: z15.string(), removesTree: z15.boolean().optional() }).optional()
29311
+ starred: z16.boolean().optional(),
29312
+ watcher: z16.boolean().optional(),
29313
+ divergenceEscalation: z16.boolean().optional(),
29314
+ design: z16.boolean().optional(),
29315
+ auto: z16.boolean().optional(),
29316
+ autoAdvance: z16.boolean().optional(),
29317
+ autoApprove: z16.boolean().optional(),
29318
+ reviewStarted: z16.boolean().optional(),
29319
+ launchedFrom: z16.string().optional(),
29320
+ pendingPrompts: z16.array(z16.string()).optional(),
29321
+ interrupted: z16.object({ reason: z16.string(), at: z16.number() }).optional(),
29322
+ awaitingSeed: z16.boolean().optional(),
29323
+ undurable: z16.object({ reason: z16.string(), removesTree: z16.boolean().optional() }).optional()
29268
29324
  });
29269
29325
 
29270
29326
  // src/commands/sessions/daemon/toPersistedSession.ts
@@ -43821,16 +43877,16 @@ function selectPassages(sources, selection) {
43821
43877
  }
43822
43878
 
43823
43879
  // src/commands/transcript/selectionSchema.ts
43824
- import { z as z16 } from "zod";
43825
- var selectionSchema = z16.strictObject({
43826
- keep: z16.array(
43827
- z16.strictObject({
43828
- file: z16.string().trim().min(1, "file is required"),
43829
- from: z16.string().trim().min(1, "from is required"),
43830
- to: z16.string().trim().min(1, "to is required")
43880
+ import { z as z17 } from "zod";
43881
+ var selectionSchema = z17.strictObject({
43882
+ keep: z17.array(
43883
+ z17.strictObject({
43884
+ file: z17.string().trim().min(1, "file is required"),
43885
+ from: z17.string().trim().min(1, "from is required"),
43886
+ to: z17.string().trim().min(1, "to is required")
43831
43887
  })
43832
43888
  ).min(1, "a selection needs at least one keep range"),
43833
- removed: z16.array(z16.string().trim().min(1)).default([])
43889
+ removed: z17.array(z17.string().trim().min(1)).default([])
43834
43890
  });
43835
43891
 
43836
43892
  // src/commands/transcript/widenAudienceInText.ts
@@ -46468,9 +46524,9 @@ async function refreshRepoConfigCacheOnStart() {
46468
46524
  }
46469
46525
 
46470
46526
  // src/commands/sessions/daemon/loadActiveSelection.ts
46471
- import { z as z17 } from "zod";
46527
+ import { z as z18 } from "zod";
46472
46528
  var ACTIVE_FILE = "active.json";
46473
- var activeSelectionSchema = z17.record(z17.string(), z17.string());
46529
+ var activeSelectionSchema = z18.record(z18.string(), z18.string());
46474
46530
  function loadActiveSelection() {
46475
46531
  const parsed = activeSelectionSchema.safeParse(
46476
46532
  loadJson(ACTIVE_FILE)
@@ -48992,9 +49048,9 @@ function buildPrompt5(prompt) {
48992
49048
  }
48993
49049
 
48994
49050
  // src/commands/sessions/shared/loadSessionTitles.ts
48995
- import { z as z18 } from "zod";
49051
+ import { z as z19 } from "zod";
48996
49052
  var TITLES_FILE = "session-titles.json";
48997
- var sessionTitlesSchema = z18.record(z18.string(), z18.string());
49053
+ var sessionTitlesSchema = z19.record(z19.string(), z19.string());
48998
49054
  function loadSessionTitles() {
48999
49055
  const parsed = sessionTitlesSchema.safeParse(
49000
49056
  loadJson(TITLES_FILE)
@@ -52854,6 +52910,7 @@ var SessionManager = class {
52854
52910
  usedPct
52855
52911
  );
52856
52912
  }
52913
+ hasSession = (id) => this.sessions.has(id);
52857
52914
  localSessions = () => [...this.sessions.values()].map(toSessionInfo);
52858
52915
  listSessions = () => this.localSessions().concat(this.links.sessions());
52859
52916
  notify = () => {
@@ -53854,6 +53911,11 @@ var messageHandlers = {
53854
53911
  "verify-started": routed(
53855
53912
  (client, m, d) => m.verify.start(client, d.sessionId)
53856
53913
  ),
53914
+ "session-live": (client, m, d) => {
53915
+ const live = m.hasSession(d.sessionId);
53916
+ if (!live) daemonLog(`session-live: unknown session id=${d.sessionId}`);
53917
+ sendTo(client, { type: "session-live", live });
53918
+ },
53857
53919
  "pr-preview": (client, m, d) => m.prPreview.set(client, d),
53858
53920
  "pr-decision": routed((_client, m, d) => m.prPreview.decide(d)),
53859
53921
  "ui-status": (_client, _m, d) => daemonLog(`ui rendered: id=${d.sessionId} status=${d.status}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.974.1",
3
+ "version": "0.975.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {