@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.
Files changed (37) hide show
  1. package/dist/cli.cjs +144 -118
  2. package/dist/index.d.ts +19 -253
  3. package/dist/index.js +20 -9
  4. package/dist/templates.js +62 -59
  5. package/dist/types/worker/adapters/index.d.ts +0 -1
  6. package/dist/worker/index.js +47 -53
  7. package/package.json +1 -1
  8. package/reference/_navigation.md +13 -57
  9. package/reference/{cli/index.mdx → cli.mdx} +568 -505
  10. package/reference/concepts.mdx +164 -0
  11. package/reference/deployment/api.mdx +297 -297
  12. package/reference/deployment/command-center.mdx +226 -0
  13. package/reference/deployment/index.mdx +158 -153
  14. package/reference/framework/agent.mdx +156 -151
  15. package/reference/framework/index.mdx +182 -103
  16. package/reference/{developer → framework}/interaction-guidance.mdx +182 -182
  17. package/reference/framework/memory.mdx +326 -347
  18. package/reference/framework/project-structure.mdx +277 -298
  19. package/reference/framework/tutorial-system.mdx +222 -0
  20. package/reference/{getting-started/index.mdx → getting-started.mdx} +152 -148
  21. package/reference/index.mdx +131 -114
  22. package/reference/platform-tools/adapters.mdx +868 -929
  23. package/reference/platform-tools/index.mdx +354 -195
  24. package/reference/resources/index.mdx +339 -336
  25. package/reference/resources/patterns.mdx +355 -354
  26. package/reference/resources/types.mdx +207 -207
  27. package/reference/{roadmap/index.mdx → roadmap.mdx} +163 -147
  28. package/reference/{runtime/index.mdx → runtime.mdx} +173 -141
  29. package/reference/{troubleshooting/common-errors.mdx → troubleshooting.mdx} +223 -210
  30. package/dist/types/worker/adapters/trello.d.ts +0 -14
  31. package/reference/concepts/index.mdx +0 -203
  32. package/reference/deployment/command-center-ui.mdx +0 -151
  33. package/reference/deployment/command-view.mdx +0 -154
  34. package/reference/framework/documentation.mdx +0 -92
  35. package/reference/platform-tools/examples.mdx +0 -170
  36. package/reference/runtime/limits.mdx +0 -75
  37. package/reference/security/credentials.mdx +0 -141
@@ -1,114 +1,131 @@
1
- ---
2
- title: Elevasis SDK
3
- description: Build and deploy workflows, agents, and resources with the Elevasis SDK
4
- loadWhen: "First session or new to the SDK"
5
- ---
6
-
7
- `@elevasis/sdk` lets you build workflows, agents, and resources in TypeScript and deploy them to the Elevasis platform with a single command. The developer experience is Vercel-style: write TypeScript, validate locally, deploy -- the platform handles execution, tool access, and observability. You never manage infrastructure. Zod 4.1 is the only peer dependency.
8
-
9
- ## Quick Start
10
-
11
- ```bash
12
- pnpm dlx @elevasis/sdk init my-project
13
- cd my-project
14
- pnpm install
15
- elevasis-sdk deploy
16
- ```
17
-
18
- After `pnpm dlx @elevasis/sdk init`, your project is scaffolded with a working echo workflow, config file, TypeScript setup, and a `CLAUDE.md` that gives Claude Code full awareness of the SDK. After `elevasis-sdk deploy`, your resources appear in AI Studio and are available to run immediately.
19
-
20
- Here is a minimal workflow definition:
21
-
22
- ```ts
23
- import { WorkflowDefinition, OrganizationResources } from '@elevasis/sdk';
24
- import { z } from 'zod';
25
-
26
- const greetInput = z.object({ name: z.string() });
27
- const greetOutput = z.object({ message: z.string() });
28
-
29
- type GreetInput = z.infer<typeof greetInput>;
30
- type GreetOutput = z.infer<typeof greetOutput>;
31
-
32
- const greetWorkflow: WorkflowDefinition = {
33
- id: 'greet',
34
- name: 'Greet',
35
- inputSchema: greetInput,
36
- outputSchema: greetOutput,
37
- steps: [
38
- {
39
- id: 'greet-step',
40
- name: 'Build greeting',
41
- handler: async (input: GreetInput): Promise<GreetOutput> => {
42
- return { message: `Hello, ${input.name}!` };
43
- },
44
- next: null,
45
- },
46
- ],
47
- };
48
-
49
- export const resources: OrganizationResources = {
50
- workflows: [greetWorkflow],
51
- };
52
- ```
53
-
54
- ## What You Can Build
55
-
56
- - **Workflows** -- Step-based automation with typed inputs and outputs. Steps can be linear, conditional, or branching. Each step is a plain async function. Workflows are the primary resource type and are fully supported.
57
- - **Agents** -- Autonomous AI resources with access to platform tools. Agents run in the worker runtime with full LLM access and platform tool support. Use `--async` when executing agents to avoid HTTP timeout limits on long-running runs.
58
-
59
- ## Platform Tools
60
-
61
- Inside any workflow step, import `platform` from `@elevasis/sdk/worker` to call platform tools:
62
-
63
- ```ts
64
- import { platform } from '@elevasis/sdk/worker';
65
-
66
- const result = await platform.call({
67
- tool: 'gmail',
68
- method: 'send',
69
- params: { to: 'user@example.com', subject: 'Hello', body: 'World' },
70
- credential: 'my-gmail-credential',
71
- });
72
- ```
73
-
74
- The platform exposes 70+ tools across 13 integration adapters -- Gmail, Stripe, Google Sheets, Notion, and more. Credentials are managed server-side; API keys never cross the execution boundary. LLM calls are also available via `platform.call({ tool: 'llm', ... })` with API keys resolved from platform environment variables.
75
-
76
- See [Platform Tools](platform-tools/index.mdx) for the full catalog.
77
-
78
- ## Known Limitations
79
-
80
- - **No streaming logs** -- Execution logs are returned in the response body after completion. Real-time log streaming is not available.
81
- - **Agent HTTP timeouts** -- Use `elevasis-sdk exec --async` for agent executions. Agents can run for minutes; the synchronous endpoint will time out for long-running runs. The `--async` flag returns an execution ID immediately and polls for the result.
82
-
83
- ## Documentation
84
-
85
- ### Getting Started
86
-
87
- - [Getting Started](getting-started/index.mdx) - Installation, authentication, first workflow, and project structure
88
-
89
- ### Core Concepts
90
-
91
- - [Resources](resources/index.mdx) - Workflow and agent definition patterns, Zod schemas, step types, and routing
92
- - [Platform Tools](platform-tools/index.mdx) - Full catalog of 70+ tools, integration adapters, and credential management
93
- - [Security](security/credentials.mdx) - Three-layer credential model, HTTP tool patterns, and credential management
94
-
95
- ### Reference
96
-
97
- - [Concepts](concepts/index.mdx) - Plain-English concept explanations, glossary, Zod guide, execution model, and common errors
98
- - [Templates](templates/index.mdx) - 7 workflow templates: web-scraper, data-enrichment, email-sender, lead-scorer, and more
99
- - [CLI Reference](cli/index.mdx) - All CLI commands: check, deploy, exec, resources, executions, env, and more
100
- - [Deployment](deployment/index.mdx) - Deploy pipeline, versioning, bundle upload, and registry registration
101
- - [Runtime](runtime/index.mdx) - Worker execution model, concurrency, timeouts, cancellation, and resource limits
102
-
103
- ### Framework
104
-
105
- - [Development Framework](framework/index.mdx) - How Claude Code helps you build: project structure, agent integration, memory, and documentation
106
-
107
- ### Developer Tools
108
-
109
- - [Documentation](framework/documentation.mdx) - Writing and deploying MDX documentation alongside your resources
110
- - [Roadmap](roadmap/index.mdx) - Planned features including agent execution, streaming logs, and SDK testing utilities
111
-
112
- ---
113
-
114
- **Last Updated:** 2026-02-25
1
+ ---
2
+ title: Elevasis SDK
3
+ description: Build and deploy workflows, agents, and resources with the Elevasis SDK
4
+ loadWhen: "First session or new to the SDK"
5
+ ---
6
+
7
+ `@elevasis/sdk` lets you build workflows, agents, and resources in TypeScript and deploy them to the Elevasis platform with a single command. The developer experience is Vercel-style: write TypeScript, validate locally, deploy -- the platform handles execution, tool access, and observability. You never manage infrastructure. Zod 4.1 is the only peer dependency.
8
+
9
+ ## Quick Start
10
+
11
+ ```bash
12
+ pnpm dlx @elevasis/sdk init my-project
13
+ cd my-project
14
+ pnpm install
15
+ elevasis-sdk deploy
16
+ ```
17
+
18
+ After `pnpm dlx @elevasis/sdk init`, your project is scaffolded with a working echo workflow, config file, TypeScript setup, and a `CLAUDE.md` that gives Claude Code full awareness of the SDK. After `elevasis-sdk deploy`, your resources appear in AI Studio and are available to run immediately.
19
+
20
+ Here is a minimal workflow definition:
21
+
22
+ ```ts
23
+ import type { WorkflowDefinition, OrganizationResources } from '@elevasis/sdk';
24
+ import { z } from 'zod';
25
+
26
+ const greetInput = z.object({ name: z.string() });
27
+ const greetOutput = z.object({ message: z.string() });
28
+
29
+ type GreetInput = z.infer<typeof greetInput>;
30
+
31
+ const greetWorkflow: WorkflowDefinition = {
32
+ config: {
33
+ resourceId: 'greet',
34
+ name: 'Greet',
35
+ type: 'workflow',
36
+ description: 'Returns a greeting for the given name',
37
+ version: '1.0.0',
38
+ status: 'dev',
39
+ },
40
+ contract: {
41
+ inputSchema: greetInput,
42
+ outputSchema: greetOutput,
43
+ },
44
+ steps: {
45
+ greet: {
46
+ id: 'greet',
47
+ name: 'Build greeting',
48
+ description: 'Returns a greeting message',
49
+ handler: async (input) => {
50
+ const { name } = input as GreetInput;
51
+ return { message: `Hello, ${name}!` };
52
+ },
53
+ inputSchema: greetInput,
54
+ outputSchema: greetOutput,
55
+ next: null,
56
+ },
57
+ },
58
+ entryPoint: 'greet',
59
+ };
60
+
61
+ const org: OrganizationResources = {
62
+ workflows: [greetWorkflow],
63
+ };
64
+
65
+ export default org;
66
+ ```
67
+
68
+ ## What You Can Build
69
+
70
+ - **Workflows** -- Step-based automation with typed inputs and outputs. Steps can be linear, conditional, or branching. Each step is a plain async function. Workflows are the primary resource type and are fully supported.
71
+ - **Agents** -- Autonomous AI resources with access to platform tools. Agents run in the worker runtime with full LLM access and platform tool support. Use `--async` when executing agents to avoid HTTP timeout limits on long-running runs.
72
+
73
+ ## Platform Tools
74
+
75
+ Inside any workflow step, import `platform` from `@elevasis/sdk/worker` to call platform tools:
76
+
77
+ ```ts
78
+ import { platform } from '@elevasis/sdk/worker';
79
+
80
+ const result = await platform.call({
81
+ tool: 'gmail',
82
+ method: 'send',
83
+ params: { to: 'user@example.com', subject: 'Hello', body: 'World' },
84
+ credential: 'my-gmail-credential',
85
+ });
86
+ ```
87
+
88
+ The platform exposes 70+ tools across 12 integration adapters -- Gmail, Stripe, Google Sheets, Notion, and more. Credentials are managed server-side; API keys never cross the execution boundary. LLM calls are also available via `platform.call({ tool: 'llm', ... })` with API keys resolved from platform environment variables.
89
+
90
+ See [Platform Tools](platform-tools/index.mdx) for the full catalog.
91
+
92
+ ## Known Limitations
93
+
94
+ - **No streaming logs** -- Execution logs are returned in the response body after completion. Real-time log streaming is not available.
95
+ - **Agent HTTP timeouts** -- Use `elevasis-sdk exec --async` for agent executions. Agents can run for minutes; the synchronous endpoint will time out for long-running runs. The `--async` flag returns an execution ID immediately and polls for the result.
96
+
97
+ ## Documentation
98
+
99
+ ### Getting Started
100
+
101
+ - [Getting Started](getting-started.mdx) - Installation, authentication, first workflow, and project structure
102
+
103
+ ### Core Concepts
104
+
105
+ - [Resources](resources/index.mdx) - Workflow and agent definition patterns, Zod schemas, step types, and routing
106
+ - [Platform Tools](platform-tools/index.mdx) - Full catalog of 70+ tools, integration adapters, and credential management
107
+ - [Platform Tools](platform-tools/index.mdx#credential-security) - Three-layer credential model, HTTP tool patterns, and credential management
108
+
109
+ ### Reference
110
+
111
+ - [Concepts](concepts.mdx) - Plain-English concept explanations, glossary, Zod guide, execution model, and common errors
112
+ - [Templates](templates/index.mdx) - 7 workflow templates: web-scraper, data-enrichment, email-sender, lead-scorer, and more
113
+ - [CLI Reference](cli.mdx) - All CLI commands: check, deploy, exec, resources, executions, env, and more
114
+ - [Deployment](deployment/index.mdx) - Deploy pipeline, versioning, bundle upload, and registry registration
115
+ - [Runtime](runtime.mdx) - Worker execution model, concurrency, timeouts, cancellation, resource limits, and v1 limitations
116
+
117
+ ### Framework
118
+
119
+ - [Development Framework](framework/index.mdx) - How Claude Code helps you build: project structure, agent integration, memory, and documentation
120
+ - [Interaction Guidance](framework/interaction-guidance.mdx) - Skill dimension adaptation rules for platform navigation, API integration, and automation concepts
121
+ - [Tutorial System](framework/tutorial-system.mdx) - 21-item tutorial menu, skill-adaptive lesson variants, progress tracking, and module contents
122
+
123
+ ### More
124
+
125
+ - [Documentation](framework/index.mdx#resource-documentation) - Writing and deploying MDX documentation alongside your resources
126
+ - [Troubleshooting](troubleshooting.mdx) - Static error catalog for CLI, deployment, schema, and runtime failures
127
+ - [Roadmap](roadmap.mdx) - Planned features including agent execution, streaming logs, and SDK testing utilities
128
+
129
+ ---
130
+
131
+ **Last Updated:** 2026-02-25