@jskit-ai/agent-docs 0.1.312 → 0.1.314

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.
@@ -1398,8 +1398,12 @@ picker, screenshot producer or project file browser remains an application tool.
1398
1398
 
1399
1399
  Set `questions` on `AssistantConversationClientElement`, or pass
1400
1400
  `questions: true` to `useAssistantConversation`, to enable ordinary chat answer
1401
- fields. The retained conversation selects the latest authorized completed reply,
1402
- ignores an in-progress reply and stops at a subsequent user message. It owns the
1401
+ fields. The retained conversation offers the newest questions the AI asked since
1402
+ the person's last message: it starts at the latest authorized completed reply,
1403
+ offers nothing while that reply is in progress, reads back over that reply and
1404
+ the AI's earlier replies and commentary, at most ten of them, and stops at a
1405
+ subsequent user message. A short message the AI adds after its questions, such
1406
+ as "I'll start once you've answered", therefore keeps the form. It owns the
1403
1407
  answers, choice, dismissal and submitted-form state; no application selector or
1404
1408
  reset watcher is needed.
1405
1409
 
@@ -1437,9 +1441,13 @@ For custom presentation, the same prop accepts an explicit question owner or the
1437
1441
  existing question adapter. `useAssistantQuestions` from
1438
1442
  `/client/conversation-questions` supplies the extracted answer state to a custom
1439
1443
  composer. Supply its authorized completed message and optional `extraChoice`;
1440
- `latestAssistantMessageAwaitingUserReply` from `/shared/conversation` implements
1441
- the standard message selection. A custom owner remains responsible for its
1442
- message source and scope resets.
1444
+ `latestAssistantQuestionsAwaitingUserReply(conversationLog, { lookback })` from
1445
+ `/shared/conversation` implements the standard message selection, with
1446
+ `lookback` (the most AI messages it reads) defaulting to 10. A server that must
1447
+ know whether the AI is waiting for an answer can read the same message from its
1448
+ saved turns. `latestAssistantMessageAwaitingUserReply` returns the latest
1449
+ completed reply itself, questions or not. A custom owner remains responsible for
1450
+ its message source and scope resets.
1443
1451
 
1444
1452
  `AssistantQuestionInputs` renders numbered question fields and suggested-answer
1445
1453
  chips. Pass `questions`, optional `selectItems` keyed by question name, `choices`,
@@ -59,6 +59,12 @@ preview can sign its browser in as an existing account. Which accounts it may
59
59
  use stays the person's choice; the application never creates users for it, and
60
60
  the exchange is inert without both values.
61
61
 
62
+ An application whose browsers get in another way, where the development
63
+ login-as route is unreachable, passes `runManagedPreviewIdentityCommand` its own
64
+ `exchange`, which signs the preview browser in or out and returns its
65
+ Set-Cookie headers; its declaration then names no environment values (see the
66
+ `auth/auth-surface` pattern).
67
+
62
68
  ## Server boundary
63
69
 
64
70
  `@jskit-ai/auth-core` exposes the policy, actor, extension, and action contracts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.312",
3
+ "version": "0.1.314",
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.251",
53
- "@jskit-ai/jskit-catalog": "0.2.64",
53
+ "@jskit-ai/jskit-catalog": "0.2.66",
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.251",
54
- "@jskit-ai/jskit-catalog": "0.2.64",
54
+ "@jskit-ai/jskit-catalog": "0.2.66",
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.312`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.314`
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.312`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.314`
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.54`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.55`
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`
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
59
59
 
60
60
  - Id: `auth/auth-surface`
61
61
  - Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
62
- - Owner: `@jskit-ai/auth-web@0.2.32`
62
+ - Owner: `@jskit-ai/auth-web@0.2.33`
63
63
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](../../skills/jskit/references/patterns/auth/auth-surface/example/)
65
65
  - Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
70
70
 
71
71
  - Id: `auth/oidc-sign-in`
72
72
  - Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
73
- - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.35`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.36`
74
74
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](../../skills/jskit/references/patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -246,7 +246,7 @@ Add a protected administration surface, settings shell, and semantic navigation
246
246
 
247
247
  - Id: `console/console-surface`
248
248
  - Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
249
- - Owner: `@jskit-ai/console-web@0.1.262`
249
+ - Owner: `@jskit-ai/console-web@0.1.263`
250
250
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/console/console-surface/PATTERN.md)
251
251
  - Examples: [example/](../../skills/jskit/references/patterns/console/console-surface/example/)
252
252
  - Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
356
356
 
357
357
  - Id: `server/feature-package`
358
358
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
- - Owner: `@jskit-ai/agent-docs@0.1.312`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.314`
360
360
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
362
362
  - Requires: `@jskit-ai/kernel`
@@ -389,7 +389,7 @@ Compose an account settings route and profile, preference, notification, and sig
389
389
 
390
390
  - Id: `users/account-settings`
391
391
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
392
- - Owner: `@jskit-ai/users-web@0.2.45`
392
+ - Owner: `@jskit-ai/users-web@0.2.46`
393
393
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/users/account-settings/PATTERN.md)
394
394
  - Examples: [example/](../../skills/jskit/references/patterns/users/account-settings/example/)
395
395
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -422,7 +422,7 @@ Compose workspace selection, invitation, member administration, settings, and re
422
422
 
423
423
  - Id: `workspaces/workspace-surfaces`
424
424
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
425
- - Owner: `@jskit-ai/workspaces-web@0.2.45`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.46`
426
426
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md)
427
427
  - Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/example/)
428
428
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -2225,9 +2225,11 @@ Local functions
2225
2225
  ### `src/shared/conversation/questions.js`
2226
2226
  Exports
2227
2227
  - `latestAssistantMessageAwaitingUserReply(conversationLog = {})`
2228
+ - `latestAssistantQuestionsAwaitingUserReply(conversationLog = {}, { lookback = ASSISTANT_QUESTION_LOOKBACK } = {})`
2228
2229
  Local functions
2229
2230
  - `messageText(value = "")`
2230
2231
  - `conversationTurns(conversationLog = {})`
2232
+ - `asksPerson(text)`
2231
2233
 
2232
2234
  ### `src/shared/conversation/scrollFollowState.js`
2233
2235
  Exports
@@ -329,8 +329,9 @@ Exports
329
329
  ### `src/server/managedPreviewIdentity.js`
330
330
  Exports
331
331
  - `DEFAULT_PREVIEW_IDENTITY_PROTOCOL`
332
- - `executeManagedPreviewIdentityRequest(value, { env, fetchImpl = globalThis.fetch, protocol = DEFAULT_PREVIEW_IDENTITY_PROTOCOL, localHostnames = [] })`
333
- - `runManagedPreviewIdentityCommand({ env, fetchImpl = globalThis.fetch, stdin = process.stdin, stdout = process.stdout, protocol = DEFAULT_PREVIEW_IDENTITY_PROTOCOL, localHostnames = [] })`
332
+ - `executeManagedPreviewIdentityRequest(value, { env, fetchImpl = globalThis.fetch, protocol = DEFAULT_PREVIEW_IDENTITY_PROTOCOL, localHostnames = [], exchange })`
333
+ - `runManagedPreviewIdentityCommand({ env, fetchImpl = globalThis.fetch, stdin = process.stdin, stdout = process.stdout, protocol = DEFAULT_PREVIEW_IDENTITY_PROTOCOL, localHostnames = [], exchange })`
334
+ - `type PreviewIdentityExchange`
334
335
  Local functions
335
336
  - `commandError(message, code = "jskit_managed_preview_identity_failed", details = {})`
336
337
  - `response(protocol, requestId, values)`
@@ -348,6 +349,8 @@ Local functions
348
349
  - `bootstrapSession(fetchImpl, targetOrigin)`
349
350
  - `logout(fetchImpl, targetOrigin, session)`
350
351
  - `login(fetchImpl, targetOrigin, identity, secret, session)`
352
+ - `developmentExchange(env)`
353
+ - `signedInIdentity(answered, asked)`
351
354
 
352
355
  ### `src/server/routes/authRoutes.js`
353
356
  Exports
@@ -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.312`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.314`
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.312`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.314`
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.54`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.55`
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`
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
59
59
 
60
60
  - Id: `auth/auth-surface`
61
61
  - Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
62
- - Owner: `@jskit-ai/auth-web@0.2.32`
62
+ - Owner: `@jskit-ai/auth-web@0.2.33`
63
63
  - Read: [PATTERN.md](patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](patterns/auth/auth-surface/example/)
65
65
  - Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
70
70
 
71
71
  - Id: `auth/oidc-sign-in`
72
72
  - Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
73
- - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.35`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.36`
74
74
  - Read: [PATTERN.md](patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -246,7 +246,7 @@ Add a protected administration surface, settings shell, and semantic navigation
246
246
 
247
247
  - Id: `console/console-surface`
248
248
  - Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
249
- - Owner: `@jskit-ai/console-web@0.1.262`
249
+ - Owner: `@jskit-ai/console-web@0.1.263`
250
250
  - Read: [PATTERN.md](patterns/console/console-surface/PATTERN.md)
251
251
  - Examples: [example/](patterns/console/console-surface/example/)
252
252
  - Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
356
356
 
357
357
  - Id: `server/feature-package`
358
358
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
- - Owner: `@jskit-ai/agent-docs@0.1.312`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.314`
360
360
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](patterns/server/feature-package/example/)
362
362
  - Requires: `@jskit-ai/kernel`
@@ -389,7 +389,7 @@ Compose an account settings route and profile, preference, notification, and sig
389
389
 
390
390
  - Id: `users/account-settings`
391
391
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
392
- - Owner: `@jskit-ai/users-web@0.2.45`
392
+ - Owner: `@jskit-ai/users-web@0.2.46`
393
393
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
394
394
  - Examples: [example/](patterns/users/account-settings/example/)
395
395
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -422,7 +422,7 @@ Compose workspace selection, invitation, member administration, settings, and re
422
422
 
423
423
  - Id: `workspaces/workspace-surfaces`
424
424
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
425
- - Owner: `@jskit-ai/workspaces-web@0.2.45`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.46`
426
426
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
427
427
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
428
428
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.251",
53
- "@jskit-ai/jskit-catalog": "0.2.64",
53
+ "@jskit-ai/jskit-catalog": "0.2.66",
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.251",
54
- "@jskit-ai/jskit-catalog": "0.2.64",
54
+ "@jskit-ai/jskit-catalog": "0.2.66",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -76,6 +76,16 @@ managed-preview identity library directly; it does not require a JSKIT CLI. A
76
76
  project without a managed host keeps the executable; it is inert unless both
77
77
  environment values are present.
78
78
 
79
+ An application whose browsers get in another way, so that the development
80
+ login-as route is unreachable (for example one that opens with its own key),
81
+ passes its own `exchange` instead. It receives the operation, the existing
82
+ user a `login-as` names (`{ email }` or `{ userId }`), the checked local target
83
+ origin and the fetch to reach it with, and resolves with the browser's
84
+ Set-Cookie headers and, for `login-as`, the user signed in; a refusal is an
85
+ error with a `code` and `statusCode`. JSKIT still reads and checks the request
86
+ and writes the response, and needs no development values then, so the
87
+ declaration drops the two environment names.
88
+
79
89
  Choose local-auth storage through the installed capability provider. A
80
90
  database-backed application installs `@jskit-ai/auth-provider-local-db-core`,
81
91
  which provides `auth.local.backend`; no environment switch selects it. When no
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/auth-provider-oidc-core": "0.2.35",
6
- "@jskit-ai/auth-web": "0.2.32"
5
+ "@jskit-ai/auth-provider-oidc-core": "0.2.36",
6
+ "@jskit-ai/auth-web": "0.2.33"
7
7
  }
8
8
  }