@jskit-ai/agent-docs 0.1.348 → 0.1.349

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.
@@ -4929,6 +4929,37 @@ Only explicit **Stop** (and goal Pause, Block and Cancel) sends the interrupt
4929
4929
  control. The client keeps its capability-gated targeted Send now control for an
4930
4930
  explicit action, but conversation steering does not use it.
4931
4931
 
4932
+ A person's **Stop** ends Claude's running turn as Esc does in Claude Code and
4933
+ keeps the process. A native-representation conversation's Stop (the provider's
4934
+ `cancel`) reaches the retained owner this way, and the person's running command
4935
+ then settles with the interrupted turn. Claude's drain loop starts queued input as soon as an
4936
+ interrupted turn ends, so the retained owner first writes `cancel_async_message`
4937
+ for each of the turn's inputs Claude has not begun, then the plain `interrupt`
4938
+ control. Background agents and commands keep running because every Claude
4939
+ process declares `perTaskStopAffordance: true` in its `initialize` request
4940
+ (Claude Code 2.1.246 and later; Claude reads it from a process's first
4941
+ initialize, and the interrupt carries no such field). Without that declaration,
4942
+ and in Claude Code before 2.1.246, an interrupt ends background agents. The
4943
+ interrupt's `cancel_queued` is not used: it would also drop a background task's
4944
+ queued report. It waits for the result of the loop that
4945
+ was under way where Claude wrote its receipt, then records the turn
4946
+ `interrupted`, keeping displayed partial output as commentary. Background tasks
4947
+ stay counted: their progress does not reopen the stopped turn, while their
4948
+ report, which Claude answers in a loop of its own, does. The next message goes
4949
+ to the same process, and a selection change between turns (another model or
4950
+ effort with the same instructions and tools) applies to it through
4951
+ `apply_flag_settings` and `set_model`; changed instructions, instruction mode or
4952
+ live-update identity still start a new process, which ends its background tasks.
4953
+ The owner stops the process instead, through its verified stop, when Claude does
4954
+ not answer and end the turn within `interruptTimeoutMs` (an owner option, 15
4955
+ seconds by default), when an input of the turn may still run (Claude could not
4956
+ answer its withdrawal, or its receipt still lists it), and for a runtime binding,
4957
+ a turn without a live process, lost observation, a stop already under way or a
4958
+ closing owner. Goal Pause and Block, a canonical conversation's Stop (which
4959
+ aborts its running command), a wait that reaches its time limit or loses its
4960
+ caller, session and conversation close and account changes still stop the
4961
+ process.
4962
+
4932
4963
  Native Claude `system/local_command_output` messages retain their origin in
4933
4964
  `data.native` (`engineId`, `type`, `subtype`). Transcript writers preserve supplied
4934
4965
  message data for agent messages as well as user messages. A consuming application
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.348",
3
+ "version": "0.1.349",
4
4
  "description": "Distributed JSKIT agent references, prompts, guides, and generated reference maps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.252",
53
- "@jskit-ai/jskit-catalog": "0.2.100",
53
+ "@jskit-ai/jskit-catalog": "0.2.101",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.252",
54
- "@jskit-ai/jskit-catalog": "0.2.100",
54
+ "@jskit-ai/jskit-catalog": "0.2.101",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
15
15
 
16
16
  - Id: `app/minimal-foundation`
17
17
  - Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
18
- - Owner: `@jskit-ai/agent-docs@0.1.348`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.349`
19
19
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/app/minimal-foundation/PATTERN.md)
20
20
  - Examples: [example/](../../skills/jskit/references/patterns/app/minimal-foundation/example/)
21
21
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
26
26
 
27
27
  - Id: `app/shell-foundation`
28
28
  - Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
29
- - Owner: `@jskit-ai/agent-docs@0.1.348`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.349`
30
30
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/app/shell-foundation/PATTERN.md)
31
31
  - Examples: [example/](../../skills/jskit/references/patterns/app/shell-foundation/example/)
32
32
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -37,7 +37,7 @@ Configure an assistant runtime for one application surface and expose its chat a
37
37
 
38
38
  - Id: `assistant/assistant-surface`
39
39
  - Keywords: `ai`, `assistant`, `chat`, `config`, `environment`, `page`, `placement`, `settings`, `surface`
40
- - Owner: `@jskit-ai/assistant-runtime@0.2.85`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.86`
41
41
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/assistant/assistant-surface/PATTERN.md)
42
42
  - Examples: [example/](../../skills/jskit/references/patterns/assistant/assistant-surface/example/)
43
43
  - Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
356
356
 
357
357
  - Id: `server/feature-package`
358
358
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
- - Owner: `@jskit-ai/agent-docs@0.1.348`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.349`
360
360
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
362
362
  - Requires: `@jskit-ai/kernel`
@@ -366,6 +366,7 @@ Local functions
366
366
  - `ignoreClaudeFrame()`
367
367
  - `ignoreClaudeFailure()`
368
368
  - `reportNoProgress()`
369
+ - `ignoreResponse()`
369
370
 
370
371
  ### `src/server/conversation/claudeCommandRun.js`
371
372
  Exports
@@ -374,6 +375,7 @@ Exports
374
375
  ### `src/server/conversation/claudeEntryStop.js`
375
376
  Exports
376
377
  - `setClaudeTurnState(entry, state, message = "")`
378
+ - `recordClaudeEntryInterrupted({ entry, onEvent, updateState, readResult, resolveCompletion }, reason = "", settled = () => {})`
377
379
  - `stopClaudeEntryProcess(turn, reason = "", { preparing = false } = {})`
378
380
 
379
381
  ### `src/server/conversation/claudeHistory.js`
@@ -413,7 +415,6 @@ Local functions
413
415
  - `liveClaudeBlock(messages, messageId, frame, role)`
414
416
  - `claudeResultError(frame, output)`
415
417
  - `claudeResultMessage(frame, turnId, result)`
416
- - `retainStoppedClaudeMessages(messages, pendingAssistantMessages)`
417
418
 
418
419
  ### `src/server/conversation/claudeProcess.js`
419
420
  Exports
@@ -475,7 +476,7 @@ Exports
475
476
  - `waitForClaudeConversationTurn(conversation, input = {}, { signal, defaultTimeoutMs = 180_000, maximumTimeoutMs = Infinity, createError = claudeTurnFailure, interruptedMessage = "Claude was interrupted when the application disconnected." } = {})`
476
477
  - `runClaudeRenewalTurn(conversation, { clientMessageId, prompt, outputSchema, expectedThreadId, forbiddenThreadId, requireFreshHistory = false, timeoutMs = 180_000 }, { createError = claudeTurnFailure, unreadableCode = "assistant_claude_turn_unreadable", failedCode = "assistant_claude_turn_failed", acceptedField = "inputAccepted" } = {})`
477
478
  - `createClaudeConversationGoals({ conversationId, readHistory, interrupt, send, readRetainedGoal, saveRetainedGoal })`
478
- - `createClaudeConversationOwner({ configRoot, store, preparation, process, onEvent, createError = claudeTurnFailure, disconnectedMessage = "Claude was interrupted when the application disconnected." })`
479
+ - `createClaudeConversationOwner({ configRoot, store, preparation, process, onEvent, createError = claudeTurnFailure, disconnectedMessage = "Claude was interrupted when the application disconnected.", interruptTimeoutMs })`
479
480
  - `type ClaudeConversationEntry`
480
481
  - `type ClaudeConversationStore`
481
482
  - `type ClaudeConversationPreparation`
@@ -487,6 +488,16 @@ Local functions
487
488
  - `promptCanStillArrive(entry, uuid)`
488
489
  - `runsNativeWork(entry)`
489
490
 
491
+ ### `src/server/conversation/claudeTurnStop.js`
492
+ Exports
493
+ - `createClaudeStopState()`
494
+ - `stopClaudeTurn(turn, client, stopProcess, { timeoutMs = CLAUDE_INTERRUPT_TIMEOUT_MS, keepProcess = true } = {})`
495
+ - `retainStoppedClaudeMessages(messages, pendingAssistantMessages)`
496
+ - `CLAUDE_INTERRUPT_TIMEOUT_MS`
497
+ Local functions
498
+ - `interruptClaudeTurn(client, { waiting, runningLoop, timeoutMs })`
499
+ - `interruptThenStopClaude(interrupt, stopProcess)`
500
+
490
501
  ### `src/server/conversation/codexAccountReader.js`
491
502
  Exports
492
503
  - `createCodexAccountReader({ errorPrefix = "", identityNamespace = "codex-account-v1", secretNamespace = "codex-auth-secret-v1" } = {})`
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
15
15
 
16
16
  - Id: `app/minimal-foundation`
17
17
  - Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
18
- - Owner: `@jskit-ai/agent-docs@0.1.348`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.349`
19
19
  - Read: [PATTERN.md](patterns/app/minimal-foundation/PATTERN.md)
20
20
  - Examples: [example/](patterns/app/minimal-foundation/example/)
21
21
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
26
26
 
27
27
  - Id: `app/shell-foundation`
28
28
  - Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
29
- - Owner: `@jskit-ai/agent-docs@0.1.348`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.349`
30
30
  - Read: [PATTERN.md](patterns/app/shell-foundation/PATTERN.md)
31
31
  - Examples: [example/](patterns/app/shell-foundation/example/)
32
32
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -37,7 +37,7 @@ Configure an assistant runtime for one application surface and expose its chat a
37
37
 
38
38
  - Id: `assistant/assistant-surface`
39
39
  - Keywords: `ai`, `assistant`, `chat`, `config`, `environment`, `page`, `placement`, `settings`, `surface`
40
- - Owner: `@jskit-ai/assistant-runtime@0.2.85`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.86`
41
41
  - Read: [PATTERN.md](patterns/assistant/assistant-surface/PATTERN.md)
42
42
  - Examples: [example/](patterns/assistant/assistant-surface/example/)
43
43
  - Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
356
356
 
357
357
  - Id: `server/feature-package`
358
358
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
- - Owner: `@jskit-ai/agent-docs@0.1.348`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.349`
360
360
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](patterns/server/feature-package/example/)
362
362
  - Requires: `@jskit-ai/kernel`
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.252",
53
- "@jskit-ai/jskit-catalog": "0.2.100",
53
+ "@jskit-ai/jskit-catalog": "0.2.101",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.252",
54
- "@jskit-ai/jskit-catalog": "0.2.100",
54
+ "@jskit-ai/jskit-catalog": "0.2.101",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",