@jskit-ai/agent-docs 0.1.384 → 0.1.385
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/framework/client-features.md +1 -1
- package/guide/agent/framework/typed-features.md +2 -2
- package/package.json +1 -1
- package/patterns/feature-package/PATTERN.md +1 -1
- package/patterns/minimal-foundation/PATTERN.md +1 -1
- package/patterns/minimal-foundation/example/package.json +2 -2
- package/patterns/shell-foundation/PATTERN.md +1 -1
- package/patterns/shell-foundation/example/package.json +2 -2
- package/reference/autogen/PATTERN_INDEX.md +10 -10
- package/skills/jskit/references/client-features.md +1 -1
- package/skills/jskit/references/heuristics/client-features.md +1 -1
- package/skills/jskit/references/heuristics/typed-features.md +1 -1
- package/skills/jskit/references/pattern-index.md +10 -10
- package/skills/jskit/references/patterns/app/minimal-foundation/PATTERN.md +1 -1
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +2 -2
- package/skills/jskit/references/patterns/app/shell-foundation/PATTERN.md +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +2 -2
- package/skills/jskit/references/patterns/crud/crud-feature-package/PATTERN.md +1 -1
- package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +1 -1
- package/skills/jskit/references/patterns/server/feature-package/PATTERN.md +1 -1
- package/skills/jskit/references/patterns/users/user-administration-server/PATTERN.md +1 -1
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +3 -3
- package/skills/jskit/references/typed-features.md +2 -2
|
@@ -631,7 +631,7 @@ function isRecord(value) { return Boolean(value) && typeof value === "object" &&
|
|
|
631
631
|
|
|
632
632
|
### Size limits
|
|
633
633
|
|
|
634
|
-
**Files stay under
|
|
634
|
+
**Files stay under 1,200 lines and functions under 600; a `.vue` file counts
|
|
635
635
|
whole: template, script and style.** Split by concern
|
|
636
636
|
([presenting scripts](#presenting-scripts)), never into tiny modules
|
|
637
637
|
([simple to reason about](#simple-to-reason-about)).
|
|
@@ -1284,7 +1284,7 @@ before(() => knex.migrate.latest());
|
|
|
1284
1284
|
|
|
1285
1285
|
### Size limits
|
|
1286
1286
|
|
|
1287
|
-
**Files stay under
|
|
1287
|
+
**Files stay under 1,200 lines and functions under 600, in all hand-written
|
|
1288
1288
|
code: server, shared, client (`.vue` and `.js`) and scripts. One concern per
|
|
1289
1289
|
factory.**
|
|
1290
1290
|
|
|
@@ -1481,7 +1481,7 @@ Every finding ends with a link to the section of this page that explains it.
|
|
|
1481
1481
|
| `jskit/one-property-per-line` | two properties on one line in a returned `Object.freeze({ … })` or a `requires` / `optional` / `late` / `provides` map (`eslint --fix` splits them) | [Formatter](#formatter) |
|
|
1482
1482
|
| `jskit/jsdoc-description-inside` | a `//` description directly above a `/** */` block | [Comments](#comments) |
|
|
1483
1483
|
| `jskit/allow-comment-form` | a `readable-check: allow` reason without a prefix from the table below, or one that cites tests or the state of a project | [Exceptions](#exceptions) |
|
|
1484
|
-
| `max-lines`, `max-lines-per-function` | files over
|
|
1484
|
+
| `max-lines`, `max-lines-per-function` | files over 1,200 lines, functions over 600 | [Size limits](#size-limits) |
|
|
1485
1485
|
|
|
1486
1486
|
### Test-run rules
|
|
1487
1487
|
|
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ questionnaire.
|
|
|
80
80
|
exposes another factory's functions by name, never by spreading it.
|
|
81
81
|
- A description sits inside its `/** */` block, never in a `//` line above it.
|
|
82
82
|
- One copy of each pure helper per package, imported directly. Files stay under
|
|
83
|
-
|
|
83
|
+
1,200 lines and functions under 600, one concern per factory.
|
|
84
84
|
- The service orchestrates the feature and does not issue SQL directly.
|
|
85
85
|
- A feature that owns a table lists its table resource in `owns`; setup
|
|
86
86
|
receives the table's handle, and only its repository uses it. One table has
|
|
@@ -70,7 +70,7 @@ questionnaire or infer tenancy, authentication, or database requirements.
|
|
|
70
70
|
default; one `create<Name>Actions({ <api> })` per feature returns frozen
|
|
71
71
|
actions whose `execute` is one call; every `create*` returns a frozen object
|
|
72
72
|
of named functions; one copy of each helper per package; files stay under
|
|
73
|
-
|
|
73
|
+
1,200 lines and functions under 600. `createServer({ runtimeEnv })` requires
|
|
74
74
|
the environment it runs with, typed as the kernel's `RuntimeEnv` (the process
|
|
75
75
|
environment, string values: `resolveRuntimeEnv()` keeps `PORT` a string), and
|
|
76
76
|
`server.js` takes `API_BASE_PATH` and `toRequestPathname` from the kernel's
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@vue/devtools-api": "^8.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@jskit-ai/config-eslint": "0.1.
|
|
53
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
52
|
+
"@jskit-ai/config-eslint": "0.1.256",
|
|
53
|
+
"@jskit-ai/jskit-catalog": "0.2.137",
|
|
54
54
|
"@playwright/test": "1.61.1",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
56
56
|
"eslint": "^10.8.0",
|
|
@@ -67,7 +67,7 @@ not convert those choices into a generator questionnaire.
|
|
|
67
67
|
default; one `create<Name>Actions({ <api> })` per feature returns frozen
|
|
68
68
|
actions whose `execute` is one call; every `create*` returns a frozen object
|
|
69
69
|
of named functions; one copy of each helper per package; files stay under
|
|
70
|
-
|
|
70
|
+
1,200 lines and functions under 600. `createServer({ runtimeEnv })` requires
|
|
71
71
|
the environment it runs with, typed as the kernel's `RuntimeEnv` (the process
|
|
72
72
|
environment, string values: `resolveRuntimeEnv()` keeps `PORT` a string), and
|
|
73
73
|
`server.js` takes `API_BASE_PATH` and `toRequestPathname` from the kernel's
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@vue/devtools-api": "^8.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@jskit-ai/config-eslint": "0.1.
|
|
54
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
53
|
+
"@jskit-ai/config-eslint": "0.1.256",
|
|
54
|
+
"@jskit-ai/jskit-catalog": "0.2.137",
|
|
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.
|
|
18
|
+
- Owner: `@jskit-ai/agent-docs@0.1.385`
|
|
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.385`
|
|
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`
|
|
@@ -268,7 +268,7 @@ Add a protected administration surface, settings shell, and semantic navigation
|
|
|
268
268
|
|
|
269
269
|
- Id: `console/console-surface`
|
|
270
270
|
- Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
|
|
271
|
-
- Owner: `@jskit-ai/console-web@0.1.
|
|
271
|
+
- Owner: `@jskit-ai/console-web@0.1.319`
|
|
272
272
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/console/console-surface/PATTERN.md)
|
|
273
273
|
- Examples: [example/](../../skills/jskit/references/patterns/console/console-surface/example/)
|
|
274
274
|
- Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
|
|
@@ -290,7 +290,7 @@ Build a complete application-owned CRUD server package from a migration, a table
|
|
|
290
290
|
|
|
291
291
|
- Id: `crud/crud-feature-package`
|
|
292
292
|
- Keywords: `actions`, `crud`, `database`, `defineCrudFeature`, `json-api`, `migration`, `owns`, `permissions`, `repository`, `routes`, `service`, `table resource`
|
|
293
|
-
- Owner: `@jskit-ai/crud-core@0.2.
|
|
293
|
+
- Owner: `@jskit-ai/crud-core@0.2.69`
|
|
294
294
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-feature-package/PATTERN.md)
|
|
295
295
|
- Examples: [example/](../../skills/jskit/references/patterns/crud/crud-feature-package/example/)
|
|
296
296
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
|
|
@@ -367,7 +367,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
|
|
|
367
367
|
|
|
368
368
|
- Id: `rewards/google-rewarded`
|
|
369
369
|
- Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
|
|
370
|
-
- Owner: `@jskit-ai/rewarded-web@0.2.
|
|
370
|
+
- Owner: `@jskit-ai/rewarded-web@0.2.95`
|
|
371
371
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/rewards/google-rewarded/PATTERN.md)
|
|
372
372
|
- Examples: [example/](../../skills/jskit/references/patterns/rewards/google-rewarded/example/)
|
|
373
373
|
- Requires: `@jskit-ai/rewarded-web`
|
|
@@ -378,7 +378,7 @@ Define a server feature through explicit capabilities and first-class actions, a
|
|
|
378
378
|
|
|
379
379
|
- Id: `server/feature-package`
|
|
380
380
|
- Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
|
|
381
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
381
|
+
- Owner: `@jskit-ai/agent-docs@0.1.385`
|
|
382
382
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
|
|
383
383
|
- Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
|
|
384
384
|
- Requires: `@jskit-ai/kernel`
|
|
@@ -411,7 +411,7 @@ Compose an account settings route and profile, preference, notification, and sig
|
|
|
411
411
|
|
|
412
412
|
- Id: `users/account-settings`
|
|
413
413
|
- Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
|
|
414
|
-
- Owner: `@jskit-ai/users-web@0.2.
|
|
414
|
+
- Owner: `@jskit-ai/users-web@0.2.103`
|
|
415
415
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/users/account-settings/PATTERN.md)
|
|
416
416
|
- Examples: [example/](../../skills/jskit/references/patterns/users/account-settings/example/)
|
|
417
417
|
- Requires: `@jskit-ai/http-web`, `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
|
|
@@ -422,7 +422,7 @@ Expose user administration and workspace-scoped member operations through app-ow
|
|
|
422
422
|
|
|
423
423
|
- Id: `users/user-administration-server`
|
|
424
424
|
- Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
|
|
425
|
-
- Owner: `@jskit-ai/users-core@0.2.
|
|
425
|
+
- Owner: `@jskit-ai/users-core@0.2.80`
|
|
426
426
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/users/user-administration-server/PATTERN.md)
|
|
427
427
|
- Examples: [example/](../../skills/jskit/references/patterns/users/user-administration-server/example/)
|
|
428
428
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
|
|
@@ -433,7 +433,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
|
|
|
433
433
|
|
|
434
434
|
- Id: `workspaces/workspace-server`
|
|
435
435
|
- Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
|
|
436
|
-
- Owner: `@jskit-ai/workspaces-core@0.2.
|
|
436
|
+
- Owner: `@jskit-ai/workspaces-core@0.2.80`
|
|
437
437
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-server/PATTERN.md)
|
|
438
438
|
- Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-server/example/)
|
|
439
439
|
- Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
|
|
@@ -444,7 +444,7 @@ Compose workspace selection, invitation, member administration, settings, and re
|
|
|
444
444
|
|
|
445
445
|
- Id: `workspaces/workspace-surfaces`
|
|
446
446
|
- Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
|
|
447
|
-
- Owner: `@jskit-ai/workspaces-web@0.2.
|
|
447
|
+
- Owner: `@jskit-ai/workspaces-web@0.2.103`
|
|
448
448
|
- Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md)
|
|
449
449
|
- Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/example/)
|
|
450
450
|
- Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
|
|
@@ -626,7 +626,7 @@ function isRecord(value) { return Boolean(value) && typeof value === "object" &&
|
|
|
626
626
|
|
|
627
627
|
### Size limits
|
|
628
628
|
|
|
629
|
-
**Files stay under
|
|
629
|
+
**Files stay under 1,200 lines and functions under 600; a `.vue` file counts
|
|
630
630
|
whole: template, script and style.** Split by concern
|
|
631
631
|
([presenting scripts](#presenting-scripts)), never into tiny modules
|
|
632
632
|
([simple to reason about](#simple-to-reason-about)).
|
|
@@ -55,7 +55,7 @@ rule's intent, and report the case.
|
|
|
55
55
|
- [Module state](../client-features.md#module-state)
|
|
56
56
|
- a copied `isRecord` or `normalizeText` in client code, a client copy of a server helper (`jskit/no-duplicate-helper`)
|
|
57
57
|
- [One helper per package](../client-features.md#one-helper-per-package)
|
|
58
|
-
- a `.vue` file over
|
|
58
|
+
- a `.vue` file over 1,200 lines (`max-lines`)
|
|
59
59
|
- [Size limits](../client-features.md#size-limits)
|
|
60
60
|
- `clientFeaturesConfig`, which globs to list, an existing application's client tree
|
|
61
61
|
- [Running the checks](../client-features.md#running-the-checks)
|
|
@@ -93,7 +93,7 @@ ends with the same link.
|
|
|
93
93
|
- [Test files run in parallel](../typed-features.md#test-files-run-in-parallel)
|
|
94
94
|
- `knex.migrate.latest()` in each test file, a template database rebuilt by migrating, test preparation slower than its tests
|
|
95
95
|
- [Test databases are prepared once](../typed-features.md#test-databases-are-prepared-once)
|
|
96
|
-
- a file over
|
|
96
|
+
- a file over 1,200 lines, a function over 600 (`max-lines`, `max-lines-per-function`), a data module
|
|
97
97
|
- [Size limits](../typed-features.md#size-limits), [Data modules](../typed-features.md#data-modules)
|
|
98
98
|
- two properties on one line in `Object.freeze({ … })` or a token map (`jskit/one-property-per-line`)
|
|
99
99
|
- [Formatter](../typed-features.md#formatter)
|
|
@@ -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.385`
|
|
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.385`
|
|
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`
|
|
@@ -268,7 +268,7 @@ Add a protected administration surface, settings shell, and semantic navigation
|
|
|
268
268
|
|
|
269
269
|
- Id: `console/console-surface`
|
|
270
270
|
- Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
|
|
271
|
-
- Owner: `@jskit-ai/console-web@0.1.
|
|
271
|
+
- Owner: `@jskit-ai/console-web@0.1.319`
|
|
272
272
|
- Read: [PATTERN.md](patterns/console/console-surface/PATTERN.md)
|
|
273
273
|
- Examples: [example/](patterns/console/console-surface/example/)
|
|
274
274
|
- Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
|
|
@@ -290,7 +290,7 @@ Build a complete application-owned CRUD server package from a migration, a table
|
|
|
290
290
|
|
|
291
291
|
- Id: `crud/crud-feature-package`
|
|
292
292
|
- Keywords: `actions`, `crud`, `database`, `defineCrudFeature`, `json-api`, `migration`, `owns`, `permissions`, `repository`, `routes`, `service`, `table resource`
|
|
293
|
-
- Owner: `@jskit-ai/crud-core@0.2.
|
|
293
|
+
- Owner: `@jskit-ai/crud-core@0.2.69`
|
|
294
294
|
- Read: [PATTERN.md](patterns/crud/crud-feature-package/PATTERN.md)
|
|
295
295
|
- Examples: [example/](patterns/crud/crud-feature-package/example/)
|
|
296
296
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
|
|
@@ -367,7 +367,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
|
|
|
367
367
|
|
|
368
368
|
- Id: `rewards/google-rewarded`
|
|
369
369
|
- Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
|
|
370
|
-
- Owner: `@jskit-ai/rewarded-web@0.2.
|
|
370
|
+
- Owner: `@jskit-ai/rewarded-web@0.2.95`
|
|
371
371
|
- Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
|
|
372
372
|
- Examples: [example/](patterns/rewards/google-rewarded/example/)
|
|
373
373
|
- Requires: `@jskit-ai/rewarded-web`
|
|
@@ -378,7 +378,7 @@ Define a server feature through explicit capabilities and first-class actions, a
|
|
|
378
378
|
|
|
379
379
|
- Id: `server/feature-package`
|
|
380
380
|
- Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
|
|
381
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
381
|
+
- Owner: `@jskit-ai/agent-docs@0.1.385`
|
|
382
382
|
- Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
|
|
383
383
|
- Examples: [example/](patterns/server/feature-package/example/)
|
|
384
384
|
- Requires: `@jskit-ai/kernel`
|
|
@@ -411,7 +411,7 @@ Compose an account settings route and profile, preference, notification, and sig
|
|
|
411
411
|
|
|
412
412
|
- Id: `users/account-settings`
|
|
413
413
|
- Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
|
|
414
|
-
- Owner: `@jskit-ai/users-web@0.2.
|
|
414
|
+
- Owner: `@jskit-ai/users-web@0.2.103`
|
|
415
415
|
- Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
|
|
416
416
|
- Examples: [example/](patterns/users/account-settings/example/)
|
|
417
417
|
- Requires: `@jskit-ai/http-web`, `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
|
|
@@ -422,7 +422,7 @@ Expose user administration and workspace-scoped member operations through app-ow
|
|
|
422
422
|
|
|
423
423
|
- Id: `users/user-administration-server`
|
|
424
424
|
- Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
|
|
425
|
-
- Owner: `@jskit-ai/users-core@0.2.
|
|
425
|
+
- Owner: `@jskit-ai/users-core@0.2.80`
|
|
426
426
|
- Read: [PATTERN.md](patterns/users/user-administration-server/PATTERN.md)
|
|
427
427
|
- Examples: [example/](patterns/users/user-administration-server/example/)
|
|
428
428
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
|
|
@@ -433,7 +433,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
|
|
|
433
433
|
|
|
434
434
|
- Id: `workspaces/workspace-server`
|
|
435
435
|
- Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
|
|
436
|
-
- Owner: `@jskit-ai/workspaces-core@0.2.
|
|
436
|
+
- Owner: `@jskit-ai/workspaces-core@0.2.80`
|
|
437
437
|
- Read: [PATTERN.md](patterns/workspaces/workspace-server/PATTERN.md)
|
|
438
438
|
- Examples: [example/](patterns/workspaces/workspace-server/example/)
|
|
439
439
|
- Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
|
|
@@ -444,7 +444,7 @@ Compose workspace selection, invitation, member administration, settings, and re
|
|
|
444
444
|
|
|
445
445
|
- Id: `workspaces/workspace-surfaces`
|
|
446
446
|
- Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
|
|
447
|
-
- Owner: `@jskit-ai/workspaces-web@0.2.
|
|
447
|
+
- Owner: `@jskit-ai/workspaces-web@0.2.103`
|
|
448
448
|
- Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
|
|
449
449
|
- Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
|
|
450
450
|
- Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
|
|
@@ -70,7 +70,7 @@ questionnaire or infer tenancy, authentication, or database requirements.
|
|
|
70
70
|
default; one `create<Name>Actions({ <api> })` per feature returns frozen
|
|
71
71
|
actions whose `execute` is one call; every `create*` returns a frozen object
|
|
72
72
|
of named functions; one copy of each helper per package; files stay under
|
|
73
|
-
|
|
73
|
+
1,200 lines and functions under 600. `createServer({ runtimeEnv })` requires
|
|
74
74
|
the environment it runs with, typed as the kernel's `RuntimeEnv` (the process
|
|
75
75
|
environment, string values: `resolveRuntimeEnv()` keeps `PORT` a string), and
|
|
76
76
|
`server.js` takes `API_BASE_PATH` and `toRequestPathname` from the kernel's
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@vue/devtools-api": "^8.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@jskit-ai/config-eslint": "0.1.
|
|
53
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
52
|
+
"@jskit-ai/config-eslint": "0.1.256",
|
|
53
|
+
"@jskit-ai/jskit-catalog": "0.2.137",
|
|
54
54
|
"@playwright/test": "1.61.1",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
56
56
|
"eslint": "^10.8.0",
|
|
@@ -67,7 +67,7 @@ not convert those choices into a generator questionnaire.
|
|
|
67
67
|
default; one `create<Name>Actions({ <api> })` per feature returns frozen
|
|
68
68
|
actions whose `execute` is one call; every `create*` returns a frozen object
|
|
69
69
|
of named functions; one copy of each helper per package; files stay under
|
|
70
|
-
|
|
70
|
+
1,200 lines and functions under 600. `createServer({ runtimeEnv })` requires
|
|
71
71
|
the environment it runs with, typed as the kernel's `RuntimeEnv` (the process
|
|
72
72
|
environment, string values: `resolveRuntimeEnv()` keeps `PORT` a string), and
|
|
73
73
|
`server.js` takes `API_BASE_PATH` and `toRequestPathname` from the kernel's
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@vue/devtools-api": "^8.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@jskit-ai/config-eslint": "0.1.
|
|
54
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
53
|
+
"@jskit-ai/config-eslint": "0.1.256",
|
|
54
|
+
"@jskit-ai/jskit-catalog": "0.2.137",
|
|
55
55
|
"@playwright/test": "1.61.1",
|
|
56
56
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
57
57
|
"eslint": "^10.8.0",
|
|
@@ -54,7 +54,7 @@ from a generator questionnaire or treat a live table as the sole contract.
|
|
|
54
54
|
Each action's `execute` is one call to one service method with the
|
|
55
55
|
validated input, and its argument is typed as crud-core's
|
|
56
56
|
`CrudCustomActionInvocation`. Keep one copy of each helper per package, files
|
|
57
|
-
under
|
|
57
|
+
under 1,200 lines and functions under 600.
|
|
58
58
|
|
|
59
59
|
## Framework APIs
|
|
60
60
|
|
|
@@ -80,7 +80,7 @@ questionnaire.
|
|
|
80
80
|
exposes another factory's functions by name, never by spreading it.
|
|
81
81
|
- A description sits inside its `/** */` block, never in a `//` line above it.
|
|
82
82
|
- One copy of each pure helper per package, imported directly. Files stay under
|
|
83
|
-
|
|
83
|
+
1,200 lines and functions under 600, one concern per factory.
|
|
84
84
|
- The service orchestrates the feature and does not issue SQL directly.
|
|
85
85
|
- A feature that owns a table lists its table resource in `owns`; setup
|
|
86
86
|
receives the table's handle, and only its repository uses it. One table has
|
|
@@ -101,7 +101,7 @@ joins the caller's transaction: inside `withTransaction(options, async
|
|
|
101
101
|
receive directly, with no `typeof` probe, optional call, absent default,
|
|
102
102
|
slot setter or module-level registry, and each action's `execute` is one
|
|
103
103
|
call to one service method with the validated input. Keep one copy of each
|
|
104
|
-
helper per package, files under
|
|
104
|
+
helper per package, files under 1,200 lines and functions under 600.
|
|
105
105
|
|
|
106
106
|
## Example files
|
|
107
107
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"./shared": "./src/shared/index.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jskit-ai/crud-core": "0.2.
|
|
13
|
+
"@jskit-ai/crud-core": "0.2.69",
|
|
14
14
|
"@jskit-ai/resource-crud-core": "0.1.232",
|
|
15
|
-
"@jskit-ai/users-core": "0.2.
|
|
15
|
+
"@jskit-ai/users-core": "0.2.80"
|
|
16
16
|
},
|
|
17
17
|
"jskit": {
|
|
18
18
|
"kind": "runtime",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"./shared": "./src/shared/index.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jskit-ai/crud-core": "0.2.
|
|
13
|
+
"@jskit-ai/crud-core": "0.2.69",
|
|
14
14
|
"@jskit-ai/resource-crud-core": "0.1.232",
|
|
15
|
-
"@jskit-ai/users-core": "0.2.
|
|
16
|
-
"@jskit-ai/workspaces-core": "0.2.
|
|
15
|
+
"@jskit-ai/users-core": "0.2.80",
|
|
16
|
+
"@jskit-ai/workspaces-core": "0.2.80"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@jskit-ai/kernel": "0.2.38",
|
|
@@ -1279,7 +1279,7 @@ before(() => knex.migrate.latest());
|
|
|
1279
1279
|
|
|
1280
1280
|
### Size limits
|
|
1281
1281
|
|
|
1282
|
-
**Files stay under
|
|
1282
|
+
**Files stay under 1,200 lines and functions under 600, in all hand-written
|
|
1283
1283
|
code: server, shared, client (`.vue` and `.js`) and scripts. One concern per
|
|
1284
1284
|
factory.**
|
|
1285
1285
|
|
|
@@ -1476,7 +1476,7 @@ Every finding ends with a link to the section of this page that explains it.
|
|
|
1476
1476
|
| `jskit/one-property-per-line` | two properties on one line in a returned `Object.freeze({ … })` or a `requires` / `optional` / `late` / `provides` map (`eslint --fix` splits them) | [Formatter](#formatter) |
|
|
1477
1477
|
| `jskit/jsdoc-description-inside` | a `//` description directly above a `/** */` block | [Comments](#comments) |
|
|
1478
1478
|
| `jskit/allow-comment-form` | a `readable-check: allow` reason without a prefix from the table below, or one that cites tests or the state of a project | [Exceptions](#exceptions) |
|
|
1479
|
-
| `max-lines`, `max-lines-per-function` | files over
|
|
1479
|
+
| `max-lines`, `max-lines-per-function` | files over 1,200 lines, functions over 600 | [Size limits](#size-limits) |
|
|
1480
1480
|
|
|
1481
1481
|
### Test-run rules
|
|
1482
1482
|
|