@elevasis/sdk 1.44.3 → 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.
Files changed (246) hide show
  1. package/dist/cli.cjs +991 -650
  2. package/dist/index.d.ts +1045 -509
  3. package/dist/index.js +738 -688
  4. package/dist/node/index.d.ts +105 -97
  5. package/dist/test-utils/index.d.ts +42 -28
  6. package/dist/test-utils/index.js +514 -783
  7. package/dist/worker/index.d.ts +12112 -0
  8. package/dist/worker/index.js +121 -182
  9. package/package.json +6 -9
  10. package/reference/_navigation.md +151 -21
  11. package/reference/_reference-manifest.json +186 -4
  12. package/reference/claude-config.md +8 -0
  13. package/reference/core/index.mdx +3 -3
  14. package/reference/examples/organization-model.ts +117 -111
  15. package/reference/index.mdx +4 -4
  16. package/reference/rules/active-change-index.md +40 -54
  17. package/reference/rules/agent-runtime.md +81 -0
  18. package/reference/rules/agent-start-here.md +71 -163
  19. package/reference/rules/deployment.md +33 -10
  20. package/reference/rules/error-handling.md +26 -0
  21. package/reference/rules/execution.md +13 -0
  22. package/reference/rules/frontend.md +10 -3
  23. package/reference/rules/observability.md +9 -1
  24. package/reference/rules/operations.md +26 -17
  25. package/reference/rules/organization-model.md +74 -88
  26. package/reference/rules/organization-os.md +71 -88
  27. package/reference/rules/package-taxonomy.md +11 -2
  28. package/reference/rules/platform.md +13 -7
  29. package/reference/rules/shared-types.md +15 -0
  30. package/reference/rules/task-tracking.md +30 -5
  31. package/reference/rules/ui.md +145 -3
  32. package/reference/rules/vibe-intents.md +271 -0
  33. package/reference/rules/vibe.md +17 -243
  34. package/reference/scaffold/core/organization-graph.mdx +111 -97
  35. package/reference/scaffold/core/organization-model.mdx +234 -214
  36. package/reference/scaffold/operations/propagation-pipeline.md +1 -1
  37. package/reference/scaffold/operations/scaffold-maintenance.md +19 -18
  38. package/reference/scaffold/operations/workflow-recipes.md +71 -19
  39. package/reference/scaffold/recipes/add-a-feature.md +156 -146
  40. package/reference/scaffold/recipes/add-a-resource.md +123 -117
  41. package/reference/scaffold/recipes/customize-crm-actions.md +25 -10
  42. package/reference/scaffold/recipes/customize-knowledge-browser.md +52 -117
  43. package/reference/scaffold/recipes/customize-organization-model.md +161 -149
  44. package/reference/scaffold/recipes/extend-a-base-entity.md +156 -140
  45. package/reference/scaffold/recipes/extend-crm.md +16 -11
  46. package/reference/scaffold/recipes/extend-lead-gen.md +25 -7
  47. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +160 -118
  48. package/reference/scaffold/recipes/index.md +2 -2
  49. package/reference/scaffold/recipes/query-the-knowledge-graph.md +23 -23
  50. package/reference/scaffold/reference/contracts.md +12 -1
  51. package/reference/scaffold/reference/glossary.md +3 -3
  52. package/reference/scaffold/reference/system-interface-capabilities.md +5 -4
  53. package/reference/scaffold/ui/composition-extensibility.mdx +271 -232
  54. package/reference/scaffold/ui/feature-flags-and-gating.md +14 -6
  55. package/reference/scaffold/ui/feature-shell.mdx +279 -62
  56. package/reference/scaffold/ui/recipes.md +229 -197
  57. package/reference/sdk/cli-management.mdx +77 -29
  58. package/reference/sdk/concepts.mdx +2 -0
  59. package/reference/sdk/define-builders.mdx +76 -0
  60. package/reference/sdk/deployment/command-center.mdx +6 -2
  61. package/reference/sdk/deployment/execution-reference.mdx +64 -186
  62. package/reference/sdk/deployment/index.mdx +2 -0
  63. package/reference/sdk/exports.mdx +4 -4
  64. package/reference/sdk/framework/agent.mdx +49 -119
  65. package/reference/sdk/framework/index.mdx +46 -65
  66. package/reference/sdk/framework/project-structure.mdx +150 -205
  67. package/reference/sdk/framework/tutorial-system.mdx +2 -2
  68. package/reference/sdk/human-in-the-loop.mdx +152 -0
  69. package/reference/sdk/index.mdx +6 -7
  70. package/reference/sdk/platform-tools/index.mdx +12 -0
  71. package/reference/sdk/platform-tools/type-safety.mdx +4 -0
  72. package/reference/sdk/project-deployment-spec.mdx +131 -0
  73. package/reference/sdk/resources/index.mdx +21 -7
  74. package/reference/sdk/resources/patterns.mdx +54 -24
  75. package/reference/sdk/resources/types.mdx +7 -4
  76. package/reference/sdk/templates/data-enrichment.mdx +7 -3
  77. package/reference/sdk/templates/email-sender.mdx +139 -135
  78. package/reference/sdk/templates/lead-scorer.mdx +5 -1
  79. package/reference/sdk/templates/pdf-generator.mdx +155 -151
  80. package/reference/sdk/templates/recurring-job.mdx +195 -189
  81. package/reference/sdk/templates/text-classifier.mdx +4 -0
  82. package/reference/sdk/templates/web-scraper.mdx +139 -135
  83. package/reference/spine/spine-primer.md +135 -96
  84. package/reference/ui/index.mdx +14 -7
  85. package/dist/types/worker/adapters/anymailfinder.d.ts +0 -14
  86. package/dist/types/worker/adapters/apify.d.ts +0 -14
  87. package/dist/types/worker/adapters/approval.d.ts +0 -23
  88. package/dist/types/worker/adapters/attio.d.ts +0 -22
  89. package/dist/types/worker/adapters/clickup.d.ts +0 -22
  90. package/dist/types/worker/adapters/create-adapter.d.ts +0 -41
  91. package/dist/types/worker/adapters/crm.d.ts +0 -20
  92. package/dist/types/worker/adapters/dropbox.d.ts +0 -14
  93. package/dist/types/worker/adapters/email.d.ts +0 -25
  94. package/dist/types/worker/adapters/execution.d.ts +0 -22
  95. package/dist/types/worker/adapters/gmail.d.ts +0 -14
  96. package/dist/types/worker/adapters/google-sheets.d.ts +0 -14
  97. package/dist/types/worker/adapters/index.d.ts +0 -33
  98. package/dist/types/worker/adapters/instantly.d.ts +0 -14
  99. package/dist/types/worker/adapters/lead.d.ts +0 -28
  100. package/dist/types/worker/adapters/list.d.ts +0 -9
  101. package/dist/types/worker/adapters/llm.d.ts +0 -45
  102. package/dist/types/worker/adapters/millionverifier.d.ts +0 -14
  103. package/dist/types/worker/adapters/notification.d.ts +0 -28
  104. package/dist/types/worker/adapters/pdf.d.ts +0 -22
  105. package/dist/types/worker/adapters/projects.d.ts +0 -20
  106. package/dist/types/worker/adapters/resend.d.ts +0 -14
  107. package/dist/types/worker/adapters/scheduler.d.ts +0 -25
  108. package/dist/types/worker/adapters/signature-api.d.ts +0 -14
  109. package/dist/types/worker/adapters/storage.d.ts +0 -33
  110. package/dist/types/worker/adapters/stripe.d.ts +0 -14
  111. package/dist/types/worker/adapters/tomba.d.ts +0 -14
  112. package/dist/types/worker/index.d.ts +0 -60
  113. package/dist/types/worker/platform.d.ts +0 -90
  114. package/dist/types/worker/utils.d.ts +0 -9
  115. package/reference/claude-config/Overview.md +0 -230
  116. package/reference/claude-config/hooks/post-edit-validate.mjs +0 -98
  117. package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +0 -187
  118. package/reference/claude-config/hooks/tool-failure-recovery.mjs +0 -73
  119. package/reference/claude-config/registries/graph-skills.json +0 -4
  120. package/reference/claude-config/registries/knowledge-flags.json +0 -154
  121. package/reference/claude-config/registries/skill-coverage.json +0 -20
  122. package/reference/claude-config/rules/active-change-index.md +0 -22
  123. package/reference/claude-config/rules/agent-start-here.md +0 -22
  124. package/reference/claude-config/rules/deployment.md +0 -22
  125. package/reference/claude-config/rules/error-handling.md +0 -22
  126. package/reference/claude-config/rules/execution.md +0 -22
  127. package/reference/claude-config/rules/frontend.md +0 -22
  128. package/reference/claude-config/rules/observability.md +0 -22
  129. package/reference/claude-config/rules/operations.md +0 -22
  130. package/reference/claude-config/rules/organization-model.md +0 -22
  131. package/reference/claude-config/rules/organization-os.md +0 -22
  132. package/reference/claude-config/rules/package-taxonomy.md +0 -22
  133. package/reference/claude-config/rules/platform.md +0 -22
  134. package/reference/claude-config/rules/shared-types.md +0 -22
  135. package/reference/claude-config/rules/task-tracking.md +0 -22
  136. package/reference/claude-config/rules/topbar-actions.md +0 -70
  137. package/reference/claude-config/rules/ui.md +0 -22
  138. package/reference/claude-config/rules/vibe.md +0 -22
  139. package/reference/claude-config/scripts/statusline-command.js +0 -18
  140. package/reference/claude-config/settings.json +0 -30
  141. package/reference/claude-config/skills/client/SKILL.md +0 -201
  142. package/reference/claude-config/skills/deploy/SKILL.md +0 -159
  143. package/reference/claude-config/skills/dsp/SKILL.md +0 -66
  144. package/reference/claude-config/skills/elevasis/SKILL.md +0 -251
  145. package/reference/claude-config/skills/explore/SKILL.md +0 -78
  146. package/reference/claude-config/skills/git-sync/SKILL.md +0 -166
  147. package/reference/claude-config/skills/om/SKILL.md +0 -475
  148. package/reference/claude-config/skills/om/operations/build.md +0 -237
  149. package/reference/claude-config/skills/om/operations/codify-level-a.md +0 -109
  150. package/reference/claude-config/skills/om/operations/codify-level-b.md +0 -159
  151. package/reference/claude-config/skills/om/operations/customers.md +0 -114
  152. package/reference/claude-config/skills/om/operations/features.md +0 -88
  153. package/reference/claude-config/skills/om/operations/goals.md +0 -123
  154. package/reference/claude-config/skills/om/operations/identity.md +0 -97
  155. package/reference/claude-config/skills/om/operations/labels.md +0 -110
  156. package/reference/claude-config/skills/om/operations/offerings.md +0 -114
  157. package/reference/claude-config/skills/om/operations/roles.md +0 -104
  158. package/reference/claude-config/skills/om/operations/scaffold.md +0 -163
  159. package/reference/claude-config/skills/om/operations/techStack.md +0 -38
  160. package/reference/claude-config/skills/project/SKILL.md +0 -1114
  161. package/reference/claude-config/skills/run-ui/SKILL.md +0 -73
  162. package/reference/claude-config/skills/save/SKILL.md +0 -183
  163. package/reference/claude-config/skills/setup/SKILL.md +0 -290
  164. package/reference/claude-config/skills/status/SKILL.md +0 -59
  165. package/reference/claude-config/skills/submit-request/SKILL.md +0 -180
  166. package/reference/claude-config/skills/sync/SKILL.md +0 -47
  167. package/reference/claude-config/skills/tutorial/SKILL.md +0 -259
  168. package/reference/claude-config/skills/tutorial/progress-template.md +0 -74
  169. package/reference/claude-config/skills/tutorial/technical.md +0 -1303
  170. package/reference/claude-config/skills/tutorial/vibe-coder.md +0 -890
  171. package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +0 -27
  172. package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +0 -30
  173. package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +0 -73
  174. package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +0 -86
  175. package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +0 -55
  176. package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +0 -97
  177. package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +0 -112
  178. package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +0 -93
  179. package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +0 -58
  180. package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +0 -56
  181. package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +0 -71
  182. package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +0 -83
  183. package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +0 -59
  184. package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +0 -42
  185. package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +0 -60
  186. package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +0 -37
  187. package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +0 -34
  188. package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +0 -38
  189. package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +0 -32
  190. package/reference/claude-config/sync-notes/2026-05-09-command-system.md +0 -33
  191. package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +0 -69
  192. package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +0 -30
  193. package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +0 -45
  194. package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +0 -52
  195. package/reference/claude-config/sync-notes/2026-05-17-sdk-boundary-consolidation.md +0 -33
  196. package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +0 -32
  197. package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +0 -43
  198. package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +0 -40
  199. package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +0 -61
  200. package/reference/claude-config/sync-notes/2026-05-23-branding-names-to-identity.md +0 -49
  201. package/reference/claude-config/sync-notes/2026-05-23-lead-gen-manage-access.md +0 -31
  202. package/reference/claude-config/sync-notes/2026-05-23-om-deployment-drift-detection.md +0 -42
  203. package/reference/claude-config/sync-notes/2026-05-23-om-full-model-deploy-contract.md +0 -33
  204. package/reference/claude-config/sync-notes/2026-05-23-ui-sdk-package-fixes.md +0 -37
  205. package/reference/claude-config/sync-notes/2026-05-24-platform-invite-router-core-baseline.md +0 -28
  206. package/reference/claude-config/sync-notes/2026-05-24-system-interface-readiness.md +0 -43
  207. package/reference/claude-config/sync-notes/2026-05-25-invitation-login-loader.md +0 -26
  208. package/reference/claude-config/sync-notes/2026-05-25-om-topbar-requests.md +0 -33
  209. package/reference/claude-config/sync-notes/2026-05-25-system-interface-profile-registry-and-substrate.md +0 -35
  210. package/reference/claude-config/sync-notes/2026-05-25-tenant-om-scaffold-cli.md +0 -49
  211. package/reference/claude-config/sync-notes/2026-05-25-vibe-operate-intent.md +0 -47
  212. package/reference/claude-config/sync-notes/2026-05-28-om-snapshot-sdk-workflow-config.md +0 -33
  213. package/reference/claude-config/sync-notes/2026-05-30-client-source-and-om-profiles.md +0 -39
  214. package/reference/claude-config/sync-notes/2026-06-02-knowledge-nested-group-routing.md +0 -27
  215. package/reference/claude-config/sync-notes/2026-06-02-nest-projects-under-platform.md +0 -45
  216. package/reference/claude-config/sync-notes/2026-06-03-skill-autogen-and-client-skill.md +0 -34
  217. package/reference/claude-config/sync-notes/2026-06-04-scaffold-registry-lane-severity.md +0 -34
  218. package/reference/claude-config/sync-notes/2026-06-05-appearance-app-mode-decouple.md +0 -29
  219. package/reference/claude-config/sync-notes/2026-06-05-ontology-endpoint-rename-and-knowledge-browser-ui.md +0 -86
  220. package/reference/claude-config/sync-notes/2026-06-06-om-build-systems-scaffold.md +0 -47
  221. package/reference/claude-config/sync-notes/2026-06-06-om-item-copy-references.md +0 -50
  222. package/reference/claude-config/sync-notes/2026-06-08-knowledge-base-page-not-found-fix.md +0 -76
  223. package/reference/claude-config/sync-notes/2026-06-09-agent-sessions-public-agent-chat-route.md +0 -75
  224. package/reference/claude-config/sync-notes/2026-06-09-sdk-cli-load-org-model-resolution.md +0 -42
  225. package/reference/claude-config/sync-notes/2026-06-12-agent-grants-visualizer-operations.md +0 -30
  226. package/reference/claude-config/sync-notes/2026-06-14-session-ux-and-project-cli-json.md +0 -33
  227. package/reference/claude-config/sync-notes/2026-06-14-shared-session-conversation-view.md +0 -26
  228. package/reference/claude-config/sync-notes/2026-06-15-session-chat-zero-wiring.md +0 -46
  229. package/reference/claude-config/sync-notes/2026-06-17-agent-session-ux-features.md +0 -34
  230. package/reference/claude-config/sync-notes/2026-06-25-shared-page-scroll-contract-guard.md +0 -52
  231. package/reference/claude-config/sync-notes/2026-06-26-leadgen-overview-om-telemetry.md +0 -47
  232. package/reference/claude-config/sync-notes/2026-07-21-agent-scaffold-hardening.md +0 -75
  233. package/reference/claude-config/sync-notes/2026-07-23-agent-session-memory.md +0 -49
  234. package/reference/claude-config/sync-notes/2026-07-23-workos-org-marker.md +0 -50
  235. package/reference/claude-config/sync-notes/2026-07-24-claude-5-models-and-session-surface-fixes.md +0 -116
  236. package/reference/claude-config/sync-notes/2026-07-27-agent-strict-output-and-turn-drift.md +0 -73
  237. package/reference/claude-config/sync-notes/2026-07-28-agent-reply-is-its-own-field.md +0 -84
  238. package/reference/claude-config/sync-notes/2026-07-30-login-screen-and-member-provisioning-state.md +0 -114
  239. package/reference/claude-config/sync-notes/2026-08-02-auth-guard-defaults-and-truncation-fix.md +0 -122
  240. package/reference/claude-config/sync-notes/2026-08-03-agent-prose-escape-normalization.md +0 -88
  241. package/reference/claude-config/sync-notes/2026-08-03-cli-gateway-errors-and-request-timeout.md +0 -120
  242. package/reference/claude-config/sync-notes/README.md +0 -43
  243. package/reference/sdk/framework/interaction-guidance.mdx +0 -182
  244. package/reference/sdk/framework/memory.mdx +0 -326
  245. package/reference/sdk/framework/resource-documentation.mdx +0 -90
  246. package/reference/sdk/roadmap.mdx +0 -164
@@ -1,22 +0,0 @@
1
- /**
2
- * Attio Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Attio CRM operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- *
7
- * Types are shared with the server-side Attio adapter via @repo/core/execution.
8
- */
9
- import type { AttioToolMap } from '../../types/index.js';
10
- /**
11
- * Create a typed Attio adapter bound to a specific credential.
12
- *
13
- * @param credential - Credential name as configured in the command center
14
- * @returns Object with 12 typed methods for Attio CRM operations
15
- *
16
- * @example
17
- * ```ts
18
- * const attio = createAttioAdapter('my-attio-credential')
19
- * const records = await attio.listRecords({ object: 'deals', filter: { ... } })
20
- * ```
21
- */
22
- export declare function createAttioAdapter(credential: string): import("./create-adapter.js").TypedAdapter<AttioToolMap>;
@@ -1,22 +0,0 @@
1
- /**
2
- * ClickUp Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for ClickUp task operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- *
7
- * Types are shared with the server-side ClickUp adapter via @repo/core/execution.
8
- */
9
- import type { ClickUpToolMap } from '../../types/index.js';
10
- /**
11
- * Create a typed ClickUp adapter bound to a specific credential.
12
- *
13
- * @param credential - Credential name as configured in the command center
14
- * @returns Object with 2 typed methods for ClickUp operations
15
- *
16
- * @example
17
- * ```ts
18
- * const clickup = createClickUpAdapter('my-clickup-credential')
19
- * const task = await clickup.createTask({ listId: '123', name: 'Task', markdownContent: '...' })
20
- * ```
21
- */
22
- export declare function createClickUpAdapter(credential: string): import("./create-adapter.js").TypedAdapter<ClickUpToolMap>;
@@ -1,41 +0,0 @@
1
- /**
2
- * Generic Typed Adapter Factory
3
- *
4
- * Given a ToolMethodMap type, tool name, and optional credential,
5
- * generates a fully typed object where each key is a method name
6
- * and each value is a typed function that calls platform.call().
7
- *
8
- * Eliminates: manual `as Promise<T>` casts, stringly-typed method names,
9
- * per-method boilerplate.
10
- */
11
- /** A single method entry: what params go in, what result comes out */
12
- interface MethodEntry {
13
- params: unknown;
14
- result: unknown;
15
- }
16
- /** A tool's complete method map */
17
- type ToolMethodMap = Record<string, MethodEntry>;
18
- /**
19
- * Derive the typed adapter interface from a ToolMethodMap.
20
- * Methods with `Record<string, never>` params become zero-arg functions.
21
- */
22
- export type TypedAdapter<TMap extends ToolMethodMap> = {
23
- [K in keyof TMap]: TMap[K]['params'] extends Record<string, never> ? () => Promise<TMap[K]['result']> : (params: TMap[K]['params']) => Promise<TMap[K]['result']>;
24
- };
25
- /**
26
- * Create a typed adapter for a platform or integration tool.
27
- *
28
- * @param tool - Tool name (e.g., 'attio', 'storage', 'scheduler')
29
- * @param methods - Array of method name strings (must match TMap keys -- misspellings are compile errors)
30
- * @param credential - Optional credential name (required for integration tools)
31
- * @returns Fully typed adapter object
32
- *
33
- * @example
34
- * ```ts
35
- * const attio = createAdapter<AttioToolMap>('attio', ['createRecord', 'listRecords', ...], 'my-cred')
36
- * const result = await attio.createRecord({ object: 'deals', ... })
37
- * // ^-- CreateRecordResult (fully typed)
38
- * ```
39
- */
40
- export declare function createAdapter<TMap extends ToolMethodMap>(tool: string, methods: (keyof TMap & string)[], credential?: string): TypedAdapter<TMap>;
41
- export {};
@@ -1,20 +0,0 @@
1
- /**
2
- * CRM Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for deal and pipeline operations.
5
- * Singleton export -- no credential needed (platform tool).
6
- */
7
- import { type TypedAdapter } from './create-adapter.js';
8
- import type { CrmToolMap } from '../../types/index.js';
9
- /**
10
- * Typed crm adapter for recent activity, deal reads, stage changes, notes, tasks, and cleanup.
11
- *
12
- * @example
13
- * ```ts
14
- * import { crm } from '@elevasis/sdk/worker'
15
- *
16
- * const deals = await crm.listDeals({ stage: 'proposal' })
17
- * const activity = await crm.getRecentActivity({ limit: 10 })
18
- * ```
19
- */
20
- export declare const crm: TypedAdapter<CrmToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Dropbox Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Dropbox file operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { DropboxToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Dropbox adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 2 typed methods for Dropbox file operations
13
- */
14
- export declare function createDropboxAdapter(credential: string): import("./create-adapter.js").TypedAdapter<DropboxToolMap>;
@@ -1,25 +0,0 @@
1
- /**
2
- * Email Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for sending platform emails.
5
- * Singleton export -- no credential needed (platform tool).
6
- *
7
- * Note: This is for internal organization notifications (from notifications@elevasis.io).
8
- * For client-facing emails, use the resend or instantly integration adapters.
9
- */
10
- import type { EmailToolMap } from '../../types/index.js';
11
- /**
12
- * Typed email adapter for sending platform emails to organization members.
13
- *
14
- * @example
15
- * ```ts
16
- * import { email } from '@elevasis/sdk/worker'
17
- *
18
- * await email.send({
19
- * subject: 'New deal closed',
20
- * text: 'Acme Corp has signed the contract.',
21
- * targetAll: true,
22
- * })
23
- * ```
24
- */
25
- export declare const email: import("./create-adapter.js").TypedAdapter<EmailToolMap>;
@@ -1,22 +0,0 @@
1
- /**
2
- * Execution Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for cross-resource invocation.
5
- * Singleton export -- no credential needed (platform tool).
6
- */
7
- import type { ExecutionToolMap } from '../../types/index.js';
8
- /**
9
- * Typed execution adapter for triggering other resources (workflows/agents).
10
- *
11
- * @example
12
- * ```ts
13
- * import { execution } from '@elevasis/sdk/worker'
14
- *
15
- * const result = await execution.trigger({
16
- * resourceId: 'acq-04-demo-send-link-workflow',
17
- * input: { contactEmail: 'jane@acme.com' },
18
- * })
19
- * console.log(result.executionId)
20
- * ```
21
- */
22
- export declare const execution: import("./create-adapter.js").TypedAdapter<ExecutionToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Gmail Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Gmail operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { GmailToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Gmail adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 1 typed method for Gmail operations
13
- */
14
- export declare function createGmailAdapter(credential: string): import("./create-adapter.js").TypedAdapter<GmailToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Google Sheets Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Google Sheets operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { GoogleSheetsToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Google Sheets adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 13 typed methods for Google Sheets operations
13
- */
14
- export declare function createGoogleSheetsAdapter(credential: string): import("./create-adapter.js").TypedAdapter<GoogleSheetsToolMap>;
@@ -1,33 +0,0 @@
1
- /**
2
- * SDK Adapters Barrel
3
- *
4
- * Re-exports all typed adapters for platform.call() wrappers.
5
- * Integration adapters use factory pattern (credential binding).
6
- * Platform tool adapters are singletons.
7
- */
8
- export { createAdapter, type TypedAdapter } from './create-adapter.js';
9
- export { createAttioAdapter } from './attio.js';
10
- export { createApifyAdapter } from './apify.js';
11
- export { createClickUpAdapter } from './clickup.js';
12
- export { createDropboxAdapter } from './dropbox.js';
13
- export { createGmailAdapter } from './gmail.js';
14
- export { createGoogleSheetsAdapter } from './google-sheets.js';
15
- export { createInstantlyAdapter } from './instantly.js';
16
- export { createMillionVerifierAdapter } from './millionverifier.js';
17
- export { createAnymailfinderAdapter } from './anymailfinder.js';
18
- export { createTombaAdapter } from './tomba.js';
19
- export { createResendAdapter } from './resend.js';
20
- export { createSignatureApiAdapter } from './signature-api.js';
21
- export { createStripeAdapter } from './stripe.js';
22
- export { scheduler } from './scheduler.js';
23
- export { llm } from './llm.js';
24
- export { storage } from './storage.js';
25
- export { notifications, type NotificationInput } from './notification.js';
26
- export { acqDb } from './lead.js';
27
- export { projects } from './projects.js';
28
- export { crm } from './crm.js';
29
- export { list } from './list.js';
30
- export { pdf } from './pdf.js';
31
- export { approval } from './approval.js';
32
- export { execution } from './execution.js';
33
- export { email } from './email.js';
@@ -1,14 +0,0 @@
1
- /**
2
- * Instantly Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Instantly email outreach operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { InstantlyToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Instantly adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 16 typed methods for Instantly email outreach operations
13
- */
14
- export declare function createInstantlyAdapter(credential: string): import("./create-adapter.js").TypedAdapter<InstantlyToolMap>;
@@ -1,28 +0,0 @@
1
- /**
2
- * AcqDb Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for acquisition lead management.
5
- * Singleton export -- no credential needed (platform tool).
6
- *
7
- * 56 methods covering lists, companies, contacts, deals, list-stage updates, deal-sync, deal notes, deal tasks, enrichment, and social monitoring operations.
8
- * organizationId is injected server-side by the dispatcher -- never sent from the SDK.
9
- */
10
- import { type TypedAdapter } from './create-adapter.js';
11
- import type { LeadToolMap } from '../../types/index.js';
12
- /**
13
- * Typed acqDb adapter for acquisition data management.
14
- *
15
- * @example
16
- * ```ts
17
- * import { acqDb } from '@elevasis/sdk/worker'
18
- *
19
- * const deal = await acqDb.getDealByEmail({ email: 'jane@acme.com' })
20
- * if (!deal) {
21
- * const newDeal = await acqDb.upsertDeal({
22
- * attioDealId: 'deal-123',
23
- * contactEmail: 'jane@acme.com',
24
- * })
25
- * }
26
- * ```
27
- */
28
- export declare const acqDb: TypedAdapter<LeadToolMap>;
@@ -1,9 +0,0 @@
1
- /**
2
- * List Platform Tool Adapter
3
- *
4
- * Focused wrapper for list-scoped workflow operations.
5
- * Singleton export -- no credential needed (platform tool).
6
- */
7
- import { type TypedAdapter } from './create-adapter.js';
8
- import type { ListToolMap } from '../../types/index.js';
9
- export declare const list: TypedAdapter<ListToolMap>;
@@ -1,45 +0,0 @@
1
- /**
2
- * LLM Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for LLM generation.
5
- * Singleton export -- no credential needed (platform tool).
6
- *
7
- * Types are shared with the server-side LLM engine and inlined for SDK consumers.
8
- */
9
- import type { LLMGenerateRequest, LLMGenerateResponse, LLMModel } from '../../types/index.js';
10
- type LLMProvider = 'openai' | 'anthropic' | 'openrouter';
11
- /**
12
- * SDK LLM generate params.
13
- * Extends LLMGenerateRequest with required provider/model for worker→platform dispatch.
14
- * Provider and model must always be specified explicitly — no implicit fallback.
15
- */
16
- export interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal'> {
17
- /** LLM provider */
18
- provider: LLMProvider;
19
- /** Model identifier — must be a supported LLMModel */
20
- model: LLMModel;
21
- }
22
- /**
23
- * Typed LLM adapter for structured output generation.
24
- *
25
- * Note: The `signal` property on LLMGenerateRequest is NOT serializable
26
- * over the postMessage boundary. Abort signals are handled at the worker
27
- * level via the parent process sending an 'abort' message.
28
- *
29
- * @example
30
- * ```ts
31
- * import { llm } from '@elevasis/sdk/worker'
32
- *
33
- * const response = await llm.generate({
34
- * provider: 'anthropic',
35
- * model: 'claude-sonnet-5',
36
- * messages: [{ role: 'user', content: 'Summarize this document...' }],
37
- * responseSchema: { type: 'object', properties: { summary: { type: 'string' } } },
38
- * })
39
- * console.log(response.output)
40
- * ```
41
- */
42
- export declare const llm: {
43
- generate: <T = unknown>(params: SDKLLMGenerateParams) => Promise<LLMGenerateResponse<T>>;
44
- };
45
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * MillionVerifier Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for MillionVerifier email verification operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { MillionVerifierToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed MillionVerifier adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 2 typed methods for MillionVerifier email verification operations
13
- */
14
- export declare function createMillionVerifierAdapter(credential: string): import("./create-adapter.js").TypedAdapter<MillionVerifierToolMap>;
@@ -1,28 +0,0 @@
1
- /**
2
- * Notification Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for sending team notifications.
5
- * Singleton export -- no credential needed (platform tool).
6
- *
7
- * NotificationInput is derived from CreateNotificationParams via Omit,
8
- * since userId and organizationId are injected server-side from the execution context.
9
- */
10
- import type { NotificationToolMap, NotificationSDKInput } from '../../types/index.js';
11
- /** @deprecated Use NotificationSDKInput directly. Kept for backward compatibility. */
12
- export type NotificationInput = NotificationSDKInput;
13
- /**
14
- * Typed notification adapter for sending team notifications.
15
- *
16
- * @example
17
- * ```ts
18
- * import { notifications } from '@elevasis/sdk/worker'
19
- *
20
- * await notifications.create({
21
- * category: 'acquisition',
22
- * title: 'New lead qualified',
23
- * message: 'Acme Corp has been qualified and moved to proposal stage.',
24
- * actionUrl: '/deals/deal-123',
25
- * })
26
- * ```
27
- */
28
- export declare const notifications: import("./create-adapter.js").TypedAdapter<NotificationToolMap>;
@@ -1,22 +0,0 @@
1
- /**
2
- * PDF Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for PDF rendering.
5
- * Singleton export -- no credential needed (platform tool).
6
- */
7
- import type { PdfToolMap } from '../../types/index.js';
8
- /**
9
- * Typed PDF adapter for document rendering.
10
- *
11
- * @example
12
- * ```ts
13
- * import { pdf } from '@elevasis/sdk/worker'
14
- *
15
- * const result = await pdf.render({
16
- * document: { pages: [...] },
17
- * storage: { bucket: 'acquisition', path: 'proposals/doc.pdf' },
18
- * })
19
- * console.log(result.pdfUrl)
20
- * ```
21
- */
22
- export declare const pdf: import("./create-adapter.js").TypedAdapter<PdfToolMap>;
@@ -1,20 +0,0 @@
1
- /**
2
- * Projects Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for delivery project operations.
5
- * Singleton export -- no credential needed (platform tool).
6
- */
7
- import { type TypedAdapter } from './create-adapter.js';
8
- import type { ProjectsToolMap } from '../../types/index.js';
9
- /**
10
- * Typed projects adapter for project, milestone, task, note, and resume-context operations.
11
- *
12
- * @example
13
- * ```ts
14
- * import { projects } from '@elevasis/sdk/worker'
15
- *
16
- * const activeProjects = await projects.listProjects({ kind: 'internal' })
17
- * const project = await projects.getProject({ id: '...' })
18
- * ```
19
- */
20
- export declare const projects: TypedAdapter<ProjectsToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Resend Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Resend email operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { ResendToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Resend adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 2 typed methods for Resend email operations
13
- */
14
- export declare function createResendAdapter(credential: string): import("./create-adapter.js").TypedAdapter<ResendToolMap>;
@@ -1,25 +0,0 @@
1
- /**
2
- * Scheduler Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for task schedule operations.
5
- * Singleton export -- no credential needed (platform tool).
6
- *
7
- * Types are shared with the server-side scheduler via @repo/core/execution.
8
- */
9
- import type { SchedulerToolMap } from '../../types/index.js';
10
- /**
11
- * Typed scheduler adapter for creating and managing task schedules.
12
- *
13
- * @example
14
- * ```ts
15
- * import { scheduler } from '@elevasis/sdk/worker'
16
- *
17
- * const schedule = await scheduler.createSchedule({
18
- * organizationId: '...',
19
- * name: 'Follow-up sequence',
20
- * target: { resourceType: 'workflow', resourceId: 'follow-up' },
21
- * scheduleConfig: { type: 'relative', anchorAt: '2026-03-15', items: [...] },
22
- * })
23
- * ```
24
- */
25
- export declare const scheduler: import("./create-adapter.js").TypedAdapter<SchedulerToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * SignatureAPI Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for SignatureAPI eSignature operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { SignatureApiToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed SignatureAPI adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 4 typed methods for SignatureAPI eSignature operations
13
- */
14
- export declare function createSignatureApiAdapter(credential: string): import("./create-adapter.js").TypedAdapter<SignatureApiToolMap>;
@@ -1,33 +0,0 @@
1
- /**
2
- * Storage Platform Tool Adapter
3
- *
4
- * Typed wrapper over platform.call() for Supabase Storage operations.
5
- * Singleton export -- no credential needed (platform tool).
6
- *
7
- * Types are shared with the server-side storage tools via @repo/core/execution.
8
- */
9
- import type { StorageToolMap } from '../../types/index.js';
10
- /**
11
- * Typed storage adapter for file upload, download, and management.
12
- *
13
- * All paths are relative to the organization's storage prefix.
14
- * The platform injects the organization prefix server-side.
15
- *
16
- * @example
17
- * ```ts
18
- * import { storage } from '@elevasis/sdk/worker'
19
- *
20
- * await storage.upload({
21
- * bucket: 'acquisition',
22
- * path: 'proposals/deal-123/proposal.pdf',
23
- * content: base64Content,
24
- * contentType: 'application/pdf',
25
- * })
26
- *
27
- * const { signedUrl } = await storage.createSignedUrl({
28
- * bucket: 'acquisition',
29
- * path: 'proposals/deal-123/proposal.pdf',
30
- * })
31
- * ```
32
- */
33
- export declare const storage: import("./create-adapter.js").TypedAdapter<StorageToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Stripe Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Stripe payment operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { StripeToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Stripe adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 6 typed methods for Stripe payment operations
13
- */
14
- export declare function createStripeAdapter(credential: string): import("./create-adapter.js").TypedAdapter<StripeToolMap>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Tomba Integration Adapter
3
- *
4
- * Typed wrapper over platform.call() for Tomba email discovery operations.
5
- * Uses factory pattern -- credential is bound once at construction time.
6
- */
7
- import type { TombaToolMap } from '../../types/index.js';
8
- /**
9
- * Create a typed Tomba adapter bound to a specific credential.
10
- *
11
- * @param credential - Credential name as configured in the command center
12
- * @returns Object with 3 typed methods for Tomba email discovery operations
13
- */
14
- export declare function createTombaAdapter(credential: string): import("./create-adapter.js").TypedAdapter<TombaToolMap>;
@@ -1,60 +0,0 @@
1
- /**
2
- * SDK Worker Runtime
3
- *
4
- * Runs inside a worker_threads Worker, replacing the HTTP-based server runtime.
5
- * Communicates with the parent (API process) via postMessage().
6
- *
7
- * Message protocol:
8
- * Parent -> Worker: { type: 'manifest' }
9
- * Worker -> Parent: { type: 'manifest', workflows: [...], agents: [...],
10
- * organizationModel?: {...}, triggers?: [...], integrations?: [...],
11
- * humanCheckpoints?: [...], relationships?: {...} }
12
- *
13
- * Parent -> Worker: { type: 'execute', resourceId, executionId, input, organizationId?, organizationName?,
14
- * sessionId?, sessionTurnNumber?, sessionMemory?, conversationHistory?,
15
- * parentExecutionId?, executionDepth }
16
- * Worker -> Parent: { type: 'result', status, output?, memorySnapshot?, error?, logs, metrics: { durationMs } }
17
- *
18
- * Parent -> Worker: { type: 'abort', reason? } (graceful abort before terminate;
19
- * reason carries AbortSignal.reason
20
- * across the boundary -- see N6, agent-
21
- * framework-round-3.mdx)
22
- *
23
- * Worker -> Parent: { type: 'log', entry: { level, message, timestamp, executionId, context? } }
24
- *
25
- * Worker -> Parent: { type: 'tool-call', id, tool, method, params, credential? }
26
- * Parent -> Worker: { type: 'tool-result', id, result?, error?, code? }
27
- *
28
- * Worker -> Parent: { type: 'message-event', executionId, event } (agent lifecycle events)
29
- *
30
- * Worker -> Parent: { type: 'credential-request', id, name }
31
- * Parent -> Worker: { type: 'credential-result', id, provider?, credentials?, error?, code? }
32
- */
33
- import type { DeploymentSpec, WorkflowDefinition } from '../index.js';
34
- export { platform, PlatformToolError } from './platform.js';
35
- export type { PlatformCredential } from './platform.js';
36
- export { classifyPlatformToolError, generateHmacToken } from './utils.js';
37
- export type { ClassifyPlatformToolErrorOptions, PlatformToolErrorClassification } from './utils.js';
38
- export * from './adapters/index.js';
39
- export { listBuilderWorkflow, ListBuilderResultSchema, ListBuilderResultsSchema, type ListBuilderBatch, type ListBuilderEnvelope, type ListBuilderRecord, type ListBuilderResult, type ListBuilderWorkflowDefinition, type ListBuilderWorkflowOptions } from './list-builder-workflow.js';
40
- export interface LogEntry {
41
- level: 'debug' | 'info' | 'warn' | 'error';
42
- message: string;
43
- timestamp: string;
44
- context?: Record<string, unknown>;
45
- }
46
- export declare function executeWorkflow(workflow: WorkflowDefinition, input: unknown, context: {
47
- executionId: string;
48
- organizationId: string;
49
- organizationName: string;
50
- sessionId?: string;
51
- sessionTurnNumber?: number;
52
- parentExecutionId?: string;
53
- executionDepth: number;
54
- adapters?: Record<string, unknown>;
55
- signal?: AbortSignal;
56
- }): Promise<{
57
- output: unknown;
58
- logs: LogEntry[];
59
- }>;
60
- export declare function startWorker(org: DeploymentSpec): void;