@elevasis/sdk 0.4.5 → 0.4.7
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 +829 -413
- package/dist/index.d.ts +79 -14
- package/dist/index.js +17 -12
- package/dist/templates.js +747 -0
- package/dist/types/templates.d.ts +1 -0
- package/dist/types/worker/index.d.ts +6 -0
- package/dist/types/worker/platform.d.ts +32 -0
- package/dist/worker/index.js +4701 -9
- package/package.json +10 -3
- package/reference/_index.md +95 -0
- package/reference/_navigation.md +104 -0
- package/reference/cli/index.mdx +497 -0
- package/reference/concepts/index.mdx +203 -0
- package/reference/deployment/api.mdx +297 -0
- package/reference/deployment/index.mdx +153 -0
- package/reference/developer/interaction-guidance.mdx +213 -0
- package/reference/framework/agent.mdx +175 -0
- package/reference/framework/documentation.mdx +92 -0
- package/reference/framework/index.mdx +95 -0
- package/reference/framework/memory.mdx +337 -0
- package/reference/framework/project-structure.mdx +294 -0
- package/reference/getting-started/index.mdx +148 -0
- package/reference/index.mdx +113 -0
- package/reference/platform-tools/examples.mdx +187 -0
- package/reference/platform-tools/index.mdx +182 -0
- package/reference/resources/index.mdx +289 -0
- package/reference/resources/patterns.mdx +341 -0
- package/reference/resources/types.mdx +207 -0
- package/reference/roadmap/index.mdx +147 -0
- package/reference/runtime/index.mdx +141 -0
- package/reference/runtime/limits.mdx +77 -0
- package/reference/security/credentials.mdx +141 -0
- package/reference/templates/data-enrichment.mdx +162 -0
- package/reference/templates/email-sender.mdx +135 -0
- package/reference/templates/lead-scorer.mdx +175 -0
- package/reference/templates/pdf-generator.mdx +151 -0
- package/reference/templates/recurring-job.mdx +189 -0
- package/reference/templates/text-classifier.mdx +147 -0
- package/reference/templates/web-scraper.mdx +135 -0
- package/reference/troubleshooting/common-errors.mdx +210 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "SDK for building Elevasis organization resources",
|
|
5
5
|
"comment:bin": "IMPORTANT: This package shares the 'elevasis' binary name with @repo/cli. They never conflict because @elevasis/sdk must NEVER be added as a dependency of any workspace package (apps/*, packages/*, organizations/*). Workspace projects use @repo/cli for the 'elevasis' binary. External developers (outside the workspace) get this SDK's binary via npm install.",
|
|
6
6
|
"type": "module",
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"./worker": {
|
|
17
17
|
"types": "./dist/types/worker/index.d.ts",
|
|
18
18
|
"import": "./dist/worker/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./templates": {
|
|
21
|
+
"types": "./dist/types/templates.d.ts",
|
|
22
|
+
"import": "./dist/templates.js"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
"files": [
|
|
@@ -24,10 +28,13 @@
|
|
|
24
28
|
"dist/worker/index.js",
|
|
25
29
|
"dist/types/worker/index.d.ts",
|
|
26
30
|
"dist/types/worker/platform.d.ts",
|
|
27
|
-
"dist/cli.cjs"
|
|
31
|
+
"dist/cli.cjs",
|
|
32
|
+
"dist/templates.js",
|
|
33
|
+
"dist/types/templates.d.ts",
|
|
34
|
+
"reference/"
|
|
28
35
|
],
|
|
29
36
|
"scripts": {
|
|
30
|
-
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --external:jiti --banner:js=\"#!/usr/bin/env node\"",
|
|
37
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --external:jiti --banner:js=\"#!/usr/bin/env node\" && node scripts/copy-reference-docs.mjs && node scripts/generate-navigation.mjs",
|
|
31
38
|
"check-types": "tsc --noEmit",
|
|
32
39
|
"test:bundle": "pnpm build && vitest run --config vitest.bundle.config.ts"
|
|
33
40
|
},
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# SDK Reference Documentation
|
|
2
|
+
|
|
3
|
+
29 pages bundled from the Elevasis documentation site.
|
|
4
|
+
|
|
5
|
+
Browse these files for complete SDK reference including platform tools catalog,
|
|
6
|
+
resource types, runtime limits, deployment details, and CLI commands.
|
|
7
|
+
|
|
8
|
+
## Pages
|
|
9
|
+
|
|
10
|
+
- **CLI Reference** -- `cli/index.mdx`
|
|
11
|
+
Full reference for every elevasis CLI command -- scaffold, validate, deploy, execute, and inspect resources
|
|
12
|
+
|
|
13
|
+
- **Concepts Reference** -- `concepts/index.mdx`
|
|
14
|
+
Plain-English explanations of Elevasis SDK concepts -- glossary, workflow analogies, Zod schemas, execution model, platform tools, common errors, and design decisions
|
|
15
|
+
|
|
16
|
+
- **Execution API** -- `deployment/api.mdx`
|
|
17
|
+
REST endpoints for executing resources, querying execution history, and managing deployments via the Elevasis external API
|
|
18
|
+
|
|
19
|
+
- **Deploying Resources** -- `deployment/index.mdx`
|
|
20
|
+
How to deploy your Elevasis SDK resources to the platform using elevasis deploy, including configuration, validation, and environment setup
|
|
21
|
+
|
|
22
|
+
- **Interaction Guidance** -- `developer/interaction-guidance.mdx`
|
|
23
|
+
Full dimensional adaptation rules per skill axis -- programming, TypeScript, API integration, automation concepts, domain expertise -- with growth tracking protocol
|
|
24
|
+
|
|
25
|
+
- **Agent System** -- `framework/agent.mdx`
|
|
26
|
+
CLAUDE.md drives all agent behavior -- project instructions, slash commands, memory-based developer profile, and three-tier adaptive guidance
|
|
27
|
+
|
|
28
|
+
- **Resource Documentation** -- `framework/documentation.mdx`
|
|
29
|
+
Write and deploy MDX documentation alongside your Elevasis resources
|
|
30
|
+
|
|
31
|
+
- **Development Framework** -- `framework/index.mdx`
|
|
32
|
+
The SDK scaffolds a complete development environment for Claude Code -- project instructions, slash commands, cross-session memory, and template versioning
|
|
33
|
+
|
|
34
|
+
- **Memory System** -- `framework/memory.mdx`
|
|
35
|
+
Cross-session project knowledge stored in .claude/memory/ -- deployment state, environment, decisions, and error patterns that persist between Claude Code sessions
|
|
36
|
+
|
|
37
|
+
- **Project Structure** -- `framework/project-structure.mdx`
|
|
38
|
+
Each file scaffolded by elevasis init and its purpose in the development workflow
|
|
39
|
+
|
|
40
|
+
- **Getting Started** -- `getting-started/index.mdx`
|
|
41
|
+
Install the Elevasis SDK, scaffold a project, and run your first deployment
|
|
42
|
+
|
|
43
|
+
- **Elevasis SDK** -- `index.mdx`
|
|
44
|
+
Build and deploy workflows, agents, and resources with the Elevasis SDK
|
|
45
|
+
|
|
46
|
+
- **Integration Examples** -- `platform-tools/examples.mdx`
|
|
47
|
+
Common platform.call() patterns for email, CRM, PDF, LLM inference, resource triggering, and storage
|
|
48
|
+
|
|
49
|
+
- **Platform Tools** -- `platform-tools/index.mdx`
|
|
50
|
+
Access 70+ tools across integration adapters and platform services from your SDK workflows via platform.call()
|
|
51
|
+
|
|
52
|
+
- **Writing Resources** -- `resources/index.mdx`
|
|
53
|
+
Guide to creating workflows and agents using WorkflowDefinition, AgentDefinition, and OrganizationResources with the Elevasis SDK
|
|
54
|
+
|
|
55
|
+
- **Common Patterns** -- `resources/patterns.mdx`
|
|
56
|
+
Common resource patterns for Elevasis SDK developers -- sequential steps, conditional branching, platform tools, error handling, and resource status management
|
|
57
|
+
|
|
58
|
+
- **SDK Types** -- `resources/types.mdx`
|
|
59
|
+
Complete type reference for @elevasis/sdk -- package exports, re-exported platform types, ElevasConfig interface, StepHandler context, and runtime values
|
|
60
|
+
|
|
61
|
+
- **Roadmap** -- `roadmap/index.mdx`
|
|
62
|
+
Planned SDK features -- error taxonomy, retry semantics, circuit breaker, metrics, alerting, and resource lifecycle extensions
|
|
63
|
+
|
|
64
|
+
- **Execution Runtime** -- `runtime/index.mdx`
|
|
65
|
+
How your code runs on the Elevasis platform -- execution lifecycle, concurrency, timeouts, cancellation, error handling, and observability
|
|
66
|
+
|
|
67
|
+
- **Resource Limits & Quotas** -- `runtime/limits.mdx`
|
|
68
|
+
Memory limits, execution timeouts, scale quotas, networking constraints, and v1 platform limitations for SDK resources
|
|
69
|
+
|
|
70
|
+
- **Credential Security** -- `security/credentials.mdx`
|
|
71
|
+
Three-layer credential model: platform tools (server-side injection), http tool (arbitrary APIs), getCredential() (explicit opt-in raw access) -- .env scope and security boundaries
|
|
72
|
+
|
|
73
|
+
- **Template: Data Enrichment** -- `templates/data-enrichment.mdx`
|
|
74
|
+
LLM-powered enrichment of existing database records -- read rows, enrich each with an LLM, write results back to Supabase
|
|
75
|
+
|
|
76
|
+
- **Template: Email Sender** -- `templates/email-sender.mdx`
|
|
77
|
+
Transactional email via Resend with template support -- send styled emails to one or multiple recipients
|
|
78
|
+
|
|
79
|
+
- **Template: Lead Scorer** -- `templates/lead-scorer.mdx`
|
|
80
|
+
LLM-based lead scoring with Supabase storage -- receive a lead, score it with an LLM, store the result
|
|
81
|
+
|
|
82
|
+
- **Template: PDF Generator** -- `templates/pdf-generator.mdx`
|
|
83
|
+
PDF generation from structured data with platform storage upload -- render a PDF from a template and upload to platform storage
|
|
84
|
+
|
|
85
|
+
- **Template: Recurring Job** -- `templates/recurring-job.mdx`
|
|
86
|
+
Scheduler-triggered periodic workflow -- run a task on a schedule (daily, weekly, hourly, or custom cron)
|
|
87
|
+
|
|
88
|
+
- **Template: Text Classifier** -- `templates/text-classifier.mdx`
|
|
89
|
+
Multi-label text classification with structured output -- classify text into predefined categories using an LLM with JSON output
|
|
90
|
+
|
|
91
|
+
- **Template: Web Scraper** -- `templates/web-scraper.mdx`
|
|
92
|
+
Apify-based web scraper that stores results in Supabase -- fetch structured data from any website via Apify actors
|
|
93
|
+
|
|
94
|
+
- **Common Errors** -- `troubleshooting/common-errors.mdx`
|
|
95
|
+
Static SDK-level error catalog -- CLI errors, deployment errors, schema validation, platform tool failures, and runtime errors with diagnostic steps
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# SDK Reference Navigation
|
|
2
|
+
|
|
3
|
+
Auto-generated from reference file frontmatter. 29 files indexed.
|
|
4
|
+
|
|
5
|
+
All paths are relative to `node_modules/@elevasis/sdk/reference/`.
|
|
6
|
+
|
|
7
|
+
## General
|
|
8
|
+
|
|
9
|
+
| Resource | Location | When to Load |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Elevasis SDK | `index.mdx` | First session or new to the SDK |
|
|
12
|
+
|
|
13
|
+
## Cli
|
|
14
|
+
|
|
15
|
+
| Resource | Location | When to Load |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| CLI Reference | `cli/index.mdx` | Running CLI operations |
|
|
18
|
+
|
|
19
|
+
## Concepts
|
|
20
|
+
|
|
21
|
+
| Resource | Location | When to Load |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| Concepts Reference | `concepts/index.mdx` | User asks what is or needs conceptual grounding |
|
|
24
|
+
|
|
25
|
+
## Deployment
|
|
26
|
+
|
|
27
|
+
| Resource | Location | When to Load |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| Execution API | `deployment/api.mdx` | Calling the API directly or debugging API responses |
|
|
30
|
+
| Deploying Resources | `deployment/index.mdx` | Preparing to deploy or debugging deploy failures |
|
|
31
|
+
|
|
32
|
+
## Developer
|
|
33
|
+
|
|
34
|
+
| Resource | Location | When to Load |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| Interaction Guidance | `developer/interaction-guidance.mdx` | Unsure how to adapt for a skill combination |
|
|
37
|
+
|
|
38
|
+
## Framework
|
|
39
|
+
|
|
40
|
+
| Resource | Location | When to Load |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| Agent System | `framework/agent.mdx` | Configuring agent behavior or capabilities |
|
|
43
|
+
| Resource Documentation | `framework/documentation.mdx` | Writing or updating project documentation |
|
|
44
|
+
| Development Framework | `framework/index.mdx` | Understanding the agent framework structure |
|
|
45
|
+
| Memory System | `framework/memory.mdx` | Working with agent memory or session state |
|
|
46
|
+
| Project Structure | `framework/project-structure.mdx` | Understanding scaffolded files or project layout |
|
|
47
|
+
|
|
48
|
+
## Getting-started
|
|
49
|
+
|
|
50
|
+
| Resource | Location | When to Load |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| Getting Started | `getting-started/index.mdx` | Setting up a new project or onboarding |
|
|
53
|
+
|
|
54
|
+
## Platform-tools
|
|
55
|
+
|
|
56
|
+
| Resource | Location | When to Load |
|
|
57
|
+
| --- | --- | --- |
|
|
58
|
+
| Integration Examples | `platform-tools/examples.mdx` | Implementing a platform tool call in a workflow step |
|
|
59
|
+
| Platform Tools | `platform-tools/index.mdx` | Connecting to external services |
|
|
60
|
+
|
|
61
|
+
## Resources
|
|
62
|
+
|
|
63
|
+
| Resource | Location | When to Load |
|
|
64
|
+
| --- | --- | --- |
|
|
65
|
+
| Writing Resources | `resources/index.mdx` | Building or modifying a workflow |
|
|
66
|
+
| Common Patterns | `resources/patterns.mdx` | Building or modifying a workflow |
|
|
67
|
+
| SDK Types | `resources/types.mdx` | Looking up type signatures or SDK exports |
|
|
68
|
+
|
|
69
|
+
## Roadmap
|
|
70
|
+
|
|
71
|
+
| Resource | Location | When to Load |
|
|
72
|
+
| --- | --- | --- |
|
|
73
|
+
| Roadmap | `roadmap/index.mdx` | Asking about future features or planned capabilities |
|
|
74
|
+
|
|
75
|
+
## Runtime
|
|
76
|
+
|
|
77
|
+
| Resource | Location | When to Load |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| Execution Runtime | `runtime/index.mdx` | Debugging execution behavior or understanding the runtime model |
|
|
80
|
+
| Resource Limits & Quotas | `runtime/limits.mdx` | Hitting resource limits or planning for scale |
|
|
81
|
+
|
|
82
|
+
## Security
|
|
83
|
+
|
|
84
|
+
| Resource | Location | When to Load |
|
|
85
|
+
| --- | --- | --- |
|
|
86
|
+
| Credential Security | `security/credentials.mdx` | Setting up integrations or configuring tool access |
|
|
87
|
+
|
|
88
|
+
## Templates
|
|
89
|
+
|
|
90
|
+
| Resource | Location | When to Load |
|
|
91
|
+
| --- | --- | --- |
|
|
92
|
+
| Template: Data Enrichment | `templates/data-enrichment.mdx` | Applying the data-enrichment workflow template |
|
|
93
|
+
| Template: Email Sender | `templates/email-sender.mdx` | Applying the email-sender workflow template |
|
|
94
|
+
| Template: Lead Scorer | `templates/lead-scorer.mdx` | Applying the lead-scorer workflow template |
|
|
95
|
+
| Template: PDF Generator | `templates/pdf-generator.mdx` | Applying the pdf-generator workflow template |
|
|
96
|
+
| Template: Recurring Job | `templates/recurring-job.mdx` | Applying the recurring-job workflow template |
|
|
97
|
+
| Template: Text Classifier | `templates/text-classifier.mdx` | Applying the text-classifier workflow template |
|
|
98
|
+
| Template: Web Scraper | `templates/web-scraper.mdx` | Applying the web-scraper workflow template |
|
|
99
|
+
|
|
100
|
+
## Troubleshooting
|
|
101
|
+
|
|
102
|
+
| Resource | Location | When to Load |
|
|
103
|
+
| --- | --- | --- |
|
|
104
|
+
| Common Errors | `troubleshooting/common-errors.mdx` | Debugging an unknown error not found in workspace memory |
|