@jskit-ai/agent-docs 0.1.205 → 0.1.206

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.
Files changed (30) hide show
  1. package/guide/agent/app-setup/multi-homing.md +29 -0
  2. package/guide/agent/framework/crud-operations.md +89 -0
  3. package/package.json +1 -1
  4. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  5. package/patterns/minimal-foundation/example/package.json +4 -4
  6. package/patterns/shell-foundation/example/package.json +5 -5
  7. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  8. package/reference/autogen/PATTERN_INDEX.md +35 -35
  9. package/reference/autogen/packages/workspaces-core.md +3 -3
  10. package/reference/autogen/packages/workspaces-web.md +11 -0
  11. package/skills/jskit/references/crud-operations.md +89 -0
  12. package/skills/jskit/references/multi-homing.md +29 -0
  13. package/skills/jskit/references/pattern-index.md +35 -35
  14. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +4 -4
  15. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +5 -5
  16. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  17. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  18. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +4 -4
  19. package/skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md +15 -0
  20. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookEditPage.vue +1 -0
  21. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookNewPage.vue +1 -0
  22. package/skills/jskit/references/patterns/crud/json-api-resource-package/example/packages/books/package.json +2 -2
  23. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +1 -1
  24. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +1 -1
  25. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  26. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  27. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
  28. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +3 -3
  29. package/skills/jskit/references/patterns/workspaces/workspace-server/PATTERN.md +20 -0
  30. package/skills/jskit/references/patterns/workspaces/workspace-server/example/config/roles.js +2 -0
@@ -9,9 +9,9 @@
9
9
  "./shared": "./src/shared/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/crud-core": "0.1.244",
13
- "@jskit-ai/resource-crud-core": "0.1.175",
14
- "@jskit-ai/workspaces-core": "0.1.211"
12
+ "@jskit-ai/crud-core": "0.1.245",
13
+ "@jskit-ai/resource-crud-core": "0.1.176",
14
+ "@jskit-ai/workspaces-core": "0.1.212"
15
15
  },
16
16
  "jskit": {
17
17
  "kind": "runtime",
@@ -28,6 +28,26 @@ member permissions, personal-workspace behavior, and surface access rules.
28
28
  Use workspace routes, resources, scope helpers, tenancy profiles, and settings
29
29
  contracts exported by `@jskit-ai/workspaces-core`.
30
30
 
31
+ ## Role display labels
32
+
33
+ Each `roleCatalog.roles[roleId]` definition may include an optional string
34
+ `label`. JSKIT trims it and preserves nonempty labels in role descriptors,
35
+ catalogue clones and Members/Workspace Settings responses. Labels are display
36
+ metadata; they do not inherit from a parent role. Missing, blank or non-string
37
+ labels keep the existing role-title fallback.
38
+
39
+ Shared Members invitation and member-role selectors show the label but submit
40
+ the role id. Pending invitation captions, workspace role captions and the
41
+ default invitation email use the same configured labels. Pending invitation
42
+ responses expose optional `roleLabel` alongside the unchanged `roleSid`.
43
+ Applications with their own invitation renderer may use its optional
44
+ `roleLabel` input; `roleSid` remains the stored role id.
45
+
46
+ Keep existing permissions, inheritance, assignability and
47
+ `workspace.defaultInviteRole` when adding a label. `owner` remains
48
+ nonassignable. Custom roles, including specialised Training roles, are ordinary
49
+ catalogue entries. Updating labels requires no database migration.
50
+
31
51
  ## Transactional invitation participation
32
52
 
33
53
  Through `workspaces.core`, register one callback during feature setup with
@@ -8,6 +8,7 @@ export const roleCatalog = {
8
8
  permissions: ["*"]
9
9
  },
10
10
  admin: {
11
+ label: "Administrator",
11
12
  assignable: true,
12
13
  inherits: "member",
13
14
  permissions: [
@@ -20,6 +21,7 @@ export const roleCatalog = {
20
21
  ]
21
22
  },
22
23
  member: {
24
+ label: "Team member",
23
25
  assignable: true,
24
26
  permissions: ["workspace.settings.view"]
25
27
  }