@jskit-ai/agent-docs 0.1.378 → 0.1.380

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.
@@ -2194,8 +2194,9 @@ All engines accept the same configuration fields: required `systemPrompt`, plus
2194
2194
  optional `integrationId`, `model` and `effort`. API and OpenCode require an
2195
2195
  authorized integration; Claude and Codex can instead use their native login.
2196
2196
  With an integration, an explicit `model` must match its exact resolved model.
2197
- Omit `effort` for the provider default. API passes standard effort levels
2198
- (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`) through its installed SDK;
2197
+ Omit `effort` for the engine's default. API passes standard effort levels
2198
+ (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `provider-default`,
2199
+ which sends no reasoning setting) through its installed SDK;
2199
2200
  Claude validates its CLI levels (`low`, `medium`, `high`, `xhigh`, `max`), and
2200
2201
  OpenCode validates the chosen effort against that exact native model's variants.
2201
2202
  Codex validates its native levels and the selected external model's allowed
@@ -2593,12 +2594,24 @@ accounts) authorizes the same connection again and stops the reply when access i
2593
2594
  gone. A reply reasons at the conversation's `effort`, else the one its connection
2594
2595
  declares (an AI integration's `settings.effort`, or the client's `effort`), sent
2595
2596
  on every call (steps, checks, summaries, accounts) as the AI SDK's standard
2596
- reasoning setting in each provider's own field. Without one, the reply's steps
2597
- ask for reasoning at high effort: adaptive thinking for Anthropic-format models,
2598
- and `reasoning_effort: "high"` alone for DeepSeek models in the OpenAI style,
2599
- which some OpenAI-compatible hosts need before they reason; other providers keep
2600
- their own default, and the checks, summaries and accounts do not reason. A
2601
- connection's effort outside the engine's levels is refused before any model call.
2597
+ reasoning setting in each provider's own field, and as OpenRouter's own
2598
+ `reasoning` option, the one its adapter reads. Without one, the reply's steps ask
2599
+ for reasoning at high effort, whatever the provider is called: adaptive thinking
2600
+ for Anthropic-format models and `reasoning_effort: "high"` alone for DeepSeek
2601
+ models in the OpenAI style (`REASONING.on`), and the standard setting for every
2602
+ other model, which its SDK sends in its own field (`reasoning_effort` for
2603
+ OpenAI-compatible hosts, Groq, Mistral, Cerebras and Together, `reasoning.effort`
2604
+ for OpenAI's Responses, xAI and OpenRouter, `thinkingConfig` for Google). An SDK
2605
+ that knows its models (OpenAI's Responses, Anthropic, Google, xAI, Mistral) leaves
2606
+ it out for one that cannot reason; the others send it. OpenAI's chat completions
2607
+ adapter (an assistant's `provider: "openai"`) sends it to any model, and OpenAI
2608
+ refuses it for one that cannot reason, so its models reason only at an effort
2609
+ they are given. Perplexity's adapter takes no reasoning setting. The checks,
2610
+ summaries and accounts do not reason by default. A provider that refuses a call
2611
+ asking its model to reason (400 or 422) fails the reply, naming the setting that
2612
+ turns it off: the connection's effort set to `provider-default`. Nothing is sent
2613
+ again without reasoning. A connection's effort outside the engine's levels is
2614
+ refused before any model call.
2602
2615
  The system prompt is the configured
2603
2616
  instructions, then the summary. The engine's state note with the current UTC time
2604
2617
  follows the conversation as its last message, so the provider's prompt cache keeps
@@ -274,10 +274,12 @@ assistantServer: {
274
274
 
275
275
  `aiIntegrationId` is the default. `aiIntegrationIds` is an optional allowlist for
276
276
  user selection. The integration may declare `settings.effort` (`none`,
277
- `minimal`, `low`, `medium`, `high` or `xhigh`) to set how hard its replies
278
- reason; without one the engine's default applies, which asks DeepSeek and
279
- Anthropic-format models to reason at high effort. Some OpenAI-compatible hosts
280
- reason only when asked: set an effort for a reasoning model served there. For a fixed agent, omit that list and hide its model control.
277
+ `minimal`, `low`, `medium`, `high`, `xhigh`, or `provider-default`, which sends
278
+ no reasoning setting) to set how hard its replies reason; without one the
279
+ engine's default applies, which asks every model to reason at high effort,
280
+ whatever its provider is called. A provider whose model cannot reason and
281
+ refuses the request fails the reply, naming `provider-default` as the setting
282
+ that turns it off. For a fixed agent, omit that list and hide its model control.
281
283
  For selection, pass allowed `{ id, label }` choices to the client. Client values
282
284
  never extend the server allowlist. Resolution runs for each request, so account
283
285
  isolation, key rotation and disconnect remain the existing resolver's job.
@@ -295,7 +297,8 @@ Its surface entry may set `effort` the same way, or `<PREFIX>_AI_EFFORT` in the
295
297
  environment, which wins. A model on an OpenAI-compatible host that reasons only
296
298
  when asked, such as DeepSeek V4.1 Flash on DeepInfra, is configured as
297
299
  `provider: "deepseek"` with the host's `baseUrl`: its replies send
298
- `reasoning_effort: "high"`, or the configured effort.
300
+ `reasoning_effort: "high"`, or the configured effort. A `provider: "openai"`
301
+ model (OpenAI's chat completions API) reasons only at a configured effort.
299
302
 
300
303
  The `assistant/assistant-surface` pattern includes a concrete AI capability and
301
304
  integration file. The published `assistant-core/examples/conversation` template
@@ -940,9 +943,16 @@ An execution failure before an answer restores the request as a draft only if th
940
943
  user has not already typed a new one. Enter sends, Shift/Alt+Enter inserts a newline, and Ctrl/Cmd+Enter sends.
941
944
  IME composition never submits. Only the shared composer handles these keys.
942
945
 
943
- Stop aborts the browser's response request. The pending cancellation ends when
944
- that local request settles. It does not prove that a tool already executing on
945
- the server has stopped; the UI states that limitation. Closing/unmounting a view
946
+ Stop aborts the browser's response request and asks the server to stop the
947
+ conversation's turn (`POST .../conversations/:conversationId/cancel`), because a
948
+ proxy can keep the stream's request open after the browser has aborted it. The
949
+ turn counts as running, with Send off and the draft kept, until the server
950
+ answers, which it does once the turn has ended; a stop request that fails still
951
+ ends the turn in the view. The server stops only a turn its own process runs for
952
+ that person. It does not prove that a tool already executing has stopped; the UI
953
+ states that limitation. A message sent while the conversation's turn still runs
954
+ on the server (from another tab) waits for that turn to end and is then
955
+ answered, never refused: the API engine cannot steer. Closing/unmounting a view
946
956
  also aborts its local request and releases its state. Reopening can restore the
947
957
  selected saved conversation. It does not reattach a stream or resume work.
948
958
  Switching the configured surface or workspace clears that view's draft and
@@ -200,8 +200,9 @@ The rules it applies are in [Typed features](/guide/framework/typed-features),
200
200
  - A file imports what it needs at its top level, so loading counts against the
201
201
  file, not a test's time limit.
202
202
  - The bounds stay: `jskit test`'s 10 minutes a file and 45 a run, its 10
203
- seconds a file's process may live on after its last test (the linger
204
- bound, which names what a test left open, or says the file was busy), and
203
+ seconds a file's process may live on after its last test and `after`
204
+ hooks, and its `after` hooks after its last test (the linger bound, which
205
+ names what a test left open, or says the file was busy), and
205
206
  `browserTestConfig()`'s `actionTimeout`, `navigationTimeout` and
206
207
  `globalTimeout`. A bound in
207
208
  `test-time-bounds.json` rises only with a measurement of the work's real
@@ -1100,10 +1100,16 @@ the last run's largest app server reached.**
1100
1100
  one file at a time, an 8-thread machine four, and a container or slice whose
1101
1101
  cgroup `cpu.max` quota gives it 3 CPUs of a 16-thread machine one
1102
1102
  (`availableCpus()`).
1103
- - `jskit test` (from `@jskit-ai/jskit-catalog`) passes its arguments to
1104
- `node --test` and sets `--test-concurrency` to the budget.
1103
+ - `jskit test` (from `@jskit-ai/jskit-catalog`) takes `node --test`'s
1104
+ arguments and sets `--test-concurrency` to the budget.
1105
1105
  `testConcurrency()` from `@jskit-ai/jskit-catalog/test-budget` returns the
1106
1106
  same number for a config.
1107
+ - `jskit test` starts the files whose last run took longest first, from the
1108
+ times it records, and a file with no recorded time before them all, so a
1109
+ long file never starts last and runs on alone; `node --test` itself starts
1110
+ them by name. With `--test-shard=<index>/<total>` it picks each shard's
1111
+ files by name, as `node --test` does, so a shard is the same files on every
1112
+ machine.
1107
1113
  - A Node test file is named `<name>.test.js`, and a database test
1108
1114
  `<name>.integration.test.js`: given no files, `jskit test` runs node's
1109
1115
  default pattern, less the files under a `support/` or `fixtures/` folder or
@@ -1211,9 +1217,10 @@ the last run's largest app server reached.**
1211
1217
  files still finish and report: look for what it leaves open (a server, child
1212
1218
  process, timer or socket) or a test without a timeout. A file with its own
1213
1219
  bound is stopped at twice that bound.
1214
- - A file whose tests have all ended but whose process is still running 10
1215
- seconds later (the linger bound, `lingerMs`; its `after` hooks run within
1216
- it) is stopped too, and fails the run by name with what its process still
1220
+ - A file whose tests and top-level `after` hooks have all ended but whose
1221
+ process is still running 10 seconds later (the linger bound, `lingerMs`)
1222
+ is stopped too, and so is one whose `after` hooks still run 10 seconds
1223
+ after its last test; each fails the run by name with what its process still
1217
1224
  holds open, from `process.getActiveResourcesInfo()` read inside it, less
1218
1225
  its own stdout and stderr, and stdin unless something reads it: `Timeout`
1219
1226
  for an interval or timer, `TCPServerWrap` for a listening server,
@@ -1222,8 +1229,10 @@ the last run's largest app server reached.**
1222
1229
  it in the test or an `after` hook. A file still busy past the bound with
1223
1230
  nothing open fails the run as `busy, not held open`, with how long it
1224
1231
  lived on, whether its stop met it late or it ended by itself first: finish
1225
- the work it does after its last test within the tests. A file's process
1226
- normally ends within moments of its last test, and the report says the
1232
+ the work it does after its last test and `after` hooks within them. One
1233
+ stopped while its `after` hooks still ran waits on something that never
1234
+ ends, such as a server's open connections: end it. A file's process
1235
+ normally ends within moments of its `after` hooks, and the report says the
1227
1236
  longest any took against the bound. Files marked `alone` or `network` get
1228
1237
  the same bound. A suite whose measured cleanup needs longer sets `lingerMs` in
1229
1238
  `test-time-bounds.json`, with the measurement in the commit that raises it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.378",
3
+ "version": "0.1.380",
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.255",
53
- "@jskit-ai/jskit-catalog": "0.2.130",
53
+ "@jskit-ai/jskit-catalog": "0.2.132",
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.255",
54
- "@jskit-ai/jskit-catalog": "0.2.130",
54
+ "@jskit-ai/jskit-catalog": "0.2.132",
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.378`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.380`
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.378`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.380`
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.112`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.114`
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`
@@ -103,7 +103,7 @@ Resolve an administrator environment key or an individual user's grant, then use
103
103
 
104
104
  - Id: `connectors/ai-connections`
105
105
  - Keywords: `ai`, `api-key`, `cli`, `environment`, `free`, `models`, `ownership`, `zai`, `zen`
106
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
107
107
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/ai-connections/PATTERN.md)
108
108
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/ai-connections/example/)
109
109
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -114,7 +114,7 @@ Compose provider operations, authorization and encrypted file storage from a CLI
114
114
 
115
115
  - Id: `connectors/api-key-connection`
116
116
  - Keywords: `api-key`, `clay`, `cli`, `clickhouse`, `connectors`, `dbt`, `files`, `firecrawl`, `granola`, `integrations`, `metrics`, `prestashop`, `resend`, `semantic-layer`, `semrush`, `x-twitter`
117
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
118
118
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/api-key-connection/PATTERN.md)
119
119
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/api-key-connection/example/)
120
120
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -125,7 +125,7 @@ Compose token-based MCP discovery and explicitly authorized tool calls using the
125
125
 
126
126
  - Id: `connectors/assistant-mcp`
127
127
  - Keywords: `assistant`, `cli`, `connectors`, `files`, `integrations`, `mcp`, `n8n`, `sanity`
128
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
129
129
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/assistant-mcp/PATTERN.md)
130
130
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/assistant-mcp/example/)
131
131
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -136,7 +136,7 @@ Configure assistant OAuth clients, then compose existing state, encrypted file g
136
136
 
137
137
  - Id: `connectors/assistant-mcp-oauth`
138
138
  - Keywords: `amplitude`, `assistant`, `atlassian`, `canva`, `cli`, `client metadata`, `confidence`, `connectors`, `figma`, `files`, `granola`, `hex`, `mcp`, `miro`, `oauth`
139
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
140
140
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/assistant-mcp-oauth/PATTERN.md)
141
141
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/assistant-mcp-oauth/example/)
142
142
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -147,7 +147,7 @@ Compose signed AWS operations, file configuration and application authorization
147
147
 
148
148
  - Id: `connectors/aws-storage-queries`
149
149
  - Keywords: `athena`, `aws`, `cli`, `connectors`, `files`, `iam`, `queries`, `s3`, `storage`, `sts`
150
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
150
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
151
151
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/aws-storage-queries/PATTERN.md)
152
152
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/aws-storage-queries/example/)
153
153
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -169,7 +169,7 @@ Compose the shared connector runtime for event delivery while leaving workflow c
169
169
 
170
170
  - Id: `connectors/event-delivery`
171
171
  - Keywords: `cli`, `connectors`, `events`, `files`, `inngest`, `integrations`, `workflows`
172
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
173
173
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/event-delivery/PATTERN.md)
174
174
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/event-delivery/example/)
175
175
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -180,7 +180,7 @@ Wire service-account grants, file storage, explicit message actions and public b
180
180
 
181
181
  - Id: `connectors/firebase-messaging`
182
182
  - Keywords: `cli`, `connectors`, `fcm`, `files`, `firebase`, `integrations`, `jwt`, `notifications`, `push`, `service-account`, `vapid`
183
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
184
184
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/firebase-messaging/PATTERN.md)
185
185
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/firebase-messaging/example/)
186
186
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -191,7 +191,7 @@ Compose reviewed Search campaigns with project-owned Google OAuth and portable s
191
191
 
192
192
  - Id: `connectors/google-ads-search`
193
193
  - Keywords: `ads`, `campaigns`, `cli`, `connectors`, `conversion`, `google`, `search`
194
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
195
195
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/google-ads-search/PATTERN.md)
196
196
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/google-ads-search/example/)
197
197
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -202,7 +202,7 @@ Compose provider consent, verification and encrypted file persistence from an ap
202
202
 
203
203
  - Id: `connectors/oauth-connection`
204
204
  - Keywords: `accounting`, `assistant permissions`, `books`, `cli`, `client credentials`, `connectors`, `consent`, `crm`, `databricks`, `developer token`, `fabric`, `files`, `gaql`, `google ads`, `graphql`, `integrations`, `linkedin`, `microsoft`, `oauth`, `powerpoint`, `salesforce`, `service principal`, `shopify`, `soql`, `staffing`, `tiktok`, `twitch`, `wave`, `word`, `wordpress`, `workday`, `xero`, `zoho`
205
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
206
206
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/oauth-connection/PATTERN.md)
207
207
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/oauth-connection/example/)
208
208
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -213,7 +213,7 @@ Compose a sequential catalogue batch and preserve partial success for applicatio
213
213
 
214
214
  - Id: `connectors/paddle-catalogue`
215
215
  - Keywords: `batch`, `paddle`, `payments`, `prices`, `products`
216
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
217
217
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/paddle-catalogue/PATTERN.md)
218
218
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/paddle-catalogue/example/)
219
219
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -224,7 +224,7 @@ Resolve a publishable image key deliberately and use the shared URL library in a
224
224
 
225
225
  - Id: `connectors/public-image`
226
226
  - Keywords: `cli`, `connectors`, `files`, `images`, `integrations`, `logo-dev`, `public-key`
227
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
228
228
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/public-image/PATTERN.md)
229
229
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/public-image/example/)
230
230
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -235,7 +235,7 @@ Compose file configuration, Redshift Data API operations and application query o
235
235
 
236
236
  - Id: `connectors/redshift-queries`
237
237
  - Keywords: `aws`, `cli`, `connectors`, `files`, `iam`, `provisioned`, `redshift`, `serverless`, `sql`, `warehouse`
238
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
239
239
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/redshift-queries/PATTERN.md)
240
240
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/redshift-queries/example/)
241
241
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -246,7 +246,7 @@ Use the shared scanner runtime from a CLI or a host worker with portable configu
246
246
 
247
247
  - Id: `connectors/source-scanning`
248
248
  - Keywords: `cancellation`, `cli`, `connectors`, `integrations`, `scanning`, `security`, `source`, `wiz`, `worker`
249
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
249
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
250
250
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/source-scanning/PATTERN.md)
251
251
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/source-scanning/example/)
252
252
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -367,7 +367,7 @@ Define a server feature through explicit capabilities and first-class actions, a
367
367
 
368
368
  - Id: `server/feature-package`
369
369
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
370
- - Owner: `@jskit-ai/agent-docs@0.1.378`
370
+ - Owner: `@jskit-ai/agent-docs@0.1.380`
371
371
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
372
372
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
373
373
  - Requires: `@jskit-ai/kernel`
@@ -54,7 +54,10 @@ Exports
54
54
  - `toolSchema`
55
55
  - `chatModel`
56
56
  - `generateOnce`
57
+ - `reasoningAt`
58
+ - `reasoningOn`
57
59
  - `REASONING`
60
+ - `REASONING_EFFORT`
58
61
  - `LOOP_OUTPUT_TOKENS`
59
62
  - `MODEL_RETRIES`
60
63
  - `runLoop`
@@ -93,9 +96,9 @@ Exports
93
96
 
94
97
  ### `src/server/loop.js`
95
98
  Exports
96
- - `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 = REASONING.on, maxOutputTokens = LOOP_OUTPUT_TOKENS, turnLimits = TURN_LIMITS, deadlineMs = REPLY_DEADLINE_MS })`
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 })`
97
100
  - `cleanTranscript(messages = [])`
98
- - `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 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 = REASONING.on, 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)`
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)`
99
102
  Local functions
100
103
  - `saveNoSteps()`
101
104
  - `ignoreStep()`
@@ -109,7 +112,10 @@ Local functions
109
112
  ### `src/server/model.js`
110
113
  Exports
111
114
  - `chatModel({ apiKey, model, baseURL, anthropicURL = "", fetch: fetchImpl })`
115
+ - `reasoningAt(effort)`
116
+ - `reasoningOn(model)`
112
117
  - `generateOnce({ model, system, messages, reasoning = REASONING.off, maxOutputTokens })`
118
+ - `REASONING_EFFORT`
113
119
  - `REASONING`
114
120
  - `LOOP_OUTPUT_TOKENS`
115
121
  - `MODEL_RETRIES`
@@ -588,6 +588,9 @@ Exports
588
588
  - `type CodexConversationResult`
589
589
  - `type CodexProviderBorrow`
590
590
  - `type CodexConversationCommands`
591
+ Local functions
592
+ - `codexTurnMessages(conversationId, turn, messageId)`
593
+ - `readCodexTurns(provider, conversationId, after, messageId)`
591
594
 
592
595
  ### `src/server/conversation/codexConversationStops.js`
593
596
  Exports
@@ -1460,6 +1463,11 @@ Exports
1460
1463
  - `createNativeHistoryExport(onRecord, { signal, maxBytes = 2 * 1024 ** 3 } = {})`
1461
1464
  - `retireNativeConversation({ binding, inspect, remove, beforeDelete, readConversation, exportConversation })`
1462
1465
 
1466
+ ### `src/server/conversation/nativeOutputCursor.js`
1467
+ Exports
1468
+ - `nativeOutputKey(message)`
1469
+ - `messagesFromCursor(messages, after, { anywhere = false } = {})`
1470
+
1463
1471
  ### `src/server/conversation/nativeStorage.js`
1464
1472
  Exports
1465
1473
  - `nativeConversationStoragePolicy(engineId)`
@@ -1649,6 +1657,8 @@ Exports
1649
1657
  Local functions
1650
1658
  - `toolOutput(result)`
1651
1659
  - `ignoreEvent()`
1660
+ - `asksToReason(params, effort)`
1661
+ - `refusedReasoning(error, { params, model, effort })`
1652
1662
  - `keepingNothing(params)`
1653
1663
  - `stateNote()`
1654
1664
  - `content(message)`
@@ -1719,6 +1729,7 @@ Exports
1719
1729
  - `scopedConversationInput(conversationId)`
1720
1730
  - `unsupportedScopedConversation()`
1721
1731
  - `createScopedConversationHandle({ conversationId, sendNative, readNative, waitNative, cancel, deleteConversation, disposeOpening })`
1732
+ - `persistentConversationReadAfter(record)`
1722
1733
  - `projectStoredPersistentConversation(options)`
1723
1734
  - `readPersistentConversation(options)`
1724
1735
  - `startPersistentConversationTurn(options)`
@@ -1736,7 +1747,16 @@ Local functions
1736
1747
  - `qualifyTranscript(turns, record, response, receipts)`
1737
1748
  - `publishTranscript({ sessionId, store, receipts, publish }, context, record, turns, response = {})`
1738
1749
  - `streamMessage({ sessionId, store, projection, publish }, context, record, event)`
1739
- - `projectPersistentConversation(options, context, record, response, turns)`
1750
+ - `nativeOutputCursor(record)`
1751
+ - `indexedTurn(store, scope, messageId)`
1752
+ - `requestTurn(store, scope, messageId)`
1753
+ - `requestTurnsOf(turns)`
1754
+ - `holdsNativeMessage(turn, message)`
1755
+ - `readNativeOutput(options, context, record, cursor)`
1756
+ - `snapshotMessages(turns, record, response, { receipts, projection })`
1757
+ - `incompleteMessages(response, record, projection, shown)`
1758
+ - `windowedMessages(options, scope, record, response, { beforeMessageId = "", limit = 0 })`
1759
+ - `projectPersistentConversation(options, context, record, response)`
1740
1760
 
1741
1761
  ### `src/server/conversation/runtime.js`
1742
1762
  Exports
@@ -404,6 +404,7 @@ Local functions
404
404
  - `normalizeStreamInput(payload = {})`
405
405
  - `savedMessageFields(error)`
406
406
  - `streamErrorMessageFields(error, aborted)`
407
+ - `waitUnlessAborted(previous, signal)`
407
408
  - `isAbortError(error)`
408
409
  - `toCompactJson(value, fallback = "{}")`
409
410
  - `buildToolContractLine(toolDescriptor = {})`
@@ -455,17 +455,20 @@ Exports
455
455
  - `planTestRuns(args, { cwd = process.cwd(), concurrency = testConcurrency() } = {})`
456
456
  - `runTestPool(groups)`
457
457
  - `runTests(args)`
458
+ - `runnerInvocation(options)`
458
459
  - `withTimeReporter(run, destination)`
459
460
  Local functions
460
461
  - `readMarkedFiles(files, cwd)`
461
462
  - `markedDestination(destination, kind)`
462
463
  - `markedRunOptions(options, kind)`
463
- - `markedShard(files, options)`
464
+ - `splitArguments(args, cwd)`
465
+ - `takeShard(options)`
466
+ - `longestFirst(first, second)`
467
+ - `startOrder(files, recorded, shard)`
464
468
  - `databaseShortfall(databases, asked)`
465
469
  - `runNode(args, env)`
466
470
  - `listTestFiles(args)`
467
471
  - `pooledName({ group, file })`
468
- - `longestFirst(first, second)`
469
472
  - `reportPoolTimes(groups, wallMs)`
470
473
  - `textOf(stream)`
471
474
 
@@ -515,6 +518,14 @@ Local functions
515
518
  - `refusal(command, host, port)`
516
519
  - `connectTarget(args)`
517
520
 
521
+ ### `scripts/testing/run-files.mjs`
522
+ Exports
523
+ - None
524
+ Local functions
525
+ - `reporterSpecifier(name)`
526
+ - `loadReporter(name)`
527
+ - `interrupt()`
528
+
518
529
  ### `scripts/testing/runs.mjs`
519
530
  Exports
520
531
  - `checkTestRuns({ projectRoot, manifests })`
@@ -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.378`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.380`
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.378`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.380`
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.112`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.114`
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`
@@ -103,7 +103,7 @@ Resolve an administrator environment key or an individual user's grant, then use
103
103
 
104
104
  - Id: `connectors/ai-connections`
105
105
  - Keywords: `ai`, `api-key`, `cli`, `environment`, `free`, `models`, `ownership`, `zai`, `zen`
106
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
107
107
  - Read: [PATTERN.md](patterns/connectors/ai-connections/PATTERN.md)
108
108
  - Examples: [example/](patterns/connectors/ai-connections/example/)
109
109
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -114,7 +114,7 @@ Compose provider operations, authorization and encrypted file storage from a CLI
114
114
 
115
115
  - Id: `connectors/api-key-connection`
116
116
  - Keywords: `api-key`, `clay`, `cli`, `clickhouse`, `connectors`, `dbt`, `files`, `firecrawl`, `granola`, `integrations`, `metrics`, `prestashop`, `resend`, `semantic-layer`, `semrush`, `x-twitter`
117
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
118
118
  - Read: [PATTERN.md](patterns/connectors/api-key-connection/PATTERN.md)
119
119
  - Examples: [example/](patterns/connectors/api-key-connection/example/)
120
120
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -125,7 +125,7 @@ Compose token-based MCP discovery and explicitly authorized tool calls using the
125
125
 
126
126
  - Id: `connectors/assistant-mcp`
127
127
  - Keywords: `assistant`, `cli`, `connectors`, `files`, `integrations`, `mcp`, `n8n`, `sanity`
128
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
129
129
  - Read: [PATTERN.md](patterns/connectors/assistant-mcp/PATTERN.md)
130
130
  - Examples: [example/](patterns/connectors/assistant-mcp/example/)
131
131
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -136,7 +136,7 @@ Configure assistant OAuth clients, then compose existing state, encrypted file g
136
136
 
137
137
  - Id: `connectors/assistant-mcp-oauth`
138
138
  - Keywords: `amplitude`, `assistant`, `atlassian`, `canva`, `cli`, `client metadata`, `confidence`, `connectors`, `figma`, `files`, `granola`, `hex`, `mcp`, `miro`, `oauth`
139
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
140
140
  - Read: [PATTERN.md](patterns/connectors/assistant-mcp-oauth/PATTERN.md)
141
141
  - Examples: [example/](patterns/connectors/assistant-mcp-oauth/example/)
142
142
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -147,7 +147,7 @@ Compose signed AWS operations, file configuration and application authorization
147
147
 
148
148
  - Id: `connectors/aws-storage-queries`
149
149
  - Keywords: `athena`, `aws`, `cli`, `connectors`, `files`, `iam`, `queries`, `s3`, `storage`, `sts`
150
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
150
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
151
151
  - Read: [PATTERN.md](patterns/connectors/aws-storage-queries/PATTERN.md)
152
152
  - Examples: [example/](patterns/connectors/aws-storage-queries/example/)
153
153
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -169,7 +169,7 @@ Compose the shared connector runtime for event delivery while leaving workflow c
169
169
 
170
170
  - Id: `connectors/event-delivery`
171
171
  - Keywords: `cli`, `connectors`, `events`, `files`, `inngest`, `integrations`, `workflows`
172
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
173
173
  - Read: [PATTERN.md](patterns/connectors/event-delivery/PATTERN.md)
174
174
  - Examples: [example/](patterns/connectors/event-delivery/example/)
175
175
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -180,7 +180,7 @@ Wire service-account grants, file storage, explicit message actions and public b
180
180
 
181
181
  - Id: `connectors/firebase-messaging`
182
182
  - Keywords: `cli`, `connectors`, `fcm`, `files`, `firebase`, `integrations`, `jwt`, `notifications`, `push`, `service-account`, `vapid`
183
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
184
184
  - Read: [PATTERN.md](patterns/connectors/firebase-messaging/PATTERN.md)
185
185
  - Examples: [example/](patterns/connectors/firebase-messaging/example/)
186
186
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -191,7 +191,7 @@ Compose reviewed Search campaigns with project-owned Google OAuth and portable s
191
191
 
192
192
  - Id: `connectors/google-ads-search`
193
193
  - Keywords: `ads`, `campaigns`, `cli`, `connectors`, `conversion`, `google`, `search`
194
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
195
195
  - Read: [PATTERN.md](patterns/connectors/google-ads-search/PATTERN.md)
196
196
  - Examples: [example/](patterns/connectors/google-ads-search/example/)
197
197
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -202,7 +202,7 @@ Compose provider consent, verification and encrypted file persistence from an ap
202
202
 
203
203
  - Id: `connectors/oauth-connection`
204
204
  - Keywords: `accounting`, `assistant permissions`, `books`, `cli`, `client credentials`, `connectors`, `consent`, `crm`, `databricks`, `developer token`, `fabric`, `files`, `gaql`, `google ads`, `graphql`, `integrations`, `linkedin`, `microsoft`, `oauth`, `powerpoint`, `salesforce`, `service principal`, `shopify`, `soql`, `staffing`, `tiktok`, `twitch`, `wave`, `word`, `wordpress`, `workday`, `xero`, `zoho`
205
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
206
206
  - Read: [PATTERN.md](patterns/connectors/oauth-connection/PATTERN.md)
207
207
  - Examples: [example/](patterns/connectors/oauth-connection/example/)
208
208
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -213,7 +213,7 @@ Compose a sequential catalogue batch and preserve partial success for applicatio
213
213
 
214
214
  - Id: `connectors/paddle-catalogue`
215
215
  - Keywords: `batch`, `paddle`, `payments`, `prices`, `products`
216
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
217
217
  - Read: [PATTERN.md](patterns/connectors/paddle-catalogue/PATTERN.md)
218
218
  - Examples: [example/](patterns/connectors/paddle-catalogue/example/)
219
219
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -224,7 +224,7 @@ Resolve a publishable image key deliberately and use the shared URL library in a
224
224
 
225
225
  - Id: `connectors/public-image`
226
226
  - Keywords: `cli`, `connectors`, `files`, `images`, `integrations`, `logo-dev`, `public-key`
227
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
228
228
  - Read: [PATTERN.md](patterns/connectors/public-image/PATTERN.md)
229
229
  - Examples: [example/](patterns/connectors/public-image/example/)
230
230
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -235,7 +235,7 @@ Compose file configuration, Redshift Data API operations and application query o
235
235
 
236
236
  - Id: `connectors/redshift-queries`
237
237
  - Keywords: `aws`, `cli`, `connectors`, `files`, `iam`, `provisioned`, `redshift`, `serverless`, `sql`, `warehouse`
238
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
239
239
  - Read: [PATTERN.md](patterns/connectors/redshift-queries/PATTERN.md)
240
240
  - Examples: [example/](patterns/connectors/redshift-queries/example/)
241
241
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -246,7 +246,7 @@ Use the shared scanner runtime from a CLI or a host worker with portable configu
246
246
 
247
247
  - Id: `connectors/source-scanning`
248
248
  - Keywords: `cancellation`, `cli`, `connectors`, `integrations`, `scanning`, `security`, `source`, `wiz`, `worker`
249
- - Owner: `@jskit-ai/connectors-catalog@0.2.68`
249
+ - Owner: `@jskit-ai/connectors-catalog@0.2.69`
250
250
  - Read: [PATTERN.md](patterns/connectors/source-scanning/PATTERN.md)
251
251
  - Examples: [example/](patterns/connectors/source-scanning/example/)
252
252
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -367,7 +367,7 @@ Define a server feature through explicit capabilities and first-class actions, a
367
367
 
368
368
  - Id: `server/feature-package`
369
369
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
370
- - Owner: `@jskit-ai/agent-docs@0.1.378`
370
+ - Owner: `@jskit-ai/agent-docs@0.1.380`
371
371
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
372
372
  - Examples: [example/](patterns/server/feature-package/example/)
373
373
  - Requires: `@jskit-ai/kernel`
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.255",
53
- "@jskit-ai/jskit-catalog": "0.2.130",
53
+ "@jskit-ai/jskit-catalog": "0.2.132",
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.255",
54
- "@jskit-ai/jskit-catalog": "0.2.130",
54
+ "@jskit-ai/jskit-catalog": "0.2.132",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -195,8 +195,9 @@ The rules it applies are in [Typed features](typed-features.md),
195
195
  - A file imports what it needs at its top level, so loading counts against the
196
196
  file, not a test's time limit.
197
197
  - The bounds stay: `jskit test`'s 10 minutes a file and 45 a run, its 10
198
- seconds a file's process may live on after its last test (the linger
199
- bound, which names what a test left open, or says the file was busy), and
198
+ seconds a file's process may live on after its last test and `after`
199
+ hooks, and its `after` hooks after its last test (the linger bound, which
200
+ names what a test left open, or says the file was busy), and
200
201
  `browserTestConfig()`'s `actionTimeout`, `navigationTimeout` and
201
202
  `globalTimeout`. A bound in
202
203
  `test-time-bounds.json` rises only with a measurement of the work's real
@@ -1095,10 +1095,16 @@ the last run's largest app server reached.**
1095
1095
  one file at a time, an 8-thread machine four, and a container or slice whose
1096
1096
  cgroup `cpu.max` quota gives it 3 CPUs of a 16-thread machine one
1097
1097
  (`availableCpus()`).
1098
- - `jskit test` (from `@jskit-ai/jskit-catalog`) passes its arguments to
1099
- `node --test` and sets `--test-concurrency` to the budget.
1098
+ - `jskit test` (from `@jskit-ai/jskit-catalog`) takes `node --test`'s
1099
+ arguments and sets `--test-concurrency` to the budget.
1100
1100
  `testConcurrency()` from `@jskit-ai/jskit-catalog/test-budget` returns the
1101
1101
  same number for a config.
1102
+ - `jskit test` starts the files whose last run took longest first, from the
1103
+ times it records, and a file with no recorded time before them all, so a
1104
+ long file never starts last and runs on alone; `node --test` itself starts
1105
+ them by name. With `--test-shard=<index>/<total>` it picks each shard's
1106
+ files by name, as `node --test` does, so a shard is the same files on every
1107
+ machine.
1102
1108
  - A Node test file is named `<name>.test.js`, and a database test
1103
1109
  `<name>.integration.test.js`: given no files, `jskit test` runs node's
1104
1110
  default pattern, less the files under a `support/` or `fixtures/` folder or
@@ -1206,9 +1212,10 @@ the last run's largest app server reached.**
1206
1212
  files still finish and report: look for what it leaves open (a server, child
1207
1213
  process, timer or socket) or a test without a timeout. A file with its own
1208
1214
  bound is stopped at twice that bound.
1209
- - A file whose tests have all ended but whose process is still running 10
1210
- seconds later (the linger bound, `lingerMs`; its `after` hooks run within
1211
- it) is stopped too, and fails the run by name with what its process still
1215
+ - A file whose tests and top-level `after` hooks have all ended but whose
1216
+ process is still running 10 seconds later (the linger bound, `lingerMs`)
1217
+ is stopped too, and so is one whose `after` hooks still run 10 seconds
1218
+ after its last test; each fails the run by name with what its process still
1212
1219
  holds open, from `process.getActiveResourcesInfo()` read inside it, less
1213
1220
  its own stdout and stderr, and stdin unless something reads it: `Timeout`
1214
1221
  for an interval or timer, `TCPServerWrap` for a listening server,
@@ -1217,8 +1224,10 @@ the last run's largest app server reached.**
1217
1224
  it in the test or an `after` hook. A file still busy past the bound with
1218
1225
  nothing open fails the run as `busy, not held open`, with how long it
1219
1226
  lived on, whether its stop met it late or it ended by itself first: finish
1220
- the work it does after its last test within the tests. A file's process
1221
- normally ends within moments of its last test, and the report says the
1227
+ the work it does after its last test and `after` hooks within them. One
1228
+ stopped while its `after` hooks still ran waits on something that never
1229
+ ends, such as a server's open connections: end it. A file's process
1230
+ normally ends within moments of its `after` hooks, and the report says the
1222
1231
  longest any took against the bound. Files marked `alone` or `network` get
1223
1232
  the same bound. A suite whose measured cleanup needs longer sets `lingerMs` in
1224
1233
  `test-time-bounds.json`, with the measurement in the commit that raises it.