@elevasis/sdk 1.14.0 → 1.15.0
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/dist/cli.cjs +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/index.js +76 -5
- package/dist/test-utils/index.d.ts +32 -0
- package/dist/test-utils/index.js +2 -0
- package/dist/worker/index.js +1 -0
- package/package.json +2 -2
- package/reference/claude-config/rules/agent-start-here.md +235 -235
- package/reference/claude-config/rules/organization-os.md +103 -103
- package/reference/claude-config/rules/platform.md +1 -1
- package/reference/claude-config/rules/ui.md +204 -204
- package/reference/claude-config/rules/vibe.md +208 -208
- package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +2 -0
- package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +93 -0
- package/reference/scaffold/index.mdx +67 -67
- package/reference/scaffold/recipes/customize-crm-actions.md +433 -408
- package/reference/scaffold/recipes/extend-lead-gen.md +28 -30
- package/reference/scaffold/recipes/index.md +41 -41
- package/reference/scaffold/reference/contracts.md +979 -967
- package/reference/scaffold/ui/customization.md +1 -1
|
@@ -1,260 +1,260 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Canonical first-read for agents entering the template scaffold -- project continuity, task-class routing, and boundary resolution
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Agent Start Here
|
|
6
|
-
|
|
7
|
-
Read this file first when entering a freshly scaffolded project.
|
|
8
|
-
|
|
9
|
-
## First Action: Check Active Projects
|
|
10
|
-
|
|
11
|
-
Before loading any docs for a new session, check whether the user's ask resumes or relates to an in-flight client project. Project context (milestones, tasks, resume notes) is DB-canonical -- agents and CLI read/write it through the `elevasis-sdk project:*` surface.
|
|
12
|
-
|
|
13
|
-
1. **Portfolio snapshot.** Run this first to see what is active or blocked:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pnpm elevasis-sdk project:list --status active --pretty
|
|
17
|
-
pnpm elevasis-sdk project:list --status blocked --pretty
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. **Resume-style asks.** If the user says "continue", "pick up", references a client name, or names a task/milestone, resolve it via:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
pnpm elevasis-sdk project:work <query>
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
`project:work` fuzzy-matches a project or task by name/ID and returns the current resume context -- the canonical continuity payload (current state, next steps, files modified, key docs).
|
|
27
|
-
|
|
28
|
-
3. **Fresh non-project asks.** Only if the portfolio snapshot and the request show no overlap with active projects, fall back to the docs-index flow below. Even then, if the work will take more than a single file edit, offer to create a project first (`/project create` or `project:create`) so continuity is captured from the start.
|
|
29
|
-
|
|
30
|
-
### Resume Context Source of Truth
|
|
31
|
-
|
|
32
|
-
`resume_context` lives in the `prj_tasks` table in the database, not in task-doc frontmatter. There is one source of truth:
|
|
33
|
-
|
|
34
|
-
- **Humans write** via the inline resume-context editor on the Project Detail page in Command Center.
|
|
35
|
-
- **Agents and the CLI write** via `pnpm elevasis-sdk project:task:save <task-id> --current-state ... --next-steps ... --files-modified ...`.
|
|
36
|
-
- **Readers** consume it via `project:work <query>` or `project:task:resume <id>`.
|
|
37
|
-
|
|
38
|
-
Do not write resume state into markdown frontmatter. Task-doc frontmatter is limited to `title`, `description`, and `status`.
|
|
39
|
-
|
|
40
|
-
### Session-Start Dashboard
|
|
41
|
-
|
|
42
|
-
The session-start dashboard directive lives in `CLAUDE.md`. If you see it there, follow it on the first response of a session. This file (`agent-start-here` rule) is the drill-down reference layer; `CLAUDE.md` owns session bootstrap.
|
|
43
|
-
|
|
44
|
-
## Template Surfaces
|
|
45
|
-
|
|
46
|
-
Once project continuity is resolved (or confirmed irrelevant), the template is not just an app starter. It is an agent operating environment with several distinct surfaces:
|
|
47
|
-
|
|
48
|
-
- `ui/` -- React frontend app and shell composition
|
|
49
|
-
- `operations/` -- Elevasis SDK resources deployed to the platform
|
|
1
|
+
---
|
|
2
|
+
description: Canonical first-read for agents entering the template scaffold -- project continuity, task-class routing, and boundary resolution
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Agent Start Here
|
|
6
|
+
|
|
7
|
+
Read this file first when entering a freshly scaffolded project.
|
|
8
|
+
|
|
9
|
+
## First Action: Check Active Projects
|
|
10
|
+
|
|
11
|
+
Before loading any docs for a new session, check whether the user's ask resumes or relates to an in-flight client project. Project context (milestones, tasks, resume notes) is DB-canonical -- agents and CLI read/write it through the `elevasis-sdk project:*` surface.
|
|
12
|
+
|
|
13
|
+
1. **Portfolio snapshot.** Run this first to see what is active or blocked:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm elevasis-sdk project:list --status active --pretty
|
|
17
|
+
pnpm elevasis-sdk project:list --status blocked --pretty
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
2. **Resume-style asks.** If the user says "continue", "pick up", references a client name, or names a task/milestone, resolve it via:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm elevasis-sdk project:work <query>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`project:work` fuzzy-matches a project or task by name/ID and returns the current resume context -- the canonical continuity payload (current state, next steps, files modified, key docs).
|
|
27
|
+
|
|
28
|
+
3. **Fresh non-project asks.** Only if the portfolio snapshot and the request show no overlap with active projects, fall back to the docs-index flow below. Even then, if the work will take more than a single file edit, offer to create a project first (`/project create` or `project:create`) so continuity is captured from the start.
|
|
29
|
+
|
|
30
|
+
### Resume Context Source of Truth
|
|
31
|
+
|
|
32
|
+
`resume_context` lives in the `prj_tasks` table in the database, not in task-doc frontmatter. There is one source of truth:
|
|
33
|
+
|
|
34
|
+
- **Humans write** via the inline resume-context editor on the Project Detail page in Command Center.
|
|
35
|
+
- **Agents and the CLI write** via `pnpm elevasis-sdk project:task:save <task-id> --current-state ... --next-steps ... --files-modified ...`.
|
|
36
|
+
- **Readers** consume it via `project:work <query>` or `project:task:resume <id>`.
|
|
37
|
+
|
|
38
|
+
Do not write resume state into markdown frontmatter. Task-doc frontmatter is limited to `title`, `description`, and `status`.
|
|
39
|
+
|
|
40
|
+
### Session-Start Dashboard
|
|
41
|
+
|
|
42
|
+
The session-start dashboard directive lives in `CLAUDE.md`. If you see it there, follow it on the first response of a session. This file (`agent-start-here` rule) is the drill-down reference layer; `CLAUDE.md` owns session bootstrap.
|
|
43
|
+
|
|
44
|
+
## Template Surfaces
|
|
45
|
+
|
|
46
|
+
Once project continuity is resolved (or confirmed irrelevant), the template is not just an app starter. It is an agent operating environment with several distinct surfaces:
|
|
47
|
+
|
|
48
|
+
- `ui/` -- React frontend app and shell composition
|
|
49
|
+
- `operations/` -- Elevasis SDK resources deployed to the platform
|
|
50
50
|
- `core/` -- runtime-agnostic shared contracts and organization model adaptation
|
|
51
|
-
- `.claude/` -- local agent rules, skills, and hooks
|
|
52
|
-
- `client-workspace/` -- optional separate knowledge workspace for richer team knowledge management
|
|
53
|
-
- `node_modules/@elevasis/sdk/reference/scaffold/` -- SDK reference scaffold: canonical recipes, UI patterns, gating model, contracts, and glossary. Entry point: `index.mdx`.
|
|
54
|
-
|
|
55
|
-
## Discovery Order
|
|
56
|
-
|
|
57
|
-
Use this order unless a more specific doc tells you otherwise:
|
|
58
|
-
|
|
59
|
-
1. Complete the "First Action: Check Active Projects" flow above.
|
|
60
|
-
2. Read `CLAUDE.md` for project rules, command surface, and navigation pointers.
|
|
61
|
-
3. Read this rule and classify the task using the Task Classes below.
|
|
51
|
+
- `.claude/` -- local agent rules, skills, and hooks
|
|
52
|
+
- `client-workspace/` -- optional separate knowledge workspace for richer team knowledge management
|
|
53
|
+
- `node_modules/@elevasis/sdk/reference/scaffold/` -- SDK reference scaffold: canonical recipes, UI patterns, gating model, contracts, and glossary. Entry point: `index.mdx`.
|
|
54
|
+
|
|
55
|
+
## Discovery Order
|
|
56
|
+
|
|
57
|
+
Use this order unless a more specific doc tells you otherwise:
|
|
58
|
+
|
|
59
|
+
1. Complete the "First Action: Check Active Projects" flow above.
|
|
60
|
+
2. Read `CLAUDE.md` for project rules, command surface, and navigation pointers.
|
|
61
|
+
3. Read this rule and classify the task using the Task Classes below.
|
|
62
62
|
4. Read `identity.clientBrief` from the OrganizationModel (`core/config/organization-model.ts`) for organization context and naming.
|
|
63
|
-
5. Read the relevant structural map:
|
|
64
|
-
- Glob `node_modules/@elevasis/sdk/reference/` for published package surfaces
|
|
65
|
-
- Glob `operations/resources/**` for source, or run `pnpm elevasis-sdk project:list --pretty` for live DB state
|
|
66
|
-
6. For feature integration, resource authoring, or UI customization tasks, read `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` to find the canonical recipe or reference doc.
|
|
67
|
-
7. Drill into the co-located local explainer for the abstraction boundary you are changing.
|
|
68
|
-
8. Check the `.claude/rules/active-change-index.md` rule before trusting stable assumptions in areas that are under active architecture work.
|
|
69
|
-
|
|
70
|
-
## SDK Reference Scaffold
|
|
71
|
-
|
|
72
|
-
Universal scaffold documentation (recipes, patterns, architecture, reference) has been centralized in the SDK reference. After `pnpm install`, the entry point is:
|
|
73
|
-
|
|
74
|
-
`node_modules/@elevasis/sdk/reference/scaffold/index.mdx`
|
|
75
|
-
|
|
76
|
-
This index links to all scaffold docs including pathway recipes, UI patterns, core architecture, and auto-generated contracts/feature registry.
|
|
77
|
-
|
|
78
|
-
For task classes that involve feature integration, resource authoring, or UI customization, start with the scaffold index rather than local docs.
|
|
79
|
-
|
|
80
|
-
## Task Classes
|
|
81
|
-
|
|
82
|
-
Classify the request, then follow the load/inspect/verify sequence for that class.
|
|
83
|
-
|
|
84
|
-
### 1. UI / Shell Work
|
|
85
|
-
|
|
86
|
-
Examples: add a page, change sidebar behavior, adjust feature visibility, update dashboard labels.
|
|
87
|
-
|
|
88
|
-
Load first:
|
|
89
|
-
|
|
90
|
-
- `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` (scaffold index -- UI recipes, feature flags, customization)
|
|
91
|
-
- `.claude/rules/ui.md`
|
|
63
|
+
5. Read the relevant structural map:
|
|
64
|
+
- Glob `node_modules/@elevasis/sdk/reference/` for published package surfaces
|
|
65
|
+
- Glob `operations/resources/**` for source, or run `pnpm elevasis-sdk project:list --pretty` for live DB state
|
|
66
|
+
6. For feature integration, resource authoring, or UI customization tasks, read `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` to find the canonical recipe or reference doc.
|
|
67
|
+
7. Drill into the co-located local explainer for the abstraction boundary you are changing.
|
|
68
|
+
8. Check the `.claude/rules/active-change-index.md` rule before trusting stable assumptions in areas that are under active architecture work.
|
|
69
|
+
|
|
70
|
+
## SDK Reference Scaffold
|
|
71
|
+
|
|
72
|
+
Universal scaffold documentation (recipes, patterns, architecture, reference) has been centralized in the SDK reference. After `pnpm install`, the entry point is:
|
|
73
|
+
|
|
74
|
+
`node_modules/@elevasis/sdk/reference/scaffold/index.mdx`
|
|
75
|
+
|
|
76
|
+
This index links to all scaffold docs including pathway recipes, UI patterns, core architecture, and auto-generated contracts/feature registry.
|
|
77
|
+
|
|
78
|
+
For task classes that involve feature integration, resource authoring, or UI customization, start with the scaffold index rather than local docs.
|
|
79
|
+
|
|
80
|
+
## Task Classes
|
|
81
|
+
|
|
82
|
+
Classify the request, then follow the load/inspect/verify sequence for that class.
|
|
83
|
+
|
|
84
|
+
### 1. UI / Shell Work
|
|
85
|
+
|
|
86
|
+
Examples: add a page, change sidebar behavior, adjust feature visibility, update dashboard labels.
|
|
87
|
+
|
|
88
|
+
Load first:
|
|
89
|
+
|
|
90
|
+
- `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` (scaffold index -- UI recipes, feature flags, customization)
|
|
91
|
+
- `.claude/rules/ui.md`
|
|
92
92
|
- `ui/src/routes/README.md`
|
|
93
93
|
- `core/config/README.md`
|
|
94
94
|
- `node_modules/@elevasis/sdk/reference/scaffold/ui/recipes.md` -- specifically recipe 6 when building a "run this resource" surface
|
|
95
95
|
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md` -- when building or extending CRM pages, sidebars, hooks, workflows, or deal data surfaces
|
|
96
|
-
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` -- when building or extending lead-gen pages, sidebars, hooks, workflows, list/member state,
|
|
96
|
+
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` -- when building or extending lead-gen pages, sidebars, hooks, workflows, list/member state, or artifacts
|
|
97
97
|
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` -- when changing CRM deal action buttons or adding a workflow-backed deal action
|
|
98
98
|
|
|
99
99
|
Then inspect:
|
|
100
|
-
|
|
101
|
-
- `ui/src/routes/__root.tsx`
|
|
102
|
-
- `ui/src/config/*`
|
|
103
|
-
- relevant `ui/src/routes/*`
|
|
104
|
-
- relevant `ui/src/features/*`
|
|
100
|
+
|
|
101
|
+
- `ui/src/routes/__root.tsx`
|
|
102
|
+
- `ui/src/config/*`
|
|
103
|
+
- relevant `ui/src/routes/*`
|
|
104
|
+
- relevant `ui/src/features/*`
|
|
105
105
|
- `core/config/organization-model.ts`
|
|
106
|
-
|
|
107
|
-
Verify with:
|
|
108
|
-
|
|
109
|
-
- route and manifest source
|
|
110
|
-
- any relevant package README from `packages/ui`
|
|
111
|
-
|
|
112
|
-
### 2. Workflow / Agent / Operations Work
|
|
113
|
-
|
|
114
|
-
Examples: add a workflow, update an agent, change resource registration, understand deployable resources.
|
|
115
|
-
|
|
116
|
-
Load first:
|
|
117
|
-
|
|
118
|
-
- `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` (scaffold index -- workflow recipes, resource authoring)
|
|
119
|
-
- `.claude/rules/operations.md`
|
|
120
|
-
- `operations/src/README.md`
|
|
121
|
-
|
|
122
|
-
Then inspect:
|
|
123
|
-
|
|
124
|
-
- `operations/src/index.ts`
|
|
125
|
-
- relevant `operations/src/<feature>/*`
|
|
106
|
+
|
|
107
|
+
Verify with:
|
|
108
|
+
|
|
109
|
+
- route and manifest source
|
|
110
|
+
- any relevant package README from `packages/ui`
|
|
111
|
+
|
|
112
|
+
### 2. Workflow / Agent / Operations Work
|
|
113
|
+
|
|
114
|
+
Examples: add a workflow, update an agent, change resource registration, understand deployable resources.
|
|
115
|
+
|
|
116
|
+
Load first:
|
|
117
|
+
|
|
118
|
+
- `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` (scaffold index -- workflow recipes, resource authoring)
|
|
119
|
+
- `.claude/rules/operations.md`
|
|
120
|
+
- `operations/src/README.md`
|
|
121
|
+
|
|
122
|
+
Then inspect:
|
|
123
|
+
|
|
124
|
+
- `operations/src/index.ts`
|
|
125
|
+
- relevant `operations/src/<feature>/*`
|
|
126
126
|
- `core/types/index.ts` -- workflow input/output Zod schemas
|
|
127
127
|
- `core/types/entities.ts` -- typed entity contracts (Project, Deal, etc.) extending `@elevasis/core/entities` base types. Read this when authoring a workflow that takes or returns these entities so the input/output schemas reference the canonical entity shapes rather than redeclaring them.
|
|
128
|
-
- `operations/elevasis.config.ts`
|
|
129
|
-
|
|
130
|
-
Verify with:
|
|
131
|
-
|
|
132
|
-
- Glob `operations/resources/**` for local source files, or run `pnpm elevasis-sdk project:list --pretty` for live DB state
|
|
133
|
-
- local SDK guidance in `.claude/skills/elevasis/SKILL.md`
|
|
134
|
-
|
|
135
|
-
### 3. Organization Model / Feature Access Work
|
|
136
|
-
|
|
137
|
-
Examples: rename a feature area, change quick access surfaces, map new business terms into the shell, adjust feature gating.
|
|
138
|
-
|
|
139
|
-
Load first:
|
|
140
|
-
|
|
141
|
-
- `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` (scaffold index -- contracts, gating patterns, glossary)
|
|
128
|
+
- `operations/elevasis.config.ts`
|
|
129
|
+
|
|
130
|
+
Verify with:
|
|
131
|
+
|
|
132
|
+
- Glob `operations/resources/**` for local source files, or run `pnpm elevasis-sdk project:list --pretty` for live DB state
|
|
133
|
+
- local SDK guidance in `.claude/skills/elevasis/SKILL.md`
|
|
134
|
+
|
|
135
|
+
### 3. Organization Model / Feature Access Work
|
|
136
|
+
|
|
137
|
+
Examples: rename a feature area, change quick access surfaces, map new business terms into the shell, adjust feature gating.
|
|
138
|
+
|
|
139
|
+
Load first:
|
|
140
|
+
|
|
141
|
+
- `node_modules/@elevasis/sdk/reference/scaffold/index.mdx` (scaffold index -- contracts, gating patterns, glossary)
|
|
142
142
|
- `core/config/README.md`
|
|
143
143
|
- `node_modules/@elevasis/sdk/reference/scaffold/reference/contracts.md`
|
|
144
144
|
- typed feature/surface constants from `@elevasis/core/organization-model` -- `CRM_FEATURE_ID`, `LEAD_GEN_FEATURE_ID`, `PROJECTS_FEATURE_ID`, `OPERATIONS_FEATURE_ID`, `MONITORING_FEATURE_ID`, `SETTINGS_FEATURE_ID`, `SEO_FEATURE_ID`, `CRM_PIPELINE_SURFACE_ID`, `LEAD_GEN_LISTS_SURFACE_ID`, `PROJECTS_INDEX_SURFACE_ID`, `OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID`. Use these typed constants instead of magic strings when overriding feature/surface IDs.
|
|
145
145
|
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md` -- CRM is an Organization OS + UI + hooks + workflow-adapter surface; read this before extending CRM structure.
|
|
146
|
-
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` -- lead gen is an Organization OS + UI + hooks + workflow-adapter surface; read this before extending lead-gen lists, members, artifacts,
|
|
146
|
+
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` -- lead gen is an Organization OS + UI + hooks + workflow-adapter surface; read this before extending lead-gen lists, members, artifacts, or state transitions.
|
|
147
147
|
- `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` -- CRM action buttons are not `sales.actions` org-model config in v1; use the recipe's provider/custom-button path.
|
|
148
148
|
- `node_modules/@elevasis/sdk/reference/scaffold/ui/feature-flags-and-gating.md`
|
|
149
|
-
|
|
150
|
-
Then inspect:
|
|
151
|
-
|
|
149
|
+
|
|
150
|
+
Then inspect:
|
|
151
|
+
|
|
152
152
|
- `core/config/organization-model.ts`
|
|
153
153
|
- `core/config/organization-model.examples.ts` -- 5 reference patterns: branding override, CRM pipeline stage customization, lead-gen lifecycle customization, resource mapping registration, custom feature declaration. Not imported anywhere -- pure reference. Start here for the override pattern when extending the org model.
|
|
154
|
-
- `ui/src/routes/__root.tsx`
|
|
155
|
-
- `ui/src/lib/hooks/useFeatureAccess.ts`
|
|
156
|
-
- relevant nav config files
|
|
157
|
-
|
|
158
|
-
Verify with:
|
|
159
|
-
|
|
160
|
-
- published package docs for `@elevasis/core/organization-model`
|
|
161
|
-
- current scaffold routes and manifests
|
|
162
|
-
|
|
163
|
-
### 4. Debugging / Impact Analysis
|
|
164
|
-
|
|
165
|
-
Examples: why is this automation disconnected, what does this workflow affect, what should I inspect before changing this resource.
|
|
166
|
-
|
|
167
|
-
Load first:
|
|
168
|
-
|
|
169
|
-
- `operations/src/README.md`
|
|
170
|
-
- `.claude/rules/active-change-index.md`
|
|
171
|
-
- Glob `operations/resources/**` for source, or run `pnpm elevasis-sdk project:list --pretty` for live DB state
|
|
172
|
-
|
|
173
|
-
Then inspect:
|
|
174
|
-
|
|
175
|
-
- `operations/src/index.ts`
|
|
176
|
-
- resource definitions
|
|
177
|
-
- related UI route and feature files
|
|
154
|
+
- `ui/src/routes/__root.tsx`
|
|
155
|
+
- `ui/src/lib/hooks/useFeatureAccess.ts`
|
|
156
|
+
- relevant nav config files
|
|
157
|
+
|
|
158
|
+
Verify with:
|
|
159
|
+
|
|
160
|
+
- published package docs for `@elevasis/core/organization-model`
|
|
161
|
+
- current scaffold routes and manifests
|
|
162
|
+
|
|
163
|
+
### 4. Debugging / Impact Analysis
|
|
164
|
+
|
|
165
|
+
Examples: why is this automation disconnected, what does this workflow affect, what should I inspect before changing this resource.
|
|
166
|
+
|
|
167
|
+
Load first:
|
|
168
|
+
|
|
169
|
+
- `operations/src/README.md`
|
|
170
|
+
- `.claude/rules/active-change-index.md`
|
|
171
|
+
- Glob `operations/resources/**` for source, or run `pnpm elevasis-sdk project:list --pretty` for live DB state
|
|
172
|
+
|
|
173
|
+
Then inspect:
|
|
174
|
+
|
|
175
|
+
- `operations/src/index.ts`
|
|
176
|
+
- resource definitions
|
|
177
|
+
- related UI route and feature files
|
|
178
178
|
- related core contracts
|
|
179
|
-
|
|
180
|
-
Verify with:
|
|
181
|
-
|
|
182
|
-
- resource registration and relationship declarations
|
|
183
|
-
- generated maps
|
|
184
|
-
- package and source ownership boundaries
|
|
185
|
-
|
|
186
|
-
### 5. Platform Extension / Package Contract Work
|
|
187
|
-
|
|
188
|
-
Examples: extend a published package contract, understand how a scaffold surface maps to `@elevasis/ui`, update a package-facing reference doc.
|
|
189
|
-
|
|
190
|
-
Load first:
|
|
191
|
-
|
|
192
|
-
- `.claude/rules/active-change-index.md`
|
|
193
|
-
- Glob `node_modules/@elevasis/sdk/reference/` for the current SDK package surface
|
|
194
|
-
- package README found via that glob
|
|
195
|
-
|
|
196
|
-
Then inspect:
|
|
197
|
-
|
|
198
|
-
- package source entrypoints
|
|
199
|
-
- package reference manifests
|
|
200
|
-
- scaffold files that consume that contract
|
|
201
|
-
|
|
202
|
-
Verify with:
|
|
203
|
-
|
|
204
|
-
- published package docs
|
|
205
|
-
- source exports
|
|
206
|
-
- scaffold consumption points
|
|
207
|
-
|
|
208
|
-
## Boundary Resolution
|
|
209
|
-
|
|
210
|
-
Once the request is classified, determine which boundary owns the change:
|
|
211
|
-
|
|
179
|
+
|
|
180
|
+
Verify with:
|
|
181
|
+
|
|
182
|
+
- resource registration and relationship declarations
|
|
183
|
+
- generated maps
|
|
184
|
+
- package and source ownership boundaries
|
|
185
|
+
|
|
186
|
+
### 5. Platform Extension / Package Contract Work
|
|
187
|
+
|
|
188
|
+
Examples: extend a published package contract, understand how a scaffold surface maps to `@elevasis/ui`, update a package-facing reference doc.
|
|
189
|
+
|
|
190
|
+
Load first:
|
|
191
|
+
|
|
192
|
+
- `.claude/rules/active-change-index.md`
|
|
193
|
+
- Glob `node_modules/@elevasis/sdk/reference/` for the current SDK package surface
|
|
194
|
+
- package README found via that glob
|
|
195
|
+
|
|
196
|
+
Then inspect:
|
|
197
|
+
|
|
198
|
+
- package source entrypoints
|
|
199
|
+
- package reference manifests
|
|
200
|
+
- scaffold files that consume that contract
|
|
201
|
+
|
|
202
|
+
Verify with:
|
|
203
|
+
|
|
204
|
+
- published package docs
|
|
205
|
+
- source exports
|
|
206
|
+
- scaffold consumption points
|
|
207
|
+
|
|
208
|
+
## Boundary Resolution
|
|
209
|
+
|
|
210
|
+
Once the request is classified, determine which boundary owns the change:
|
|
211
|
+
|
|
212
212
|
- **Core boundary** -- semantics, aliases, labels, shared schemas
|
|
213
|
-
- **UI shell boundary** -- provider composition, manifests, navigation, route ownership
|
|
214
|
-
- **Operations boundary** -- deployable resource registration, workflow/agent contracts, topology
|
|
215
|
-
- **Package boundary** -- public exports, shared platform behavior, reusable contracts
|
|
216
|
-
|
|
217
|
-
If a task spans boundaries, start at the semantic boundary, then move to runtime composition, then to registration/deployment.
|
|
218
|
-
|
|
219
|
-
## Main Boundaries
|
|
220
|
-
|
|
213
|
+
- **UI shell boundary** -- provider composition, manifests, navigation, route ownership
|
|
214
|
+
- **Operations boundary** -- deployable resource registration, workflow/agent contracts, topology
|
|
215
|
+
- **Package boundary** -- public exports, shared platform behavior, reusable contracts
|
|
216
|
+
|
|
217
|
+
If a task spans boundaries, start at the semantic boundary, then move to runtime composition, then to registration/deployment.
|
|
218
|
+
|
|
219
|
+
## Main Boundaries
|
|
220
|
+
|
|
221
221
|
### `core/config/organization-model.ts`
|
|
222
|
-
|
|
223
|
-
The semantic adaptation point between platform contracts and scaffold-local terminology. Start here for feature labels, legacy aliases, quick-access surfaces, and shell-facing organization semantics.
|
|
224
|
-
|
|
225
|
-
### `ui/src/routes/__root.tsx`
|
|
226
|
-
|
|
227
|
-
The shell composition point. Start here for manifest mounting, provider wiring, app-local nav, and how the scaffold combines published feature surfaces with project-owned shell concerns.
|
|
228
|
-
|
|
229
|
-
### `operations/src/index.ts`
|
|
230
|
-
|
|
231
|
-
The deployment aggregation point. Start here for what resources are registered and deployed as part of the scaffold.
|
|
232
|
-
|
|
233
|
-
## Source of Truth
|
|
234
|
-
|
|
235
|
-
Trust these in order:
|
|
236
|
-
|
|
237
|
-
1. Source code and published package docs
|
|
238
|
-
2. Co-located boundary docs
|
|
239
|
-
3. Generated structural maps
|
|
240
|
-
4. Hand-authored template guidance
|
|
241
|
-
5. In-progress architecture docs when `.claude/rules/active-change-index.md` says the area is actively evolving
|
|
242
|
-
|
|
243
|
-
If a hand-authored doc conflicts with source or published package docs, trust source and flag the doc drift.
|
|
244
|
-
|
|
245
|
-
## Common Traps
|
|
246
|
-
|
|
247
|
-
- Do not assume `operations/resources/**` is exhaustive without also checking `operations/src/index.ts` directly.
|
|
222
|
+
|
|
223
|
+
The semantic adaptation point between platform contracts and scaffold-local terminology. Start here for feature labels, legacy aliases, quick-access surfaces, and shell-facing organization semantics.
|
|
224
|
+
|
|
225
|
+
### `ui/src/routes/__root.tsx`
|
|
226
|
+
|
|
227
|
+
The shell composition point. Start here for manifest mounting, provider wiring, app-local nav, and how the scaffold combines published feature surfaces with project-owned shell concerns.
|
|
228
|
+
|
|
229
|
+
### `operations/src/index.ts`
|
|
230
|
+
|
|
231
|
+
The deployment aggregation point. Start here for what resources are registered and deployed as part of the scaffold.
|
|
232
|
+
|
|
233
|
+
## Source of Truth
|
|
234
|
+
|
|
235
|
+
Trust these in order:
|
|
236
|
+
|
|
237
|
+
1. Source code and published package docs
|
|
238
|
+
2. Co-located boundary docs
|
|
239
|
+
3. Generated structural maps
|
|
240
|
+
4. Hand-authored template guidance
|
|
241
|
+
5. In-progress architecture docs when `.claude/rules/active-change-index.md` says the area is actively evolving
|
|
242
|
+
|
|
243
|
+
If a hand-authored doc conflicts with source or published package docs, trust source and flag the doc drift.
|
|
244
|
+
|
|
245
|
+
## Common Traps
|
|
246
|
+
|
|
247
|
+
- Do not assume `operations/resources/**` is exhaustive without also checking `operations/src/index.ts` directly.
|
|
248
248
|
- Do not assume placeholder knowledge is sufficient for real client context. Read `identity.clientBrief` from the OrganizationModel (`core/config/organization-model.ts`).
|
|
249
|
-
- Do not trust stable docs blindly when `.claude/rules/active-change-index.md` flags related in-progress architecture work.
|
|
250
|
-
- Do not write `resume_context` into task-doc frontmatter. DB is canonical; write via `project:task:save` or the inline editor in Command Center.
|
|
251
|
-
|
|
252
|
-
## Operations-Only Projects
|
|
253
|
-
|
|
249
|
+
- Do not trust stable docs blindly when `.claude/rules/active-change-index.md` flags related in-progress architecture work.
|
|
250
|
+
- Do not write `resume_context` into task-doc frontmatter. DB is canonical; write via `project:task:save` or the inline editor in Command Center.
|
|
251
|
+
|
|
252
|
+
## Operations-Only Projects
|
|
253
|
+
|
|
254
254
|
Some projects derived from this template are operations-only. They have `operations/` (or a top-level `src/`) but NO `ui/`, NO `core/config/organization-model.ts`, and NO frontend. Finding none of these is not missing scaffolding -- it is by design.
|
|
255
|
-
|
|
256
|
-
**What applies:** Only Task Classes 2 (Workflow / Agent / Operations Work) and 4 (Debugging / Impact Analysis) apply to operations-only projects. Task Classes 1 (UI / Shell Work), 3 (Organization Model / Feature Access Work), and 5 (Platform Extension / Package Contract Work) do not apply and can be skipped.
|
|
257
|
-
|
|
258
|
-
**Primary entrypoint:** For operations-only projects, the project's own `CLAUDE.md` and its Navigation table are the canonical first-read. This rule provides task-routing context but its full surface map is irrelevant for that project type.
|
|
259
|
-
|
|
260
|
-
**Signal:** The `CLAUDE.md` of an operations-only project includes `Project type: operations-only` in its `## Project` section. When you see this signal, skip all template surfaces that don't exist and go directly to the operations task class.
|
|
255
|
+
|
|
256
|
+
**What applies:** Only Task Classes 2 (Workflow / Agent / Operations Work) and 4 (Debugging / Impact Analysis) apply to operations-only projects. Task Classes 1 (UI / Shell Work), 3 (Organization Model / Feature Access Work), and 5 (Platform Extension / Package Contract Work) do not apply and can be skipped.
|
|
257
|
+
|
|
258
|
+
**Primary entrypoint:** For operations-only projects, the project's own `CLAUDE.md` and its Navigation table are the canonical first-read. This rule provides task-routing context but its full surface map is irrelevant for that project type.
|
|
259
|
+
|
|
260
|
+
**Signal:** The `CLAUDE.md` of an operations-only project includes `Project type: operations-only` in its `## Project` section. When you see this signal, skip all template surfaces that don't exist and go directly to the operations task class.
|