@jskit-ai/agent-docs 0.1.77 → 0.1.78
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/package.json +1 -1
- package/reference/autogen/packages/auth-core.md +21 -1
- package/reference/autogen/packages/auth-provider-local-core.md +10 -1
- package/reference/autogen/packages/auth-provider-supabase-core.md +0 -16
- package/reference/autogen/packages/auth-web.md +0 -1
- package/reference/autogen/packages/users-core.md +0 -20
- package/reference/autogen/packages/workspaces-core.md +0 -19
- package/reference/autogen/tooling/create-app.md +2 -1
- package/reference/autogen/tooling/jskit-cli.md +0 -17
package/package.json
CHANGED
|
@@ -71,6 +71,27 @@ Exports
|
|
|
71
71
|
Local functions
|
|
72
72
|
- `normalizeAuthServiceDecorator(entry)`
|
|
73
73
|
|
|
74
|
+
### `src/server/booleanFlag.js`
|
|
75
|
+
Exports
|
|
76
|
+
- `parseBooleanFlag(value, fallback = false)`
|
|
77
|
+
|
|
78
|
+
### `src/server/devAuth.js`
|
|
79
|
+
Exports
|
|
80
|
+
- `assertDevAuthPolicy(policy = {})`
|
|
81
|
+
- `DEV_AUTH_SECRET_HEADER`
|
|
82
|
+
- `ensureDevAuthExchangeAvailable(policy = {}, request = null)`
|
|
83
|
+
- `ensureDevAuthRuntimeAvailable(policy = {}, request = null)`
|
|
84
|
+
- `isLocalDevAuthRequest(request)`
|
|
85
|
+
- `resolveDevAuthPolicy({ enabled = false, nodeEnv = "development", secret = "" } = {})`
|
|
86
|
+
- `resolveDevAuthPolicyFromEnv(env = {})`
|
|
87
|
+
Local functions
|
|
88
|
+
- `normalizeRequestHostname(request)`
|
|
89
|
+
- `normalizeLoopbackIp(value)`
|
|
90
|
+
- `isLoopbackIp(value)`
|
|
91
|
+
- `isLoopbackHostname(value)`
|
|
92
|
+
- `requestHeader(request, name = "")`
|
|
93
|
+
- `secretMatches(value = "", expected = "")`
|
|
94
|
+
|
|
74
95
|
### `src/server/inviteTokens.js`
|
|
75
96
|
Exports
|
|
76
97
|
- `OPAQUE_INVITE_TOKEN_HASH_PREFIX`
|
|
@@ -162,7 +183,6 @@ Exports
|
|
|
162
183
|
Exports
|
|
163
184
|
- `FastifyAuthPolicyServiceProvider`
|
|
164
185
|
Local functions
|
|
165
|
-
- `parseBoolean(value, fallback = false)`
|
|
166
186
|
- `parseList(value)`
|
|
167
187
|
- `defaultHasPermission({ permission, permissions = [] } = {})`
|
|
168
188
|
|
|
@@ -80,18 +80,27 @@ Local functions
|
|
|
80
80
|
- `isoFromNow(seconds)`
|
|
81
81
|
- `isExpiredIso(value)`
|
|
82
82
|
- `isNormalSession(session)`
|
|
83
|
+
- `isDevAuthSession(session)`
|
|
84
|
+
- `isAuthenticatingSession(session)`
|
|
83
85
|
- `normalizeDisplayName(value, email)`
|
|
84
86
|
- `createId(prefix)`
|
|
85
87
|
- `safeRequestCookies(request)`
|
|
88
|
+
- `unauthenticatedAuthResult(clearSession = false)`
|
|
86
89
|
- `cookieOptions(isProduction, maxAge)`
|
|
87
90
|
- `clearCookieOptions(isProduction)`
|
|
88
91
|
- `buildProfile(user)`
|
|
89
92
|
- `buildActor(user, profile = null)`
|
|
93
|
+
- `buildAuthResult({ user, session, appProfile = null })`
|
|
94
|
+
- `requireProfileResult(profile, methodName)`
|
|
90
95
|
- `buildAuthPayload({ user, session, profileProjector, profileOptions = {} })`
|
|
96
|
+
- `findExistingAppProfile(user, profileProjector)`
|
|
97
|
+
- `buildSessionAuthPayload({ devAuth, profileProjector, request, session, user })`
|
|
91
98
|
- `buildAccessToken({ user, session, secret, ttlSeconds = ACCESS_TTL_SECONDS })`
|
|
92
99
|
- `buildSessionPayload({ user, session, refreshToken, secret })`
|
|
93
100
|
- `validatePasswordInput(password)`
|
|
94
101
|
- `validateEmailInput(email)`
|
|
102
|
+
- `devLoginAsValidationError(fieldErrors = {})`
|
|
103
|
+
- `devLoginAsUserNotFound({ email = "", userId = "" } = {})`
|
|
95
104
|
- `normalizeInvitationInput(value = null)`
|
|
96
105
|
- `maybeSendRecoveryEmail(config, recoveryUrl, email)`
|
|
97
106
|
|
|
@@ -110,7 +119,6 @@ Exports
|
|
|
110
119
|
- `AuthLocalServiceProvider`
|
|
111
120
|
- `resolveLocalBackendMode(scope)`
|
|
112
121
|
Local functions
|
|
113
|
-
- `parseBoolean(value, fallback = false)`
|
|
114
122
|
- `resolveRuntimeEnv(scope)`
|
|
115
123
|
- `assertSelectedAuthProvider(env)`
|
|
116
124
|
- `resolveStoreDir(env)`
|
|
@@ -118,6 +126,7 @@ Local functions
|
|
|
118
126
|
- `resolveSmtpConfig(env)`
|
|
119
127
|
- `resolveAppPublicUrl(env, { smtpConfigured })`
|
|
120
128
|
- `resolveConfig(scope)`
|
|
129
|
+
- `createLazyProfileProjector(scope)`
|
|
121
130
|
|
|
122
131
|
### `src/server/providers/AuthProviderServiceProvider.js`
|
|
123
132
|
Exports
|
|
@@ -24,10 +24,6 @@ Exports
|
|
|
24
24
|
Local functions
|
|
25
25
|
- `normalizeLocalReturnToPath(value, { fallback = "" } = {})`
|
|
26
26
|
|
|
27
|
-
### `src/server/lib/actions/auth.contributor.js`
|
|
28
|
-
Exports
|
|
29
|
-
- `devLoginAsAction`
|
|
30
|
-
|
|
31
27
|
### `src/server/lib/authCookies.js`
|
|
32
28
|
Exports
|
|
33
29
|
- `safeRequestCookies(request)`
|
|
@@ -106,19 +102,11 @@ Exports
|
|
|
106
102
|
- `assertDevAuthBootstrapConfig(config, { userProfilesRepository = null } = {})`
|
|
107
103
|
- `authenticateDevAuthRequest({ request, accessToken = "", refreshToken = "" }, { config, userProfilesRepository = null } = {})`
|
|
108
104
|
- `createDevAuthSession(profile, config)`
|
|
109
|
-
- `ensureDevAuthBootstrapAvailable(config, request)`
|
|
110
105
|
- `isDevAuthToken(token)`
|
|
111
106
|
- `resolveDevAuthConfig({ enabled = false, secret = "", nodeEnv = "development", jwtAudience = "authenticated", accessTtlSeconds = DEFAULT_DEV_AUTH_ACCESS_TTL_SECONDS, refreshTtlSeconds = DEFAULT_DEV_AUTH_REFRESH_TTL_SECONDS } = {})`
|
|
112
107
|
- `resolveDevAuthProfile(input = {}, { userProfilesRepository = null, validationError } = {})`
|
|
113
108
|
Local functions
|
|
114
|
-
- `parseBoolean(value, fallback = false)`
|
|
115
109
|
- `normalizePositiveInteger(value, fallback)`
|
|
116
|
-
- `normalizeRequestHostname(request)`
|
|
117
|
-
- `resolveDirectRemoteAddress(request)`
|
|
118
|
-
- `normalizeLoopbackIp(value)`
|
|
119
|
-
- `isLoopbackIp(value)`
|
|
120
|
-
- `isLoopbackHostname(value)`
|
|
121
|
-
- `isLocalDevAuthRequest(request)`
|
|
122
110
|
- `stripDevAuthTokenPrefix(token)`
|
|
123
111
|
- `buildProfileFromTokenClaims(payload)`
|
|
124
112
|
- `resolveProfileFromTokenClaims(payload, { userProfilesRepository = null } = {})`
|
|
@@ -136,7 +124,6 @@ Exports
|
|
|
136
124
|
Exports
|
|
137
125
|
- `createService`
|
|
138
126
|
- `__testables`
|
|
139
|
-
- `devLoginAsAction`
|
|
140
127
|
|
|
141
128
|
### `src/server/lib/oauthFlows.js`
|
|
142
129
|
Exports
|
|
@@ -228,15 +215,12 @@ Exports
|
|
|
228
215
|
- `AuthSupabaseServiceProvider`
|
|
229
216
|
Local functions
|
|
230
217
|
- `splitCsv(value)`
|
|
231
|
-
- `parseBoolean(value, fallback = false)`
|
|
232
218
|
- `normalizeRecord(value)`
|
|
233
219
|
- `normalizeOAuthProviderConfigList(value)`
|
|
234
220
|
- `resolveOAuthConfigFromAppConfig(appConfig)`
|
|
235
221
|
- `resolveAllowedReturnToOrigins({ appConfig = {}, appPublicUrl = "" } = {})`
|
|
236
222
|
- `resolveAuthProviderConfig(env, appConfig = {})`
|
|
237
223
|
- `resolveAuthProfileMode(appConfig = {})`
|
|
238
|
-
- `isDevAuthBypassEnabledForRegistration(env)`
|
|
239
|
-
- `isDevAuthBypassRequested(env)`
|
|
240
224
|
- `createProviderIdentityProfileSyncService({ authProviderId = "supabase" } = {})`
|
|
241
225
|
- `resolveCommonDependencies(scope)`
|
|
242
226
|
- `resolveRuntimeEnv(scope)`
|
|
@@ -198,26 +198,6 @@ Local functions
|
|
|
198
198
|
Exports
|
|
199
199
|
- `resolveActionUser(context, input)`
|
|
200
200
|
|
|
201
|
-
### `src/server/previewUserProvisioning.js`
|
|
202
|
-
Exports
|
|
203
|
-
- `DEFAULT_AUTH_PROVIDER`
|
|
204
|
-
- `DEFAULT_DISPLAY_NAME`
|
|
205
|
-
- `DEFAULT_EMAIL`
|
|
206
|
-
- `ensurePreviewUser(db, profileInput = {})`
|
|
207
|
-
- `normalizePreviewUserProfile(profile = {})`
|
|
208
|
-
- `profileFromUserRow(user = {}, fallback = {})`
|
|
209
|
-
Local functions
|
|
210
|
-
- `normalizeText(value = "")`
|
|
211
|
-
- `normalizeLowerText(value = "")`
|
|
212
|
-
- `normalizeUsername(value = "")`
|
|
213
|
-
- `usernameBaseFromEmail(email = "")`
|
|
214
|
-
- `buildUsernameCandidate(baseUsername = "", suffix = 0)`
|
|
215
|
-
- `isDuplicateError(error)`
|
|
216
|
-
- `resolveUniqueUsername(db, baseUsername = "", { excludeUserId = "" } = {})`
|
|
217
|
-
- `findPreviewUser(db, profile = {})`
|
|
218
|
-
- `ensurePreviewUserRow(db, profile = {})`
|
|
219
|
-
- `ensureUserSettings(db, user = {})`
|
|
220
|
-
|
|
221
201
|
### `src/server/profileSyncLifecycleContributorRegistry.js`
|
|
222
202
|
Exports
|
|
223
203
|
- `PROFILE_SYNC_LIFECYCLE_CONTRIBUTOR_TAG`
|
|
@@ -114,25 +114,6 @@ Exports
|
|
|
114
114
|
- `routeParamsValidator`
|
|
115
115
|
- `workspaceSlugParamsValidator`
|
|
116
116
|
|
|
117
|
-
### `src/server/previewWorkspaceProvisioning.js`
|
|
118
|
-
Exports
|
|
119
|
-
- `buildWorkspaceBaseSlug(profile = {})`
|
|
120
|
-
- `buildWorkspaceName(profile = {})`
|
|
121
|
-
- `ensurePreviewWorkspace(db, user = {}, profile = {}, { appConfig = {}, tenancyMode = "" } = {})`
|
|
122
|
-
- `normalizeWorkspaceResult(workspace = null)`
|
|
123
|
-
Local functions
|
|
124
|
-
- `normalizeText(value = "")`
|
|
125
|
-
- `normalizeLowerText(value = "")`
|
|
126
|
-
- `workspaceSlugPart(value = "")`
|
|
127
|
-
- `usernameBaseFromEmail(email = "")`
|
|
128
|
-
- `buildWorkspaceSlugCandidate(baseSlug = "", suffix = 0)`
|
|
129
|
-
- `isDuplicateError(error)`
|
|
130
|
-
- `resolveUniqueWorkspaceSlug(db, baseSlug = "", { excludeWorkspaceId = "" } = {})`
|
|
131
|
-
- `hasWorkspaceTables(db)`
|
|
132
|
-
- `findPreviewWorkspace(db, user = {}, { isPersonal = true } = {})`
|
|
133
|
-
- `ensureWorkspaceSettings(db, workspace = {})`
|
|
134
|
-
- `ensureOwnerMembership(db, workspace = {}, user = {})`
|
|
135
|
-
|
|
136
117
|
### `src/server/registerWorkspaceBootstrap.js`
|
|
137
118
|
Exports
|
|
138
119
|
- `registerWorkspaceBootstrap(app)`
|
|
@@ -33,12 +33,13 @@ Exports
|
|
|
33
33
|
|
|
34
34
|
### `src/server/index.js`
|
|
35
35
|
Exports
|
|
36
|
-
- `createApp({ appName, appTitle = null, template = DEFAULT_TEMPLATE, target = null, initialBundles = DEFAULT_INITIAL_BUNDLES, tenancyMode = null, force = false, dryRun = false, cwd = process.cwd() })`
|
|
36
|
+
- `createApp({ appName, appTitle = null, template = DEFAULT_TEMPLATE, target = null, initialBundles = DEFAULT_INITIAL_BUNDLES, playwrightVersion = DEFAULT_PLAYWRIGHT_VERSION, tenancyMode = null, force = false, dryRun = false, cwd = process.cwd() })`
|
|
37
37
|
- `runCli(argv, { stdout = process.stdout, stderr = process.stderr, stdin = process.stdin, cwd = process.cwd(), readlineFactory = createReadlineInterface } = {})`
|
|
38
38
|
Local functions
|
|
39
39
|
- `toAppTitle(appName)`
|
|
40
40
|
- `normalizeInitialBundlesPreset(value, { showUsage = true } = {})`
|
|
41
41
|
- `normalizeTenancyMode(value, { showUsage = true } = {})`
|
|
42
|
+
- `normalizePlaywrightVersion(value, { showUsage = true } = {})`
|
|
42
43
|
- `buildInitialSetupCommands(initialBundles)`
|
|
43
44
|
- `validateAppName(appName, { showUsage = true } = {})`
|
|
44
45
|
- `parseOptionWithValue(argv, index, optionName)`
|
|
@@ -474,23 +474,6 @@ Local functions
|
|
|
474
474
|
- `applyTextReplacements(sourceText = "", replacements = [])`
|
|
475
475
|
- `collectCrudFormFieldCandidateFiles(appRoot = "")`
|
|
476
476
|
|
|
477
|
-
### `src/server/commandHandlers/appCommands/preparePreviewUser.js`
|
|
478
|
-
Exports
|
|
479
|
-
- `runAppPreparePreviewUserCommand(_ctx = {}, { appRoot = "", options = {}, stdout = process.stdout })`
|
|
480
|
-
Local functions
|
|
481
|
-
- `normalizeText(value = "")`
|
|
482
|
-
- `normalizeLowerText(value = "")`
|
|
483
|
-
- `profileFromOptions(options = {})`
|
|
484
|
-
- `fileExists(filePath = "")`
|
|
485
|
-
- `createAppRequire(appRoot = "")`
|
|
486
|
-
- `importFreshModule(filePath = "")`
|
|
487
|
-
- `loadKnexConfig(appRoot = "")`
|
|
488
|
-
- `importAppPackageExport(appRoot = "", specifier = "", { required = true } = {})`
|
|
489
|
-
- `writeProfile(profileFile = "", authProfile = {})`
|
|
490
|
-
- `isTrueOption(value)`
|
|
491
|
-
- `normalizeTenancyMode(value = "")`
|
|
492
|
-
- `hasWorkspaceTables(db)`
|
|
493
|
-
|
|
494
477
|
### `src/server/commandHandlers/appCommands/release.js`
|
|
495
478
|
Exports
|
|
496
479
|
- `runAppReleaseCommand(ctx = {}, { appRoot = "", options = {}, stdout, stderr })`
|