@kimuson/claude-code-viewer 0.5.4 → 0.5.5

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/main.js CHANGED
@@ -7,7 +7,7 @@ import { Effect as Effect49 } from "effect";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "@kimuson/claude-code-viewer",
10
- version: "0.5.4",
10
+ version: "0.5.5",
11
11
  description: "A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects.",
12
12
  type: "module",
13
13
  license: "MIT",
@@ -416,6 +416,13 @@ var QueueOperationEntrySchema = z11.union([
416
416
  operation: z11.literal("remove"),
417
417
  sessionId: z11.string(),
418
418
  timestamp: z11.iso.datetime()
419
+ }),
420
+ z11.object({
421
+ type: z11.literal("queue-operation"),
422
+ operation: z11.literal("popAll"),
423
+ sessionId: z11.string(),
424
+ timestamp: z11.iso.datetime(),
425
+ content: z11.string().optional()
419
426
  })
420
427
  ]);
421
428
 
@@ -458,10 +465,18 @@ var LocalCommandEntrySchema = BaseEntrySchema.extend({
458
465
  content: z13.string(),
459
466
  level: z13.enum(["info"])
460
467
  });
468
+ var TurnDurationEntrySchema = BaseEntrySchema.extend({
469
+ type: z13.literal("system"),
470
+ subtype: z13.literal("turn_duration"),
471
+ durationMs: z13.number(),
472
+ slug: z13.string().optional()
473
+ });
461
474
  var SystemEntrySchema = z13.union([
462
475
  StopHookSummaryEntrySchema,
463
476
  LocalCommandEntrySchema,
477
+ TurnDurationEntrySchema,
464
478
  SystemEntryWithContentSchema
479
+ // Must be last (catch-all for undefined subtype)
465
480
  ]);
466
481
 
467
482
  // src/lib/conversation-schema/entry/UserEntrySchema.ts
@@ -1262,6 +1277,8 @@ var query3 = (prompt, options) => {
1262
1277
  const options2 = {
1263
1278
  pathToClaudeCodeExecutable: claudeCodeExecutablePath,
1264
1279
  ...baseOptions,
1280
+ disallowedTools: ["AskUserQuestion"],
1281
+ // Cannot answer from web interface instead of CLI
1265
1282
  ...availableFeatures.canUseTool ? { canUseTool, permissionMode } : {
1266
1283
  permissionMode: "bypassPermissions"
1267
1284
  }
@@ -1295,6 +1312,8 @@ var query3 = (prompt, options) => {
1295
1312
  prompt,
1296
1313
  options: {
1297
1314
  ...baseOptions,
1315
+ disallowedTools: ["AskUserQuestion"],
1316
+ // Cannot answer from web interface instead of CLI
1298
1317
  permissionMode: (
1299
1318
  // fallback unsupported permission modes
1300
1319
  permissionMode === "delegate" || permissionMode === "dontAsk" ? "bypassPermissions" : permissionMode