@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.
- package/DISTR_AGENT.md +25 -0
- package/guide/agent/app-extras/assistant.md +636 -0
- package/guide/agent/app-extras/realtime.md +223 -0
- package/guide/agent/app-setup/a-more-interesting-shell.md +643 -0
- package/guide/agent/app-setup/authentication.md +948 -0
- package/guide/agent/app-setup/console.md +316 -0
- package/guide/agent/app-setup/database-layer.md +775 -0
- package/guide/agent/app-setup/initial-scaffolding.md +714 -0
- package/guide/agent/app-setup/multi-homing.md +655 -0
- package/guide/agent/app-setup/users.md +355 -0
- package/guide/agent/app-setup/working-with-the-jskit-cli.md +983 -0
- package/guide/agent/generators/advanced-cruds.md +923 -0
- package/guide/agent/generators/crud-generators.md +556 -0
- package/guide/agent/generators/intro.md +63 -0
- package/guide/agent/generators/ui-generators.md +648 -0
- package/guide/agent/index.md +39 -0
- package/guide/human/app-extras/assistant.md +695 -0
- package/guide/human/app-extras/realtime.md +270 -0
- package/guide/human/app-setup/a-more-interesting-shell.md +734 -0
- package/guide/human/app-setup/authentication.md +963 -0
- package/guide/human/app-setup/console.md +352 -0
- package/guide/human/app-setup/database-layer.md +822 -0
- package/guide/human/app-setup/initial-scaffolding.md +738 -0
- package/guide/human/app-setup/multi-homing.md +795 -0
- package/guide/human/app-setup/users.md +404 -0
- package/guide/human/app-setup/working-with-the-jskit-cli.md +997 -0
- package/guide/human/generators/advanced-cruds.md +923 -0
- package/guide/human/generators/crud-generators.md +556 -0
- package/guide/human/generators/intro.md +109 -0
- package/guide/human/generators/ui-generators.md +665 -0
- package/guide/human/index.md +39 -0
- package/package.json +28 -0
- package/reference/autogen/KERNEL_MAP.md +536 -0
- package/reference/autogen/README.md +44 -0
- package/reference/autogen/packages/agent-docs.md +13 -0
- package/reference/autogen/packages/assistant-core.md +310 -0
- package/reference/autogen/packages/assistant-runtime.md +219 -0
- package/reference/autogen/packages/assistant.md +73 -0
- package/reference/autogen/packages/auth-core.md +352 -0
- package/reference/autogen/packages/auth-provider-supabase-core.md +223 -0
- package/reference/autogen/packages/auth-web.md +267 -0
- package/reference/autogen/packages/console-core.md +116 -0
- package/reference/autogen/packages/console-web.md +37 -0
- package/reference/autogen/packages/crud-core.md +283 -0
- package/reference/autogen/packages/crud-server-generator.md +220 -0
- package/reference/autogen/packages/crud-ui-generator.md +154 -0
- package/reference/autogen/packages/database-runtime-mysql.md +61 -0
- package/reference/autogen/packages/database-runtime-postgres.md +39 -0
- package/reference/autogen/packages/database-runtime.md +216 -0
- package/reference/autogen/packages/http-runtime.md +213 -0
- package/reference/autogen/packages/kernel.md +1350 -0
- package/reference/autogen/packages/realtime.md +95 -0
- package/reference/autogen/packages/shell-web.md +349 -0
- package/reference/autogen/packages/storage-runtime.md +39 -0
- package/reference/autogen/packages/ui-generator.md +101 -0
- package/reference/autogen/packages/uploads-image-web.md +76 -0
- package/reference/autogen/packages/uploads-runtime.md +85 -0
- package/reference/autogen/packages/users-core.md +307 -0
- package/reference/autogen/packages/users-web.md +473 -0
- package/reference/autogen/packages/workspaces-core.md +415 -0
- package/reference/autogen/packages/workspaces-web.md +372 -0
- package/reference/autogen/tooling/config-eslint.md +52 -0
- package/reference/autogen/tooling/create-app.md +194 -0
- package/reference/autogen/tooling/jskit-catalog.md +27 -0
- package/reference/autogen/tooling/jskit-cli.md +624 -0
- package/reference/autogen/tooling/test-support.md +27 -0
- package/reference/autogen/tooling/testUtils.md +31 -0
- package/templates/APP_BLUEPRINT.md +57 -0
- package/workflow/app-state.md +33 -0
- package/workflow/bootstrap.md +24 -0
- package/workflow/feature-delivery.md +21 -0
- package/workflow/review.md +22 -0
- 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.
|