@jskit-ai/agent-docs 0.1.390 → 0.1.392

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.
@@ -2580,10 +2580,22 @@ answer itself, is published under the sent-back answer's id, and the runtime
2580
2580
  replaces that text where it is. The person never sees the sent-back answer
2581
2581
  beside its redo, and the saved turn does not keep it.
2582
2582
 
2583
- A reply runs at most `limits.maxSteps` steps (default 40, the engine's limit for
2584
- work with app tools). Out of steps, or past the engine's 15-minute reply deadline,
2585
- it ends with the model's own short account of what it did and what is left, and
2586
- the completion metadata says why as `unfinished`. Failed model calls are tried
2583
+ A reply counts its application tool calls one by one, since a model may ask for
2584
+ several in one step (DeepSeek usually asks for two). Its limit is the turn's
2585
+ (`limits.maxToolCalls`, 32 by default, or the tool set's own `maxToolCalls`, such
2586
+ as a surface's `assistantServer.<surface>.maxToolCalls`). Once the calls left
2587
+ cannot cover another step as wide as the widest so far, or none are left, one
2588
+ final step withholds the tools (`tool_choice: "none"`) and tells the model to
2589
+ answer from what it has gathered and say what it could not check, and the turn
2590
+ completes with that answer. A call past the limit never runs: its result tells
2591
+ the model so. Only a final step that asks for tools again fails the turn, with
2592
+ "The assistant reached the application tool-call limit for this turn."
2593
+ (`assistant.conversation.toolCallLimit`). A check's redo has only the calls the
2594
+ turn has left. A reply runs at most `limits.maxSteps` steps, by default one more
2595
+ than its call limit, so the call limit, not the number of steps, ends a long
2596
+ turn. Out of steps (a smaller `limits.maxSteps`), or past the engine's 15-minute
2597
+ reply deadline, it ends with the model's own short account of what it did and
2598
+ what is left, and the completion metadata says why as `unfinished`. Failed model calls are tried
2587
2599
  again six times with growing waits (or the provider's retry-after), about two
2588
2600
  minutes in all. When nothing has been done yet, the call's error fails the turn as
2589
2601
  status information; after some steps, the engine's account ends the reply instead.
@@ -2748,7 +2760,24 @@ failure. If a result cannot be saved, `retrySave()` persists the retained result
2748
2760
  without rerunning the action. Cancellation waits for an already invoked action to
2749
2761
  settle; actions must honor their signal where cancellation is supported.
2750
2762
 
2751
- `limits.maxToolCalls` defaults to 32 per turn, including repeat requests.
2763
+ `limits.maxToolCalls` defaults to 32 per turn, including repeat requests. A tool
2764
+ set may carry its own `limits.maxToolCalls` (a surface's
2765
+ `assistantServer.<surface>.maxToolCalls`), which its conversations' calls are held
2766
+ to instead, and which every engine is given as the tools' `maximumCalls`. Past
2767
+ the limit no call runs. The API engine ends the turn with a step that answers
2768
+ without tools (above). Claude and OpenCode name the model step a call comes from
2769
+ (Claude's message, OpenCode's assistant message): the calls past the limit in the
2770
+ step that went past it are refused without running, each answered with
2771
+ `{ ok: false, error: { code: "assistant_tool_call_limit", status: 429, message } }`,
2772
+ whose message tells the model to answer from what it has gathered and say what it
2773
+ could not check, and a call from a later step fails the turn
2774
+ (`assistant.claude.toolCallLimit` for Claude,
2775
+ `assistant.conversation.toolCallLimit` for OpenCode). Codex names no step for its
2776
+ calls, so each of its calls past the limit is refused the same way, up to
2777
+ `REFUSALS_WITHOUT_STEP` (8, twice one step's usual batch of four calls), and a
2778
+ call after those fails the turn with `assistant.conversation.toolCallLimit`. The
2779
+ budget is the authored request's, so a native goal's later turns have their calls
2780
+ refused too and still complete with the model's replies.
2752
2781
  `maxToolArgumentBytes` and `maxToolResultBytes` use the service catalogue's existing
2753
2782
  defaults (32 KiB and 48 KiB); a longer result reaches the model as its first part,
2754
2783
  which it reads on in ([tool result size](./assistant.md#database-surface-action-tools)).
@@ -605,6 +605,25 @@ assistantServer: {
605
605
  }
606
606
  ```
607
607
 
608
+ A turn makes at most 32 application tool calls. A surface whose assistant works
609
+ across a large action catalogue, where each action takes a discovery, a contract
610
+ and an execution call, raises its own limit, from 1 to 1000:
611
+
612
+ ```js
613
+ assistantServer: {
614
+ admin: { aiIntegrationId: "assistant", maxToolCalls: 96 }
615
+ }
616
+ ```
617
+
618
+ A malformed `maxToolArgumentBytes`, `maxToolResultBytes` or `maxToolCalls` stops
619
+ the server from starting, with a message naming the key. Calls are counted one by
620
+ one, since a model may ask for several in one step. Near the limit the API engine
621
+ runs one final step without tools, and the model answers from what it has
622
+ gathered and says what it could not check; no call past the limit runs, and only
623
+ a final step that asks for tools again fails the turn
624
+ ([application tools](./assistant-conversation.md#application-tools)). An API
625
+ turn's step limit is the surface's call limit plus one, for that final step.
626
+
608
627
  Every engine is given the surface's argument limit, and a larger call ends the
609
628
  turn with "The application tool arguments exceed their size limit." before the
610
629
  action runs. A larger result, a discovery page or an action contract included,
@@ -202,6 +202,21 @@ server outside Fastify's hooks, so realtime gives its answers, such a refusal
202
202
  and the 101 that opens a WebSocket, `X-Content-Type-Options: nosniff` and
203
203
  `Cache-Control: no-store, no-cache, must-revalidate`, as API answers get.
204
204
 
205
+ Socket.IO takes the WebSocket upgrades on `/socket.io/` and leaves every other
206
+ upgrade to the application's own WebSocket routes, such as a terminal or a
207
+ proxy, however long their access checks take. Node hands an upgrade's
208
+ connection to the server's `upgrade` listeners without the HTTP server's error
209
+ handling, so realtime gives every upgrade's connection an error listener before
210
+ any other listener runs: a client that resets its connection ends that
211
+ connection alone, never the server. Realtime refuses an upgrade that no listener
212
+ takes with a `404 Not Found`, with the same two headers, and closes it: once the
213
+ listeners have run when the application registers no `upgrade` listener of its
214
+ own, or else when none of its listeners has taken the upgrade 30 seconds later.
215
+ A listener takes an upgrade by answering, ending or reading its connection, or
216
+ by listening to it, so a route that checks access first answers, or listens to
217
+ the connection, within those 30 seconds. Socket.IO's `destroyUpgradeTimeout`
218
+ option, given to `createSocketIoServer`, sets them.
219
+
205
220
  Whatever runs in front of the application, a proxy, load balancer or edge,
206
221
  must pass WebSocket upgrades on `/socket.io`; the realtime package's Vite
207
222
  development proxy does (`ws: true`). Where a network blocks WebSockets,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.390",
3
+ "version": "0.1.392",
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.256",
53
- "@jskit-ai/jskit-catalog": "0.2.142",
53
+ "@jskit-ai/jskit-catalog": "0.2.144",
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.256",
54
- "@jskit-ai/jskit-catalog": "0.2.142",
54
+ "@jskit-ai/jskit-catalog": "0.2.144",
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.390`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.392`
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.390`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.392`
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.122`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.124`
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`
@@ -48,7 +48,7 @@ Keep what an action gives the assistant within its result limit with text over m
48
48
 
49
49
  - Id: `assistant/model-sized-results`
50
50
  - Keywords: `ai`, `assistant`, `document`, `email`, `limit`, `long text`, `maxToolResultBytes`, `paging`, `read on`, `result`, `size`, `tool`
51
- - Owner: `@jskit-ai/assistant-core@0.2.112`
51
+ - Owner: `@jskit-ai/assistant-core@0.2.113`
52
52
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/assistant/model-sized-results/PATTERN.md)
53
53
  - Examples: [example/](../../skills/jskit/references/patterns/assistant/model-sized-results/example/)
54
54
  - Requires: `@jskit-ai/assistant-core`
@@ -301,7 +301,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
301
301
 
302
302
  - Id: `crud/crud-screen-set`
303
303
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
304
- - Owner: `@jskit-ai/http-web@0.2.80`
304
+ - Owner: `@jskit-ai/http-web@0.2.81`
305
305
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md)
306
306
  - Examples: [example/](../../skills/jskit/references/patterns/crud/crud-screen-set/example/)
307
307
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -356,7 +356,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
356
356
 
357
357
  - Id: `realtime/realtime-application`
358
358
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
359
- - Owner: `@jskit-ai/realtime@0.2.73`
359
+ - Owner: `@jskit-ai/realtime@0.2.74`
360
360
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md)
361
361
  - Examples: [example/](../../skills/jskit/references/patterns/realtime/realtime-application/example/)
362
362
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -378,7 +378,7 @@ Define a server feature through explicit capabilities and first-class actions, a
378
378
 
379
379
  - Id: `server/feature-package`
380
380
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
381
- - Owner: `@jskit-ai/agent-docs@0.1.390`
381
+ - Owner: `@jskit-ai/agent-docs@0.1.392`
382
382
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
383
383
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
384
384
  - Requires: `@jskit-ai/kernel`
@@ -411,7 +411,7 @@ Compose an account settings route and profile, preference, notification, and sig
411
411
 
412
412
  - Id: `users/account-settings`
413
413
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
414
- - Owner: `@jskit-ai/users-web@0.2.108`
414
+ - Owner: `@jskit-ai/users-web@0.2.109`
415
415
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/users/account-settings/PATTERN.md)
416
416
  - Examples: [example/](../../skills/jskit/references/patterns/users/account-settings/example/)
417
417
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -444,7 +444,7 @@ Compose workspace selection, invitation, member administration, settings, and re
444
444
 
445
445
  - Id: `workspaces/workspace-surfaces`
446
446
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
447
- - Owner: `@jskit-ai/workspaces-web@0.2.108`
447
+ - Owner: `@jskit-ai/workspaces-web@0.2.109`
448
448
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md)
449
449
  - Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/example/)
450
450
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -63,6 +63,7 @@ Exports
63
63
  - `runLoop`
64
64
  - `cleanTranscript`
65
65
  - `REPLY_DEADLINE_MS`
66
+ - `TOOL_CALL_LIMIT`
66
67
  - `estimateTokens`
67
68
  - `textPart`
68
69
  - `READ_LIMIT`
@@ -96,10 +97,12 @@ Exports
96
97
 
97
98
  ### `src/server/loop.js`
98
99
  Exports
99
- - `runLoop({ model, name, instructions, history, tools = {}, summary = "", state = "", maxSteps, onSteps = saveNoSteps, onStep = ignoreStep, onText = null, signal = null, carriesOn = false, quietIfEmpty = false, clean = stripNotes, throwIf = neverThrow, reasoning = null, effort = "", maxOutputTokens = LOOP_OUTPUT_TOKENS, turnLimits = TURN_LIMITS, deadlineMs = REPLY_DEADLINE_MS })`
100
+ - `runLoop({ model, name, instructions, history, tools = {}, summary = "", state = "", maxSteps, maxToolCalls = Infinity, onSteps = saveNoSteps, onStep = ignoreStep, onText = null, signal = null, carriesOn = false, quietIfEmpty = false, clean = stripNotes, throwIf = neverThrow, reasoning = null, effort = "", maxOutputTokens = LOOP_OUTPUT_TOKENS, turnLimits = TURN_LIMITS, deadlineMs = REPLY_DEADLINE_MS })`
100
101
  - `cleanTranscript(messages = [])`
101
- - `REPLY_DEADLINE_MS(Number(process.env.AGENT_REPLY_MINUTES) || 15) * 60 * 1000; /** * The agent loop: call the model, run the tools it asks for, feed the results back, until it * answers without a tool call, runs out of steps or reaches its deadline. Every step reasons; old * tool results give way inside a long turn; each finished step can be saved. A reply always ends * with a message: one that stops early ends with the model's own account of where it got to. * * `history` is the conversation as model messages. The summary and any other system messages in it * go into the system prompt, after the instructions, in that order. The state note, which changes * every turn (it carries the time), is sent after the history as the last message, so the * provider's prompt cache keeps the whole history from one turn to the next. * Returns { text, transcript, unfinished?, account? }; `unfinished` (out of steps or time) means the * job can carry on from here, and `account` is the account the reply ends with, when it ends with * one, so a check that sends a reply back can leave the engine's own words alone. With `onText(text)` the reply streams: each step's words so far, as they * come. `onStep(step)` hears each finished step. Aborting `signal` (the person pressed Stop, or a * tool's outcome is unknown) ends the run at once with the signal's reason, without an account. * When `throwIf(error, steps)` says so, a failed call ends the run with its error instead of an * account (an app that shows errors itself, when nothing was done yet). Each step reasons: at `effort` when it is * given, for every provider (reasoningAt); else with `reasoning` as its provider options when they are given; * else by default (reasoningOn: REASONING.on for the models it names, the standard setting for any other). Each callback option is a * function, or left out for its named default; anything else is refused with a TypeError naming it. */ export async function runLoop({ model, name, instructions, history, tools = {}, summary = "", state = "", maxSteps, onSteps = saveNoSteps, onStep = ignoreStep, onText = null, signal = null, carriesOn = false, quietIfEmpty = false, clean = stripNotes, throwIf = neverThrow, reasoning = null, effort = "", maxOutputTokens = LOOP_OUTPUT_TOKENS, turnLimits = TURN_LIMITS, deadlineMs = REPLY_DEADLINE_MS }) { assertCallbacks("runLoop", { onSteps, onStep, clean, throwIf }); const messages = [...history]; // A transcript cut mid-way must not start with a tool result. while (messages.length && messages[0].role === "tool") messages.shift(); if (summary) messages.unshift({ role: "system", content: summaryNote(summary) }); const system = [instructions, ...messages.filter((message)`
102
+ - `REPLY_DEADLINE_MS(Number(process.env.AGENT_REPLY_MINUTES) || 15) * 60 * 1000; /** The code of the error a run ends with when its final step, without tools, asks for tools again (maxToolCalls). */ export const TOOL_CALL_LIMIT = "agent_tool_call_limit"; // What the model reads as the result of a call past the reply's tool-call limit, which does not run. const CALL_NOT_RUN = "Not run: this reply has made all the tool calls it may make. Answer the person from what you have gathered, and say what you could not check."; // The note the final step ends with, once it withholds the tools. const ANSWER_NOW = "You have made all the tool calls this reply may make, so no tool runs now: answer the person from what you have gathered so far, and say plainly what you could not check."; const CALLS_SPENT = "I reached the most tool calls I make in one go"; /** * The agent loop: call the model, run the tools it asks for, feed the results back, until it * answers without a tool call, runs out of steps or reaches its deadline. Every step reasons; old * tool results give way inside a long turn; each finished step can be saved. A reply always ends * with a message: one that stops early ends with the model's own account of where it got to. * * `history` is the conversation as model messages. The summary and any other system messages in it * go into the system prompt, after the instructions, in that order. The state note, which changes * every turn (it carries the time), is sent after the history as the last message, so the * provider's prompt cache keeps the whole history from one turn to the next. * Returns { text, transcript, unfinished?, account? }; `unfinished` (out of steps or time) means the * job can carry on from here, and `account` is the account the reply ends with, when it ends with * one, so a check that sends a reply back can leave the engine's own words alone. With `onText(text)` the reply streams: each step's words so far, as they * come. `onStep(step)` hears each finished step. Aborting `signal` (the person pressed Stop, or a * tool's outcome is unknown) ends the run at once with the signal's reason, without an account. * When `throwIf(error, steps)` says so, a failed call ends the run with its error instead of an * account (an app that shows errors itself, when nothing was done yet). Each step reasons: at `effort` when it is * given, for every provider (reasoningAt); else with `reasoning` as its provider options when they are given; * else by default (reasoningOn: REASONING.on for the models it names, the standard setting for any other). Each callback option is a * function, or left out for its named default; anything else is refused with a TypeError naming it. * With `maxToolCalls`, the reply runs at most that many tool calls, counted one by one, since a model may ask for several in * one step: once the calls left cannot cover another step as wide as the widest so far, or none are left, one final step * withholds the tools (toolChoice "none") and tells the model to answer from what it has gathered and say what it could not * check. A call past the limit never runs; its result tells the model so. A final step that asks for tools again ends the * run with an error whose code is TOOL_CALL_LIMIT, which `throwIf` decides on like any other (else the reply ends with an account). */ export async function runLoop({ model, name, instructions, history, tools = {}, summary = "", state = "", maxSteps, maxToolCalls = Infinity, onSteps = saveNoSteps, onStep = ignoreStep, onText = null, signal = null, carriesOn = false, quietIfEmpty = false, clean = stripNotes, throwIf = neverThrow, reasoning = null, effort = "", maxOutputTokens = LOOP_OUTPUT_TOKENS, turnLimits = TURN_LIMITS, deadlineMs = REPLY_DEADLINE_MS }) { assertCallbacks("runLoop", { onSteps, onStep, clean, throwIf }); if (maxToolCalls !== Infinity && !(Number.isSafeInteger(maxToolCalls) && maxToolCalls >= 0)) { throw new TypeError("runLoop: maxToolCalls must be a whole number of calls from 0, or left out for no limit."); } const messages = [...history]; // A transcript cut mid-way must not start with a tool result. while (messages.length && messages[0].role === "tool") messages.shift(); if (summary) messages.unshift({ role: "system", content: summaryNote(summary) }); const system = [instructions, ...messages.filter((message)`
103
+ - `TOOL_CALL_LIMIT`
102
104
  Local functions
105
+ - `callsSpent()`
103
106
  - `saveNoSteps()`
104
107
  - `ignoreStep()`
105
108
  - `neverThrow()`
@@ -1820,7 +1820,10 @@ Exports
1820
1820
 
1821
1821
  ### `src/server/conversation/tools.js`
1822
1822
  Exports
1823
+ - `toolCallLimitError()`
1824
+ - `toolCallLimitRefusal(maximumCalls)`
1823
1825
  - `createConversationTools({ catalog, toolSet: retainedToolSet, context, prepareContext, signal: turnSignal, previousCalls = [], authorize = authorizeTransientCall, save = saveTransientCalls, emit = announceTransientCall, maximumCalls = 32, discoveryOnly = false, offerUnsaved = false, unsavedRefusal = "", transient = false, propagateErrors = false, contextRefusalsAreResults = false })`
1826
+ - `REFUSALS_WITHOUT_STEP`
1824
1827
  Local functions
1825
1828
  - `outcomeUnknown(unsaved)`
1826
1829
  - `outcomeIsUnknown(result)`
@@ -2163,7 +2166,7 @@ Exports
2163
2166
 
2164
2167
  ### `src/server/lib/serviceToolCatalog.js`
2165
2168
  Exports
2166
- - `createServiceToolCatalog(actions, { isActionAvailable, barredActionIds = [], skipActionPrefixes = [], maxDirectTools: rawMaxDirectTools = DEFAULT_MAX_DIRECT_TOOLS, discoveryPageSize: rawDiscoveryPageSize = DEFAULT_DISCOVERY_PAGE_SIZE, maxToolArgumentBytes: rawMaxToolArgumentBytes = DEFAULT_MAX_TOOL_ARGUMENT_BYTES, maxToolResultBytes: rawMaxToolResultBytes = DEFAULT_MAX_TOOL_RESULT_BYTES, includeActionsWithoutOutput = false } = {})`
2169
+ - `createServiceToolCatalog(actions, { isActionAvailable, barredActionIds = [], skipActionPrefixes = [], maxDirectTools: rawMaxDirectTools = DEFAULT_MAX_DIRECT_TOOLS, discoveryPageSize: rawDiscoveryPageSize = DEFAULT_DISCOVERY_PAGE_SIZE, maxToolArgumentBytes: rawMaxToolArgumentBytes = DEFAULT_MAX_TOOL_ARGUMENT_BYTES, maxToolResultBytes: rawMaxToolResultBytes = DEFAULT_MAX_TOOL_RESULT_BYTES, maxToolCalls: rawMaxToolCalls, includeActionsWithoutOutput = false } = {})`
2167
2170
  - `DEFAULT_MAX_TOOL_ARGUMENT_BYTES`
2168
2171
  - `DEFAULT_MAX_TOOL_RESULT_BYTES`
2169
2172
  - `DISCOVERY_TOOL_DESCRIPTORS`
@@ -466,6 +466,7 @@ Exports
466
466
  Local functions
467
467
  - `normalizeSettingsUpdatePermission(value, targetSurfaceId)`
468
468
  - `normalizeMaxToolBytes(entry, key, targetSurfaceId)`
469
+ - `normalizeMaxToolCalls(entry, targetSurfaceId)`
469
470
  - `normalizeEffort(value, name)`
470
471
  - `readPrefixedEnvValue(env = {}, prefix = "", key = "")`
471
472
 
@@ -153,6 +153,10 @@ Local functions
153
153
  - `resolveHttpServer({ httpServer = null, fastify = null } = {})`
154
154
  - `closeConnectionsAtPreClose(fastify, io)`
155
155
  - `addEngineHeaders(io)`
156
+ - `refuseUntakenUpgrades(server, { socketIoListeners, socketIoPrefix, timeoutMs })`
157
+ - `upgradeSocketState(socket)`
158
+ - `upgradeTaken(socket, before)`
159
+ - `refuseUpgrade(socket)`
156
160
  - `closeSocketIoConnections(io)`
157
161
  - `buildSocketIoRedisAdapterKey(redisNamespace = "")`
158
162
 
@@ -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.390`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.392`
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.390`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.392`
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.122`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.124`
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`
@@ -48,7 +48,7 @@ Keep what an action gives the assistant within its result limit with text over m
48
48
 
49
49
  - Id: `assistant/model-sized-results`
50
50
  - Keywords: `ai`, `assistant`, `document`, `email`, `limit`, `long text`, `maxToolResultBytes`, `paging`, `read on`, `result`, `size`, `tool`
51
- - Owner: `@jskit-ai/assistant-core@0.2.112`
51
+ - Owner: `@jskit-ai/assistant-core@0.2.113`
52
52
  - Read: [PATTERN.md](patterns/assistant/model-sized-results/PATTERN.md)
53
53
  - Examples: [example/](patterns/assistant/model-sized-results/example/)
54
54
  - Requires: `@jskit-ai/assistant-core`
@@ -301,7 +301,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
301
301
 
302
302
  - Id: `crud/crud-screen-set`
303
303
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
304
- - Owner: `@jskit-ai/http-web@0.2.80`
304
+ - Owner: `@jskit-ai/http-web@0.2.81`
305
305
  - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
306
306
  - Examples: [example/](patterns/crud/crud-screen-set/example/)
307
307
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -356,7 +356,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
356
356
 
357
357
  - Id: `realtime/realtime-application`
358
358
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
359
- - Owner: `@jskit-ai/realtime@0.2.73`
359
+ - Owner: `@jskit-ai/realtime@0.2.74`
360
360
  - Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
361
361
  - Examples: [example/](patterns/realtime/realtime-application/example/)
362
362
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -378,7 +378,7 @@ Define a server feature through explicit capabilities and first-class actions, a
378
378
 
379
379
  - Id: `server/feature-package`
380
380
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
381
- - Owner: `@jskit-ai/agent-docs@0.1.390`
381
+ - Owner: `@jskit-ai/agent-docs@0.1.392`
382
382
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
383
383
  - Examples: [example/](patterns/server/feature-package/example/)
384
384
  - Requires: `@jskit-ai/kernel`
@@ -411,7 +411,7 @@ Compose an account settings route and profile, preference, notification, and sig
411
411
 
412
412
  - Id: `users/account-settings`
413
413
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
414
- - Owner: `@jskit-ai/users-web@0.2.108`
414
+ - Owner: `@jskit-ai/users-web@0.2.109`
415
415
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
416
416
  - Examples: [example/](patterns/users/account-settings/example/)
417
417
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -444,7 +444,7 @@ Compose workspace selection, invitation, member administration, settings, and re
444
444
 
445
445
  - Id: `workspaces/workspace-surfaces`
446
446
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
447
- - Owner: `@jskit-ai/workspaces-web@0.2.108`
447
+ - Owner: `@jskit-ai/workspaces-web@0.2.109`
448
448
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
449
449
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
450
450
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.256",
53
- "@jskit-ai/jskit-catalog": "0.2.142",
53
+ "@jskit-ai/jskit-catalog": "0.2.144",
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.256",
54
- "@jskit-ai/jskit-catalog": "0.2.142",
54
+ "@jskit-ai/jskit-catalog": "0.2.144",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -34,6 +34,9 @@ staging or production needs a Redis backplane.
34
34
  - Event payloads do not become an undocumented second API.
35
35
  - Socket.IO owns `/socket.io`; other WebSocket routes keep their own upgrade
36
36
  and access-check lifecycle without Socket.IO's one-second cleanup timeout.
37
+ Realtime refuses with a 404 an upgrade that no listener takes: at once when
38
+ the app has no `upgrade` listener of its own, or else after 30 seconds, so a
39
+ route answers its upgrade, or listens to its socket, within them.
37
40
  - Realtime connects over WebSocket only, so no address carries its session id;
38
41
  whatever runs in front of the app passes WebSocket upgrades on `/socket.io`.
39
42
 
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/realtime": "0.2.73",
5
+ "@jskit-ai/realtime": "0.2.74",
6
6
  "@jskit-ai/shell-web": "0.2.70"
7
7
  }
8
8
  }