@jskit-ai/agent-docs 0.1.218 → 0.1.220
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/guide/agent/app-extras/assistant-conversation.md +41 -2
- package/package.json +1 -1
- package/patterns/minimal-foundation/example/package.json +1 -1
- package/patterns/shell-foundation/example/package.json +1 -1
- package/reference/autogen/PATTERN_INDEX.md +4 -4
- package/reference/autogen/packages/assistant-core.md +5 -1
- package/skills/jskit/references/pattern-index.md +4 -4
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +1 -1
|
@@ -17,6 +17,26 @@ Choose one transcript owner for a conversation. The [ordinary API](./assistant.m
|
|
|
17
17
|
is the starting point; [advanced hosts](#advanced-host-facilities) and
|
|
18
18
|
[testing](#testing-entrypoints) are separate reference areas.
|
|
19
19
|
|
|
20
|
+
### Prepare an offline development copy
|
|
21
|
+
|
|
22
|
+
Advanced hosts that copy a stopped conversation store can call
|
|
23
|
+
`prepareConversationRuntimeCopy(transaction, { at })` from
|
|
24
|
+
`@jskit-ai/assistant-core/server/conversation` inside the destination's ordinary
|
|
25
|
+
storage write transaction. `at` is an ISO timestamp. The host must first isolate
|
|
26
|
+
the destination, stop its processes and pause native provider goals through their
|
|
27
|
+
owners. The helper does not establish those host conditions or invoke providers.
|
|
28
|
+
|
|
29
|
+
It preserves transcript messages, configuration and native history identity,
|
|
30
|
+
clears copied execution handles, interrupts running turn projections and pauses
|
|
31
|
+
active goal projections. Pending requests remain available for inspection with a
|
|
32
|
+
copy diagnostic; preparation does not replay them. Version 3 state is required,
|
|
33
|
+
and unfinished replacements fail before writes. Upgrade the parent through its
|
|
34
|
+
normal state upgrade process rather than using this helper as a migration.
|
|
35
|
+
|
|
36
|
+
`prepareCopiedConversationAgentRun(run, { at })` supplies the corresponding pure
|
|
37
|
+
transform for an application's separately stored legacy run projection. Neither
|
|
38
|
+
operation belongs in normal startup or live recovery.
|
|
39
|
+
|
|
20
40
|
### Native delivery diagnostics
|
|
21
41
|
|
|
22
42
|
`createConversationRuntime({ onDeliveryTiming(event) {} })` accepts an optional
|
|
@@ -782,6 +802,9 @@ the application may supply one in options. `false`, `{ ok: false, error }`, or
|
|
|
782
802
|
a thrown error retain a failed entry. Exceptions are rethrown after recording
|
|
783
803
|
the visible failure. Undelivered bubbles use a neutral fill, dashed outline and
|
|
784
804
|
Pending label. A failed bubble has an error outline, its error and Retry action.
|
|
805
|
+
Queued bubbles keep their supplied order while awaiting receipts, even when an
|
|
806
|
+
earlier message receives a later native timestamp. Confirmed history retains
|
|
807
|
+
its chronological ordering.
|
|
785
808
|
Success removes the pending treatment but retains the bubble until authoritative
|
|
786
809
|
history contains its `user.messageId`, so it cannot flicker away before history
|
|
787
810
|
arrives. Older histories without IDs can match by text and timestamp.
|
|
@@ -3415,6 +3438,12 @@ native closing checks after the application's replacement and PTY guards; an
|
|
|
3415
3438
|
optional application session-closing fact remains lazy. Passive retained-turn
|
|
3416
3439
|
projection reads the same entry and saved receipt without opening a native session.
|
|
3417
3440
|
Credential selection, storage and actual terminal access remain host facilities.
|
|
3441
|
+
An application-owned `preparation.account(entry)` may explicitly return
|
|
3442
|
+
`allowAccountChange: true` for a conversation whose authorized current account
|
|
3443
|
+
is controlled by that application. The original account-binding owner then
|
|
3444
|
+
requires verified process shutdown before saving the new identity and resuming
|
|
3445
|
+
the same native history. The default continues to reject a changed native account;
|
|
3446
|
+
this option does not authorize access to a conversation or credentials.
|
|
3418
3447
|
The same owner reads its closing state and retained turn snapshot; application
|
|
3419
3448
|
preparation supplies the current authorized session-closing fact, saved receipt
|
|
3420
3449
|
and PTY state at the original read points. Configured history retirement applies
|
|
@@ -3423,8 +3452,14 @@ the application retains saved execution and terminal writer facts.
|
|
|
3423
3452
|
|
|
3424
3453
|
The retained owner handles the extracted native goal commands and status
|
|
3425
3454
|
interpretation using its history, activity, interrupt and ordinary Send operations. Pause interrupts the
|
|
3426
|
-
work and retains the goal; Cancel interrupts and sends `/goal clear`.
|
|
3427
|
-
|
|
3455
|
+
work and retains the goal; Cancel interrupts and sends `/goal clear`.
|
|
3456
|
+
Set and Resume may use the existing steering path during an active turn; Set
|
|
3457
|
+
still refuses to replace an unfinished goal. Neither action needs a separate
|
|
3458
|
+
process or a preliminary cancellation of the current work.
|
|
3459
|
+
When only native background tasks remain, steering retires the previous result
|
|
3460
|
+
before host preparation. A task completing during preparation cannot settle the
|
|
3461
|
+
turn before the follow-up is admitted; the new input requires its own result.
|
|
3462
|
+
Revision checks use the native conversation, creation time and objective. This native
|
|
3428
3463
|
facility is shared by managed native bindings and the common runtime. The runtime
|
|
3429
3464
|
supplies its existing serialized stop and Send operations, so clearing a goal
|
|
3430
3465
|
cannot bypass admission, authorization, delivery inspection or cleanup proof.
|
|
@@ -3991,6 +4026,10 @@ continue to use the common runtime.
|
|
|
3991
4026
|
The same subpath exposes the extracted `createOpenCodeSharedRuntime` for hosts
|
|
3992
4027
|
whose managed service is shared by several conversation consumers. It owns server
|
|
3993
4028
|
reuse, pending acquisition, verified final release and exact-server recovery.
|
|
4029
|
+
An expired health-probe deadline is reported to the caller without stopping the
|
|
4030
|
+
shared server or its other conversations. Retry the readiness operation after
|
|
4031
|
+
the server responds again. A refused connection still follows the existing
|
|
4032
|
+
server recovery path; a probe timeout alone is not evidence of process failure.
|
|
3994
4033
|
Its retained Main turn and monitor maps also back the original
|
|
3995
4034
|
`interruptTurn(key, target, { threadId, writeRun })` operation. The host selects
|
|
3996
4035
|
the authorized target, supplies a saved identity only when no target exists, and
|
package/package.json
CHANGED
|
@@ -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.
|
|
18
|
+
- Owner: `@jskit-ai/agent-docs@0.1.220`
|
|
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.
|
|
29
|
+
- Owner: `@jskit-ai/agent-docs@0.1.220`
|
|
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.1.
|
|
40
|
+
- Owner: `@jskit-ai/assistant-runtime@0.1.219`
|
|
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`
|
|
@@ -323,7 +323,7 @@ Define a server feature through explicit capabilities and first-class actions, a
|
|
|
323
323
|
|
|
324
324
|
- Id: `server/feature-package`
|
|
325
325
|
- Keywords: `actions`, `feature`, `json-rest`, `knex`, `orchestration`, `package`, `provider`, `repository`, `routes`, `server`
|
|
326
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
326
|
+
- Owner: `@jskit-ai/agent-docs@0.1.220`
|
|
327
327
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
|
|
328
328
|
- Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
|
|
329
329
|
- Requires: `@jskit-ai/kernel`
|
|
@@ -278,6 +278,7 @@ Exports
|
|
|
278
278
|
Exports
|
|
279
279
|
- `conversationAgentRunRecord(record, normalizedRunId, { normalizeState = normalizeRunState, isActive = runStateIsActive } = {})`
|
|
280
280
|
- `conversationAgentRunEvent(previous, normalizedRunId, { event = {}, patch = {} } = {}, { now = () => new Date(), normalizeState = normalizeRunState, isTerminal = runStateIsTerminal } = {})`
|
|
281
|
+
- `prepareCopiedConversationAgentRun(run, { at })`
|
|
281
282
|
- `createCodexConversationRunStore({ storage, scope, segmentId, isCurrent, clock = () => new Date() } = {})`
|
|
282
283
|
- `createCodexConversationStore({ storage, scope, segmentId, isCurrent, transcript, streams } = {})`
|
|
283
284
|
Local functions
|
|
@@ -321,7 +322,7 @@ Exports
|
|
|
321
322
|
- `claudeFlagSettings({ effort = "", providerEnv, hooks, commandHook } = {})`
|
|
322
323
|
- `claudeCodeArguments({ sessionId, resume = false, model = "", effort = "", toolFree = false, applicationTools = false, outputSchema, terminal = false, instructionArguments = [], permissionMode, isolated = false, settings = { fallbackModel: [] } } = {})`
|
|
323
324
|
- `stopClaudeCodeProcess({ process: native, executionId, stopExecution })`
|
|
324
|
-
- `bindClaudeConversationAccount(entry, { identity, providerId, stop, save })`
|
|
325
|
+
- `bindClaudeConversationAccount(entry, { identity, providerId, allowAccountChange = false, stop, save })`
|
|
325
326
|
- `claudePlanUsage(value)`
|
|
326
327
|
- `claudeCatalogueModels(initialization)`
|
|
327
328
|
- `createClaudeAccountQueries({ createProcess, accountIdentity, processes = () => [], isClosing = () => false })`
|
|
@@ -837,12 +838,14 @@ Exports
|
|
|
837
838
|
- `finishConversationOperation`
|
|
838
839
|
- `conversationAgentRunRecord`
|
|
839
840
|
- `conversationAgentRunEvent`
|
|
841
|
+
- `prepareCopiedConversationAgentRun`
|
|
840
842
|
- `createFileConversationStorage`
|
|
841
843
|
- `createConversationStreams`
|
|
842
844
|
- `createConversationSystemPrompt`
|
|
843
845
|
- `createConversationRuntime`
|
|
844
846
|
- `normalizeConversationConfiguration`
|
|
845
847
|
- `upgradeConversationRuntimeState`
|
|
848
|
+
- `prepareConversationRuntimeCopy`
|
|
846
849
|
- `createConversationHookBridge`
|
|
847
850
|
- `nativeConversationStoragePolicy`
|
|
848
851
|
- `createConversationProcessIdentity`
|
|
@@ -1070,6 +1073,7 @@ Exports
|
|
|
1070
1073
|
- `finishConversationRuntimeReplacement(state, { engine, selection, retireNative, pending, value })`
|
|
1071
1074
|
- `createInertCodexConversationBinding({ workdir, configRoot })`
|
|
1072
1075
|
- `upgradeConversationRuntimeState({ metadata, conversationLog, retirement })`
|
|
1076
|
+
- `prepareConversationRuntimeCopy(transaction, { at })`
|
|
1073
1077
|
Local functions
|
|
1074
1078
|
- `object(value)`
|
|
1075
1079
|
- `invalid(message)`
|
|
@@ -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.
|
|
18
|
+
- Owner: `@jskit-ai/agent-docs@0.1.220`
|
|
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.
|
|
29
|
+
- Owner: `@jskit-ai/agent-docs@0.1.220`
|
|
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.1.
|
|
40
|
+
- Owner: `@jskit-ai/assistant-runtime@0.1.219`
|
|
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`
|
|
@@ -323,7 +323,7 @@ Define a server feature through explicit capabilities and first-class actions, a
|
|
|
323
323
|
|
|
324
324
|
- Id: `server/feature-package`
|
|
325
325
|
- Keywords: `actions`, `feature`, `json-rest`, `knex`, `orchestration`, `package`, `provider`, `repository`, `routes`, `server`
|
|
326
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
326
|
+
- Owner: `@jskit-ai/agent-docs@0.1.220`
|
|
327
327
|
- Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
|
|
328
328
|
- Examples: [example/](patterns/server/feature-package/example/)
|
|
329
329
|
- Requires: `@jskit-ai/kernel`
|