@elevasis/sdk 1.25.0 → 1.26.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.
Files changed (60) hide show
  1. package/dist/cli.cjs +18 -116
  2. package/dist/index.d.ts +165 -48
  3. package/dist/index.js +4 -435
  4. package/dist/node/index.d.ts +36 -36
  5. package/dist/test-utils/index.d.ts +99 -38
  6. package/dist/test-utils/index.js +27 -355
  7. package/dist/types/worker/adapters/clickup.d.ts +22 -0
  8. package/dist/types/worker/adapters/index.d.ts +1 -0
  9. package/dist/worker/index.js +32 -354
  10. package/package.json +2 -2
  11. package/reference/_navigation.md +11 -1
  12. package/reference/_reference-manifest.json +70 -0
  13. package/reference/claude-config/rules/organization-model.md +12 -1
  14. package/reference/claude-config/rules/organization-os.md +12 -1
  15. package/reference/claude-config/skills/om/SKILL.md +13 -5
  16. package/reference/claude-config/skills/om/operations/codify-level-a.md +109 -100
  17. package/reference/claude-config/skills/om/operations/customers.md +10 -6
  18. package/reference/claude-config/skills/om/operations/features.md +7 -3
  19. package/reference/claude-config/skills/om/operations/goals.md +10 -6
  20. package/reference/claude-config/skills/om/operations/identity.md +8 -5
  21. package/reference/claude-config/skills/om/operations/labels.md +17 -1
  22. package/reference/claude-config/skills/om/operations/offerings.md +11 -7
  23. package/reference/claude-config/skills/om/operations/roles.md +11 -7
  24. package/reference/claude-config/skills/om/operations/techStack.md +10 -2
  25. package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +32 -0
  26. package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +43 -0
  27. package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +40 -0
  28. package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +61 -0
  29. package/reference/cli-management.mdx +539 -0
  30. package/reference/cli.mdx +4 -532
  31. package/reference/concepts.mdx +134 -146
  32. package/reference/deployment/api.mdx +296 -297
  33. package/reference/deployment/command-center.mdx +208 -209
  34. package/reference/deployment/index.mdx +194 -195
  35. package/reference/deployment/provided-features.mdx +110 -107
  36. package/reference/deployment/ui-execution.mdx +249 -250
  37. package/reference/framework/index.mdx +111 -195
  38. package/reference/framework/resource-documentation.mdx +90 -0
  39. package/reference/framework/tutorial-system.mdx +135 -135
  40. package/reference/getting-started.mdx +141 -142
  41. package/reference/index.mdx +95 -106
  42. package/reference/packages/ui/src/auth/README.md +6 -6
  43. package/reference/platform-tools/adapters-integration.mdx +300 -301
  44. package/reference/platform-tools/adapters-platform.mdx +552 -553
  45. package/reference/platform-tools/index.mdx +216 -217
  46. package/reference/platform-tools/type-safety.mdx +82 -82
  47. package/reference/resources/index.mdx +348 -349
  48. package/reference/resources/patterns.mdx +446 -449
  49. package/reference/resources/types.mdx +115 -116
  50. package/reference/roadmap.mdx +164 -165
  51. package/reference/rules/organization-model.md +14 -0
  52. package/reference/runtime.mdx +172 -173
  53. package/reference/scaffold/operations/propagation-pipeline.md +1 -1
  54. package/reference/scaffold/recipes/extend-lead-gen.md +130 -77
  55. package/reference/scaffold/reference/contracts.md +376 -446
  56. package/reference/scaffold/reference/glossary.md +8 -6
  57. package/reference/scaffold/ui/feature-flags-and-gating.md +59 -46
  58. package/reference/scaffold/ui/feature-shell.mdx +11 -11
  59. package/reference/scaffold/ui/recipes.md +24 -24
  60. package/reference/troubleshooting.mdx +222 -223
@@ -1,135 +1,135 @@
1
- ---
2
- title: Tutorial System
3
- description: The /tutorial skill in the external project scaffold -- two-track onboarding (vibe-coder and technical), gate question, track persistence, and escape hatch
4
- ---
5
-
6
- The `/tutorial` skill is included in every scaffolded external project. Run it from Claude Code inside a project to start interactive onboarding. It forks into two tracks on first invocation and adapts agent tone project-wide based on your choice.
7
-
8
- ---
9
-
10
- ## Getting Started
11
-
12
- Open a scaffolded external project in Claude Code and run:
13
-
14
- ```
15
- /tutorial
16
- ```
17
-
18
- On first invocation in a fresh project, the skill asks one gate question:
19
-
20
- > "Are you here to **build automations by describing what you want** (and I handle the technical side), or are you a **developer** who'll edit code directly?"
21
-
22
- Your answer selects a track. The choice is saved to `.claude/memory/profile.md` and shapes agent vocabulary, tool-call visibility, and verbosity for every conversation in the project -- not just `/tutorial` sessions.
23
-
24
- Subsequent `/tutorial` invocations skip the gate question and resume your progress.
25
-
26
- ---
27
-
28
- ## Tracks at a Glance
29
-
30
- ### Vibe-Coder Track (8 lessons)
31
-
32
- For users who want to describe what they want and have the agent handle the implementation. The agent never uses technical vocabulary -- no TypeScript, no pnpm, no CLI commands shown, no schemas explained. Everything is narrated in plain language.
33
-
34
- ```
35
- Your Tutorial
36
- ==============
37
- 1 Welcome -- what this place does for you [ ]
38
- 2 How to talk to me [ ]
39
- 3 Your business profile [ ]
40
- 4 Your first automation [ ]
41
- 5 Your dashboard -- where everything lives [ ]
42
- 6 Your approval queue -- signing off on things [ ]
43
- 7 Changing things later [ ]
44
- 8 When things go wrong [ ]
45
-
46
- Pick a number to start.
47
- ```
48
-
49
- **What each lesson covers:**
50
-
51
- - **1. Welcome** -- Plain analogy for the platform. Shows a real automation already running before any building.
52
- - **2. How to talk to me** -- Conversation patterns for making requests, asking questions, and describing changes. No technical vocabulary introduced.
53
- - **3. Your business profile** -- Conversational walk through org identity. Agent handles all edits silently; user answers questions.
54
- - **4. Your first automation** -- User describes what they want. Agent builds, runs, and narrates. User never sees code.
55
- - **5. Your dashboard** -- Tour of Command Center. Where automations live and how to read the visual map.
56
- - **6. Your approval queue** -- Show a pending approval, approve it, see the automation continue.
57
- - **7. Changing things later** -- Plain-language change requests. Agent handles implementation.
58
- - **8. When things go wrong** -- "Tell me what looks wrong. I'll figure it out and tell you what I did." No error traces shown.
59
-
60
- **Vocabulary rules in this track:** The agent never says workflow, schema, deploy, credential, TypeScript, or pnpm. "Automation" replaces all SDK resource terms. "Make it live" replaces "deploy." "Account connection" replaces "credential." "Your approval queue" replaces HITL.
61
-
62
- ### Technical Track (19 lessons, 5 sections)
63
-
64
- For developers who will read and edit code directly. Lessons are code-first. All SDK concepts, CLI commands, and file structures are covered.
65
-
66
- ```
67
- SECTION A -- The workspace (3 items)
68
- 1 What is this workspace [ ]
69
- 2 The skill layer -- slash commands you'll use [ ]
70
- 3 The vibe layer -- ambient intent classification [ ]
71
-
72
- SECTION B -- Build your first thing (5 items)
73
- 4 Echo workflow tour [ ]
74
- 5 Custom workflow with schemas [ ]
75
- 6 Platform tools and credentials [ ]
76
- 7 Multi-step and conditionals [ ]
77
- 8 Going to production [ ]
78
-
79
- SECTION C -- The Organization Model (3 items)
80
- 9 /knowledge ceremony -- identity, customers, [ ]
81
- offerings via the layered flow
82
- 10 Features and labels [ ]
83
- 11 Entity extensions -- BaseProject, BaseDeal [ ]
84
-
85
- SECTION D -- Modules (load on demand) (~6 items)
86
- 12 HITL [ ]
87
- 13 Schedules [ ]
88
- 14 Notifications + integrations [ ]
89
- 15 Error handling [ ]
90
- 16 LLM and agents [ ]
91
- 17 Composition (execution.trigger) [ ]
92
-
93
- SECTION E -- Power user (2 items)
94
- 18 Rules, memory, scaffold registry [ ]
95
- 19 Template lifecycle and /git-sync [ ]
96
- ```
97
-
98
- Section D modules are available any time -- no section order prerequisite. Sections A-C are designed to be completed in order on a first pass, though any item can be picked directly.
99
-
100
- ---
101
-
102
- ## Track Persistence
103
-
104
- The track choice is saved to `.claude/memory/profile.md` on selection. The agent reads this file at session start alongside `agent-start-here.md`. This means:
105
-
106
- - Agent vocabulary and tone adjust for every conversation in the project, not just `/tutorial`
107
- - The vibe-coder track suppresses all technical surface globally until switched
108
- - Progress is tracked separately in `.claude/memory/tutorial-progress.md`
109
-
110
- ---
111
-
112
- ## Switching Tracks
113
-
114
- Run `/tutorial switch` at any time to flip tracks and restart the menu. Progress from the previous track is preserved in the progress file for reference but the active lesson resets.
115
-
116
- ---
117
-
118
- ## Progress Indicators
119
-
120
- The menu uses three states:
121
-
122
- - `[ ]` -- not started
123
- - `[>]` -- in progress
124
- - `[x] YYYY-MM-DD` -- complete
125
-
126
- Run `/tutorial` with no argument at any time to see the current menu with progress filled in. Run `/tutorial status` for the same view.
127
-
128
- ---
129
-
130
- ## Related Docs
131
-
132
- - [SDK Concepts](../concepts.mdx) -- full technical reference for workflows, schemas, adapters, and the org model
133
- - [Getting Started](../getting-started.mdx) -- scaffold setup and first deploy
134
- - [CLI Reference](../cli.mdx) -- `elevasis-sdk` commands referenced in the technical track
135
- - [Framework Overview](index.mdx) -- skill layer, memory system, and interaction guidance
1
+ ---
2
+ title: Tutorial System
3
+ description: The /tutorial skill in the external project scaffold -- two-track onboarding (vibe-coder and technical), gate question, track persistence, and escape hatch
4
+ ---
5
+
6
+ The `/tutorial` skill is included in every scaffolded external project. Run it from Claude Code inside a project to start interactive onboarding. It forks into two tracks on first invocation and adapts agent tone project-wide based on your choice.
7
+
8
+ ---
9
+
10
+ ## Getting Started
11
+
12
+ Open a scaffolded external project in Claude Code and run:
13
+
14
+ ```
15
+ /tutorial
16
+ ```
17
+
18
+ On first invocation in a fresh project, the skill asks one gate question:
19
+
20
+ > "Are you here to **build automations by describing what you want** (and I handle the technical side), or are you a **developer** who'll edit code directly?"
21
+
22
+ Your answer selects a track. The choice is saved to `.claude/memory/profile.md` and shapes agent vocabulary, tool-call visibility, and verbosity for every conversation in the project -- not just `/tutorial` sessions.
23
+
24
+ Subsequent `/tutorial` invocations skip the gate question and resume your progress.
25
+
26
+ ---
27
+
28
+ ## Tracks at a Glance
29
+
30
+ ### Vibe-Coder Track (8 lessons)
31
+
32
+ For users who want to describe what they want and have the agent handle the implementation. The agent never uses technical vocabulary -- no TypeScript, no pnpm, no CLI commands shown, no schemas explained. Everything is narrated in plain language.
33
+
34
+ ```
35
+ Your Tutorial
36
+ ==============
37
+ 1 Welcome -- what this place does for you [ ]
38
+ 2 How to talk to me [ ]
39
+ 3 Your business profile [ ]
40
+ 4 Your first automation [ ]
41
+ 5 Your dashboard -- where everything lives [ ]
42
+ 6 Your approval queue -- signing off on things [ ]
43
+ 7 Changing things later [ ]
44
+ 8 When things go wrong [ ]
45
+
46
+ Pick a number to start.
47
+ ```
48
+
49
+ **What each lesson covers:**
50
+
51
+ - **1. Welcome** -- Plain analogy for the platform. Shows a real automation already running before any building.
52
+ - **2. How to talk to me** -- Conversation patterns for making requests, asking questions, and describing changes. No technical vocabulary introduced.
53
+ - **3. Your business profile** -- Conversational walk through org identity. Agent handles all edits silently; user answers questions.
54
+ - **4. Your first automation** -- User describes what they want. Agent builds, runs, and narrates. User never sees code.
55
+ - **5. Your dashboard** -- Tour of Command Center. Where automations live and how to read the visual map.
56
+ - **6. Your approval queue** -- Show a pending approval, approve it, see the automation continue.
57
+ - **7. Changing things later** -- Plain-language change requests. Agent handles implementation.
58
+ - **8. When things go wrong** -- "Tell me what looks wrong. I'll figure it out and tell you what I did." No error traces shown.
59
+
60
+ **Vocabulary rules in this track:** The agent never says workflow, schema, deploy, credential, TypeScript, or pnpm. "Automation" replaces all SDK resource terms. "Make it live" replaces "deploy." "Account connection" replaces "credential." "Your approval queue" replaces HITL.
61
+
62
+ ### Technical Track (19 lessons, 5 sections)
63
+
64
+ For developers who will read and edit code directly. Lessons are code-first. All SDK concepts, CLI commands, and file structures are covered.
65
+
66
+ ```
67
+ SECTION A -- The workspace (3 items)
68
+ 1 What is this workspace [ ]
69
+ 2 The skill layer -- slash commands you'll use [ ]
70
+ 3 The vibe layer -- ambient intent classification [ ]
71
+
72
+ SECTION B -- Build your first thing (5 items)
73
+ 4 Echo workflow tour [ ]
74
+ 5 Custom workflow with schemas [ ]
75
+ 6 Platform tools and credentials [ ]
76
+ 7 Multi-step and conditionals [ ]
77
+ 8 Going to production [ ]
78
+
79
+ SECTION C -- The Organization Model (3 items)
80
+ 9 /knowledge ceremony -- identity, customers, [ ]
81
+ offerings via the layered flow
82
+ 10 Features and labels [ ]
83
+ 11 Entity extensions -- BaseProject, BaseDeal [ ]
84
+
85
+ SECTION D -- Modules (load on demand) (~6 items)
86
+ 12 HITL [ ]
87
+ 13 Schedules [ ]
88
+ 14 Notifications + integrations [ ]
89
+ 15 Error handling [ ]
90
+ 16 LLM and agents [ ]
91
+ 17 Composition (execution.trigger) [ ]
92
+
93
+ SECTION E -- Power user (2 items)
94
+ 18 Rules, memory, scaffold registry [ ]
95
+ 19 Template lifecycle and /git-sync [ ]
96
+ ```
97
+
98
+ Section D modules are available any time -- no section order prerequisite. Sections A-C are designed to be completed in order on a first pass, though any item can be picked directly.
99
+
100
+ ---
101
+
102
+ ## Track Persistence
103
+
104
+ The track choice is saved to `.claude/memory/profile.md` on selection. The agent reads this file at session start alongside `agent-start-here.md`. This means:
105
+
106
+ - Agent vocabulary and tone adjust for every conversation in the project, not just `/tutorial`
107
+ - The vibe-coder track suppresses all technical surface globally until switched
108
+ - Progress is tracked separately in `.claude/memory/tutorial-progress.md`
109
+
110
+ ---
111
+
112
+ ## Switching Tracks
113
+
114
+ Run `/tutorial switch` at any time to flip tracks and restart the menu. Progress from the previous track is preserved in the progress file for reference but the active lesson resets.
115
+
116
+ ---
117
+
118
+ ## Progress Indicators
119
+
120
+ The menu uses three states:
121
+
122
+ - `[ ]` -- not started
123
+ - `[>]` -- in progress
124
+ - `[x] YYYY-MM-DD` -- complete
125
+
126
+ Run `/tutorial` with no argument at any time to see the current menu with progress filled in. Run `/tutorial status` for the same view.
127
+
128
+ ---
129
+
130
+ ## Documentation
131
+
132
+ - [SDK Concepts](../concepts.mdx) - Full technical reference for workflows, schemas, adapters, and the org model
133
+ - [Getting Started](../getting-started.mdx) - Scaffold setup and first deploy
134
+ - [CLI Reference](../cli.mdx) - `elevasis-sdk` commands referenced in the technical track
135
+ - [Framework Overview](index.mdx) - Skill layer, memory system, and interaction guidance
@@ -1,142 +1,141 @@
1
- ---
2
- title: Getting Started
3
- description: Install the Elevasis SDK, scaffold a project, and run your first deployment
4
- loadWhen: "Setting up a new project or onboarding"
5
- ---
6
-
7
- **Prerequisites:** Node.js 20+ and pnpm (`npm install -g pnpm`).
8
-
9
- ## Create a Project
10
-
11
- Scaffold a new project and install dependencies:
12
-
13
- ```bash
14
- pnpm dlx @elevasis/sdk init my-project
15
- cd my-project
16
- pnpm install
17
- ```
18
-
19
- `pnpm dlx` downloads the SDK temporarily to run `elevasis-sdk init`, which scaffolds your project with a working echo workflow, TypeScript config, and Claude Code integration. `pnpm install` then installs the SDK and its dependencies locally -- after that, all `elevasis-sdk` commands work directly via the scripts in `package.json` or `pnpm exec elevasis-sdk <command>`.
20
-
21
- The command scaffolds 30 files covering configuration, source, documentation, and Claude Code integration:
22
-
23
- ```
24
- my-project/
25
- ├── CLAUDE.md # Project instructions for Claude Code
26
- ├── .claude/
27
- │ ├── settings.json # autoCompact: false
28
- │ ├── commands/
29
- │ │ ├── docs.md # Documentation lifecycle
30
- │ │ ├── meta.md # Project lifecycle (init, fix, deploy, health)
31
- │ │ ├── tutorial.md # Progressive learning
32
- │ └── work.md # Task tracking
33
- ├── hooks/
34
- │ └── enforce-sdk-boundary.mjs # Blocks file modifications outside project (auto-loaded)
35
- ├── scripts/
36
- │ └── statusline-command.js # Dynamic status line script
37
- ├── skills/
38
- └── creds/SKILL.md # Credential management (auto-triggers)
39
- └── rules/
40
- │ ├── sdk-patterns.md # SDK imports, structure, runtime (auto-loaded)
41
- │ ├── docs-authoring.md # MDX conventions (auto-loaded)
42
- │ ├── memory-conventions.md # Memory system conventions (auto-loaded)
43
- │ ├── project-map.md # Project map conventions (auto-loaded)
44
- ├── task-tracking.md # Task tracking conventions (auto-loaded)
45
- │ └── workspace-patterns.md # Project-specific patterns (you add these)
46
- ├── src/
47
- │ ├── index.ts # Registry entry point (aggregates domain barrels)
48
- │ ├── operations/
49
- │ │ ├── index.ts # Domain barrel (exports workflows + agents)
50
- │ └── platform-status.ts # Platform status workflow (real API example)
51
- │ ├── example/
52
- │ │ ├── index.ts # Domain barrel (exports workflows + agents)
53
- └── echo.ts # Starter workflow (replace with your own)
54
- └── shared/
55
- │ └── .gitkeep # Cross-domain shared utilities
56
- ├── docs/
57
- ├── index.mdx # Starter documentation page
58
- └── in-progress/
59
- │ └── .gitkeep # Work-in-progress docs directory
60
- ├── elevasis.config.ts # Config with workspace options
61
- ├── package.json # check-types + deploy scripts
62
- ├── tsconfig.json # TypeScript config (app-focused)
63
- ├── pnpm-workspace.yaml # Standalone project workspace
64
- ├── .env # API key only
65
- ├── .npmrc # auto-install-peers
66
- └── .gitignore # Excludes worker temp file, claude files
67
- ```
68
-
69
- ### Set Up Your API Key
70
-
71
- Open `.env` and set your API key:
72
-
73
- ```
74
- ELEVASIS_PLATFORM_KEY=sk_your_key_here
75
- ```
76
-
77
- The `.env` file is gitignored -- never commit it.
78
-
79
- **Note:** Do not add `NODE_ENV` to your `.env`. The SDK treats `undefined` as production by default, which means your project connects to the hosted Elevasis API. Adding `NODE_ENV=development` is the most common setup mistake.
80
-
81
- ### Guided Setup with Claude Code
82
-
83
- After scaffolding, open the project in Claude Code. The agent detects that the project is new and automatically walks you through setup: installing dependencies, configuring `.env`, creating your developer profile in `.claude/memory/`, and optionally running your first deploy. No commands needed -- just answer the questions.
84
-
85
- If the automatic setup doesn't trigger, you can start it manually with `/meta init`.
86
-
87
- ---
88
-
89
- ## First Deployment
90
-
91
- Validate your resources and deploy:
92
-
93
- ```bash
94
- elevasis-sdk check # Validate resource definitions
95
- elevasis-sdk deploy # Bundle and deploy to the platform
96
- ```
97
-
98
- `elevasis-sdk check` runs validation without deploying. Fix any errors it reports before running `elevasis-sdk deploy`.
99
-
100
- `elevasis-sdk deploy` bundles your `src/` code and `docs/` documentation into a single deployment transaction. Both ship atomically -- there is no separate upload step for documentation.
101
-
102
- After a successful deploy, confirm the resources are live:
103
-
104
- ```bash
105
- elevasis-sdk resources # List deployed resources
106
- elevasis-sdk deployments # Show deployment history
107
- ```
108
-
109
- ---
110
-
111
- ## First Execution
112
-
113
- Execute the scaffolded echo workflow to verify end-to-end connectivity:
114
-
115
- ```bash
116
- elevasis-sdk exec echo --input '{"message": "hello"}'
117
- ```
118
-
119
- View the execution result:
120
-
121
- ```bash
122
- elevasis-sdk executions echo # Execution history
123
- elevasis-sdk execution echo \<execution-id\> # Full detail for one execution
124
- ```
125
-
126
- Replace `<execution-id>` with the ID returned from the executions list.
127
-
128
- ---
129
-
130
- ## Next Steps
131
-
132
- - **Open in Claude Code** -- Setup runs automatically on first session (installs deps, configures `.env`, creates your developer profile)
133
- - [Development Framework](framework/index.mdx) -- How Claude Code helps you build
134
- - [Resources](resources/index.mdx) -- Define workflows and agents
135
- - [CLI Reference](cli.mdx) -- Full command reference with flags
136
- - [Deployment](deployment/index.mdx) -- Deployment lifecycle and environment variables
137
-
138
- When a new SDK version is released, run `/meta fix` in Claude Code for an interactive upgrade that includes SDK update, drift repair, and documentation verification. Alternatively, run `elevasis-sdk update` from the terminal to update managed files (CLAUDE.md, slash commands, `.gitignore`) without agent interaction. To update the SDK package itself, run `pnpm update @elevasis/sdk`.
139
-
140
- ---
141
-
142
- **Last Updated:** 2026-02-27
1
+ ---
2
+ title: Getting Started
3
+ description: Install the Elevasis SDK, scaffold a project, and run your first deployment
4
+ ---
5
+
6
+ **Prerequisites:** Node.js 20+ and pnpm (`npm install -g pnpm`).
7
+
8
+ ## Create a Project
9
+
10
+ Scaffold a new project and install dependencies:
11
+
12
+ ```bash
13
+ pnpm dlx @elevasis/sdk init my-project
14
+ cd my-project
15
+ pnpm install
16
+ ```
17
+
18
+ `pnpm dlx` downloads the SDK temporarily to run `elevasis-sdk init`, which scaffolds your project with a working echo workflow, TypeScript config, and Claude Code integration. `pnpm install` then installs the SDK and its dependencies locally -- after that, all `elevasis-sdk` commands work directly via the scripts in `package.json` or `pnpm exec elevasis-sdk <command>`.
19
+
20
+ The command scaffolds 30 files covering configuration, source, documentation, and Claude Code integration:
21
+
22
+ ```
23
+ my-project/
24
+ ├── CLAUDE.md # Project instructions for Claude Code
25
+ ├── .claude/
26
+ ├── settings.json # autoCompact: false
27
+ │ ├── commands/
28
+ ├── docs.md # Documentation lifecycle
29
+ │ │ ├── meta.md # Project lifecycle (init, fix, deploy, health)
30
+ │ │ ├── tutorial.md # Progressive learning
31
+ │ │ └── work.md # Task tracking
32
+ ├── hooks/
33
+ │ └── enforce-sdk-boundary.mjs # Blocks file modifications outside project (auto-loaded)
34
+ ├── scripts/
35
+ │ └── statusline-command.js # Dynamic status line script
36
+ ├── skills/
37
+ │ └── creds/SKILL.md # Credential management (auto-triggers)
38
+ │ └── rules/
39
+ ├── sdk-patterns.md # SDK imports, structure, runtime (auto-loaded)
40
+ │ ├── docs-authoring.md # MDX conventions (auto-loaded)
41
+ │ ├── memory-conventions.md # Memory system conventions (auto-loaded)
42
+ │ ├── project-map.md # Project map conventions (auto-loaded)
43
+ │ ├── task-tracking.md # Task tracking conventions (auto-loaded)
44
+ └── workspace-patterns.md # Project-specific patterns (you add these)
45
+ ├── src/
46
+ ├── index.ts # Registry entry point (aggregates domain barrels)
47
+ │ ├── operations/
48
+ ├── index.ts # Domain barrel (exports workflows + agents)
49
+ │ │ └── platform-status.ts # Platform status workflow (real API example)
50
+ ├── example/
51
+ ├── index.ts # Domain barrel (exports workflows + agents)
52
+ │ │ └── echo.ts # Starter workflow (replace with your own)
53
+ │ └── shared/
54
+ └── .gitkeep # Cross-domain shared utilities
55
+ ├── docs/
56
+ ├── index.mdx # Starter documentation page
57
+ └── in-progress/
58
+ └── .gitkeep # Work-in-progress docs directory
59
+ ├── elevasis.config.ts # Config with workspace options
60
+ ├── package.json # check-types + deploy scripts
61
+ ├── tsconfig.json # TypeScript config (app-focused)
62
+ ├── pnpm-workspace.yaml # Standalone project workspace
63
+ ├── .env # API key only
64
+ ├── .npmrc # auto-install-peers
65
+ └── .gitignore # Excludes worker temp file, claude files
66
+ ```
67
+
68
+ ### Set Up Your API Key
69
+
70
+ Open `.env` and set your API key:
71
+
72
+ ```
73
+ ELEVASIS_PLATFORM_KEY=sk_your_key_here
74
+ ```
75
+
76
+ The `.env` file is gitignored -- never commit it.
77
+
78
+ **Note:** Do not add `NODE_ENV` to your `.env`. The SDK treats `undefined` as production by default, which means your project connects to the hosted Elevasis API. Adding `NODE_ENV=development` is the most common setup mistake.
79
+
80
+ ### Guided Setup with Claude Code
81
+
82
+ After scaffolding, open the project in Claude Code. The agent detects that the project is new and automatically walks you through setup: installing dependencies, configuring `.env`, creating your developer profile in `.claude/memory/`, and optionally running your first deploy. No commands needed -- just answer the questions.
83
+
84
+ If the automatic setup doesn't trigger, you can start it manually with `/meta init`.
85
+
86
+ ---
87
+
88
+ ## First Deployment
89
+
90
+ Validate your resources and deploy:
91
+
92
+ ```bash
93
+ elevasis-sdk check # Validate resource definitions
94
+ elevasis-sdk deploy # Bundle and deploy to the platform
95
+ ```
96
+
97
+ `elevasis-sdk check` runs validation without deploying. Fix any errors it reports before running `elevasis-sdk deploy`.
98
+
99
+ `elevasis-sdk deploy` bundles your `src/` code and `docs/` documentation into a single deployment transaction. Both ship atomically -- there is no separate upload step for documentation.
100
+
101
+ After a successful deploy, confirm the resources are live:
102
+
103
+ ```bash
104
+ elevasis-sdk resources # List deployed resources
105
+ elevasis-sdk deployments # Show deployment history
106
+ ```
107
+
108
+ ---
109
+
110
+ ## First Execution
111
+
112
+ Execute the scaffolded echo workflow to verify end-to-end connectivity:
113
+
114
+ ```bash
115
+ elevasis-sdk exec echo --input '{"message": "hello"}'
116
+ ```
117
+
118
+ View the execution result:
119
+
120
+ ```bash
121
+ elevasis-sdk executions echo # Execution history
122
+ elevasis-sdk execution echo \<execution-id\> # Full detail for one execution
123
+ ```
124
+
125
+ Replace `<execution-id>` with the ID returned from the executions list.
126
+
127
+ ---
128
+
129
+ ## Next Steps
130
+
131
+ - **Open in Claude Code** -- Setup runs automatically on first session (installs deps, configures `.env`, creates your developer profile)
132
+ - [Development Framework](framework/index.mdx) -- How Claude Code helps you build
133
+ - [Resources](resources/index.mdx) -- Define workflows and agents
134
+ - [CLI Reference](cli.mdx) -- Full command reference with flags
135
+ - [Deployment](deployment/index.mdx) -- Deployment lifecycle and environment variables
136
+
137
+ When a new SDK version is released, run `/meta fix` in Claude Code for an interactive upgrade that includes SDK update, drift repair, and documentation verification. Alternatively, run `elevasis-sdk update` from the terminal to update managed files (CLAUDE.md, slash commands, `.gitignore`) without agent interaction. To update the SDK package itself, run `pnpm update @elevasis/sdk`.
138
+
139
+ ---
140
+
141
+ **Last Updated:** 2026-02-27