@elevasis/sdk 0.5.12 → 0.5.14
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 +144 -118
- package/dist/index.d.ts +19 -253
- package/dist/index.js +20 -9
- package/dist/templates.js +62 -59
- package/dist/types/worker/adapters/index.d.ts +0 -1
- package/dist/worker/index.js +47 -53
- package/package.json +1 -1
- package/reference/_navigation.md +13 -57
- package/reference/{cli/index.mdx → cli.mdx} +568 -505
- package/reference/concepts.mdx +164 -0
- package/reference/deployment/api.mdx +297 -297
- package/reference/deployment/command-center.mdx +226 -0
- package/reference/deployment/index.mdx +158 -153
- package/reference/framework/agent.mdx +156 -151
- package/reference/framework/index.mdx +182 -103
- package/reference/{developer → framework}/interaction-guidance.mdx +182 -182
- package/reference/framework/memory.mdx +326 -347
- package/reference/framework/project-structure.mdx +277 -298
- package/reference/framework/tutorial-system.mdx +222 -0
- package/reference/{getting-started/index.mdx → getting-started.mdx} +152 -148
- package/reference/index.mdx +131 -114
- package/reference/platform-tools/adapters.mdx +868 -929
- package/reference/platform-tools/index.mdx +354 -195
- package/reference/resources/index.mdx +339 -336
- package/reference/resources/patterns.mdx +355 -354
- package/reference/resources/types.mdx +207 -207
- package/reference/{roadmap/index.mdx → roadmap.mdx} +163 -147
- package/reference/{runtime/index.mdx → runtime.mdx} +173 -141
- package/reference/{troubleshooting/common-errors.mdx → troubleshooting.mdx} +223 -210
- package/dist/types/worker/adapters/trello.d.ts +0 -14
- package/reference/concepts/index.mdx +0 -203
- package/reference/deployment/command-center-ui.mdx +0 -151
- package/reference/deployment/command-view.mdx +0 -154
- package/reference/framework/documentation.mdx +0 -92
- package/reference/platform-tools/examples.mdx +0 -170
- package/reference/runtime/limits.mdx +0 -75
- package/reference/security/credentials.mdx +0 -141
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tutorial System
|
|
3
|
+
description: Reference for the SDK tutorial system -- 21-item menu across 4 sections, skill-level adaptation rules, progress tracking format, and per-lesson module contents
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The tutorial system is available via the `/tutorial` slash command in Claude Code. It is scaffolded by `elevasis-sdk init` and updated by `elevasis-sdk update`.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Menu System
|
|
11
|
+
|
|
12
|
+
`/tutorial` always shows the full 21-item menu table on invocation. All items are visible at once with progress indicators. No track gating -- any item is available at any time.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
Elevasis Tutorial
|
|
16
|
+
==================
|
|
17
|
+
|
|
18
|
+
INTRODUCTION 0/4
|
|
19
|
+
1 Welcome & Orientation [ ]
|
|
20
|
+
2 How This Workspace Works [ ]
|
|
21
|
+
3 The /meta Command [ ]
|
|
22
|
+
4 /work and /docs [ ]
|
|
23
|
+
|
|
24
|
+
CORE CONCEPTS 0/6
|
|
25
|
+
5 Your First Custom Workflow [ ]
|
|
26
|
+
6 Understanding Data (Schemas) [ ]
|
|
27
|
+
7 Using Platform Tools [ ]
|
|
28
|
+
8 Multi-Step Workflows [ ]
|
|
29
|
+
9 Decision Points [ ]
|
|
30
|
+
10 Going to Production [ ]
|
|
31
|
+
|
|
32
|
+
ADVANCED MODULES 0/9
|
|
33
|
+
11 Human-in-the-Loop [ ]
|
|
34
|
+
12 Task Scheduling [ ]
|
|
35
|
+
13 Notification System [ ]
|
|
36
|
+
14 Real-World Integrations [ ]
|
|
37
|
+
15 Error Handling Mastery [ ]
|
|
38
|
+
16 Advanced Workflows [ ]
|
|
39
|
+
17 Resource Composition [ ]
|
|
40
|
+
18 LLM Integration [ ]
|
|
41
|
+
19 AI Agents [ ]
|
|
42
|
+
|
|
43
|
+
ADVANCED WORKSPACE 0/2
|
|
44
|
+
20 Rules, Memory, and Customization [ ]
|
|
45
|
+
21 Template Lifecycle [ ]
|
|
46
|
+
|
|
47
|
+
Pick a number to start.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Progress indicators:** `[ ]` not started, `[>]` in progress, `[x] YYYY-MM-DD` complete.
|
|
51
|
+
|
|
52
|
+
User picks a number to start or resume any item. `"status"` shows the same table.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 4 Sections
|
|
57
|
+
|
|
58
|
+
- **INTRODUCTION (1-4):** Welcome + workspace orientation (workspace framework, /meta, /work and /docs) -- taught before building
|
|
59
|
+
- **CORE CONCEPTS (5-10):** Orchestration lessons (workflows, schemas, tools, multi-step, conditions, production)
|
|
60
|
+
- **ADVANCED MODULES (11-19):** Hands-on feature modules (hitl, schedules, notifications, integrations, error-handling, workflows, composition, llm, agents)
|
|
61
|
+
- **ADVANCED WORKSPACE (20-21):** Power-user customization (rules/memory, template lifecycle)
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Skill-Level Adaptation
|
|
66
|
+
|
|
67
|
+
Assessed during `/meta init`. Two independent dimensions.
|
|
68
|
+
|
|
69
|
+
### automation dimension
|
|
70
|
+
|
|
71
|
+
| Level | Context Loading | Delivery | Verification |
|
|
72
|
+
| ---------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------- |
|
|
73
|
+
| `none` | Glossary, Workflow overview, Platform Tools Overview only. Skip Zod, Execution Model, Design Decisions. | Agent writes all code. No code shown to user. Analogies throughout. | CLI primary. Agent runs `elevasis-sdk exec` and narrates results. |
|
|
74
|
+
| `low-code` | All concept sections. Zapier/Make mapping. `adapters.mdx` on-demand. | Map to Zapier/Make equivalents. Show code with explanations. | CLI primary. |
|
|
75
|
+
| `custom` | All docs listed per-lesson and per-module. | Full technical content, code-first. | CLI primary. |
|
|
76
|
+
|
|
77
|
+
### platformNavigation dimension
|
|
78
|
+
|
|
79
|
+
| Level | Behavior |
|
|
80
|
+
| ------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
81
|
+
| `none` | Walk through pages step by step with exact navigation paths. Explain each page before asking user to interact with it. |
|
|
82
|
+
| `oriented` | Reference pages by name; briefly remind purpose on first mention. |
|
|
83
|
+
| `comfortable` | Reference by name only; focus on advanced filtering and schedule types. |
|
|
84
|
+
|
|
85
|
+
**General rules (all levels):** Fast users: acknowledge, offer to skip ahead. Level change observed: note in `skills.md` Growth Log. After lesson/module: update progress file.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Progress Logic
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
1. Read .claude/memory/tutorial-progress.md
|
|
93
|
+
2. Show the full menu table with progress indicators filled in
|
|
94
|
+
3. User picks a number -> start or resume that item directly
|
|
95
|
+
4. After completion: mark done in progress file, show updated menu table
|
|
96
|
+
5. All 21 items complete -> congratulate, suggest docs/ or /work
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Introduction: Items 1-4
|
|
102
|
+
|
|
103
|
+
Items 1-4 orient the user to the platform and workspace before any building.
|
|
104
|
+
|
|
105
|
+
**Item 1 -- Welcome & Orientation:** Platform tour, deploy echo workflow, Command Center orientation.
|
|
106
|
+
|
|
107
|
+
**Item 2 -- How This Workspace Works:** CLAUDE.md as instruction sheet, four commands, creds skill, memory system overview.
|
|
108
|
+
|
|
109
|
+
**Item 3 -- The /meta Command:** Project dashboard, /meta fix, /meta deploy, /meta health.
|
|
110
|
+
|
|
111
|
+
**Item 4 -- /work and /docs:** Cross-session task tracking, documentation lifecycle, /work vs /docs boundary.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Core Path: Lessons 5-10
|
|
116
|
+
|
|
117
|
+
Each lesson: (1) announce title and goal, (2) explain concept per skill level, (3) build or modify something, (4) verify it works, (5) record observations, ask "ready for next?"
|
|
118
|
+
|
|
119
|
+
**Lesson 5 -- Your First Custom Workflow**
|
|
120
|
+
|
|
121
|
+
- `automation: none` -- "A recipe." Agent writes all code. Agent runs `elevasis-sdk exec` and narrates result.
|
|
122
|
+
- `automation: low-code or custom` -- Modify echo workflow. Walk through `config`, `contract`, `steps`, `entryPoint`. Deploy with `elevasis-sdk check` then `elevasis-sdk deploy`.
|
|
123
|
+
|
|
124
|
+
**Lesson 6 -- Understanding Data (Schemas)**
|
|
125
|
+
|
|
126
|
+
- `automation: none` -- "What information does your automation need?" No Zod, no code shown. Agent reads identity.md goals and writes the schema.
|
|
127
|
+
- `automation: low-code` -- "Field mapping like Zapier, but with validation." Show Zod types briefly.
|
|
128
|
+
- `automation: custom` -- Full Zod explanation. `z.infer`. Show how schema fields define CLI input structure.
|
|
129
|
+
|
|
130
|
+
**Lesson 7 -- Using Platform Tools**
|
|
131
|
+
|
|
132
|
+
- `automation: none` -- Agent makes all code edits. Credential creation guided via Command Center UI.
|
|
133
|
+
- `automation: low-code or custom` -- Explain adapter pattern: `createAttioAdapter('cred')`. Show singleton pattern: `import { scheduler, llm } from '@elevasis/sdk/worker'`.
|
|
134
|
+
|
|
135
|
+
**Lesson 8 -- Multi-Step Workflows**
|
|
136
|
+
|
|
137
|
+
- `automation: none` -- "Step 1 passes its result to Step 2, like a relay race." Command View is PRIMARY teaching tool.
|
|
138
|
+
- `automation: low-code or custom` -- Chain steps with `StepType.LINEAR`. Show relationship edges in Command View.
|
|
139
|
+
|
|
140
|
+
**Lesson 9 -- Decision Points**
|
|
141
|
+
|
|
142
|
+
- `automation: none` -- "If the customer is VIP, do this -- otherwise, do that." Agent runs both paths. Open Execution Logs.
|
|
143
|
+
- `automation: low-code or custom` -- Conditional routing with `StepType.CONDITIONAL`. Show step trace in Execution Logs.
|
|
144
|
+
|
|
145
|
+
**Lesson 10 -- Going to Production**
|
|
146
|
+
|
|
147
|
+
- `automation: none` -- "Draft vs live." Create Recurring schedule in Task Scheduler.
|
|
148
|
+
- `automation: low-code or custom` -- Change `status: dev` -> `prod`. Cover `try/catch`, `ExecutionError`, `PlatformToolError`. CLI monitoring: `elevasis-sdk executions`.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Module System: Items 11-19
|
|
153
|
+
|
|
154
|
+
Modules are available any time -- no core path prerequisite. After completing a module the full menu table is shown again.
|
|
155
|
+
|
|
156
|
+
| # | Module | Reference Docs | Build | Key Concepts |
|
|
157
|
+
| --- | ---------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
158
|
+
| 11 | `hitl` | `command-center.mdx` (Command Queue) | Approval gate with `approval.create()`. Full lifecycle: trigger -> Command Queue -> approve/reject -> resume. | `approval` adapter, pending state, Command Queue UI |
|
|
159
|
+
| 12 | `schedules` | `command-center.mdx` (Task Scheduler) | All three schedule types: Recurring, Relative, Absolute. `scheduler` adapter for in-workflow. | Cron syntax, schedule types, Task Scheduler UI |
|
|
160
|
+
| 13 | `notifications` | `adapters.mdx` (notifications, email) | Notification + email steps. Alerts on completion. | `notifications` singleton, `email` singleton |
|
|
161
|
+
| 14 | `integrations` | `platform-tools/index.mdx` (Credential Security), `adapters.mdx` | Real adapter from `identity.md`. Full end-to-end with OAuth or API key credential. | Adapter pattern, credential scoping, external call error handling |
|
|
162
|
+
| 15 | `error-handling` | `patterns.mdx` (error handling), `troubleshooting.mdx` | Workflow demonstrating all three error types. `try/catch`, `context.logger`, recovery. | `ExecutionError`, `PlatformToolError`, `ToolingError` |
|
|
163
|
+
| 16 | `workflows` | `patterns.mdx` (store, logging, organization) | Refactor with `context.store`, `context.logger`, domain directories. Advanced schema patterns. | `context.store`, `context.logger`, schema depth |
|
|
164
|
+
| 17 | `composition` | `command-center.mdx` (Command View), `patterns.mdx` | Two workflows: first triggers second with `execution.trigger()`. Declare relationship. | `execution.trigger`, relationship declarations, Command View edges |
|
|
165
|
+
| 18 | `llm` | `adapters.mdx` (llm singleton) | `llm.generate()` with structured output. Model selection and temperature. | `llm` singleton, structured output, temperature |
|
|
166
|
+
| 19 | `agents` | `framework/agent.mdx` | Agent definition with tools. LLM tool calling. Agent vs workflow comparison. | Agent definition, tool registration, execution trace |
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Advanced Workspace: Items 20-21
|
|
171
|
+
|
|
172
|
+
**Item 20 -- Rules, Memory, and Customization**
|
|
173
|
+
|
|
174
|
+
- `none` -- "Sticky notes the agent reads automatically." Show `.claude/rules/workspace-patterns.md` without technical detail.
|
|
175
|
+
- `low-code` -- Show `.claude/rules/` directory. Explain MANAGED (`sdk-patterns.md`) vs INIT_ONLY (`workspace-patterns.md`). Explain error promotion: 3+ recurrences -> add a rule.
|
|
176
|
+
- `custom` -- Read both rules files. Walk through memory layout: `index.md`, `profile/`, `errors/`, `tutorial-progress.md`. Walk through adding a new rule.
|
|
177
|
+
|
|
178
|
+
**Item 21 -- Template Lifecycle**
|
|
179
|
+
|
|
180
|
+
- `none` -- "SDK releases automatically update your workspace." Explain `/meta fix` as the update command.
|
|
181
|
+
- `low-code` -- Explain MANAGED vs INIT_ONLY file types. Show how `/meta fix` handles conflicts.
|
|
182
|
+
- `custom` -- Full template lifecycle: init (writes all files), update (applies MANAGED changes, flags conflicts, preserves INIT_ONLY), fix (drift repair + SDK upgrade offer). Conflict resolution reads current + template from `@elevasis/sdk/templates`, merges preserving customizations.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Progress File Format
|
|
187
|
+
|
|
188
|
+
Stored at `.claude/memory/tutorial-progress.md`.
|
|
189
|
+
|
|
190
|
+
```markdown
|
|
191
|
+
# Tutorial Progress
|
|
192
|
+
|
|
193
|
+
Current: <free-form, e.g. "4: /work and /docs" or "M:integrations">
|
|
194
|
+
Started: YYYY-MM-DD
|
|
195
|
+
Last Session: YYYY-MM-DD
|
|
196
|
+
|
|
197
|
+
## Completed Lessons
|
|
198
|
+
|
|
199
|
+
| Item | Title | Completed | Duration |
|
|
200
|
+
| --- | --- | --- | --- |
|
|
201
|
+
| 1 | Welcome & Orientation | 2026-03-01 | 25 min |
|
|
202
|
+
|
|
203
|
+
## Completed Modules
|
|
204
|
+
|
|
205
|
+
| Module | Title | Completed | Duration |
|
|
206
|
+
| --- | --- | --- | --- |
|
|
207
|
+
| hitl | Human-in-the-Loop | 2026-03-03 | 40 min |
|
|
208
|
+
|
|
209
|
+
## Capability Observations
|
|
210
|
+
|
|
211
|
+
| Source | Observation |
|
|
212
|
+
| --- | --- |
|
|
213
|
+
| 1 | Navigated Command View without guidance |
|
|
214
|
+
|
|
215
|
+
## Assessment Notes
|
|
216
|
+
|
|
217
|
+
- Strong automation background, slow on TypeScript syntax
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
**Last Updated:** 2026-03-05
|
|
@@ -1,148 +1,152 @@
|
|
|
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
|
|
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
|
-
│ ├──
|
|
34
|
-
│ │ └──
|
|
35
|
-
│
|
|
36
|
-
│
|
|
37
|
-
│
|
|
38
|
-
│
|
|
39
|
-
│
|
|
40
|
-
│ ├──
|
|
41
|
-
│
|
|
42
|
-
├──
|
|
43
|
-
│
|
|
44
|
-
│
|
|
45
|
-
│
|
|
46
|
-
|
|
47
|
-
│ ├──
|
|
48
|
-
│
|
|
49
|
-
│ │
|
|
50
|
-
│ └──
|
|
51
|
-
│
|
|
52
|
-
├──
|
|
53
|
-
│
|
|
54
|
-
│ └──
|
|
55
|
-
│ └── .gitkeep #
|
|
56
|
-
├──
|
|
57
|
-
├──
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
├── .
|
|
61
|
-
├── .
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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 destructive commands (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 templateVersion and 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
|
+
The scaffolded `elevasis.config.ts` includes a `templateVersion` field that tracks which template generation your project uses. Leave it as-is -- it is managed automatically by `elevasis-sdk update`:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import type { ElevasConfig } from '@elevasis/sdk'
|
|
73
|
+
|
|
74
|
+
export default {
|
|
75
|
+
templateVersion: 27,
|
|
76
|
+
} satisfies ElevasConfig
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Set Up Your API Key
|
|
80
|
+
|
|
81
|
+
Open `.env` and set your API key:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
ELEVASIS_PLATFORM_KEY=sk_your_key_here
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The `.env` file is gitignored -- never commit it.
|
|
88
|
+
|
|
89
|
+
**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.
|
|
90
|
+
|
|
91
|
+
### Guided Setup with Claude Code
|
|
92
|
+
|
|
93
|
+
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.
|
|
94
|
+
|
|
95
|
+
If the automatic setup doesn't trigger, you can start it manually with `/meta init`.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## First Deployment
|
|
100
|
+
|
|
101
|
+
Validate your resources and deploy:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
elevasis-sdk check # Validate resource definitions
|
|
105
|
+
elevasis-sdk deploy # Bundle and deploy to the platform
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`elevasis-sdk check` runs validation without deploying. Fix any errors it reports before running `elevasis-sdk deploy`.
|
|
109
|
+
|
|
110
|
+
`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.
|
|
111
|
+
|
|
112
|
+
After a successful deploy, confirm the resources are live:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
elevasis-sdk resources # List deployed resources
|
|
116
|
+
elevasis-sdk deployments # Show deployment history
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## First Execution
|
|
122
|
+
|
|
123
|
+
Execute the scaffolded echo workflow to verify end-to-end connectivity:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
elevasis-sdk exec echo --input '{"message": "hello"}'
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
View the execution result:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
elevasis-sdk executions echo # Execution history
|
|
133
|
+
elevasis-sdk execution echo \<execution-id\> # Full detail for one execution
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Replace `<execution-id>` with the ID returned from the executions list.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Next Steps
|
|
141
|
+
|
|
142
|
+
- **Open in Claude Code** -- Setup runs automatically on first session (installs deps, configures `.env`, creates your developer profile)
|
|
143
|
+
- [Development Framework](framework/index.mdx) -- How Claude Code helps you build
|
|
144
|
+
- [Resources](resources/index.mdx) -- Define workflows and agents
|
|
145
|
+
- [CLI Reference](cli.mdx) -- Full command reference with flags
|
|
146
|
+
- [Deployment](deployment/index.mdx) -- Deployment lifecycle and environment variables
|
|
147
|
+
|
|
148
|
+
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`.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
**Last Updated:** 2026-02-27
|