@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
package/reference/index.mdx
CHANGED
|
@@ -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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
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
|