@elevasis/sdk 1.44.2 → 1.45.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.
- package/dist/cli.cjs +1001 -652
- package/dist/index.d.ts +1045 -509
- package/dist/index.js +748 -690
- package/dist/node/index.d.ts +105 -97
- package/dist/test-utils/index.d.ts +42 -28
- package/dist/test-utils/index.js +549 -732
- package/dist/worker/index.d.ts +12112 -0
- package/dist/worker/index.js +211 -186
- package/package.json +6 -9
- package/reference/_navigation.md +151 -21
- package/reference/_reference-manifest.json +186 -4
- package/reference/claude-config.md +8 -0
- package/reference/core/index.mdx +3 -3
- package/reference/examples/organization-model.ts +117 -111
- package/reference/index.mdx +4 -4
- package/reference/rules/active-change-index.md +40 -54
- package/reference/rules/agent-runtime.md +81 -0
- package/reference/rules/agent-start-here.md +71 -163
- package/reference/rules/deployment.md +33 -10
- package/reference/rules/error-handling.md +26 -0
- package/reference/rules/execution.md +13 -0
- package/reference/rules/frontend.md +10 -3
- package/reference/rules/observability.md +9 -1
- package/reference/rules/operations.md +26 -17
- package/reference/rules/organization-model.md +74 -88
- package/reference/rules/organization-os.md +71 -88
- package/reference/rules/package-taxonomy.md +11 -2
- package/reference/rules/platform.md +13 -7
- package/reference/rules/shared-types.md +15 -0
- package/reference/rules/task-tracking.md +30 -5
- package/reference/rules/ui.md +145 -3
- package/reference/rules/vibe-intents.md +271 -0
- package/reference/rules/vibe.md +17 -243
- package/reference/scaffold/core/organization-graph.mdx +111 -97
- package/reference/scaffold/core/organization-model.mdx +234 -214
- package/reference/scaffold/operations/propagation-pipeline.md +1 -1
- package/reference/scaffold/operations/scaffold-maintenance.md +19 -18
- package/reference/scaffold/operations/workflow-recipes.md +71 -19
- package/reference/scaffold/recipes/add-a-feature.md +156 -146
- package/reference/scaffold/recipes/add-a-resource.md +123 -117
- package/reference/scaffold/recipes/customize-crm-actions.md +25 -10
- package/reference/scaffold/recipes/customize-knowledge-browser.md +52 -117
- package/reference/scaffold/recipes/customize-organization-model.md +161 -149
- package/reference/scaffold/recipes/extend-a-base-entity.md +156 -140
- package/reference/scaffold/recipes/extend-crm.md +16 -11
- package/reference/scaffold/recipes/extend-lead-gen.md +25 -7
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +160 -118
- package/reference/scaffold/recipes/index.md +2 -2
- package/reference/scaffold/recipes/query-the-knowledge-graph.md +23 -23
- package/reference/scaffold/reference/contracts.md +12 -1
- package/reference/scaffold/reference/glossary.md +3 -3
- package/reference/scaffold/reference/system-interface-capabilities.md +5 -4
- package/reference/scaffold/ui/composition-extensibility.mdx +271 -232
- package/reference/scaffold/ui/feature-flags-and-gating.md +14 -6
- package/reference/scaffold/ui/feature-shell.mdx +279 -62
- package/reference/scaffold/ui/recipes.md +229 -197
- package/reference/sdk/cli-management.mdx +77 -29
- package/reference/sdk/concepts.mdx +2 -0
- package/reference/sdk/define-builders.mdx +76 -0
- package/reference/sdk/deployment/command-center.mdx +6 -2
- package/reference/sdk/deployment/execution-reference.mdx +64 -186
- package/reference/sdk/deployment/index.mdx +2 -0
- package/reference/sdk/exports.mdx +4 -4
- package/reference/sdk/framework/agent.mdx +49 -119
- package/reference/sdk/framework/index.mdx +46 -65
- package/reference/sdk/framework/project-structure.mdx +150 -205
- package/reference/sdk/framework/tutorial-system.mdx +2 -2
- package/reference/sdk/human-in-the-loop.mdx +152 -0
- package/reference/sdk/index.mdx +6 -7
- package/reference/sdk/platform-tools/index.mdx +12 -0
- package/reference/sdk/platform-tools/type-safety.mdx +4 -0
- package/reference/sdk/project-deployment-spec.mdx +131 -0
- package/reference/sdk/resources/index.mdx +23 -7
- package/reference/sdk/resources/patterns.mdx +54 -24
- package/reference/sdk/resources/types.mdx +7 -4
- package/reference/sdk/templates/data-enrichment.mdx +7 -3
- package/reference/sdk/templates/email-sender.mdx +139 -135
- package/reference/sdk/templates/lead-scorer.mdx +5 -1
- package/reference/sdk/templates/pdf-generator.mdx +155 -151
- package/reference/sdk/templates/recurring-job.mdx +195 -189
- package/reference/sdk/templates/text-classifier.mdx +4 -0
- package/reference/sdk/templates/web-scraper.mdx +139 -135
- package/reference/spine/spine-primer.md +135 -96
- package/reference/ui/index.mdx +14 -7
- package/dist/types/worker/adapters/anymailfinder.d.ts +0 -14
- package/dist/types/worker/adapters/apify.d.ts +0 -14
- package/dist/types/worker/adapters/approval.d.ts +0 -23
- package/dist/types/worker/adapters/attio.d.ts +0 -22
- package/dist/types/worker/adapters/clickup.d.ts +0 -22
- package/dist/types/worker/adapters/create-adapter.d.ts +0 -41
- package/dist/types/worker/adapters/crm.d.ts +0 -20
- package/dist/types/worker/adapters/dropbox.d.ts +0 -14
- package/dist/types/worker/adapters/email.d.ts +0 -25
- package/dist/types/worker/adapters/execution.d.ts +0 -22
- package/dist/types/worker/adapters/gmail.d.ts +0 -14
- package/dist/types/worker/adapters/google-sheets.d.ts +0 -14
- package/dist/types/worker/adapters/index.d.ts +0 -33
- package/dist/types/worker/adapters/instantly.d.ts +0 -14
- package/dist/types/worker/adapters/lead.d.ts +0 -28
- package/dist/types/worker/adapters/list.d.ts +0 -9
- package/dist/types/worker/adapters/llm.d.ts +0 -45
- package/dist/types/worker/adapters/millionverifier.d.ts +0 -14
- package/dist/types/worker/adapters/notification.d.ts +0 -28
- package/dist/types/worker/adapters/pdf.d.ts +0 -22
- package/dist/types/worker/adapters/projects.d.ts +0 -20
- package/dist/types/worker/adapters/resend.d.ts +0 -14
- package/dist/types/worker/adapters/scheduler.d.ts +0 -25
- package/dist/types/worker/adapters/signature-api.d.ts +0 -14
- package/dist/types/worker/adapters/storage.d.ts +0 -33
- package/dist/types/worker/adapters/stripe.d.ts +0 -14
- package/dist/types/worker/adapters/tomba.d.ts +0 -14
- package/dist/types/worker/index.d.ts +0 -60
- package/dist/types/worker/platform.d.ts +0 -90
- package/dist/types/worker/utils.d.ts +0 -9
- package/reference/claude-config/Overview.md +0 -230
- package/reference/claude-config/hooks/post-edit-validate.mjs +0 -98
- package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +0 -187
- package/reference/claude-config/hooks/tool-failure-recovery.mjs +0 -73
- package/reference/claude-config/registries/graph-skills.json +0 -4
- package/reference/claude-config/registries/knowledge-flags.json +0 -154
- package/reference/claude-config/registries/skill-coverage.json +0 -20
- package/reference/claude-config/rules/active-change-index.md +0 -22
- package/reference/claude-config/rules/agent-start-here.md +0 -22
- package/reference/claude-config/rules/deployment.md +0 -22
- package/reference/claude-config/rules/error-handling.md +0 -22
- package/reference/claude-config/rules/execution.md +0 -22
- package/reference/claude-config/rules/frontend.md +0 -22
- package/reference/claude-config/rules/observability.md +0 -22
- package/reference/claude-config/rules/operations.md +0 -22
- package/reference/claude-config/rules/organization-model.md +0 -22
- package/reference/claude-config/rules/organization-os.md +0 -22
- package/reference/claude-config/rules/package-taxonomy.md +0 -22
- package/reference/claude-config/rules/platform.md +0 -22
- package/reference/claude-config/rules/shared-types.md +0 -22
- package/reference/claude-config/rules/task-tracking.md +0 -22
- package/reference/claude-config/rules/topbar-actions.md +0 -70
- package/reference/claude-config/rules/ui.md +0 -22
- package/reference/claude-config/rules/vibe.md +0 -22
- package/reference/claude-config/scripts/statusline-command.js +0 -18
- package/reference/claude-config/settings.json +0 -30
- package/reference/claude-config/skills/client/SKILL.md +0 -201
- package/reference/claude-config/skills/deploy/SKILL.md +0 -159
- package/reference/claude-config/skills/dsp/SKILL.md +0 -66
- package/reference/claude-config/skills/elevasis/SKILL.md +0 -251
- package/reference/claude-config/skills/explore/SKILL.md +0 -78
- package/reference/claude-config/skills/git-sync/SKILL.md +0 -166
- package/reference/claude-config/skills/om/SKILL.md +0 -475
- package/reference/claude-config/skills/om/operations/build.md +0 -237
- package/reference/claude-config/skills/om/operations/codify-level-a.md +0 -109
- package/reference/claude-config/skills/om/operations/codify-level-b.md +0 -159
- package/reference/claude-config/skills/om/operations/customers.md +0 -114
- package/reference/claude-config/skills/om/operations/features.md +0 -88
- package/reference/claude-config/skills/om/operations/goals.md +0 -123
- package/reference/claude-config/skills/om/operations/identity.md +0 -97
- package/reference/claude-config/skills/om/operations/labels.md +0 -110
- package/reference/claude-config/skills/om/operations/offerings.md +0 -114
- package/reference/claude-config/skills/om/operations/roles.md +0 -104
- package/reference/claude-config/skills/om/operations/scaffold.md +0 -163
- package/reference/claude-config/skills/om/operations/techStack.md +0 -38
- package/reference/claude-config/skills/project/SKILL.md +0 -1114
- package/reference/claude-config/skills/run-ui/SKILL.md +0 -73
- package/reference/claude-config/skills/save/SKILL.md +0 -183
- package/reference/claude-config/skills/setup/SKILL.md +0 -290
- package/reference/claude-config/skills/status/SKILL.md +0 -59
- package/reference/claude-config/skills/submit-request/SKILL.md +0 -180
- package/reference/claude-config/skills/sync/SKILL.md +0 -47
- package/reference/claude-config/skills/tutorial/SKILL.md +0 -259
- package/reference/claude-config/skills/tutorial/progress-template.md +0 -74
- package/reference/claude-config/skills/tutorial/technical.md +0 -1303
- package/reference/claude-config/skills/tutorial/vibe-coder.md +0 -890
- package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +0 -27
- package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +0 -30
- package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +0 -73
- package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +0 -86
- package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +0 -55
- package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +0 -97
- package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +0 -112
- package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +0 -93
- package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +0 -58
- package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +0 -56
- package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +0 -71
- package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +0 -83
- package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +0 -59
- package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +0 -42
- package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +0 -60
- package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +0 -37
- package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +0 -34
- package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +0 -38
- package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +0 -32
- package/reference/claude-config/sync-notes/2026-05-09-command-system.md +0 -33
- package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +0 -69
- package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +0 -30
- package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +0 -45
- package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +0 -52
- package/reference/claude-config/sync-notes/2026-05-17-sdk-boundary-consolidation.md +0 -33
- package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +0 -32
- package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +0 -43
- package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +0 -40
- package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +0 -61
- package/reference/claude-config/sync-notes/2026-05-23-branding-names-to-identity.md +0 -49
- package/reference/claude-config/sync-notes/2026-05-23-lead-gen-manage-access.md +0 -31
- package/reference/claude-config/sync-notes/2026-05-23-om-deployment-drift-detection.md +0 -42
- package/reference/claude-config/sync-notes/2026-05-23-om-full-model-deploy-contract.md +0 -33
- package/reference/claude-config/sync-notes/2026-05-23-ui-sdk-package-fixes.md +0 -37
- package/reference/claude-config/sync-notes/2026-05-24-platform-invite-router-core-baseline.md +0 -28
- package/reference/claude-config/sync-notes/2026-05-24-system-interface-readiness.md +0 -43
- package/reference/claude-config/sync-notes/2026-05-25-invitation-login-loader.md +0 -26
- package/reference/claude-config/sync-notes/2026-05-25-om-topbar-requests.md +0 -33
- package/reference/claude-config/sync-notes/2026-05-25-system-interface-profile-registry-and-substrate.md +0 -35
- package/reference/claude-config/sync-notes/2026-05-25-tenant-om-scaffold-cli.md +0 -49
- package/reference/claude-config/sync-notes/2026-05-25-vibe-operate-intent.md +0 -47
- package/reference/claude-config/sync-notes/2026-05-28-om-snapshot-sdk-workflow-config.md +0 -33
- package/reference/claude-config/sync-notes/2026-05-30-client-source-and-om-profiles.md +0 -39
- package/reference/claude-config/sync-notes/2026-06-02-knowledge-nested-group-routing.md +0 -27
- package/reference/claude-config/sync-notes/2026-06-02-nest-projects-under-platform.md +0 -45
- package/reference/claude-config/sync-notes/2026-06-03-skill-autogen-and-client-skill.md +0 -34
- package/reference/claude-config/sync-notes/2026-06-04-scaffold-registry-lane-severity.md +0 -34
- package/reference/claude-config/sync-notes/2026-06-05-appearance-app-mode-decouple.md +0 -29
- package/reference/claude-config/sync-notes/2026-06-05-ontology-endpoint-rename-and-knowledge-browser-ui.md +0 -86
- package/reference/claude-config/sync-notes/2026-06-06-om-build-systems-scaffold.md +0 -47
- package/reference/claude-config/sync-notes/2026-06-06-om-item-copy-references.md +0 -50
- package/reference/claude-config/sync-notes/2026-06-08-knowledge-base-page-not-found-fix.md +0 -76
- package/reference/claude-config/sync-notes/2026-06-09-agent-sessions-public-agent-chat-route.md +0 -75
- package/reference/claude-config/sync-notes/2026-06-09-sdk-cli-load-org-model-resolution.md +0 -42
- package/reference/claude-config/sync-notes/2026-06-12-agent-grants-visualizer-operations.md +0 -30
- package/reference/claude-config/sync-notes/2026-06-14-session-ux-and-project-cli-json.md +0 -33
- package/reference/claude-config/sync-notes/2026-06-14-shared-session-conversation-view.md +0 -26
- package/reference/claude-config/sync-notes/2026-06-15-session-chat-zero-wiring.md +0 -46
- package/reference/claude-config/sync-notes/2026-06-17-agent-session-ux-features.md +0 -34
- package/reference/claude-config/sync-notes/2026-06-25-shared-page-scroll-contract-guard.md +0 -52
- package/reference/claude-config/sync-notes/2026-06-26-leadgen-overview-om-telemetry.md +0 -47
- package/reference/claude-config/sync-notes/2026-07-21-agent-scaffold-hardening.md +0 -75
- package/reference/claude-config/sync-notes/2026-07-23-agent-session-memory.md +0 -49
- package/reference/claude-config/sync-notes/2026-07-23-workos-org-marker.md +0 -50
- package/reference/claude-config/sync-notes/2026-07-24-claude-5-models-and-session-surface-fixes.md +0 -116
- package/reference/claude-config/sync-notes/2026-07-27-agent-strict-output-and-turn-drift.md +0 -73
- package/reference/claude-config/sync-notes/2026-07-28-agent-reply-is-its-own-field.md +0 -84
- package/reference/claude-config/sync-notes/2026-07-30-login-screen-and-member-provisioning-state.md +0 -114
- package/reference/claude-config/sync-notes/2026-08-02-auth-guard-defaults-and-truncation-fix.md +0 -122
- package/reference/claude-config/sync-notes/2026-08-03-cli-gateway-errors-and-request-timeout.md +0 -120
- package/reference/claude-config/sync-notes/README.md +0 -43
- package/reference/sdk/framework/interaction-guidance.mdx +0 -182
- package/reference/sdk/framework/memory.mdx +0 -326
- package/reference/sdk/framework/resource-documentation.mdx +0 -90
- package/reference/sdk/roadmap.mdx +0 -164
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: elevasis
|
|
3
|
-
description: Elevasis platform operations -- check, deploy, execute, inspect, and debug SDK resources
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Elevasis Platform Operations
|
|
7
|
-
|
|
8
|
-
Manage SDK resources in the `operations/` workspace via the `elevasis-sdk` CLI.
|
|
9
|
-
|
|
10
|
-
**Usage:**
|
|
11
|
-
|
|
12
|
-
- `/elevasis` -- Show available operations
|
|
13
|
-
- `/elevasis check` -- Validate resource definitions
|
|
14
|
-
- `/elevasis deploy [--prod]` -- Deploy resources
|
|
15
|
-
- `/elevasis exec <resourceId> [--input '...']` -- Execute a resource
|
|
16
|
-
- `/elevasis describe <resourceId>` -- Show resource schema
|
|
17
|
-
- `/elevasis logs <resourceId>` -- View recent executions
|
|
18
|
-
- `/elevasis creds` -- Manage credentials
|
|
19
|
-
|
|
20
|
-
## Critical Rules
|
|
21
|
-
|
|
22
|
-
- **Always describe before exec** -- run `describe` first to see the exact input schema
|
|
23
|
-
- **Use `-f` for complex inputs** -- write JSON to a temp file to avoid shell escaping issues
|
|
24
|
-
- **Always `check` before `deploy`** -- catches schema and config errors early
|
|
25
|
-
|
|
26
|
-
## Environment
|
|
27
|
-
|
|
28
|
-
The CLI authenticates via `ELEVASIS_PLATFORM_KEY` in the root `.env` file. The CLI walks up directories to find `.env`, so it works from both the project root and `operations/`.
|
|
29
|
-
|
|
30
|
-
**API URL resolution priority** (highest wins, first match applies):
|
|
31
|
-
|
|
32
|
-
1. `--api-url <url>` CLI flag -- explicit override, always wins
|
|
33
|
-
2. `--prod` flag -- forces `https://api.elevasis.io`
|
|
34
|
-
3. `ELEVASIS_API_URL` env var -- custom URL override
|
|
35
|
-
4. `NODE_ENV` default -- `http://localhost:5170` only when `NODE_ENV=development`; otherwise `https://api.elevasis.io`
|
|
36
|
-
|
|
37
|
-
**The default target is production.** Unless `NODE_ENV=development` is set in the environment, every command hits `https://api.elevasis.io` even with no flags at all.
|
|
38
|
-
|
|
39
|
-
**`NODE_ENV=development` is what selects the dev API** (`http://localhost:5170`). Setting `NODE_ENV=development` also switches the credential lookup: `ELEVASIS_PLATFORM_KEY_DEV` is used if set, falling back to `ELEVASIS_PLATFORM_KEY` if not.
|
|
40
|
-
|
|
41
|
-
**`--prod` forces production, even under `NODE_ENV=development`.** It overrides the dev API URL back to `https://api.elevasis.io` AND forces the credential lookup to use `ELEVASIS_PLATFORM_KEY` (never the `_DEV` variant), regardless of `NODE_ENV`.
|
|
42
|
-
|
|
43
|
-
## Operations
|
|
44
|
-
|
|
45
|
-
### Check
|
|
46
|
-
|
|
47
|
-
Validate all resource definitions (schemas, contracts, config):
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
pnpm elevasis-sdk check
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Reports: resource count, validation errors, schema serialization warnings. Exit code 0 = pass.
|
|
54
|
-
|
|
55
|
-
### Deploy
|
|
56
|
-
|
|
57
|
-
Bundle and deploy resources to the Elevasis platform.
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
pnpm elevasis-sdk deploy [--prod]
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Replace `[--prod]` with `--prod` when targeting production.
|
|
64
|
-
|
|
65
|
-
**Version bumping flags** (written back to `src/index.ts`):
|
|
66
|
-
|
|
67
|
-
- `--major` -- bump major (1.0.0 to 2.0.0) for breaking contract changes
|
|
68
|
-
- `--minor` -- bump minor (1.0.0 to 1.1.0) for new features
|
|
69
|
-
- `--patch` -- bump patch (1.0.0 to 1.0.1) for fixes
|
|
70
|
-
|
|
71
|
-
Deploy replaces the previous active deployment. Resources become executable immediately.
|
|
72
|
-
|
|
73
|
-
### Describe
|
|
74
|
-
|
|
75
|
-
**Always run before executing.** Shows resource metadata, input/output schemas, and step chain:
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
pnpm elevasis-sdk describe <resourceId>
|
|
79
|
-
|
|
80
|
-
# JSON output for programmatic use
|
|
81
|
-
pnpm elevasis-sdk describe <resourceId> --json
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Output includes: type, name, version, status, domains, input schema (required/optional fields with types), output schema, step definitions with entry point and routing.
|
|
85
|
-
|
|
86
|
-
### Execute
|
|
87
|
-
|
|
88
|
-
Run a deployed resource. **Always `describe` first to see the input schema.**
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
# Simple input (inline JSON)
|
|
92
|
-
pnpm elevasis-sdk exec <resourceId> -i '{"key": "value"}'
|
|
93
|
-
|
|
94
|
-
# Complex input (temp file -- PREFERRED for non-trivial payloads)
|
|
95
|
-
# Write input to a temp file first, then reference it with -f
|
|
96
|
-
pnpm elevasis-sdk exec <resourceId> -f .tmp-input.json
|
|
97
|
-
|
|
98
|
-
# Async execution (for long-running workflows -- polls until complete)
|
|
99
|
-
pnpm elevasis-sdk exec <resourceId> -f .tmp-input.json --async
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**When to use `-f` (file input):**
|
|
103
|
-
|
|
104
|
-
- Input contains nested objects, arrays, or special characters
|
|
105
|
-
- Input has quotes that conflict with shell escaping
|
|
106
|
-
- Input is reused across multiple executions
|
|
107
|
-
- Any time inline `-i` causes parsing errors
|
|
108
|
-
|
|
109
|
-
**Temp file pattern:**
|
|
110
|
-
|
|
111
|
-
1. Write the JSON to a temp file inside the project (e.g., `operations/.tmp-input.json`)
|
|
112
|
-
2. Execute with `-f .tmp-input.json`
|
|
113
|
-
3. Delete the temp file after
|
|
114
|
-
|
|
115
|
-
**Sync vs async:**
|
|
116
|
-
|
|
117
|
-
- Sync (default): blocks until execution completes, shows result inline
|
|
118
|
-
- Async (`--async`): returns execution ID immediately, polls every 3s with elapsed timer
|
|
119
|
-
- Use `--async` for workflows that may exceed 30 seconds
|
|
120
|
-
|
|
121
|
-
**Connection failure recovery:** If the connection drops during sync execution, the CLI automatically searches recent executions for a running one and resumes polling.
|
|
122
|
-
|
|
123
|
-
### List Resources
|
|
124
|
-
|
|
125
|
-
View all deployed resources:
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
pnpm elevasis-sdk resources
|
|
129
|
-
|
|
130
|
-
# JSON output
|
|
131
|
-
pnpm elevasis-sdk resources --json
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Shows: resource ID, type (workflow/agent), name, description, status.
|
|
135
|
-
|
|
136
|
-
### Execution History
|
|
137
|
-
|
|
138
|
-
View past executions for a resource:
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
# List recent executions (default: last 50)
|
|
142
|
-
pnpm elevasis-sdk executions <resourceId>
|
|
143
|
-
|
|
144
|
-
# Filter by status
|
|
145
|
-
pnpm elevasis-sdk executions <resourceId> --status failed --limit 10
|
|
146
|
-
|
|
147
|
-
# View specific execution (full detail with logs)
|
|
148
|
-
pnpm elevasis-sdk execution <resourceId> <executionId>
|
|
149
|
-
|
|
150
|
-
# Logs only (skip metadata)
|
|
151
|
-
pnpm elevasis-sdk execution <resourceId> <executionId> --logs-only
|
|
152
|
-
|
|
153
|
-
# Include input and result data
|
|
154
|
-
pnpm elevasis-sdk execution <resourceId> <executionId> --input --result
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
**`executions` flags:** `--limit <n>` (default 50), `--status running|completed|failed`, `--json`
|
|
158
|
-
|
|
159
|
-
**`execution` flags:** `--logs-only`, `--input`, `--result`, `--json`
|
|
160
|
-
|
|
161
|
-
Execution detail shows: status, start/end times, duration, input, result, error (if failed), and timestamped logs with level (ERROR/WARN/INFO/DEBUG).
|
|
162
|
-
|
|
163
|
-
### Deployments
|
|
164
|
-
|
|
165
|
-
View deployment history:
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
pnpm elevasis-sdk deployments
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Shows: deployment ID, SDK version, status (active/deploying/failed/stopped), created timestamp.
|
|
172
|
-
|
|
173
|
-
### Credentials
|
|
174
|
-
|
|
175
|
-
Manage integration credentials (API keys, webhook secrets):
|
|
176
|
-
|
|
177
|
-
```bash
|
|
178
|
-
# List credentials (metadata only, secrets not exposed)
|
|
179
|
-
pnpm elevasis-sdk creds list
|
|
180
|
-
|
|
181
|
-
# Create a credential
|
|
182
|
-
pnpm elevasis-sdk creds create --name my-api-key --type api-key --value '{"apiKey":"sk-..."}'
|
|
183
|
-
|
|
184
|
-
# Update a credential value
|
|
185
|
-
pnpm elevasis-sdk creds update my-api-key --value '{"apiKey":"new-key"}'
|
|
186
|
-
|
|
187
|
-
# Rename a credential
|
|
188
|
-
pnpm elevasis-sdk creds rename old-name --to new-name
|
|
189
|
-
|
|
190
|
-
# Delete a credential
|
|
191
|
-
pnpm elevasis-sdk creds delete my-api-key --force
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
Credential names: lowercase, digits, hyphens only (`^[a-z0-9]+(-[a-z0-9]+)*$`). Types: `api-key`, `webhook-secret`.
|
|
195
|
-
|
|
196
|
-
### Rename Resource
|
|
197
|
-
|
|
198
|
-
Rename a resource ID across all platform tables:
|
|
199
|
-
|
|
200
|
-
```bash
|
|
201
|
-
# Dry run (preview only)
|
|
202
|
-
pnpm elevasis-sdk rename old-id --to new-id
|
|
203
|
-
|
|
204
|
-
# Apply rename
|
|
205
|
-
pnpm elevasis-sdk rename old-id --to new-id --execute
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
Always dry-run first to see affected tables and row counts.
|
|
209
|
-
|
|
210
|
-
### Error Resolution
|
|
211
|
-
|
|
212
|
-
Mark execution errors as resolved:
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
# Resolve a specific error
|
|
216
|
-
pnpm elevasis-sdk error resolve <errorId>
|
|
217
|
-
|
|
218
|
-
# Resolve all errors for an execution
|
|
219
|
-
pnpm elevasis-sdk error resolve-execution <executionId>
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
## Standard Workflow
|
|
223
|
-
|
|
224
|
-
```
|
|
225
|
-
1. Write/modify resources operations/src/
|
|
226
|
-
2. Type-check pnpm -C operations run check-types
|
|
227
|
-
3. Validate /elevasis check
|
|
228
|
-
4. Deploy /elevasis deploy --prod
|
|
229
|
-
5. Describe /elevasis describe <id>
|
|
230
|
-
6. Execute /elevasis exec <id> -f input.json
|
|
231
|
-
7. Inspect logs /elevasis logs <id>
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
## Debugging Checklist
|
|
235
|
-
|
|
236
|
-
When an execution fails:
|
|
237
|
-
|
|
238
|
-
1. **Get the execution ID** from the exec output or `executions <resourceId> --status failed`
|
|
239
|
-
2. **Read the logs**: `execution <resourceId> <executionId> --logs-only`
|
|
240
|
-
3. **Check the input**: `execution <resourceId> <executionId> --input`
|
|
241
|
-
4. **Check the error**: `execution <resourceId> <executionId> --result`
|
|
242
|
-
5. **Fix the handler**, redeploy, re-execute
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## Capability Surface
|
|
247
|
-
|
|
248
|
-
When a user asks what skills or commands are available, do NOT answer from recollection.
|
|
249
|
-
|
|
250
|
-
- **Skill inventory:** Read `.claude/Overview.md` — it is the authoritative list of skills available in this project.
|
|
251
|
-
- **Live CLI capability:** Run `pnpm elevasis-sdk cli` — it outputs every command and domain currently registered in the SDK, grouped by domain.
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: explore
|
|
3
|
-
description: Codebase exploration anchored to project documentation
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Explore
|
|
7
|
-
|
|
8
|
-
Codebase exploration anchored to project documentation.
|
|
9
|
-
|
|
10
|
-
**Usage:** `/explore [area or question]`
|
|
11
|
-
|
|
12
|
-
## Process
|
|
13
|
-
|
|
14
|
-
### Step 0: OS-Vocab Classification
|
|
15
|
-
|
|
16
|
-
Before orienting, scan the user's query for Organization OS terminology. If any of the following appear, classify the query as **OS-relevant** and follow the OS context steps below; otherwise skip to Step 1.
|
|
17
|
-
|
|
18
|
-
**OS vocabulary triggers:**
|
|
19
|
-
|
|
20
|
-
- System layer: `system`, `systems`, `SystemModule`, `system key`, `system gate`, `system access`, `gate`, `gating`, `access`, `enable`, `disable`
|
|
21
|
-
- Shell / nav: `manifest`, `shell`, `sub-shell`, `sidebar`, `nav`, `navigation`, `route`
|
|
22
|
-
- Auth / guards: `guard`, `SystemGuard`, `AdminGuard`, `ProtectedRoute`, `admin`
|
|
23
|
-
- Org model: `organization`, `org model`, `organization model`, `domain`, `surface`
|
|
24
|
-
- Foundations: `foundation`, `foundations`, `@core/`, `adapter`
|
|
25
|
-
- Platform ops: `workflow`, `agent`, `deployment`, `resource`
|
|
26
|
-
|
|
27
|
-
**If OS-relevant:**
|
|
28
|
-
|
|
29
|
-
1. Read `.claude/rules/active-change-index.md` immediately. If the target area is flagged as under active refactor, surface the watch-area warning to the user before proceeding — include the "Load:" doc paths listed in that entry so investigation does not rely on stale scaffold prose.
|
|
30
|
-
2. Build the OS context bundle to pass into Step 3:
|
|
31
|
-
- Always: `operations/node_modules/@elevasis/sdk/reference/scaffold/reference/glossary.md`, `.claude/rules/active-change-index.md`, `.claude/rules/agent-start-here.md`
|
|
32
|
-
- Systems / Shell / Gating queries: add `operations/node_modules/@elevasis/sdk/reference/scaffold/ui/feature-flags-and-gating.md` + `operations/node_modules/@elevasis/sdk/reference/scaffold/reference/contracts.md`
|
|
33
|
-
- Workflow / Operations queries: add `.claude/rules/operations.md` + glob `operations/src/**`
|
|
34
|
-
- Organization-model queries: add `operations/node_modules/@elevasis/sdk/reference/scaffold/reference/contracts.md` + `core/config/README.md`
|
|
35
|
-
|
|
36
|
-
**OS layer → query intent map** (guides which reference docs the investigator loads first):
|
|
37
|
-
|
|
38
|
-
| Query intent | Primary OS layers | Key reference |
|
|
39
|
-
| ---------------------------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
40
|
-
| "Why doesn't my system show up?" | Systems + UI Shell Runtime | `glossary.md` (SystemModule, SystemGuard), `feature-flags-and-gating.md` |
|
|
41
|
-
| "How do I add a nav item?" | Systems + Toolkit | `feature-flags-and-gating.md`, `contracts.md` |
|
|
42
|
-
| "How does admin gating work?" | Systems + UI Shell Runtime | `glossary.md` (AdminGuard, requiresAdmin, ProtectedRoute), `feature-flags-and-gating.md` |
|
|
43
|
-
| "What runs when this workflow triggers?" | Platform Public API + Operations | `.claude/rules/operations.md`, `resources.md` |
|
|
44
|
-
| "Why does the foundations adapter fail?" | Foundations | `glossary.md` (domain vs surface, settings asymmetry), `core/config/README.md` |
|
|
45
|
-
|
|
46
|
-
### Step 1: Orient
|
|
47
|
-
|
|
48
|
-
1. Read `.claude/rules/agent-start-here.md` for project structure, task-class routing, and boundary resolution
|
|
49
|
-
2. Determine which domain the user's question falls into
|
|
50
|
-
|
|
51
|
-
### Step 2: Load Domain Context
|
|
52
|
-
|
|
53
|
-
Read the relevant doc(s) and source directories based on the area being explored. Use the Navigation table in `CLAUDE.md` for quick reference.
|
|
54
|
-
|
|
55
|
-
For OS-relevant queries, also inject the OS context bundle assembled in Step 0 into the investigator's starting context.
|
|
56
|
-
|
|
57
|
-
### Step 3: Investigate
|
|
58
|
-
|
|
59
|
-
For targeted questions:
|
|
60
|
-
|
|
61
|
-
- Use Grep to search for specific patterns, function names, or strings
|
|
62
|
-
- Use Glob to find files by pattern
|
|
63
|
-
- Read specific files for detailed understanding
|
|
64
|
-
|
|
65
|
-
For broad exploration:
|
|
66
|
-
|
|
67
|
-
- Dispatch a `general-purpose` subagent with the domain context and exploration question
|
|
68
|
-
- The subagent should read files, trace data flow, and return a structured report
|
|
69
|
-
- For OS-relevant queries, pass the preloaded OS context bundle so the subagent starts with terminology already resolved
|
|
70
|
-
|
|
71
|
-
### Step 4: Report
|
|
72
|
-
|
|
73
|
-
Present findings with:
|
|
74
|
-
|
|
75
|
-
- Direct answers to the question
|
|
76
|
-
- Relevant code locations (file:function format)
|
|
77
|
-
- Connections to other parts of the system
|
|
78
|
-
- Suggestions for related areas to explore (if relevant)
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: git-sync
|
|
3
|
-
description: Pull latest changes, surface new sync notes, install when needed, and run baseline verification without auto-reconciling template drift
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Git Sync
|
|
7
|
-
|
|
8
|
-
Pull the latest upstream changes for this project, detect any newly introduced template sync notes, install dependencies when the pull changed package baselines, and run the baseline verification flow.
|
|
9
|
-
|
|
10
|
-
**Usage:** `/git-sync`
|
|
11
|
-
|
|
12
|
-
Use this when:
|
|
13
|
-
|
|
14
|
-
- you just pulled a release-train update from the template repo
|
|
15
|
-
- the branch may include dependency or scaffold baseline changes
|
|
16
|
-
- you want the current sync-note guidance before making any manual reconciliation edits
|
|
17
|
-
|
|
18
|
-
This command is intentionally narrower than template reconciliation. It stops after pull, install, verification, and note surfacing. It never auto-overwrites project-owned files.
|
|
19
|
-
|
|
20
|
-
## Sync Notes Contract
|
|
21
|
-
|
|
22
|
-
Downstream release guidance lives in `.claude/sync-notes/`.
|
|
23
|
-
|
|
24
|
-
- Operative note files are named `YYYY-MM-DD-<slug>.md`
|
|
25
|
-
- `README.md` documents the contract and is ignored by note detection
|
|
26
|
-
- Notes are append-only release guidance; do not rewrite old note filenames after they ship
|
|
27
|
-
- Every operative note uses these exact headings:
|
|
28
|
-
- `## Why this note exists`
|
|
29
|
-
- `## Applies to`
|
|
30
|
-
- `## Required actions`
|
|
31
|
-
- `## Verification`
|
|
32
|
-
- `## Not handled by /git-sync`
|
|
33
|
-
|
|
34
|
-
## Process
|
|
35
|
-
|
|
36
|
-
### Step 1: Check for Uncommitted Changes
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
git status --short
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
If the worktree is dirty, stop and tell the user to commit, stash, or discard changes first. Do not pull on top of local edits.
|
|
43
|
-
|
|
44
|
-
### Step 2: Snapshot Current Sync Notes
|
|
45
|
-
|
|
46
|
-
Capture the current operative note filenames before pulling:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
git ls-files ".claude/sync-notes/*.md"
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Ignore `README.md` when building the pre-pull note set.
|
|
53
|
-
|
|
54
|
-
### Step 3: Pull Latest Changes
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
git pull --rebase
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
If the pull conflicts, stop and report the conflict. Do not attempt auto-resolution.
|
|
61
|
-
|
|
62
|
-
### Step 4: Detect Whether Install Is Required
|
|
63
|
-
|
|
64
|
-
If the pull changed any dependency baseline files, run a fresh install:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
git diff --name-only HEAD@{1} HEAD -- package.json pnpm-lock.yaml pnpm-workspace.yaml ui/package.json operations/package.json core/package.json
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
If the diff is non-empty:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
pnpm install
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
If none of those files changed, skip install and report that the dependency baseline was unchanged.
|
|
77
|
-
|
|
78
|
-
### Step 5: Verify the Installed SDK Bundle
|
|
79
|
-
|
|
80
|
-
Tenant `.claude/` files (skills, rules pointers, sync notes) arrive via this git pull. The canonical rule bodies those pointers resolve to (`operations/node_modules/@elevasis/sdk/reference/rules/*.md`) arrive on a separate channel: the published npm tarball, pulled in by `pnpm install`. These two channels can silently disagree -- a pull can land new `.claude/` pointers aimed at rule files the installed SDK does not have yet. Check for that gap explicitly:
|
|
81
|
-
|
|
82
|
-
1. **Confirm the bundle exists:**
|
|
83
|
-
|
|
84
|
-
```bash
|
|
85
|
-
ls operations/node_modules/@elevasis/sdk/package.json
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
If missing, the SDK is not installed at all -- run `pnpm install` and re-check before continuing.
|
|
89
|
-
|
|
90
|
-
2. **Read the installed version:**
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
node -p "require('./operations/node_modules/@elevasis/sdk/package.json').version"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
3. **Read the declared range:**
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
node -p "require('./operations/package.json').dependencies['@elevasis/sdk']"
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Compare the installed version against the declared semver range (e.g. `^1.37.0`). If the installed version does not satisfy the declared range -- most commonly because it is behind (older than the range allows) -- the lockfile and `node_modules` are out of sync with the manifest.
|
|
103
|
-
|
|
104
|
-
4. **Confirm the rules bundle is present and non-empty:**
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
ls operations/node_modules/@elevasis/sdk/reference/rules/
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
An empty or missing directory means the tenant's `.claude/rules/*.md` compatibility pointers have nothing to resolve to, even if the package itself is present.
|
|
111
|
-
|
|
112
|
-
**If the installed version is behind the declared range, or the rules directory is missing/empty:** run `pnpm install`, then repeat steps 1-4 to confirm the gap is closed. Report the before/after versions.
|
|
113
|
-
|
|
114
|
-
**This step reports and stops -- it does not auto-reconcile template drift.** If after a fresh install the installed version still does not satisfy the declared range (e.g. the range itself needs bumping), or the rules directory is still empty, surface that as an explicit manual-reconciliation item in the final report. Do not attempt to hand-edit `operations/package.json` version ranges here.
|
|
115
|
-
|
|
116
|
-
### Step 6: Run Baseline Verification
|
|
117
|
-
|
|
118
|
-
Run the standard project verification flow:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
pnpm -C ui check-types
|
|
122
|
-
pnpm -C ui build
|
|
123
|
-
pnpm -C operations check
|
|
124
|
-
pnpm -C operations check-types
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Stop on the first failure and report it clearly.
|
|
128
|
-
|
|
129
|
-
### Step 7: Surface Newly Introduced Sync Notes
|
|
130
|
-
|
|
131
|
-
Build the post-pull operative note set and compare it to the pre-pull set. Any newly added note filename is considered unread guidance for this pull.
|
|
132
|
-
|
|
133
|
-
When new notes exist:
|
|
134
|
-
|
|
135
|
-
- print each new note filename
|
|
136
|
-
- summarize the `## Required actions`, `## Verification`, and `## Not handled by /git-sync` sections
|
|
137
|
-
- tell the user exactly which manual follow-up remains
|
|
138
|
-
|
|
139
|
-
When no new notes exist, say so explicitly.
|
|
140
|
-
|
|
141
|
-
### Step 8: Stop Before Reconciliation
|
|
142
|
-
|
|
143
|
-
`/git-sync` ends after pull, optional install, verification, and note surfacing.
|
|
144
|
-
|
|
145
|
-
It does **not**:
|
|
146
|
-
|
|
147
|
-
- run registry/template reconciliation
|
|
148
|
-
- overwrite project-owned files
|
|
149
|
-
- resolve downstream migration conflicts
|
|
150
|
-
- treat a passing baseline verify as proof that manual follow-up is complete
|
|
151
|
-
|
|
152
|
-
If a sync note or the pulled diff requires project-specific changes, leave those as an explicit next step.
|
|
153
|
-
|
|
154
|
-
## Report
|
|
155
|
-
|
|
156
|
-
```text
|
|
157
|
-
Git Sync Complete
|
|
158
|
-
=================
|
|
159
|
-
Git: pulled (<branch>)
|
|
160
|
-
Install: ran | skipped (no dependency baseline changes)
|
|
161
|
-
SDK bundle: <installed-version> satisfies <declared-range> | BEHIND (installed <x> < declared <y>) | reinstalled -> now satisfies
|
|
162
|
-
Rules bundle: present (<n> files) | MISSING/EMPTY
|
|
163
|
-
Verify: PASS | FAIL at <step>
|
|
164
|
-
Sync notes: none | 2026-04-22-example-change.md
|
|
165
|
-
Next step: manual reconciliation required | none
|
|
166
|
-
```
|