@jskit-ai/agent-docs 0.1.348 → 0.1.350
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 +31 -0
- package/guide/agent/app-setup/authentication.md +81 -2
- 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 +14 -14
- package/reference/autogen/packages/assistant-core.md +13 -2
- package/reference/autogen/packages/auth-core.md +5 -0
- package/reference/autogen/packages/auth-provider-local-core.md +10 -0
- package/reference/autogen/packages/auth-provider-local-db-core.md +4 -0
- package/reference/autogen/packages/auth-web.md +2 -1
- package/skills/jskit/references/pattern-index.md +14 -14
- 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
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +1 -1
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +1 -1
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +2 -2
|
@@ -4929,6 +4929,37 @@ Only explicit **Stop** (and goal Pause, Block and Cancel) sends the interrupt
|
|
|
4929
4929
|
control. The client keeps its capability-gated targeted Send now control for an
|
|
4930
4930
|
explicit action, but conversation steering does not use it.
|
|
4931
4931
|
|
|
4932
|
+
A person's **Stop** ends Claude's running turn as Esc does in Claude Code and
|
|
4933
|
+
keeps the process. A native-representation conversation's Stop (the provider's
|
|
4934
|
+
`cancel`) reaches the retained owner this way, and the person's running command
|
|
4935
|
+
then settles with the interrupted turn. Claude's drain loop starts queued input as soon as an
|
|
4936
|
+
interrupted turn ends, so the retained owner first writes `cancel_async_message`
|
|
4937
|
+
for each of the turn's inputs Claude has not begun, then the plain `interrupt`
|
|
4938
|
+
control. Background agents and commands keep running because every Claude
|
|
4939
|
+
process declares `perTaskStopAffordance: true` in its `initialize` request
|
|
4940
|
+
(Claude Code 2.1.246 and later; Claude reads it from a process's first
|
|
4941
|
+
initialize, and the interrupt carries no such field). Without that declaration,
|
|
4942
|
+
and in Claude Code before 2.1.246, an interrupt ends background agents. The
|
|
4943
|
+
interrupt's `cancel_queued` is not used: it would also drop a background task's
|
|
4944
|
+
queued report. It waits for the result of the loop that
|
|
4945
|
+
was under way where Claude wrote its receipt, then records the turn
|
|
4946
|
+
`interrupted`, keeping displayed partial output as commentary. Background tasks
|
|
4947
|
+
stay counted: their progress does not reopen the stopped turn, while their
|
|
4948
|
+
report, which Claude answers in a loop of its own, does. The next message goes
|
|
4949
|
+
to the same process, and a selection change between turns (another model or
|
|
4950
|
+
effort with the same instructions and tools) applies to it through
|
|
4951
|
+
`apply_flag_settings` and `set_model`; changed instructions, instruction mode or
|
|
4952
|
+
live-update identity still start a new process, which ends its background tasks.
|
|
4953
|
+
The owner stops the process instead, through its verified stop, when Claude does
|
|
4954
|
+
not answer and end the turn within `interruptTimeoutMs` (an owner option, 15
|
|
4955
|
+
seconds by default), when an input of the turn may still run (Claude could not
|
|
4956
|
+
answer its withdrawal, or its receipt still lists it), and for a runtime binding,
|
|
4957
|
+
a turn without a live process, lost observation, a stop already under way or a
|
|
4958
|
+
closing owner. Goal Pause and Block, a canonical conversation's Stop (which
|
|
4959
|
+
aborts its running command), a wait that reaches its time limit or loses its
|
|
4960
|
+
caller, session and conversation close and account changes still stop the
|
|
4961
|
+
process.
|
|
4962
|
+
|
|
4932
4963
|
Native Claude `system/local_command_output` messages retain their origin in
|
|
4933
4964
|
`data.native` (`engineId`, `type`, `subtype`). Transcript writers preserve supplied
|
|
4934
4965
|
message data for agent messages as well as user messages. A consuming application
|
|
@@ -325,6 +325,68 @@ an application that keeps an audit log installs the
|
|
|
325
325
|
`auth.local.second-factor-events` capability, a function given each event after
|
|
326
326
|
it is stored. Without one, local auth logs them.
|
|
327
327
|
|
|
328
|
+
## How a session was signed in (local auth)
|
|
329
|
+
|
|
330
|
+
An action that grants much (root on a machine, say) can ask more of the
|
|
331
|
+
session that requests it than that it is signed in: that it was signed in
|
|
332
|
+
recently, from the browser and network now asking, as an ordinary sign-in, and
|
|
333
|
+
that the account's password and email have not just changed. Local auth keeps
|
|
334
|
+
what that needs, and the auth policy hands it to every route that signs its
|
|
335
|
+
caller in, beside `request.secondFactorAt`:
|
|
336
|
+
|
|
337
|
+
- `request.sessionSignIn` is `{ at, ip, userAgent, purpose }`: when the
|
|
338
|
+
session was signed in (`at`, its creation, which refreshing the session
|
|
339
|
+
never renews), the address (`request.ip` of the request that signed it in,
|
|
340
|
+
so set `TRUSTED_PROXIES` behind a proxy) and browser (its `User-Agent`, at
|
|
341
|
+
most 512 characters) it was signed in from, and why (`purpose`: `normal` for
|
|
342
|
+
an ordinary sign-in, by password, registration, a confirmation link, a
|
|
343
|
+
provider or a one-time pass; `dev-auth` for a development sign-in; or what an
|
|
344
|
+
application's own `auth.local.sessions` `update` set). They are written once,
|
|
345
|
+
when the session is created, and never again: the session's `ip` and
|
|
346
|
+
`userAgent` (where it was last seen) move with later requests, these do not.
|
|
347
|
+
- `request.credentialsChangedAt` is `{ password, email }`: when the account's
|
|
348
|
+
password last changed (a reset or a change, also `auth.local.accounts`'
|
|
349
|
+
`updatePassword`) and when its email last changed to a confirmed address
|
|
350
|
+
(using an email-change link). Registering, confirming a new account's email
|
|
351
|
+
and asking for an email change set neither.
|
|
352
|
+
|
|
353
|
+
Each value is ISO text, or "" when unknown. Both are null on a public route
|
|
354
|
+
and with a provider that keeps neither (OIDC, Supabase). A session's `ip` and
|
|
355
|
+
`userAgent` are "" when it was signed in without a request (the server's own
|
|
356
|
+
code), or before local auth kept them: **every session signed in before this
|
|
357
|
+
release has none**. Refuse such a session, so its person signs in again; a
|
|
358
|
+
change from before this release is "" too.
|
|
359
|
+
|
|
360
|
+
```js
|
|
361
|
+
import { AppError } from "@jskit-ai/kernel/server/runtime/errors";
|
|
362
|
+
|
|
363
|
+
const HOUR = 3_600_000;
|
|
364
|
+
|
|
365
|
+
// The browser as the session keeps it: its User-Agent's first 512 characters.
|
|
366
|
+
const browserOf = (request) => String(request.headers["user-agent"] || "").slice(0, 512);
|
|
367
|
+
|
|
368
|
+
function requireFreshSignIn(request) {
|
|
369
|
+
const signIn = request.sessionSignIn;
|
|
370
|
+
const fresh = signIn && signIn.purpose === "normal" && signIn.ip && signIn.userAgent &&
|
|
371
|
+
Date.now() - Date.parse(signIn.at) <= 12 * HOUR && signIn.userAgent === browserOf(request);
|
|
372
|
+
if (!fresh) {
|
|
373
|
+
throw new AppError(403, "Sign in again on this device.", { code: "app.signInAgain" });
|
|
374
|
+
}
|
|
375
|
+
const changed = request.credentialsChangedAt;
|
|
376
|
+
if ([changed?.password, changed?.email].some((at) => at && Date.now() - Date.parse(at) < 72 * HOUR)) {
|
|
377
|
+
throw new AppError(403, "Your password or email changed recently.", { code: "app.recentlyChanged" });
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
How near `request.ip` must be to `signIn.ip` (the same address, a /24, a
|
|
383
|
+
/56) is the application's decision, as is how it trusts its proxies. The
|
|
384
|
+
database backend keeps them in `auth_local_sessions.sign_in_ip` and
|
|
385
|
+
`sign_in_user_agent` and `auth_local_users.password_changed_at` and
|
|
386
|
+
`email_changed_at` (migration `auth_local_db_sign_in_facts`; run
|
|
387
|
+
`npm run db:migrate`), null for rows from before it; the file store in two more
|
|
388
|
+
fields of each session and account line, reading older lines as unknown.
|
|
389
|
+
|
|
328
390
|
## Email confirmation (local auth)
|
|
329
391
|
|
|
330
392
|
Local auth confirms the email address of each account it registers by
|
|
@@ -482,7 +544,12 @@ error.
|
|
|
482
544
|
`markEmailVerified` records that the account proved it owns its email address,
|
|
483
545
|
for example by using an emailed link, in the `email_verified_at` column (run
|
|
484
546
|
`npm run db:migrate`); the first proof is kept, and the account answers it as
|
|
485
|
-
`emailVerifiedAt` (empty until then).
|
|
547
|
+
`emailVerifiedAt` (empty until then). An account also answers
|
|
548
|
+
`passwordChangedAt` and `emailChangedAt`, which `updatePassword` and a used
|
|
549
|
+
email-change link set (see "How a session was signed in" above), and a session
|
|
550
|
+
`signInIp` and `signInUserAgent`, which `create` takes and nothing changes
|
|
551
|
+
after; an application that signs a person in with its own sessions passes the
|
|
552
|
+
request's address and browser there. `deleteExpired` deletes the sessions that
|
|
486
553
|
expired by `now` and answers how many.
|
|
487
554
|
|
|
488
555
|
`disable` stops an account signing in, for example while an application
|
|
@@ -843,7 +910,8 @@ operations answer
|
|
|
843
910
|
`AUTH_OPERATION_UNSUPPORTED`. A sender needs `APP_PUBLIC_URL`, which its links
|
|
844
911
|
name. The database backend keeps the waiting change in
|
|
845
912
|
`auth_local_users.pending_email` (migration `auth_local_db_users_pending_email`)
|
|
846
|
-
and sets `email_verified_at` when the link is used
|
|
913
|
+
and sets `email_verified_at` and `email_changed_at` when the link is used; the
|
|
914
|
+
account's sessions then answer that time as `request.credentialsChangedAt.email`.
|
|
847
915
|
|
|
848
916
|
## Google, Microsoft and GitHub sign-in with local auth
|
|
849
917
|
|
|
@@ -973,6 +1041,17 @@ read after it) is limited to 20 seconds. Past that, the page stops it, says
|
|
|
973
1041
|
"Signing in with the provider took too long, so it was stopped. Try again.",
|
|
974
1042
|
and offers **Try again with** the same provider, to the same page.
|
|
975
1043
|
|
|
1044
|
+
A callback that lands on another page, as on Supabase's Site URL when Supabase
|
|
1045
|
+
refuses the redirect address, is sent on to `/auth/login` with its params, and
|
|
1046
|
+
the sign-in page completes it and returns to that page. A callback is what the
|
|
1047
|
+
sign-in page completes: an authorization `code`, an `access_token` and
|
|
1048
|
+
`refresh_token` pair, or an `error` (or `errorCode`). The params that come with
|
|
1049
|
+
one (`state`, `type`, `token_type`, `expires_in` and the like) prove nothing
|
|
1050
|
+
alone, so a page whose own query names them, such as a list filtered by
|
|
1051
|
+
`?state=all` or `?type=build`, keeps its query on a link or a reload. A signed-in
|
|
1052
|
+
page's own `?code=` or `?error=` still reads as a callback; name such a filter
|
|
1053
|
+
otherwise.
|
|
1054
|
+
|
|
976
1055
|
Never restyle the views' own classes (`.login-screen`, `.auth-card`) or wrap
|
|
977
1056
|
them in a frame of the app's; the brand slot is the one way in.
|
|
978
1057
|
|
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.350`
|
|
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.350`
|
|
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.86`
|
|
41
41
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/assistant/assistant-surface/PATTERN.md)
|
|
42
42
|
- Examples: [example/](../../skills/jskit/references/patterns/assistant/assistant-surface/example/)
|
|
43
43
|
- Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
|
|
@@ -48,7 +48,7 @@ Run one OpenID Connect sign-in for all of an owner's apps as its own JSKIT proje
|
|
|
48
48
|
|
|
49
49
|
- Id: `auth/accounts-hub`
|
|
50
50
|
- Keywords: `accounts hub`, `auth`, `authentication`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
|
|
51
|
-
- Owner: `@jskit-ai/oidc-issuer-core@0.1.
|
|
51
|
+
- Owner: `@jskit-ai/oidc-issuer-core@0.1.51`
|
|
52
52
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/accounts-hub/PATTERN.md)
|
|
53
53
|
- Examples: [example/](../../skills/jskit/references/patterns/auth/accounts-hub/example/)
|
|
54
54
|
- Requires: `@jskit-ai/oidc-issuer-core`
|
|
@@ -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.
|
|
62
|
+
- Owner: `@jskit-ai/auth-web@0.2.56`
|
|
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.
|
|
73
|
+
- Owner: `@jskit-ai/auth-provider-oidc-core@0.2.61`
|
|
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`
|
|
@@ -81,7 +81,7 @@ Add Supabase authentication through normal npm composition, explicit environment
|
|
|
81
81
|
|
|
82
82
|
- Id: `auth/supabase-auth`
|
|
83
83
|
- Keywords: `auth`, `authentication`, `oauth`, `sessions`, `supabase`
|
|
84
|
-
- Owner: `@jskit-ai/auth-provider-supabase-core@0.2.
|
|
84
|
+
- Owner: `@jskit-ai/auth-provider-supabase-core@0.2.40`
|
|
85
85
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/supabase-auth/PATTERN.md)
|
|
86
86
|
- Examples: [example/](../../skills/jskit/references/patterns/auth/supabase-auth/example/)
|
|
87
87
|
- Requires: `@jskit-ai/auth-provider-supabase-core`
|
|
@@ -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.
|
|
249
|
+
- Owner: `@jskit-ai/console-web@0.1.293`
|
|
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`
|
|
@@ -345,7 +345,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
|
|
|
345
345
|
|
|
346
346
|
- Id: `rewards/google-rewarded`
|
|
347
347
|
- Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
|
|
348
|
-
- Owner: `@jskit-ai/rewarded-web@0.2.
|
|
348
|
+
- Owner: `@jskit-ai/rewarded-web@0.2.69`
|
|
349
349
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/rewards/google-rewarded/PATTERN.md)
|
|
350
350
|
- Examples: [example/](../../skills/jskit/references/patterns/rewards/google-rewarded/example/)
|
|
351
351
|
- Requires: `@jskit-ai/rewarded-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.
|
|
359
|
+
- Owner: `@jskit-ai/agent-docs@0.1.350`
|
|
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.
|
|
392
|
+
- Owner: `@jskit-ai/users-web@0.2.77`
|
|
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`
|
|
@@ -400,7 +400,7 @@ Expose user administration and workspace-scoped member operations through app-ow
|
|
|
400
400
|
|
|
401
401
|
- Id: `users/user-administration-server`
|
|
402
402
|
- Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
|
|
403
|
-
- Owner: `@jskit-ai/users-core@0.2.
|
|
403
|
+
- Owner: `@jskit-ai/users-core@0.2.61`
|
|
404
404
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/users/user-administration-server/PATTERN.md)
|
|
405
405
|
- Examples: [example/](../../skills/jskit/references/patterns/users/user-administration-server/example/)
|
|
406
406
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
|
|
@@ -411,7 +411,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
|
|
|
411
411
|
|
|
412
412
|
- Id: `workspaces/workspace-server`
|
|
413
413
|
- Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
|
|
414
|
-
- Owner: `@jskit-ai/workspaces-core@0.2.
|
|
414
|
+
- Owner: `@jskit-ai/workspaces-core@0.2.61`
|
|
415
415
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-server/PATTERN.md)
|
|
416
416
|
- Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-server/example/)
|
|
417
417
|
- Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
|
|
@@ -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.
|
|
425
|
+
- Owner: `@jskit-ai/workspaces-web@0.2.77`
|
|
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`
|
|
@@ -366,6 +366,7 @@ Local functions
|
|
|
366
366
|
- `ignoreClaudeFrame()`
|
|
367
367
|
- `ignoreClaudeFailure()`
|
|
368
368
|
- `reportNoProgress()`
|
|
369
|
+
- `ignoreResponse()`
|
|
369
370
|
|
|
370
371
|
### `src/server/conversation/claudeCommandRun.js`
|
|
371
372
|
Exports
|
|
@@ -374,6 +375,7 @@ Exports
|
|
|
374
375
|
### `src/server/conversation/claudeEntryStop.js`
|
|
375
376
|
Exports
|
|
376
377
|
- `setClaudeTurnState(entry, state, message = "")`
|
|
378
|
+
- `recordClaudeEntryInterrupted({ entry, onEvent, updateState, readResult, resolveCompletion }, reason = "", settled = () => {})`
|
|
377
379
|
- `stopClaudeEntryProcess(turn, reason = "", { preparing = false } = {})`
|
|
378
380
|
|
|
379
381
|
### `src/server/conversation/claudeHistory.js`
|
|
@@ -413,7 +415,6 @@ Local functions
|
|
|
413
415
|
- `liveClaudeBlock(messages, messageId, frame, role)`
|
|
414
416
|
- `claudeResultError(frame, output)`
|
|
415
417
|
- `claudeResultMessage(frame, turnId, result)`
|
|
416
|
-
- `retainStoppedClaudeMessages(messages, pendingAssistantMessages)`
|
|
417
418
|
|
|
418
419
|
### `src/server/conversation/claudeProcess.js`
|
|
419
420
|
Exports
|
|
@@ -475,7 +476,7 @@ Exports
|
|
|
475
476
|
- `waitForClaudeConversationTurn(conversation, input = {}, { signal, defaultTimeoutMs = 180_000, maximumTimeoutMs = Infinity, createError = claudeTurnFailure, interruptedMessage = "Claude was interrupted when the application disconnected." } = {})`
|
|
476
477
|
- `runClaudeRenewalTurn(conversation, { clientMessageId, prompt, outputSchema, expectedThreadId, forbiddenThreadId, requireFreshHistory = false, timeoutMs = 180_000 }, { createError = claudeTurnFailure, unreadableCode = "assistant_claude_turn_unreadable", failedCode = "assistant_claude_turn_failed", acceptedField = "inputAccepted" } = {})`
|
|
477
478
|
- `createClaudeConversationGoals({ conversationId, readHistory, interrupt, send, readRetainedGoal, saveRetainedGoal })`
|
|
478
|
-
- `createClaudeConversationOwner({ configRoot, store, preparation, process, onEvent, createError = claudeTurnFailure, disconnectedMessage = "Claude was interrupted when the application disconnected." })`
|
|
479
|
+
- `createClaudeConversationOwner({ configRoot, store, preparation, process, onEvent, createError = claudeTurnFailure, disconnectedMessage = "Claude was interrupted when the application disconnected.", interruptTimeoutMs })`
|
|
479
480
|
- `type ClaudeConversationEntry`
|
|
480
481
|
- `type ClaudeConversationStore`
|
|
481
482
|
- `type ClaudeConversationPreparation`
|
|
@@ -487,6 +488,16 @@ Local functions
|
|
|
487
488
|
- `promptCanStillArrive(entry, uuid)`
|
|
488
489
|
- `runsNativeWork(entry)`
|
|
489
490
|
|
|
491
|
+
### `src/server/conversation/claudeTurnStop.js`
|
|
492
|
+
Exports
|
|
493
|
+
- `createClaudeStopState()`
|
|
494
|
+
- `stopClaudeTurn(turn, client, stopProcess, { timeoutMs = CLAUDE_INTERRUPT_TIMEOUT_MS, keepProcess = true } = {})`
|
|
495
|
+
- `retainStoppedClaudeMessages(messages, pendingAssistantMessages)`
|
|
496
|
+
- `CLAUDE_INTERRUPT_TIMEOUT_MS`
|
|
497
|
+
Local functions
|
|
498
|
+
- `interruptClaudeTurn(client, { waiting, runningLoop, timeoutMs })`
|
|
499
|
+
- `interruptThenStopClaude(interrupt, stopProcess)`
|
|
500
|
+
|
|
490
501
|
### `src/server/conversation/codexAccountReader.js`
|
|
491
502
|
Exports
|
|
492
503
|
- `createCodexAccountReader({ errorPrefix = "", identityNamespace = "codex-account-v1", secretNamespace = "codex-auth-secret-v1" } = {})`
|
|
@@ -150,6 +150,9 @@ Local functions
|
|
|
150
150
|
- `assertFunction(value, name)`
|
|
151
151
|
- `ignorePolicyDenial()`
|
|
152
152
|
- `resolveNoPolicyContext()`
|
|
153
|
+
- `textOr(value)`
|
|
154
|
+
- `normalizeSessionSignIn(value)`
|
|
155
|
+
- `normalizeCredentialsChangedAt(value)`
|
|
153
156
|
|
|
154
157
|
### `src/server/lib/errors.js`
|
|
155
158
|
Exports
|
|
@@ -239,6 +242,8 @@ Exports
|
|
|
239
242
|
- `type AuthCapabilities`
|
|
240
243
|
- `type AuthActor`
|
|
241
244
|
- `type AuthRequestResult`
|
|
245
|
+
- `type AuthSessionSignIn`
|
|
246
|
+
- `type AuthCredentialsChangedAt`
|
|
242
247
|
- `type AuthProfileProjector`
|
|
243
248
|
- `type AuthInvitationContextResolver`
|
|
244
249
|
- `type AuthRealtimePolicy`
|
|
@@ -255,6 +255,8 @@ Exports
|
|
|
255
255
|
Local functions
|
|
256
256
|
- `nowSeconds()`
|
|
257
257
|
- `requestClient(request)`
|
|
258
|
+
- `sessionSignIn(session)`
|
|
259
|
+
- `credentialsChangedAt(user)`
|
|
258
260
|
- `unauthenticatedAuthResult(clearSession = false)`
|
|
259
261
|
- `clearCookieOptions(config)`
|
|
260
262
|
- `buildAccessToken({ user, session, secret, ttlSeconds = ACCESS_TTL_SECONDS })`
|
|
@@ -380,6 +382,14 @@ Exports
|
|
|
380
382
|
Local functions
|
|
381
383
|
- `sessionCookies(session)`
|
|
382
384
|
|
|
385
|
+
### `test-support/signInFactsScenario.js`
|
|
386
|
+
Exports
|
|
387
|
+
- `FIREFOX`
|
|
388
|
+
- `PHONE`
|
|
389
|
+
- `exerciseSignInFacts(t, backend)`
|
|
390
|
+
Local functions
|
|
391
|
+
- `signInFactsService(backend, env = {})`
|
|
392
|
+
|
|
383
393
|
### `test-support/signInThrottleScenario.js`
|
|
384
394
|
Exports
|
|
385
395
|
- `exerciseSignInThrottle(t, service)`
|
|
@@ -177,6 +177,8 @@ Exports
|
|
|
177
177
|
|
|
178
178
|
### `src/client/runtime/authCallbackUrlParams.js`
|
|
179
179
|
Exports
|
|
180
|
+
- `OAUTH_CALLBACK_PARAM_KEYS`
|
|
181
|
+
- `isOAuthCallback(callbackUrlParams)`
|
|
180
182
|
- `readAuthCallbackParam(callbackUrlParams, key)`
|
|
181
183
|
- `readAuthCallbackUrlParams(url = "")`
|
|
182
184
|
- `stripAuthCallbackParamsFromUrl(url = "", keys = [])`
|
|
@@ -209,7 +211,6 @@ Local functions
|
|
|
209
211
|
- `evaluateAuthGuard({ guard, context, loginRoute, authState = DEFAULT_AUTH_STATE })`
|
|
210
212
|
- `installGuardEvaluator({ loginRoute = DEFAULT_LOGIN_ROUTE, getAuthState })`
|
|
211
213
|
- `normalizeRuntimePath(value, fallback)`
|
|
212
|
-
- `hasOAuthCallbackParams({ search = "", hash = "" } = {})`
|
|
213
214
|
- `stripOAuthCallbackParamsFromSearch(search = "")`
|
|
214
215
|
- `redirectOAuthCallbackToLoginRoute(loginRoute)`
|
|
215
216
|
- `isDocumentVisible()`
|
|
@@ -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.350`
|
|
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.350`
|
|
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.86`
|
|
41
41
|
- Read: [PATTERN.md](patterns/assistant/assistant-surface/PATTERN.md)
|
|
42
42
|
- Examples: [example/](patterns/assistant/assistant-surface/example/)
|
|
43
43
|
- Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
|
|
@@ -48,7 +48,7 @@ Run one OpenID Connect sign-in for all of an owner's apps as its own JSKIT proje
|
|
|
48
48
|
|
|
49
49
|
- Id: `auth/accounts-hub`
|
|
50
50
|
- Keywords: `accounts hub`, `auth`, `authentication`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
|
|
51
|
-
- Owner: `@jskit-ai/oidc-issuer-core@0.1.
|
|
51
|
+
- Owner: `@jskit-ai/oidc-issuer-core@0.1.51`
|
|
52
52
|
- Read: [PATTERN.md](patterns/auth/accounts-hub/PATTERN.md)
|
|
53
53
|
- Examples: [example/](patterns/auth/accounts-hub/example/)
|
|
54
54
|
- Requires: `@jskit-ai/oidc-issuer-core`
|
|
@@ -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.
|
|
62
|
+
- Owner: `@jskit-ai/auth-web@0.2.56`
|
|
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.
|
|
73
|
+
- Owner: `@jskit-ai/auth-provider-oidc-core@0.2.61`
|
|
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`
|
|
@@ -81,7 +81,7 @@ Add Supabase authentication through normal npm composition, explicit environment
|
|
|
81
81
|
|
|
82
82
|
- Id: `auth/supabase-auth`
|
|
83
83
|
- Keywords: `auth`, `authentication`, `oauth`, `sessions`, `supabase`
|
|
84
|
-
- Owner: `@jskit-ai/auth-provider-supabase-core@0.2.
|
|
84
|
+
- Owner: `@jskit-ai/auth-provider-supabase-core@0.2.40`
|
|
85
85
|
- Read: [PATTERN.md](patterns/auth/supabase-auth/PATTERN.md)
|
|
86
86
|
- Examples: [example/](patterns/auth/supabase-auth/example/)
|
|
87
87
|
- Requires: `@jskit-ai/auth-provider-supabase-core`
|
|
@@ -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.
|
|
249
|
+
- Owner: `@jskit-ai/console-web@0.1.293`
|
|
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`
|
|
@@ -345,7 +345,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
|
|
|
345
345
|
|
|
346
346
|
- Id: `rewards/google-rewarded`
|
|
347
347
|
- Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
|
|
348
|
-
- Owner: `@jskit-ai/rewarded-web@0.2.
|
|
348
|
+
- Owner: `@jskit-ai/rewarded-web@0.2.69`
|
|
349
349
|
- Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
|
|
350
350
|
- Examples: [example/](patterns/rewards/google-rewarded/example/)
|
|
351
351
|
- Requires: `@jskit-ai/rewarded-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.
|
|
359
|
+
- Owner: `@jskit-ai/agent-docs@0.1.350`
|
|
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.
|
|
392
|
+
- Owner: `@jskit-ai/users-web@0.2.77`
|
|
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`
|
|
@@ -400,7 +400,7 @@ Expose user administration and workspace-scoped member operations through app-ow
|
|
|
400
400
|
|
|
401
401
|
- Id: `users/user-administration-server`
|
|
402
402
|
- Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
|
|
403
|
-
- Owner: `@jskit-ai/users-core@0.2.
|
|
403
|
+
- Owner: `@jskit-ai/users-core@0.2.61`
|
|
404
404
|
- Read: [PATTERN.md](patterns/users/user-administration-server/PATTERN.md)
|
|
405
405
|
- Examples: [example/](patterns/users/user-administration-server/example/)
|
|
406
406
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
|
|
@@ -411,7 +411,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
|
|
|
411
411
|
|
|
412
412
|
- Id: `workspaces/workspace-server`
|
|
413
413
|
- Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
|
|
414
|
-
- Owner: `@jskit-ai/workspaces-core@0.2.
|
|
414
|
+
- Owner: `@jskit-ai/workspaces-core@0.2.61`
|
|
415
415
|
- Read: [PATTERN.md](patterns/workspaces/workspace-server/PATTERN.md)
|
|
416
416
|
- Examples: [example/](patterns/workspaces/workspace-server/example/)
|
|
417
417
|
- Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
|
|
@@ -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.
|
|
425
|
+
- Owner: `@jskit-ai/workspaces-web@0.2.77`
|
|
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`
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@jskit-ai/crud-core": "0.2.50",
|
|
14
14
|
"@jskit-ai/resource-crud-core": "0.1.225",
|
|
15
|
-
"@jskit-ai/users-core": "0.2.
|
|
16
|
-
"@jskit-ai/workspaces-core": "0.2.
|
|
15
|
+
"@jskit-ai/users-core": "0.2.61",
|
|
16
|
+
"@jskit-ai/workspaces-core": "0.2.61"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@jskit-ai/kernel": "0.2.32",
|