@jskit-ai/agent-docs 0.1.1

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 (73) hide show
  1. package/DISTR_AGENT.md +25 -0
  2. package/guide/agent/app-extras/assistant.md +636 -0
  3. package/guide/agent/app-extras/realtime.md +223 -0
  4. package/guide/agent/app-setup/a-more-interesting-shell.md +643 -0
  5. package/guide/agent/app-setup/authentication.md +948 -0
  6. package/guide/agent/app-setup/console.md +316 -0
  7. package/guide/agent/app-setup/database-layer.md +775 -0
  8. package/guide/agent/app-setup/initial-scaffolding.md +714 -0
  9. package/guide/agent/app-setup/multi-homing.md +655 -0
  10. package/guide/agent/app-setup/users.md +355 -0
  11. package/guide/agent/app-setup/working-with-the-jskit-cli.md +983 -0
  12. package/guide/agent/generators/advanced-cruds.md +923 -0
  13. package/guide/agent/generators/crud-generators.md +556 -0
  14. package/guide/agent/generators/intro.md +63 -0
  15. package/guide/agent/generators/ui-generators.md +648 -0
  16. package/guide/agent/index.md +39 -0
  17. package/guide/human/app-extras/assistant.md +695 -0
  18. package/guide/human/app-extras/realtime.md +270 -0
  19. package/guide/human/app-setup/a-more-interesting-shell.md +734 -0
  20. package/guide/human/app-setup/authentication.md +963 -0
  21. package/guide/human/app-setup/console.md +352 -0
  22. package/guide/human/app-setup/database-layer.md +822 -0
  23. package/guide/human/app-setup/initial-scaffolding.md +738 -0
  24. package/guide/human/app-setup/multi-homing.md +795 -0
  25. package/guide/human/app-setup/users.md +404 -0
  26. package/guide/human/app-setup/working-with-the-jskit-cli.md +997 -0
  27. package/guide/human/generators/advanced-cruds.md +923 -0
  28. package/guide/human/generators/crud-generators.md +556 -0
  29. package/guide/human/generators/intro.md +109 -0
  30. package/guide/human/generators/ui-generators.md +665 -0
  31. package/guide/human/index.md +39 -0
  32. package/package.json +28 -0
  33. package/reference/autogen/KERNEL_MAP.md +536 -0
  34. package/reference/autogen/README.md +44 -0
  35. package/reference/autogen/packages/agent-docs.md +13 -0
  36. package/reference/autogen/packages/assistant-core.md +310 -0
  37. package/reference/autogen/packages/assistant-runtime.md +219 -0
  38. package/reference/autogen/packages/assistant.md +73 -0
  39. package/reference/autogen/packages/auth-core.md +352 -0
  40. package/reference/autogen/packages/auth-provider-supabase-core.md +223 -0
  41. package/reference/autogen/packages/auth-web.md +267 -0
  42. package/reference/autogen/packages/console-core.md +116 -0
  43. package/reference/autogen/packages/console-web.md +37 -0
  44. package/reference/autogen/packages/crud-core.md +283 -0
  45. package/reference/autogen/packages/crud-server-generator.md +220 -0
  46. package/reference/autogen/packages/crud-ui-generator.md +154 -0
  47. package/reference/autogen/packages/database-runtime-mysql.md +61 -0
  48. package/reference/autogen/packages/database-runtime-postgres.md +39 -0
  49. package/reference/autogen/packages/database-runtime.md +216 -0
  50. package/reference/autogen/packages/http-runtime.md +213 -0
  51. package/reference/autogen/packages/kernel.md +1350 -0
  52. package/reference/autogen/packages/realtime.md +95 -0
  53. package/reference/autogen/packages/shell-web.md +349 -0
  54. package/reference/autogen/packages/storage-runtime.md +39 -0
  55. package/reference/autogen/packages/ui-generator.md +101 -0
  56. package/reference/autogen/packages/uploads-image-web.md +76 -0
  57. package/reference/autogen/packages/uploads-runtime.md +85 -0
  58. package/reference/autogen/packages/users-core.md +307 -0
  59. package/reference/autogen/packages/users-web.md +473 -0
  60. package/reference/autogen/packages/workspaces-core.md +415 -0
  61. package/reference/autogen/packages/workspaces-web.md +372 -0
  62. package/reference/autogen/tooling/config-eslint.md +52 -0
  63. package/reference/autogen/tooling/create-app.md +194 -0
  64. package/reference/autogen/tooling/jskit-catalog.md +27 -0
  65. package/reference/autogen/tooling/jskit-cli.md +624 -0
  66. package/reference/autogen/tooling/test-support.md +27 -0
  67. package/reference/autogen/tooling/testUtils.md +31 -0
  68. package/templates/APP_BLUEPRINT.md +57 -0
  69. package/workflow/app-state.md +33 -0
  70. package/workflow/bootstrap.md +24 -0
  71. package/workflow/feature-delivery.md +21 -0
  72. package/workflow/review.md +22 -0
  73. package/workflow/scoping.md +26 -0
@@ -0,0 +1,57 @@
1
+ # App Blueprint
2
+
3
+ ## Product
4
+
5
+ - App purpose:
6
+ - Primary users:
7
+ - Success criteria:
8
+
9
+ ## Platform Choices
10
+
11
+ - Tenancy mode:
12
+ - Database engine:
13
+ - Auth provider:
14
+ - Optional extras: realtime / assistant / uploads / other
15
+
16
+ ## Actors And Access
17
+
18
+ - Actor list:
19
+ - Permission boundaries:
20
+ - Console/admin-only areas:
21
+
22
+ ## Surfaces
23
+
24
+ - Global surfaces:
25
+ - Workspace surfaces:
26
+ - Settings surfaces:
27
+
28
+ ## Data Model
29
+
30
+ | Entity | Purpose | Ownership | Notes |
31
+ | --- | --- | --- | --- |
32
+ | | | | |
33
+
34
+ ## Route And Screen Plan
35
+
36
+ - Home/global routes:
37
+ - Account routes:
38
+ - Console routes:
39
+ - Workspace app routes:
40
+ - Workspace admin routes:
41
+
42
+ ## Package Plan
43
+
44
+ - Baseline runtime packages:
45
+ - Optional runtime packages:
46
+ - Generator packages to use:
47
+
48
+ ## Implementation Notes
49
+
50
+ - CRUDs to scaffold:
51
+ - Non-CRUD pages to scaffold:
52
+ - Custom code areas:
53
+
54
+ ## Verification
55
+
56
+ - Commands to run:
57
+ - Known open questions:
@@ -0,0 +1,33 @@
1
+ # App State Gate
2
+
3
+ Before planning, scaffolding, or implementing, classify the workspace into one of these states:
4
+
5
+ - `empty`
6
+ - `non_jskit_repo`
7
+ - `partial_jskit_app`
8
+ - `jskit_app`
9
+
10
+ Use these markers for a real JSKIT app:
11
+
12
+ - `package.json`
13
+ - `config/public.js`
14
+ - `src/main.js`
15
+ - `packages/main/package.descriptor.mjs`
16
+ - `.jskit/lock.json`
17
+
18
+ State handling:
19
+
20
+ - `empty`
21
+ - Start the initialize workflow.
22
+ - Ask only high-level questions first: app goal, tenancy shape, database engine, auth provider, optional assistant/realtime needs.
23
+ - Do not jump straight into detailed feature implementation.
24
+ - `non_jskit_repo`
25
+ - Ask whether the JSKIT app should live here or in a new subdirectory.
26
+ - Do not overwrite unrelated project files.
27
+ - `partial_jskit_app`
28
+ - Explain which scaffold markers are missing.
29
+ - Recover or finish the scaffold instead of re-initializing from scratch.
30
+ - `jskit_app`
31
+ - Continue with scoping or feature delivery.
32
+
33
+ This state gate is intentionally strict. The agent must inspect first and only then choose initialize, recover, or extend.
@@ -0,0 +1,24 @@
1
+ # Initialize Workflow
2
+
3
+ Use this only when the app state gate resolves to `empty`, or when the user explicitly wants a brand-new JSKIT app in a new directory.
4
+
5
+ Version 0 sketch:
6
+
7
+ 1. Define the broad app shape before running generators.
8
+ 2. Capture only the first-round decisions:
9
+ - app purpose
10
+ - tenancy mode: `none`, `personal`, or `workspaces`
11
+ - database engine: MySQL or Postgres
12
+ - auth provider, with Supabase as the default documented path
13
+ - whether the first baseline should include workspaces, realtime, or assistant
14
+ 3. Once those high-level choices are clear, continue into deeper scoping questions later.
15
+
16
+ Baseline expectations after initialization:
17
+
18
+ - create the app scaffold
19
+ - install the baseline runtime packages in the documented order
20
+ - install dependencies
21
+ - run database migrations when the chosen package set requires them
22
+ - leave the app in a reproducible, verified baseline state
23
+
24
+ Do not improvise package order. Use the distributed guide chapters under `guide/agent/app-setup/` or `guide/human/app-setup/`.
@@ -0,0 +1,21 @@
1
+ # Feature Delivery Workflow
2
+
3
+ For each feature, follow this order:
4
+
5
+ 1. Scope the feature inside the blueprint.
6
+ 2. Decide whether it is:
7
+ - package install
8
+ - generator scaffolding
9
+ - custom local code
10
+ - or a combination
11
+ 3. Implement the smallest correct change.
12
+ 4. Review for implementation gaps.
13
+ 5. Review against JSKIT reuse and best practices.
14
+ 6. Verify with the relevant commands.
15
+
16
+ During implementation:
17
+
18
+ - Prefer existing JSKIT helpers over local helper duplication.
19
+ - Use generated CRUD/UI scaffolds only after the route and ownership model are decided.
20
+ - Keep runtime, UI, and data concerns separated.
21
+ - Avoid “while I’m here” scope creep unless it is required for correctness.
@@ -0,0 +1,22 @@
1
+ # Review Workflow
2
+
3
+ Before calling a feature done, review it in three passes:
4
+
5
+ 1. Implementation gap review
6
+ - missing states
7
+ - broken flows
8
+ - incomplete ownership handling
9
+ - missing migrations or route wiring
10
+ 2. JSKIT review
11
+ - existing helper/runtime seam available?
12
+ - duplicate local code that should reuse kernel/runtime support?
13
+ - package metadata and actual behavior still aligned?
14
+ 3. Verification review
15
+ - run the smallest relevant verification commands
16
+ - note anything left unverified
17
+
18
+ Minimum expectation:
19
+
20
+ - list the files changed
21
+ - list the commands run
22
+ - list anything still unverified
@@ -0,0 +1,26 @@
1
+ # Scoping Workflow
2
+
3
+ Before implementing any feature or batch of features, write or update `templates/APP_BLUEPRINT.md` as the working app blueprint.
4
+
5
+ The blueprint must capture at least:
6
+
7
+ - product purpose
8
+ - actors and permissions
9
+ - tenancy mode
10
+ - database engine
11
+ - auth choice
12
+ - core surfaces and route families
13
+ - core entities
14
+ - ownership model per entity: `public`, `user`, `workspace`, or `workspace_user`
15
+ - package install plan
16
+ - generator plan
17
+ - custom-code areas
18
+
19
+ Scoping rules:
20
+
21
+ - Use `guide/agent/index.md` for fast navigation and `guide/human/index.md` for exact details.
22
+ - Inspect packages and generators before choosing them.
23
+ - Decide ownership early; do not treat it as a UI-only detail.
24
+ - If the package/runtime choice is unclear, stop and resolve it before writing implementation code.
25
+
26
+ No feature implementation should start until the blueprint covers database, screens, and functional boundaries well enough that the implementation path is obvious.