@jskit-ai/agent-docs 0.1.377 → 0.1.379
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/guide/agent/app-extras/assistant-conversation.md +21 -8
- package/guide/agent/app-extras/assistant.md +18 -8
- package/package.json +1 -1
- package/patterns/minimal-foundation/example/package.json +1 -1
- package/patterns/shell-foundation/example/package.json +1 -1
- package/reference/autogen/PATTERN_INDEX.md +17 -17
- package/reference/autogen/packages/agent.md +8 -2
- package/reference/autogen/packages/assistant-core.md +3 -0
- package/reference/autogen/packages/assistant-runtime.md +1 -0
- package/skills/jskit/references/pattern-index.md +17 -17
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +1 -1
|
@@ -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
|
|
2198
|
-
(`none`, `minimal`, `low`, `medium`, `high`, `xhigh
|
|
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
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
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 `
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
|
944
|
-
|
|
945
|
-
the
|
|
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
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
|
|
|
15
15
|
|
|
16
16
|
- Id: `app/minimal-foundation`
|
|
17
17
|
- Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
|
|
18
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
18
|
+
- Owner: `@jskit-ai/agent-docs@0.1.379`
|
|
19
19
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/app/minimal-foundation/PATTERN.md)
|
|
20
20
|
- Examples: [example/](../../skills/jskit/references/patterns/app/minimal-foundation/example/)
|
|
21
21
|
- Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
|
|
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
|
|
|
26
26
|
|
|
27
27
|
- Id: `app/shell-foundation`
|
|
28
28
|
- Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
|
|
29
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
29
|
+
- Owner: `@jskit-ai/agent-docs@0.1.379`
|
|
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.
|
|
40
|
+
- Owner: `@jskit-ai/assistant-runtime@0.2.113`
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
370
|
+
- Owner: `@jskit-ai/agent-docs@0.1.379`
|
|
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 =
|
|
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 =
|
|
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`
|
|
@@ -1649,6 +1649,8 @@ Exports
|
|
|
1649
1649
|
Local functions
|
|
1650
1650
|
- `toolOutput(result)`
|
|
1651
1651
|
- `ignoreEvent()`
|
|
1652
|
+
- `asksToReason(params, effort)`
|
|
1653
|
+
- `refusedReasoning(error, { params, model, effort })`
|
|
1652
1654
|
- `keepingNothing(params)`
|
|
1653
1655
|
- `stateNote()`
|
|
1654
1656
|
- `content(message)`
|
|
@@ -1737,6 +1739,7 @@ Local functions
|
|
|
1737
1739
|
- `publishTranscript({ sessionId, store, receipts, publish }, context, record, turns, response = {})`
|
|
1738
1740
|
- `streamMessage({ sessionId, store, projection, publish }, context, record, event)`
|
|
1739
1741
|
- `projectPersistentConversation(options, context, record, response, turns)`
|
|
1742
|
+
- `requestTurn(store, sessionId, messageId)`
|
|
1740
1743
|
|
|
1741
1744
|
### `src/server/conversation/runtime.js`
|
|
1742
1745
|
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 = {})`
|
|
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
|
|
|
15
15
|
|
|
16
16
|
- Id: `app/minimal-foundation`
|
|
17
17
|
- Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
|
|
18
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
18
|
+
- Owner: `@jskit-ai/agent-docs@0.1.379`
|
|
19
19
|
- Read: [PATTERN.md](patterns/app/minimal-foundation/PATTERN.md)
|
|
20
20
|
- Examples: [example/](patterns/app/minimal-foundation/example/)
|
|
21
21
|
- Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
|
|
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
|
|
|
26
26
|
|
|
27
27
|
- Id: `app/shell-foundation`
|
|
28
28
|
- Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
|
|
29
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
29
|
+
- Owner: `@jskit-ai/agent-docs@0.1.379`
|
|
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.
|
|
40
|
+
- Owner: `@jskit-ai/assistant-runtime@0.2.113`
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
370
|
+
- Owner: `@jskit-ai/agent-docs@0.1.379`
|
|
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`
|