@jskit-ai/agent-docs 0.1.379 → 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.
@@ -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.379",
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.131",
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.131",
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.379`
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.379`
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.113`
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`
@@ -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.379`
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`
@@ -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)`
@@ -1721,6 +1729,7 @@ Exports
1721
1729
  - `scopedConversationInput(conversationId)`
1722
1730
  - `unsupportedScopedConversation()`
1723
1731
  - `createScopedConversationHandle({ conversationId, sendNative, readNative, waitNative, cancel, deleteConversation, disposeOpening })`
1732
+ - `persistentConversationReadAfter(record)`
1724
1733
  - `projectStoredPersistentConversation(options)`
1725
1734
  - `readPersistentConversation(options)`
1726
1735
  - `startPersistentConversationTurn(options)`
@@ -1738,8 +1747,16 @@ Local functions
1738
1747
  - `qualifyTranscript(turns, record, response, receipts)`
1739
1748
  - `publishTranscript({ sessionId, store, receipts, publish }, context, record, turns, response = {})`
1740
1749
  - `streamMessage({ sessionId, store, projection, publish }, context, record, event)`
1741
- - `projectPersistentConversation(options, context, record, response, turns)`
1742
- - `requestTurn(store, sessionId, messageId)`
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)`
1743
1760
 
1744
1761
  ### `src/server/conversation/runtime.js`
1745
1762
  Exports
@@ -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.379`
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.379`
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.113`
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`
@@ -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.379`
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.131",
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.131",
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.