@elevasis/sdk 0.5.11 → 0.5.13

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 (33) hide show
  1. package/dist/cli.cjs +276 -298
  2. package/dist/index.d.ts +13 -256
  3. package/dist/index.js +10 -38
  4. package/dist/templates.js +193 -187
  5. package/dist/types/worker/adapters/index.d.ts +0 -1
  6. package/dist/worker/index.js +126 -75
  7. package/package.json +1 -1
  8. package/reference/_navigation.md +13 -57
  9. package/reference/concepts.mdx +203 -0
  10. package/reference/deployment/{command-center-ui.mdx → command-center.mdx} +229 -151
  11. package/reference/deployment/index.mdx +158 -153
  12. package/reference/framework/agent.mdx +168 -151
  13. package/reference/framework/index.mdx +182 -103
  14. package/reference/framework/memory.mdx +347 -347
  15. package/reference/framework/project-structure.mdx +3 -13
  16. package/reference/framework/tutorial-system.mdx +253 -0
  17. package/reference/{getting-started/index.mdx → getting-started.mdx} +6 -7
  18. package/reference/index.mdx +117 -114
  19. package/reference/platform-tools/adapters.mdx +175 -32
  20. package/reference/platform-tools/index.mdx +354 -195
  21. package/reference/resources/index.mdx +5 -0
  22. package/reference/{roadmap/index.mdx → roadmap.mdx} +1 -1
  23. package/reference/{runtime/index.mdx → runtime.mdx} +196 -141
  24. package/dist/types/worker/adapters/trello.d.ts +0 -14
  25. package/reference/concepts/index.mdx +0 -203
  26. package/reference/deployment/command-view.mdx +0 -154
  27. package/reference/framework/documentation.mdx +0 -92
  28. package/reference/platform-tools/examples.mdx +0 -170
  29. package/reference/runtime/limits.mdx +0 -75
  30. package/reference/security/credentials.mdx +0 -141
  31. /package/reference/{cli/index.mdx → cli.mdx} +0 -0
  32. /package/reference/{developer → framework}/interaction-guidance.mdx +0 -0
  33. /package/reference/{troubleshooting/common-errors.mdx → troubleshooting.mdx} +0 -0
@@ -1,103 +1,182 @@
1
- ---
2
- title: Development Framework
3
- description: The SDK scaffolds a complete development environment for Claude Code -- project instructions, slash commands, cross-session memory, and template versioning
4
- loadWhen: "Understanding the agent framework structure"
5
- ---
6
-
7
- `elevasis-sdk init` scaffolds more than code. It builds a development environment designed around Claude Code as the primary interface. Most external SDK developers are non-technical -- they write workflows through conversation, not by reading API docs. The framework gives the agent everything it needs to guide those users effectively from the first session onward.
8
-
9
- The framework lives entirely in `.claude/`. It is never deployed and never touches the `docs/` directory, which ships to the platform.
10
-
11
- ## What Gets Scaffolded
12
-
13
- Running `elevasis-sdk init my-project` produces the following agent infrastructure alongside your source files:
14
-
15
- ```
16
- .claude/
17
- ├── settings.json # autoCompact: false
18
- ├── commands/
19
- │ ├── meta.md # Project lifecycle (init, fix, deploy, health)
20
- │ ├── docs.md # Browse, create, and verify permanent docs
21
- │ ├── tutorial.md # Progressive learning path (3 tracks)
22
- │ └── work.md # Task tracking
23
- ├── hooks/
24
- │ └── enforce-sdk-boundary.mjs # Blocks destructive git, gh CLI, external writes
25
- ├── skills/
26
- │ └── creds/SKILL.md # Credential management (auto-triggers)
27
- └── rules/
28
- ├── sdk-patterns.md # SDK patterns (auto-loaded for src/ files)
29
- ├── docs-authoring.md # MDX conventions (auto-loaded for docs/ files)
30
- ├── memory-conventions.md # Memory conventions (auto-loaded)
31
- ├── project-map.md # Project map conventions (auto-loaded)
32
- ├── task-tracking.md # Task tracking conventions (auto-loaded)
33
- └── workspace-patterns.md # Project-specific patterns (grows over time)
34
- ```
35
-
36
- The `memory/` directory is gitignored -- it is personal to each developer and not shared with collaborators. Everything else in `.claude/` is committed.
37
-
38
- CLAUDE.md is scaffolded with an `<!-- initialized: false -->` HTML comment at the very top. When the agent reads this flag on session start and finds it false, it automatically runs the `/meta init` flow -- no slash command knowledge required from the user. After initialization completes the agent changes the flag to `<!-- initialized: true -->`, so subsequent sessions proceed normally.
39
-
40
- ## Why It Works This Way
41
-
42
- The agent needs three things to guide a non-technical developer well:
43
-
44
- - **Who the user is** -- their TypeScript experience, automation background, and project goals, stored in `.claude/memory/profile/` as markdown files and created during `/meta init`
45
- - **What has happened in this project** -- deployment state, credentials, errors encountered, and architectural decisions, stored in `.claude/memory/` and loaded on demand
46
- - **How to behave** -- adaptive guidance rules in `CLAUDE.md` that translate experience levels into concrete behaviors: complete code examples for beginners, concise fixes for advanced users
47
-
48
- The agent reads `memory/index.md` at session start and drills into `memory/profile/skills.md` for adaptive behavior. It adjusts its tone, explanation depth, and proactivity based on what it finds. This happens silently -- the developer sees a helpful response, not a loading message.
49
-
50
- ## The Framework Components
51
-
52
- ### Agent System
53
-
54
- The `CLAUDE.md` file drives all agent behavior. It contains the session initialization instructions, adaptive guidance tiers, memory maintenance rules, and slash command definitions. No hooks, no code enforcement -- everything is instruction-driven so non-technical users never need to configure anything.
55
-
56
- The `/meta` command manages the project lifecycle: `/meta init` for guided setup, `/meta fix` for SDK upgrades, drift repair, and documentation verification, `/meta deploy` for deployments, `/meta health` for debugging executions. `/docs` browses, creates, and verifies permanent documentation in `docs/`. `/work` tracks tasks across sessions, and `/tutorial` guides new developers through a menu-driven multi-track learning path. A `creds` skill auto-triggers when credential setup is needed.
57
-
58
- See [Agent System](agent.mdx) for CLAUDE.md sections, slash command reference, developer profile, and adaptive guidance tiers.
59
-
60
- ### Memory System
61
-
62
- The `memory/` directory follows a hierarchical index tree pattern: a root `index.md` maps to topic files and subdirectories, each subdirectory has its own index. The agent reads only the root index at session start and drills into detail files on demand. The `memory/profile/` subdirectory is seeded by `/meta init` during guided setup; other topics are created by the agent as needed.
63
-
64
- Topics include developer profile (identity, skills, preferences), deployment state, environment credentials, architectural decisions, and error patterns. Error tracking starts as a subdirectory because it naturally spans multiple categories. Other topics start as flat files and split when they outgrow a single document.
65
-
66
- See [Memory System](memory.mdx) for architecture, error tracking format, scaling rules, and maintenance guidelines.
67
-
68
- ### Project Structure
69
-
70
- The scaffolded project separates concerns clearly: `src/` for resources, `docs/` for platform documentation, `.claude/` for agent infrastructure, and config files at the root. Understanding which files are gitignored, which are committed, and why matters for collaborating on projects.
71
-
72
- See [Project Structure](project-structure.mdx) for a file-by-file walkthrough of the scaffolded project.
73
-
74
- ### Documentation
75
-
76
- Every SDK project ships its own MDX documentation alongside its resources. The `docs/` directory is bundled into each deployment and served from the platform. This is where you document what your resources do, how to use them, and what inputs they expect.
77
-
78
- See [Documentation](documentation.mdx) for writing MDX docs, file limits, and the deploy pipeline.
79
-
80
- ## Adaptive Guidance
81
-
82
- The agent adapts its communication based on four independent skill dimensions stored in `memory/profile/skills.md`:
83
-
84
- | Dimension | Levels | Assessment |
85
- | --- | --- | --- |
86
- | Platform Navigation | none / oriented / comfortable | Direct question |
87
- | API & Integration | none / basic / proficient | Inferred from automation + tools |
88
- | Automation Concepts | none / low-code / custom | Direct question |
89
- | Domain Expertise | high / low | Inferred from identity answers |
90
-
91
- Each dimension has its own adaptation rules in the [Interaction Guidance](../developer/interaction-guidance.mdx) reference. A user who has deep Zapier experience (automation: low-code) but has never called an API directly (apiIntegration: none) will get credential walkthroughs every time while having automation concepts treated as familiar ground.
92
-
93
- `/meta init` runs a 6-question assessment: 3 identity questions, 2 competency questions, and 1 communication preference. Platform Navigation and Automation are assessed directly. API & Integration is inferred from the automation level and tools the user already uses. Domain Expertise is inferred from how specifically the user describes their goals.
94
-
95
- See [Agent System](agent.mdx) for the full assessment question set, dimensional interaction rules, and communication principles.
96
-
97
- ### Skills Auto-Update
98
-
99
- The Growth Log in `memory/profile/skills.md` keeps approximately 20 recent entries. The agent adds an entry whenever it observes the user performing something they previously needed help with. When a consistent pattern of growth is observed -- typically after several independent successes -- the agent promotes the observation to a level change in the relevant dimension.
100
-
101
- ---
102
-
103
- **Last Updated:** 2026-03-03
1
+ ---
2
+ title: Development Framework
3
+ description: The SDK scaffolds a complete development environment for Claude Code -- project instructions, slash commands, cross-session memory, template versioning, and resource documentation
4
+ loadWhen: "Understanding the agent framework structure"
5
+ ---
6
+
7
+ `elevasis-sdk init` scaffolds more than code. It builds a development environment designed around Claude Code as the primary interface. Most external SDK developers are non-technical -- they write workflows through conversation, not by reading API docs. The framework gives the agent everything it needs to guide those users effectively from the first session onward.
8
+
9
+ The framework lives entirely in `.claude/`. It is never deployed and never touches the `docs/` directory, which ships to the platform.
10
+
11
+ ## What Gets Scaffolded
12
+
13
+ Running `elevasis-sdk init my-project` produces the following agent infrastructure alongside your source files:
14
+
15
+ ```
16
+ .claude/
17
+ ├── settings.json # autoCompact: false
18
+ ├── commands/
19
+ │ ├── meta.md # Project lifecycle (init, fix, deploy, health)
20
+ │ ├── docs.md # Browse, create, and verify permanent docs
21
+ │ ├── tutorial.md # Progressive learning path (3 tracks)
22
+ │ └── work.md # Task tracking
23
+ ├── hooks/
24
+ │ └── enforce-sdk-boundary.mjs # Blocks destructive git, gh CLI, external writes
25
+ ├── skills/
26
+ │ └── creds/SKILL.md # Credential management (auto-triggers)
27
+ └── rules/
28
+ ├── sdk-patterns.md # SDK patterns (auto-loaded for src/ files)
29
+ ├── docs-authoring.md # MDX conventions (auto-loaded for docs/ files)
30
+ ├── memory-conventions.md # Memory conventions (auto-loaded)
31
+ ├── project-map.md # Project map conventions (auto-loaded)
32
+ ├── task-tracking.md # Task tracking conventions (auto-loaded)
33
+ └── workspace-patterns.md # Project-specific patterns (grows over time)
34
+ ```
35
+
36
+ The `memory/` directory is gitignored -- it is personal to each developer and not shared with collaborators. Everything else in `.claude/` is committed.
37
+
38
+ CLAUDE.md is scaffolded with an `<!-- initialized: false -->` HTML comment at the very top. When the agent reads this flag on session start and finds it false, it automatically runs the `/meta init` flow -- no slash command knowledge required from the user. After initialization completes the agent changes the flag to `<!-- initialized: true -->`, so subsequent sessions proceed normally.
39
+
40
+ ## Why It Works This Way
41
+
42
+ The agent needs three things to guide a non-technical developer well:
43
+
44
+ - **Who the user is** -- their TypeScript experience, automation background, and project goals, stored in `.claude/memory/profile/` as markdown files and created during `/meta init`
45
+ - **What has happened in this project** -- deployment state, credentials, errors encountered, and architectural decisions, stored in `.claude/memory/` and loaded on demand
46
+ - **How to behave** -- adaptive guidance rules in `CLAUDE.md` that translate experience levels into concrete behaviors: complete code examples for beginners, concise fixes for advanced users
47
+
48
+ The agent reads `memory/index.md` at session start and drills into `memory/profile/skills.md` for adaptive behavior. It adjusts its tone, explanation depth, and proactivity based on what it finds. This happens silently -- the developer sees a helpful response, not a loading message.
49
+
50
+ ## The Framework Components
51
+
52
+ ### Agent System
53
+
54
+ The `CLAUDE.md` file drives all agent behavior. It contains the session initialization instructions, adaptive guidance tiers, memory maintenance rules, and slash command definitions. No hooks, no code enforcement -- everything is instruction-driven so non-technical users never need to configure anything.
55
+
56
+ The `/meta` command manages the project lifecycle: `/meta init` for guided setup, `/meta fix` for SDK upgrades, drift repair, and documentation verification, `/meta deploy` for deployments, `/meta health` for debugging executions. `/docs` browses, creates, and verifies permanent documentation in `docs/`. `/work` tracks tasks across sessions, and `/tutorial` guides new developers through a menu-driven multi-track learning path. A `creds` skill auto-triggers when credential setup is needed.
57
+
58
+ See [Agent System](agent.mdx) for CLAUDE.md sections, slash command reference, developer profile, and adaptive guidance tiers.
59
+
60
+ ### Memory System
61
+
62
+ The `memory/` directory follows a hierarchical index tree pattern: a root `index.md` maps to topic files and subdirectories, each subdirectory has its own index. The agent reads only the root index at session start and drills into detail files on demand. The `memory/profile/` subdirectory is seeded by `/meta init` during guided setup; other topics are created by the agent as needed.
63
+
64
+ Topics include developer profile (identity, skills, preferences), deployment state, environment credentials, architectural decisions, and error patterns. Error tracking starts as a subdirectory because it naturally spans multiple categories. Other topics start as flat files and split when they outgrow a single document.
65
+
66
+ See [Memory System](memory.mdx) for architecture, error tracking format, scaling rules, and maintenance guidelines.
67
+
68
+ ### Project Structure
69
+
70
+ The scaffolded project separates concerns clearly: `src/` for resources, `docs/` for platform documentation, `.claude/` for agent infrastructure, and config files at the root. Understanding which files are gitignored, which are committed, and why matters for collaborating on projects.
71
+
72
+ See [Project Structure](project-structure.mdx) for a file-by-file walkthrough of the scaffolded project.
73
+
74
+ ## Adaptive Guidance
75
+
76
+ The agent adapts its communication based on four independent skill dimensions stored in `memory/profile/skills.md`:
77
+
78
+ | Dimension | Levels | Assessment |
79
+ | ------------------- | ----------------------------- | -------------------------------- |
80
+ | Platform Navigation | none / oriented / comfortable | Direct question |
81
+ | API & Integration | none / basic / proficient | Inferred from automation + tools |
82
+ | Automation Concepts | none / low-code / custom | Direct question |
83
+ | Domain Expertise | high / low | Inferred from identity answers |
84
+
85
+ Each dimension has its own adaptation rules in the [Interaction Guidance](interaction-guidance.mdx) reference. A user who has deep Zapier experience (automation: low-code) but has never called an API directly (apiIntegration: none) will get credential walkthroughs every time while having automation concepts treated as familiar ground.
86
+
87
+ `/meta init` runs a 6-question assessment: 3 identity questions, 2 competency questions, and 1 communication preference. Platform Navigation and Automation are assessed directly. API & Integration is inferred from the automation level and tools the user already uses. Domain Expertise is inferred from how specifically the user describes their goals.
88
+
89
+ See [Agent System](agent.mdx) for the full assessment question set, dimensional interaction rules, and communication principles.
90
+
91
+ ### Skills Auto-Update
92
+
93
+ The Growth Log in `memory/profile/skills.md` keeps approximately 20 recent entries. The agent adds an entry whenever it observes the user performing something they previously needed help with. When a consistent pattern of growth is observed -- typically after several independent successes -- the agent promotes the observation to a level change in the relevant dimension.
94
+
95
+ ---
96
+
97
+ ## Resource Documentation
98
+
99
+ `elevasis-sdk deploy` ships your code and your documentation atomically -- one command, no version drift. Documentation files live in a `docs/` directory at your project root and render in the Elevasis platform UI for operators using your resources.
100
+
101
+ ### Directory Structure
102
+
103
+ Create `.mdx` files inside a `docs/` directory at your project root. `elevasis-sdk init` scaffolds a starter structure:
104
+
105
+ ```
106
+ my-project/
107
+ ├── docs/
108
+ │ └── index.mdx # Resource overview (scaffolded by init)
109
+ ├── src/
110
+ │ └── index.ts # Resource definitions
111
+ └── elevasis.config.ts
112
+ ```
113
+
114
+ A missing `docs/` directory is silently ignored -- documentation is optional. If the directory exists, its contents are included in the deploy payload alongside resource schemas.
115
+
116
+ ### Frontmatter Schema
117
+
118
+ ```yaml
119
+ ---
120
+ title: string # Page title (required)
121
+ description: string # Short description (optional)
122
+ order: number # Sort order within directory (optional, default: 0)
123
+ ---
124
+ ```
125
+
126
+ ### Naming Conventions
127
+
128
+ - `docs/index.mdx` is the root page and is always rendered first
129
+ - Nested directories create sections: `docs/guides/getting-started.mdx`
130
+ - File names become URL slugs: `setup-guide.mdx` renders at `/docs/setup-guide`
131
+ - Arbitrary nesting is supported -- no depth limit
132
+
133
+ ### Size Limits
134
+
135
+ - 100KB per file
136
+ - 1MB total across all files in a deployment
137
+
138
+ These limits are enforced by the CLI before the deploy request is sent. Validation errors include the file name and size.
139
+
140
+ ### Deploy Behavior
141
+
142
+ When you run `elevasis-sdk deploy`:
143
+
144
+ 1. The CLI scans `docs/` recursively for `.mdx` files
145
+ 2. Each file's frontmatter (title, description, order) is parsed and stripped from the content
146
+ 3. Total size is validated against the 1MB limit and individual files against 100KB
147
+ 4. The documentation array is included in the deploy metadata alongside your resource schemas
148
+
149
+ Documentation and code ship in the same transaction. There is no separate upload step and no way for documentation to drift out of sync with the deployed version.
150
+
151
+ ### The /docs Command
152
+
153
+ The `/docs` command manages the permanent `docs/` tree in your project. It operates on everything in `docs/` except `docs/in-progress/` (owned by `/work`) and auto-generated files (`project-map.mdx`, `resource-map.mdx`).
154
+
155
+ **Browse (default):** Running `/docs` with no arguments scans `docs/` recursively and presents a numbered list of user-maintained docs. Pick a number to read and discuss the doc, or say "create" or "verify."
156
+
157
+ **Create:** `/docs create [description]` runs an interview-driven flow. It asks what you want to document, determines placement, scans `src/` to pre-populate from code, and creates the file with appropriate sections.
158
+
159
+ Section templates by doc type:
160
+
161
+ - **Resource guide:** Overview, Input/Output, How It Works, Platform Tools Used, Configuration
162
+ - **Integration guide:** Overview, Setup (credentials), Data Model, Usage Patterns, Troubleshooting
163
+ - **Architecture notes:** Context, Decision, Consequences, Alternatives Considered
164
+ - **Process doc:** Purpose, Prerequisites, Steps, Recovery
165
+
166
+ **Verify:** `/docs verify [file?]` checks docs against current code interactively. Without an argument, it scans all user-maintained docs, cross-references resource IDs, schema fields, and platform tools against `src/`, and offers to fix or create docs for undocumented resources.
167
+
168
+ **Command Routing Reference:**
169
+
170
+ | Scenario | Command |
171
+ | --------------------------------------- | -------------- |
172
+ | Starting new work | `/work create` |
173
+ | Resuming yesterday's work | `/work resume` |
174
+ | Browsing what docs exist | `/docs` |
175
+ | Creating a reference doc (not a task) | `/docs create` |
176
+ | Checking if docs match current code | `/docs verify` |
177
+ | Full maintenance pipeline (8 steps) | `/meta fix` |
178
+ | Deploying code and auto-generating maps | `/meta deploy` |
179
+
180
+ ---
181
+
182
+ **Last Updated:** 2026-03-06