@jskit-ai/agent-docs 0.1.353 → 0.1.355
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.md +70 -0
- package/guide/agent/app-setup/authentication.md +157 -2
- package/guide/agent/app-setup/database-layer.md +49 -15
- package/guide/agent/app-setup/service-keys.md +103 -0
- package/guide/agent/app-setup/upgrading-jskit.md +17 -5
- package/guide/agent/framework/data-access.md +13 -0
- package/guide/agent/framework/material-3.md +3 -4
- package/guide/agent/framework/speed-pass.md +7 -1
- package/guide/agent/framework/typed-features.md +56 -25
- package/guide/agent/index.md +2 -0
- package/package.json +1 -1
- package/patterns/feature-package/example/booking-engine/package.json +1 -1
- package/patterns/minimal-foundation/example/package.json +6 -6
- package/patterns/shell-foundation/example/package.json +7 -7
- package/patterns/shell-foundation/example/packages/main/package.json +1 -1
- package/patterns/shell-foundation/example/src/components/menus/TabLinkItem.vue +5 -0
- package/reference/autogen/PATTERN_INDEX.md +49 -38
- package/reference/autogen/packages/agent-runtime.md +1 -1
- package/reference/autogen/packages/assistant-core.md +44 -8
- package/reference/autogen/packages/assistant-runtime.md +25 -0
- package/reference/autogen/packages/assistant-voice-sherpa.md +2 -1
- package/reference/autogen/packages/auth-core.md +4 -0
- package/reference/autogen/packages/auth-provider-local-core.md +13 -0
- package/reference/autogen/packages/auth-web.md +60 -16
- package/reference/autogen/packages/crud-core.md +3 -1
- package/reference/autogen/packages/database-runtime.md +1 -0
- package/reference/autogen/packages/http-web.md +1 -0
- package/reference/autogen/packages/kernel.md +1 -1
- package/reference/autogen/packages/material-web.md +2 -0
- package/reference/autogen/packages/realtime.md +2 -1
- package/reference/autogen/packages/resource-runtime.md +9 -0
- package/reference/autogen/packages/shell-web.md +35 -0
- package/reference/autogen/tooling/jskit-catalog.md +21 -8
- package/reference/autogen/tooling/testUtils.md +1 -0
- package/skills/jskit/references/data-access.md +13 -0
- package/skills/jskit/references/database-layer.md +49 -15
- package/skills/jskit/references/heuristics/placements.md +1 -0
- package/skills/jskit/references/heuristics/row-policies.md +1 -1
- package/skills/jskit/references/heuristics/ui-testing.md +3 -3
- package/skills/jskit/references/material-3.md +3 -4
- package/skills/jskit/references/pattern-index.md +49 -38
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +6 -6
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +7 -7
- package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/components/menus/TabLinkItem.vue +5 -0
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
- package/skills/jskit/references/patterns/auth/auth-surface/PATTERN.md +3 -0
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/own-design-sign-in/PATTERN.md +141 -0
- package/skills/jskit/references/patterns/auth/own-design-sign-in/example/src/components/ConfirmItsYouDialog.vue +182 -0
- package/skills/jskit/references/patterns/auth/own-design-sign-in/example/src/theme/tokens.css +35 -0
- package/skills/jskit/references/patterns/auth/own-design-sign-in/example/src/views/auth/LoginView.vue +473 -0
- package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
- package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -5
- package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
- package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookListPage.vue +1 -1
- package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md +5 -1
- package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
- package/skills/jskit/references/patterns/shell/application-shell/example/src/components/menus/TabLinkItem.vue +5 -0
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
- package/skills/jskit/references/speed-pass.md +7 -1
- package/skills/jskit/references/typed-features.md +56 -25
|
@@ -124,7 +124,7 @@ Exports
|
|
|
124
124
|
|
|
125
125
|
### `src/server/summaryStore.js`
|
|
126
126
|
Exports
|
|
127
|
-
- `createSummaries({ resources, systemContext, model, app = "the app", history, track = runSummaryUnmetered, notices, channel = "agent-summaries", summarize = (input) => writeSummary({ model, app, ...input, limits }),
|
|
127
|
+
- `createSummaries({ resources, systemContext, model, app = "the app", history, track = runSummaryUnmetered, notices, channel = "agent-summaries", limits = SUMMARY_LIMITS, summarize = (input) => writeSummary({ model, app, ...input, limits }), ...removed })`
|
|
128
128
|
Local functions
|
|
129
129
|
- `runSummaryUnmetered(_conversationId, work)`
|
|
130
130
|
|
|
@@ -356,6 +356,10 @@ Exports
|
|
|
356
356
|
Local functions
|
|
357
357
|
- `boundedResponseSchema(outputSchema, descriptors)`
|
|
358
358
|
|
|
359
|
+
### `src/server/conversation/claudeAssistantRoles.js`
|
|
360
|
+
Exports
|
|
361
|
+
- `createClaudeAssistantRoles({ roles, pending, started, messages, publishMessage })`
|
|
362
|
+
|
|
359
363
|
### `src/server/conversation/claudeClient.js`
|
|
360
364
|
Exports
|
|
361
365
|
- `CLAUDE_JSON_MAX_FRAME_BYTES`
|
|
@@ -378,10 +382,19 @@ Exports
|
|
|
378
382
|
- `recordClaudeEntryInterrupted({ entry, onEvent, updateState, readResult, resolveCompletion }, reason = "", settled = () => {}, { completed = false } = {})`
|
|
379
383
|
- `stopClaudeEntryProcess(turn, reason = "", { preparing = false } = {})`
|
|
380
384
|
|
|
385
|
+
### `src/server/conversation/claudeFrames.js`
|
|
386
|
+
Exports
|
|
387
|
+
- `claudeAuthoredMessage(frame)`
|
|
388
|
+
- `claudeInterruptMarker(frame)`
|
|
389
|
+
- `claudeNoResponsePlaceholder(frame)`
|
|
390
|
+
- `claudeUserText(content)`
|
|
391
|
+
|
|
381
392
|
### `src/server/conversation/claudeHistory.js`
|
|
382
393
|
Exports
|
|
383
394
|
- `claudeNativeMessageId(id)`
|
|
384
395
|
- `listClaudeConversationStorage({ configRoot, binding })`
|
|
396
|
+
- `createClaudeHistoryState()`
|
|
397
|
+
- `ownClaudeHistory(owner, { busy = () => false } = {})`
|
|
385
398
|
- `deleteClaudeConversationHistory({ configRoot, workdir, conversationId })`
|
|
386
399
|
- `retireClaudeConversationHistory({ configRoot, binding, beforeDelete, requireIdle, signal })`
|
|
387
400
|
- `claudeHistoryPath({ configRoot, workdir, conversationId })`
|
|
@@ -392,13 +405,20 @@ Exports
|
|
|
392
405
|
- `matchingClaudeProjectDirectories(names, directory)`
|
|
393
406
|
Local functions
|
|
394
407
|
- `claudeProjectDirectoryName(canonical)`
|
|
395
|
-
- `
|
|
396
|
-
- `claudeAuthoredMessage(frame)`
|
|
397
|
-
- `claudeNoResponsePlaceholder(frame)`
|
|
408
|
+
- `retainedClaudeBlock(block)`
|
|
398
409
|
- `retainedClaudeFrame(frame)`
|
|
399
|
-
- `
|
|
410
|
+
- `historyState(file, own)`
|
|
411
|
+
- `claudeHistoryFrames(file, state)`
|
|
400
412
|
- `completeHistoryOffset(handle, start, size)`
|
|
401
|
-
- `readClaudeHistoryFrames(file)`
|
|
413
|
+
- `readClaudeHistoryFrames(file, state)`
|
|
414
|
+
- `emptyHistoryScan(frames)`
|
|
415
|
+
- `extendHistoryScan(scan, foldedUpTo, foldedMessageIds)`
|
|
416
|
+
- `emptyHistoryFold()`
|
|
417
|
+
- `copiedScalars(scalars)`
|
|
418
|
+
- `foldCheckpoint(fold, at)`
|
|
419
|
+
- `rewindFold(fold, checkpoint)`
|
|
420
|
+
- `foldHistoryFrame(fold, frame, scan, options, checkpoint)`
|
|
421
|
+
- `projectClaudeHistory(frames, options, state = null)`
|
|
402
422
|
- `claudeTurnAnswered(frames, byId, { turnId, lastMessageId })`
|
|
403
423
|
|
|
404
424
|
### `src/server/conversation/claudeNativeTurn.js`
|
|
@@ -978,6 +998,7 @@ Local functions
|
|
|
978
998
|
|
|
979
999
|
### `src/server/conversation/codexRuntime.js`
|
|
980
1000
|
Exports
|
|
1001
|
+
- `waitForCodexAppServerEndpoint(socketPath, { timeoutMs, probe })`
|
|
981
1002
|
- `createCodexAppServerRuntime({ execution, credentials, configuration = {} })`
|
|
982
1003
|
- `type CodexRuntimeExecution`
|
|
983
1004
|
- `type CodexProcessIdentity`
|
|
@@ -1989,6 +2010,9 @@ Exports
|
|
|
1989
2010
|
- `writeNdjson`
|
|
1990
2011
|
- `resolveWorkspaceSlug`
|
|
1991
2012
|
- `createServiceToolCatalog`
|
|
2013
|
+
- `MCP_PROTOCOL_VERSIONS`
|
|
2014
|
+
- `MCP_TOOL_CATALOG_OPTIONS`
|
|
2015
|
+
- `createMcpToolServer`
|
|
1992
2016
|
- `runBoundedAssistantToolLoop`
|
|
1993
2017
|
- `readAssistantResponseEnvelope`
|
|
1994
2018
|
- `readPartialAssistantReply`
|
|
@@ -2005,6 +2029,18 @@ Exports
|
|
|
2005
2029
|
Local functions
|
|
2006
2030
|
- `sdkMessages(messages)`
|
|
2007
2031
|
|
|
2032
|
+
### `src/server/lib/mcpToolServer.js`
|
|
2033
|
+
Exports
|
|
2034
|
+
- `MCP_PROTOCOL_VERSIONS`
|
|
2035
|
+
- `MCP_TOOL_CATALOG_OPTIONS`
|
|
2036
|
+
- `createMcpToolServer({ catalog, serverInfo, pageSize = DEFAULT_TOOL_PAGE_SIZE })`
|
|
2037
|
+
Local functions
|
|
2038
|
+
- `rpcResult(id, result)`
|
|
2039
|
+
- `rpcError(id, code, message)`
|
|
2040
|
+
- `toMcpTool(descriptor)`
|
|
2041
|
+
- `encodeCursor(offset)`
|
|
2042
|
+
- `decodeCursor(cursor, total)`
|
|
2043
|
+
|
|
2008
2044
|
### `src/server/lib/ndjson.js`
|
|
2009
2045
|
Exports
|
|
2010
2046
|
- `NDJSON_CONTENT_TYPE`
|
|
@@ -2066,7 +2102,7 @@ Exports
|
|
|
2066
2102
|
|
|
2067
2103
|
### `src/server/lib/serviceToolCatalog.js`
|
|
2068
2104
|
Exports
|
|
2069
|
-
- `createServiceToolCatalog(actions, { isActionAvailable, barredActionIds = [], skipActionPrefixes = [], maxDirectTools: rawMaxDirectTools = DEFAULT_MAX_DIRECT_TOOLS, discoveryPageSize: rawDiscoveryPageSize = DEFAULT_DISCOVERY_PAGE_SIZE, maxToolArgumentBytes: rawMaxToolArgumentBytes = DEFAULT_MAX_TOOL_ARGUMENT_BYTES, maxToolResultBytes: rawMaxToolResultBytes = DEFAULT_MAX_TOOL_RESULT_BYTES } = {})`
|
|
2105
|
+
- `createServiceToolCatalog(actions, { isActionAvailable, barredActionIds = [], skipActionPrefixes = [], maxDirectTools: rawMaxDirectTools = DEFAULT_MAX_DIRECT_TOOLS, discoveryPageSize: rawDiscoveryPageSize = DEFAULT_DISCOVERY_PAGE_SIZE, maxToolArgumentBytes: rawMaxToolArgumentBytes = DEFAULT_MAX_TOOL_ARGUMENT_BYTES, maxToolResultBytes: rawMaxToolResultBytes = DEFAULT_MAX_TOOL_RESULT_BYTES, includeActionsWithoutOutput = false } = {})`
|
|
2070
2106
|
- `DEFAULT_MAX_TOOL_ARGUMENT_BYTES`
|
|
2071
2107
|
- `DEFAULT_MAX_TOOL_RESULT_BYTES`
|
|
2072
2108
|
- `DISCOVERY_TOOL_DESCRIPTORS`
|
|
@@ -2094,7 +2130,7 @@ Local functions
|
|
|
2094
2130
|
Exports
|
|
2095
2131
|
- `AUTOMATION_CHANNEL`
|
|
2096
2132
|
- `normalizePermissionSpec(permission)`
|
|
2097
|
-
- `resolveActionToolEntries(actions, { barredActionIds = [], skipActionPrefixes = [] } = {})`
|
|
2133
|
+
- `resolveActionToolEntries(actions, { barredActionIds = [], skipActionPrefixes = [], includeActionsWithoutOutput = false } = {})`
|
|
2098
2134
|
Local functions
|
|
2099
2135
|
- `normalizeAssistantExtension(value)`
|
|
2100
2136
|
- `normalizeAssistantActionExtension(action = {})`
|
|
@@ -2105,7 +2141,7 @@ Local functions
|
|
|
2105
2141
|
- `resolveUniqueToolName(baseName, used)`
|
|
2106
2142
|
- `hasAutomationChannel(action = {})`
|
|
2107
2143
|
- `normalizeSurfaceList(value)`
|
|
2108
|
-
- `resolveActionBackedToolEntries(actions)`
|
|
2144
|
+
- `resolveActionBackedToolEntries(actions, { includeActionsWithoutOutput = false } = {})`
|
|
2109
2145
|
|
|
2110
2146
|
### `src/server/types.js`
|
|
2111
2147
|
Exports
|
|
@@ -150,6 +150,8 @@ Exports
|
|
|
150
150
|
- `refreshedHistoryPages`
|
|
151
151
|
- `patchLoadedHistoryPages(pages, patch)`
|
|
152
152
|
Local functions
|
|
153
|
+
- `streamMessages(snapshot)`
|
|
154
|
+
- `applyStreamDelta(base, delta)`
|
|
153
155
|
- `ignoreConversationEvent()`
|
|
154
156
|
- `ignoreSubscriptionError()`
|
|
155
157
|
|
|
@@ -187,6 +189,10 @@ Local functions
|
|
|
187
189
|
- `listConversationMessagesDocument(chatService, input, context)`
|
|
188
190
|
- `createConversationActions({ conversationOperations, conversationDataSchema, conversationConfigurationSchema, conversationSelectionSchema, conversationReplacementSchema, runtimeSurfaces })`
|
|
189
191
|
|
|
192
|
+
### `src/server/AssistantMcpFeature.js`
|
|
193
|
+
Exports
|
|
194
|
+
- `AssistantMcpFeature`
|
|
195
|
+
|
|
190
196
|
### `src/server/AssistantProvider.js`
|
|
191
197
|
Exports
|
|
192
198
|
- `AssistantFeature`
|
|
@@ -248,6 +254,11 @@ Exports
|
|
|
248
254
|
Exports
|
|
249
255
|
- `AssistantFeature`
|
|
250
256
|
- `AssistantStoreFeature`
|
|
257
|
+
- `AssistantMcpFeature`
|
|
258
|
+
- `ASSISTANT_MCP_ACTION_ID`
|
|
259
|
+
- `createAssistantMcp`
|
|
260
|
+
- `createAssistantMcpActions`
|
|
261
|
+
- `registerAssistantMcpRoutes`
|
|
251
262
|
- `createAssistantActions`
|
|
252
263
|
- `assistantConversationGoalBodyValidator`
|
|
253
264
|
- `registerAssistantRoutes`
|
|
@@ -272,10 +283,23 @@ Exports
|
|
|
272
283
|
- `assistantSurfaceRouteParamsValidator`
|
|
273
284
|
- `assistantTargetSurfaceInputValidator`
|
|
274
285
|
|
|
286
|
+
### `src/server/mcp.js`
|
|
287
|
+
Exports
|
|
288
|
+
- `ASSISTANT_MCP_ACTION_ID`
|
|
289
|
+
- `createAssistantMcp({ actions, config, workspaceScopeSupport = null })`
|
|
290
|
+
- `createAssistantMcpActions({ mcp = null } = {})`
|
|
291
|
+
- `registerAssistantMcpRoutes(router, { mcp = null } = {})`
|
|
292
|
+
Local functions
|
|
293
|
+
- `refuseStream(_request, reply)`
|
|
294
|
+
|
|
275
295
|
### `src/server/registerConversationSubscriptions.js`
|
|
276
296
|
Exports
|
|
277
297
|
- `registerConversationSubscriptions({ realtime, events, actions, config = {}, logger = silentLogger, workspaceScopeSupport = null, subscribeActionId = actionIds.conversationSubscribe, requestPolicy = "authenticated", diagnostics = false } = {})`
|
|
278
298
|
Local functions
|
|
299
|
+
- `streamState(snapshot)`
|
|
300
|
+
- `isStreamSnapshot(snapshot)`
|
|
301
|
+
- `sameBesidesText(left, right)`
|
|
302
|
+
- `streamDelta(sent, next, snapshot)`
|
|
279
303
|
- `requireSubscriptionId(input)`
|
|
280
304
|
- `subscriptionError(error)`
|
|
281
305
|
- `releaseNoDiagnostics()`
|
|
@@ -510,6 +534,7 @@ Exports
|
|
|
510
534
|
- `ASSISTANT_CONVERSATION_SUBSCRIBE`
|
|
511
535
|
- `ASSISTANT_CONVERSATION_UNSUBSCRIBE`
|
|
512
536
|
- `ASSISTANT_CONVERSATION_EVENT`
|
|
537
|
+
- `ASSISTANT_CONVERSATION_RESYNC`
|
|
513
538
|
|
|
514
539
|
### `src/shared/index.js`
|
|
515
540
|
Exports
|
|
@@ -42,10 +42,11 @@ Local functions
|
|
|
42
42
|
|
|
43
43
|
### `src/recognitionSession.js`
|
|
44
44
|
Exports
|
|
45
|
-
- `createRecognitionSession(recognizer, { vocabulary = {}, minimumRms = 0, tailPaddingSeconds = 0.
|
|
45
|
+
- `createRecognitionSession(recognizer, { vocabulary = {}, minimumRms = 0, tailPaddingSeconds = 0.75, onPartial = ignoreRecognizedText, onEndpoint = ignoreRecognizedText, continuous = false } = {})`
|
|
46
46
|
- `warmRecognizer(recognizer)`
|
|
47
47
|
Local functions
|
|
48
48
|
- `ignoreRecognizedText()`
|
|
49
|
+
- `createDither()`
|
|
49
50
|
- `decodeAvailable(recognizer, stream, vocabulary)`
|
|
50
51
|
|
|
51
52
|
### `src/recognitionWorker.js`
|
|
@@ -153,6 +153,8 @@ Local functions
|
|
|
153
153
|
- `textOr(value)`
|
|
154
154
|
- `normalizeSessionSignIn(value)`
|
|
155
155
|
- `normalizeCredentialsChangedAt(value)`
|
|
156
|
+
- `normalizeVia(value)`
|
|
157
|
+
- `normalizeRefusal(value)`
|
|
156
158
|
|
|
157
159
|
### `src/server/lib/errors.js`
|
|
158
160
|
Exports
|
|
@@ -195,6 +197,8 @@ Exports
|
|
|
195
197
|
- `resolveAuthPolicyMeta(input = {})`
|
|
196
198
|
- `withAuthPolicy(meta = {})`
|
|
197
199
|
- `mergeAuthPolicy(routeOptions = {}, meta = {})`
|
|
200
|
+
Local functions
|
|
201
|
+
- `resolveRouteCredentials(value)`
|
|
198
202
|
|
|
199
203
|
### `src/server/lib/routeVisibilityResolver.js`
|
|
200
204
|
Exports
|
|
@@ -155,6 +155,9 @@ Exports
|
|
|
155
155
|
- `createLocalFileBackend`
|
|
156
156
|
- `createLoggedSecondFactorEvents`
|
|
157
157
|
- `createLoggedSignInEvents`
|
|
158
|
+
- `ACT_AS_USER_HEADER`
|
|
159
|
+
- `SERVICE_KEY_PURPOSE`
|
|
160
|
+
- `createServiceKeyRecord`
|
|
158
161
|
- `SETUP_CODE_ENV`
|
|
159
162
|
- `SETUP_CODE_FILE`
|
|
160
163
|
- `createFirstAccountSetup`
|
|
@@ -246,6 +249,16 @@ Exports
|
|
|
246
249
|
Exports
|
|
247
250
|
- `createLocalAuthService({ backend, config, confirmationMode = confirmEveryRegistrationByLink, confirmationSender, deliveries: givenDeliveries = null, emailChangeSender, firstAccountSetup: givenFirstAccountSetup = null, invitationContextResolver, logger, passIdentity = noPassIdentities, passwordStrategy, profileProjector, recoverySender, secondFactorEvents, signInEvents })`
|
|
248
251
|
|
|
252
|
+
### `src/server/lib/serviceKeys.js`
|
|
253
|
+
Exports
|
|
254
|
+
- `ACT_AS_USER_HEADER`
|
|
255
|
+
- `SERVICE_KEY_PURPOSE`
|
|
256
|
+
- `createServiceKeyRecord({ userId, now = Date.now(), days = DEFAULT_LIFETIME_DAYS } = /** @type {any} */ ({}))`
|
|
257
|
+
- `resolveServiceKeyCall({ backend, sessionSecret }, request)`
|
|
258
|
+
- `serviceKeyRefusal(reason, actAs = "")`
|
|
259
|
+
Local functions
|
|
260
|
+
- `userByEmail(users, email)`
|
|
261
|
+
|
|
249
262
|
### `src/server/lib/sessions.js`
|
|
250
263
|
Exports
|
|
251
264
|
- `cookieOptions({ isStagingOrProduction, cookieSameSite }, maxAge)`
|
|
@@ -101,29 +101,33 @@ Exports
|
|
|
101
101
|
Local functions
|
|
102
102
|
- `validationFieldMessages(validationResult)`
|
|
103
103
|
|
|
104
|
-
### `src/client/composables/
|
|
104
|
+
### `src/client/composables/useEmailChangeView.js`
|
|
105
105
|
Exports
|
|
106
|
-
- `
|
|
106
|
+
- `useEmailChangeView()`
|
|
107
107
|
|
|
108
|
-
### `src/client/composables/
|
|
108
|
+
### `src/client/composables/useLoginView.js`
|
|
109
109
|
Exports
|
|
110
|
-
- `
|
|
110
|
+
- `useLoginView({ fallbackReturnTo = "/" } = {})`
|
|
111
111
|
|
|
112
|
-
### `src/client/composables/
|
|
112
|
+
### `src/client/composables/useResetPasswordView.js`
|
|
113
113
|
Exports
|
|
114
|
-
- `
|
|
114
|
+
- `useResetPasswordView()`
|
|
115
115
|
|
|
116
|
-
### `src/client/composables/
|
|
116
|
+
### `src/client/composables/useSecondFactorProof.js`
|
|
117
117
|
Exports
|
|
118
|
-
- `
|
|
118
|
+
- `useSecondFactorProof({ submit, onDone })`
|
|
119
119
|
|
|
120
|
-
### `src/client/composables/
|
|
120
|
+
### `src/client/composables/useSecondFactorSettings.js`
|
|
121
121
|
Exports
|
|
122
|
-
- `
|
|
122
|
+
- `useSecondFactorSettings()`
|
|
123
123
|
|
|
124
|
-
### `src/client/composables/
|
|
124
|
+
### `src/client/composables/useSecondFactorStepUp.js`
|
|
125
125
|
Exports
|
|
126
|
-
- `
|
|
126
|
+
- `useSecondFactorStepUp()`
|
|
127
|
+
|
|
128
|
+
### `src/client/composables/useSignOutView.js`
|
|
129
|
+
Exports
|
|
130
|
+
- `useSignOutView()`
|
|
127
131
|
Local functions
|
|
128
132
|
- `readReturnToPathFromLocation({ allowedOrigins = [] } = {})`
|
|
129
133
|
- `navigateToPath(path, { replace = true } = {})`
|
|
@@ -288,10 +292,6 @@ Exports
|
|
|
288
292
|
- `startSecondFactorSetup()`
|
|
289
293
|
- `verifySecondFactor(proof)`
|
|
290
294
|
|
|
291
|
-
### `src/client/runtime/useLoginView.js`
|
|
292
|
-
Exports
|
|
293
|
-
- `useLoginView({ fallbackReturnTo = "/" } = {})`
|
|
294
|
-
|
|
295
295
|
### `src/client/runtime/useSignOut.js`
|
|
296
296
|
Exports
|
|
297
297
|
- `useSignOut({ currentSurface, goToEntry, authGuardRuntime = useRequiredAuthGuardRuntime(), returnTo, resolveReturnToPath })`
|
|
@@ -373,6 +373,10 @@ Exports
|
|
|
373
373
|
Exports
|
|
374
374
|
- None
|
|
375
375
|
|
|
376
|
+
### `src/client/views/SecondFactorProofFields.vue`
|
|
377
|
+
Exports
|
|
378
|
+
- None
|
|
379
|
+
|
|
376
380
|
### `src/client/views/SecondFactorProofForm.vue`
|
|
377
381
|
Exports
|
|
378
382
|
- None
|
|
@@ -463,6 +467,34 @@ Exports
|
|
|
463
467
|
|
|
464
468
|
### fixtures
|
|
465
469
|
|
|
470
|
+
### `fixtures/app-ui-kit/KitButton.vue`
|
|
471
|
+
Exports
|
|
472
|
+
- None
|
|
473
|
+
|
|
474
|
+
### `fixtures/app-ui-kit/KitDialog.vue`
|
|
475
|
+
Exports
|
|
476
|
+
- None
|
|
477
|
+
Local functions
|
|
478
|
+
- `show(open)`
|
|
479
|
+
|
|
480
|
+
### `fixtures/app-ui-kit/main.js`
|
|
481
|
+
Exports
|
|
482
|
+
- None
|
|
483
|
+
|
|
484
|
+
### `fixtures/app-ui-kit/vite.config.mjs`
|
|
485
|
+
Exports
|
|
486
|
+
- None
|
|
487
|
+
|
|
488
|
+
### `fixtures/own-design-sign-in/main.js`
|
|
489
|
+
Exports
|
|
490
|
+
- None
|
|
491
|
+
|
|
492
|
+
### `fixtures/own-design-sign-in/vite.config.mjs`
|
|
493
|
+
Exports
|
|
494
|
+
- None
|
|
495
|
+
Local functions
|
|
496
|
+
- `patternSource(pattern, file)`
|
|
497
|
+
|
|
466
498
|
### `fixtures/sign-in/main.js`
|
|
467
499
|
Exports
|
|
468
500
|
- None
|
|
@@ -529,3 +561,15 @@ Exports
|
|
|
529
561
|
### `patterns/auth-surface/example/src/views/auth/SignOutView.vue`
|
|
530
562
|
Exports
|
|
531
563
|
- None
|
|
564
|
+
|
|
565
|
+
### `patterns/own-design-sign-in/example/src/components/ConfirmItsYouDialog.vue`
|
|
566
|
+
Exports
|
|
567
|
+
- None
|
|
568
|
+
Local functions
|
|
569
|
+
- `switchCodeKind()`
|
|
570
|
+
|
|
571
|
+
### `patterns/own-design-sign-in/example/src/views/auth/LoginView.vue`
|
|
572
|
+
Exports
|
|
573
|
+
- None
|
|
574
|
+
Local functions
|
|
575
|
+
- `providerName(providerId)`
|
|
@@ -53,7 +53,7 @@ Local functions
|
|
|
53
53
|
### `src/server/jsonApiModule/actions.js`
|
|
54
54
|
Exports
|
|
55
55
|
- `assertCrudOperationName(operation = "")`
|
|
56
|
-
- `createCrudJsonApiActionDefinitions({ namespace, resource, surface, permissionForOperation, operations, scopeInputValidator, listFilterQueryValidator, operationInputs, actions, servedOverHttp })`
|
|
56
|
+
- `createCrudJsonApiActionDefinitions({ namespace, resource, surface, permissionForOperation, operations, scopeInputValidator, listFilterQueryValidator, operationInputs, actions, servedOverHttp, assistantHints = undefined })`
|
|
57
57
|
- `createCrudJsonApiActions({ namespace, resource, repository, service, scopeInputKeys, operationLifecycle, dependencies: actionDependencies, realtimeAudience, definitions: builtDefinitions, includedTypes = () => new Map(), ...definitionOptions })`
|
|
58
58
|
- `normalizeCrudOperationLifecycle(value)`
|
|
59
59
|
Local functions
|
|
@@ -61,7 +61,9 @@ Local functions
|
|
|
61
61
|
- `buildActionInput(resource, operation, scopeInputValidator, listFilterQueryValidator, operationInputs)`
|
|
62
62
|
- `omitInputKeys(input, keys)`
|
|
63
63
|
- `buildLifecycleContext(value)`
|
|
64
|
+
- `withRouteSummary(definition)`
|
|
64
65
|
- `normalizeAdditionalActions(definitions, { namespace, surface, permissionForAction, scopeInputValidator, servedOverHttp })`
|
|
66
|
+
- `normalizeOperationAssistantHints(hints, operations)`
|
|
65
67
|
|
|
66
68
|
### `src/server/jsonApiModule/assistantExtension.js`
|
|
67
69
|
Exports
|
|
@@ -86,6 +86,7 @@ Local functions
|
|
|
86
86
|
Exports
|
|
87
87
|
- `POSTGRES_MAINTENANCE_DATABASE`
|
|
88
88
|
- `dropCopiesIfThrows(knexConfig, databases, work)`
|
|
89
|
+
- `dropLeftTestDatabaseCopies(knexConfig, name, count)`
|
|
89
90
|
- `dropTestDatabaseCopies(knexConfig, databases)`
|
|
90
91
|
- `endTestDatabaseRun(knexConfig, databases, directory)`
|
|
91
92
|
- `rememberTestDatabaseCopies(knexConfig, databases)`
|
|
@@ -941,6 +941,7 @@ Exports
|
|
|
941
941
|
|
|
942
942
|
### `server/http/responseSerializerFactory.js`
|
|
943
943
|
Exports
|
|
944
|
+
- `branchValidator(validator, compiledBranches)`
|
|
944
945
|
- `createCachedResponseSerializerFactory(buildSerializer)`
|
|
945
946
|
- `schemaCacheKey(schema)`
|
|
946
947
|
Local functions
|
|
@@ -951,7 +952,6 @@ Local functions
|
|
|
951
952
|
- `everyRefResolves(schema, externalSchemas)`
|
|
952
953
|
- `namesNothingOutside(value)`
|
|
953
954
|
- `selfContainedBranch(ajv, ref)`
|
|
954
|
-
- `branchValidator(validator, compiledBranches)`
|
|
955
955
|
- `compiledOnFirstUse(build, options, key)`
|
|
956
956
|
|
|
957
957
|
### `server/http/securityHeaders.js`
|
|
@@ -70,7 +70,7 @@ Exports
|
|
|
70
70
|
- `createAudienceContributors()`
|
|
71
71
|
- `createSocketRequest(socket)`
|
|
72
72
|
- `realtimeAuthenticationRequired(authService)`
|
|
73
|
-
- `revalidateSocket({ socket, authService, audiences, request, authenticateRequest })`
|
|
73
|
+
- `revalidateSocket({ socket, authService, audiences, request, authenticateRequest, reuseHeld = false })`
|
|
74
74
|
- `registerSocketAudienceBootstrap({ io, logger, authService, audiences })`
|
|
75
75
|
- `resolveAudienceTargets(audience, event, { logger, audienceScope })`
|
|
76
76
|
- `type AuthService`
|
|
@@ -97,6 +97,7 @@ Local functions
|
|
|
97
97
|
- `resolveSocketAuthentication(authService, socket, request = createSocketRequest(socket), authenticateRequest = authenticateWithoutRefresh(authService))`
|
|
98
98
|
- `sessionRefreshRequiredError()`
|
|
99
99
|
- `rememberSocketActorId(socket, actorId)`
|
|
100
|
+
- `holdUntilLoginEnds(socket, actor, holdSocket, logger)`
|
|
100
101
|
- `registerSocketAuthentication({ io, logger, authService })`
|
|
101
102
|
- `joinContributedRooms(socket, actorId, audiences)`
|
|
102
103
|
|
|
@@ -14,6 +14,15 @@ Use this on demand; do not load the full index at startup.
|
|
|
14
14
|
|
|
15
15
|
### src
|
|
16
16
|
|
|
17
|
+
### `src/server/anyapi.js`
|
|
18
|
+
Exports
|
|
19
|
+
- `AnyapiRegistry`
|
|
20
|
+
- `JsonRestApi`
|
|
21
|
+
- `RestApiAnyapiKnexPlugin`
|
|
22
|
+
- `RestApiPlugin`
|
|
23
|
+
- `RowPolicyPlugin`
|
|
24
|
+
- `ensureAnyApiSchema`
|
|
25
|
+
|
|
17
26
|
### `src/server/changeHorizon.js`
|
|
18
27
|
Exports
|
|
19
28
|
- `readChangeHorizon(name, db)`
|
|
@@ -730,6 +730,41 @@ Exports
|
|
|
730
730
|
- `type ShellRealtime`
|
|
731
731
|
- `type ShellLayoutStateProps`
|
|
732
732
|
- `type ShellNavigationLinkProps`
|
|
733
|
+
- `type ShellUi`
|
|
734
|
+
|
|
735
|
+
### `src/client/ui/index.js`
|
|
736
|
+
Exports
|
|
737
|
+
- `MATERIAL_TEXT`
|
|
738
|
+
- `SHELL_UI_KEY`
|
|
739
|
+
- `SHELL_UI_ROLES`
|
|
740
|
+
- `SHELL_UI_TEXT_ROLES`
|
|
741
|
+
- `ShellUiButton`
|
|
742
|
+
- `ShellUiDialog`
|
|
743
|
+
- `provideShellUi`
|
|
744
|
+
- `useShellUi`
|
|
745
|
+
|
|
746
|
+
### `src/client/ui/shellUi.js`
|
|
747
|
+
Exports
|
|
748
|
+
- `MATERIAL_TEXT`
|
|
749
|
+
- `SHELL_UI_KEY`
|
|
750
|
+
- `SHELL_UI_ROLES`
|
|
751
|
+
- `SHELL_UI_TEXT_ROLES`
|
|
752
|
+
- `defineShellUi(defaults)`
|
|
753
|
+
- `resolveShellUi(kit, defaults)`
|
|
754
|
+
- `useShellUiText()`
|
|
755
|
+
Local functions
|
|
756
|
+
- `isRecord(value)`
|
|
757
|
+
- `shown(value)`
|
|
758
|
+
- `component(role, value)`
|
|
759
|
+
- `textClasses(text)`
|
|
760
|
+
|
|
761
|
+
### `src/client/ui/ShellUiButton.vue`
|
|
762
|
+
Exports
|
|
763
|
+
- None
|
|
764
|
+
|
|
765
|
+
### `src/client/ui/ShellUiDialog.vue`
|
|
766
|
+
Exports
|
|
767
|
+
- None
|
|
733
768
|
|
|
734
769
|
### fixtures
|
|
735
770
|
|
|
@@ -20,12 +20,13 @@ Exports
|
|
|
20
20
|
Local functions
|
|
21
21
|
- `seconds(since)`
|
|
22
22
|
- `digest(file)`
|
|
23
|
-
- `buildFingerprint(appRoot, build, env = process.env)`
|
|
24
|
-
- `
|
|
23
|
+
- `buildFingerprint(appRoot, build, read = null, env = process.env)`
|
|
24
|
+
- `readModules(appRoot, modulesFile)`
|
|
25
|
+
- `runToCompletion(command, appRoot, environment = {})`
|
|
25
26
|
- `lastBuild(appRoot)`
|
|
26
27
|
- `isRunning(pid)`
|
|
27
28
|
- `lockBuild(appRoot)`
|
|
28
|
-
- `isCurrent(appRoot,
|
|
29
|
+
- `isCurrent(appRoot, build)`
|
|
29
30
|
|
|
30
31
|
### `scripts/browser-test-server.mjs`
|
|
31
32
|
Exports
|
|
@@ -55,12 +56,16 @@ Exports
|
|
|
55
56
|
### `scripts/browser-tests.mjs`
|
|
56
57
|
Exports
|
|
57
58
|
- `SETTINGS_VARIABLE`
|
|
58
|
-
- `browserTestConfig({ testDir = "./tests/e2e", port =
|
|
59
|
+
- `browserTestConfig({ testDir = "./tests/e2e", port = 0, server = "node ./bin/server.js", build = "npm run build", prepare = "", signIn = "", env = {}, health = "/api/health", globalTimeout, actionTimeout = ACTION_TIMEOUT_MS, navigationTimeout = NAVIGATION_TIMEOUT_MS, environment = process.env, cwd = process.cwd() } = {})`
|
|
59
60
|
- `browserTestWorkers({ env = process.env, argv = process.argv } = {})`
|
|
60
61
|
Local functions
|
|
61
62
|
- `positiveInteger(value)`
|
|
63
|
+
- `withoutTrailingSlash(url)`
|
|
62
64
|
- `managedBaseUrl(env)`
|
|
65
|
+
- `managedWorkerTargets(env)`
|
|
63
66
|
- `commandLineWorkers(argv)`
|
|
67
|
+
- `listen(port)`
|
|
68
|
+
- `freeConsecutivePorts(host, count)`
|
|
64
69
|
- `preparedWorkerEnvironment(file, index)`
|
|
65
70
|
|
|
66
71
|
### `scripts/build-catalog.mjs`
|
|
@@ -193,7 +198,7 @@ Exports
|
|
|
193
198
|
- `checkManifestCapabilities({ projectRoot, manifests })`
|
|
194
199
|
- `formatManifestCapabilitiesReport(result)`
|
|
195
200
|
Local functions
|
|
196
|
-
- `capabilityLine(contents, capabilityId = "")`
|
|
201
|
+
- `capabilityLine(contents, capabilityId = "", within = "capabilities")`
|
|
197
202
|
- `kernelPlatform(manifestPath, root)`
|
|
198
203
|
|
|
199
204
|
### `scripts/material3-source.mjs`
|
|
@@ -369,6 +374,11 @@ Local functions
|
|
|
369
374
|
- `createWorkspaceMatcher(workspaces)`
|
|
370
375
|
- `collectNestedPackageJsonPaths(directory, results = [])`
|
|
371
376
|
|
|
377
|
+
### `scripts/project-migrations.mjs`
|
|
378
|
+
Exports
|
|
379
|
+
- `installedPackageMigrations(root)`
|
|
380
|
+
- `packageMigrationChanges(before, after, previousVersions)`
|
|
381
|
+
|
|
372
382
|
### `scripts/project-packages.mjs`
|
|
373
383
|
Exports
|
|
374
384
|
- `CATALOG_PACKAGE_ID`
|
|
@@ -393,13 +403,15 @@ Local functions
|
|
|
393
403
|
- `alignLockManifestRecord(lockRecord, manifest, localPackageNames)`
|
|
394
404
|
- `preparePackageLockForInstall(projectRoot, manifests, packageLockPath)`
|
|
395
405
|
- `findImports(root, packageIds)`
|
|
396
|
-
- `installedPackageMigrations(root)`
|
|
397
406
|
- `approveInstallScripts(manifest, declared)`
|
|
398
407
|
|
|
399
408
|
### `scripts/test-budget.mjs`
|
|
400
409
|
Exports
|
|
401
410
|
- `BUDGET_VARIABLE`
|
|
402
|
-
- `
|
|
411
|
+
- `availableCpus({ parallelism = os.availableParallelism(), readFile = readFileSync } = {})`
|
|
412
|
+
- `testConcurrency({ env = process.env, parallelism = availableCpus() } = {})`
|
|
413
|
+
Local functions
|
|
414
|
+
- `quotaCpus(text)`
|
|
403
415
|
|
|
404
416
|
### `scripts/test-command.mjs`
|
|
405
417
|
Exports
|
|
@@ -413,6 +425,7 @@ Local functions
|
|
|
413
425
|
- `aloneDestination(destination)`
|
|
414
426
|
- `aloneRunOptions(options)`
|
|
415
427
|
- `aloneShard(files, options)`
|
|
428
|
+
- `databaseShortfall(databases, asked)`
|
|
416
429
|
- `runNode(args, env)`
|
|
417
430
|
|
|
418
431
|
### `scripts/test-databases.mjs`
|
|
@@ -457,7 +470,7 @@ Exports
|
|
|
457
470
|
- `FILE_TIMES`
|
|
458
471
|
- `checkTestTimes({ bounds, files, tests, wallMs, stopped = [] })`
|
|
459
472
|
- `fileStop({ bound, recorded })`
|
|
460
|
-
- `reportTestTimes({ cwd, collected, directory, wallMs })`
|
|
473
|
+
- `reportTestTimes({ cwd, collected, directory, wallMs, filtered = false })`
|
|
461
474
|
- `writeFileStops({ cwd, files, directory })`
|
|
462
475
|
Local functions
|
|
463
476
|
- `seconds(ms)`
|
|
@@ -2138,6 +2138,19 @@ it. Check and judge, for each file:
|
|
|
2138
2138
|
- its statements per row are still measured, as any write path's are: a batch
|
|
2139
2139
|
of 200 rows costs about what a batch of 10 does.
|
|
2140
2140
|
|
|
2141
|
+
Tables the application's people define while it runs, which no table resource
|
|
2142
|
+
describes, can live in json-rest-api's AnyAPI storage, built in such an
|
|
2143
|
+
infrastructure module from `@jskit-ai/resource-runtime/server/anyapi`:
|
|
2144
|
+
`AnyapiRegistry`, `JsonRestApi`, `RestApiAnyapiKnexPlugin`, `RestApiPlugin`,
|
|
2145
|
+
`RowPolicyPlugin` and `ensureAnyApiSchema`, the very objects of the
|
|
2146
|
+
json-rest-api copy the runtime's handles run on. Import them from there and
|
|
2147
|
+
declare no json-rest-api in the application: json-rest-api knows the
|
|
2148
|
+
transactions `api.transaction` opened by identity, so an AnyAPI write given a
|
|
2149
|
+
handle's `txOptions.trx` joins that transaction only on the runtime's copy,
|
|
2150
|
+
and beside a second copy it fails with "transaction must be an active
|
|
2151
|
+
transaction from api.transaction". `npm run jskit:update` then moves the one
|
|
2152
|
+
copy with the catalog.
|
|
2153
|
+
|
|
2141
2154
|
`jskit check` also fails:
|
|
2142
2155
|
|
|
2143
2156
|
- a table with two table resources;
|