@elevasis/sdk 1.8.1 → 1.8.3

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 (59) hide show
  1. package/dist/cli.cjs +13 -5
  2. package/dist/index.d.ts +88 -39
  3. package/dist/types/worker/adapters/lead.d.ts +1 -1
  4. package/dist/worker/index.js +2 -0
  5. package/package.json +2 -2
  6. package/reference/_navigation.md +7 -1
  7. package/reference/_reference-manifest.json +14 -0
  8. package/reference/claude-config/logs/scaffold-registry-reminder.log +4 -0
  9. package/reference/claude-config/rules/agent-start-here.md +254 -254
  10. package/reference/claude-config/rules/frontend.md +43 -43
  11. package/reference/claude-config/rules/operations.md +64 -64
  12. package/reference/claude-config/rules/organization-model.md +42 -43
  13. package/reference/claude-config/rules/organization-os.md +107 -107
  14. package/reference/claude-config/rules/shared-types.md +2 -2
  15. package/reference/claude-config/rules/task-tracking.md +1 -1
  16. package/reference/claude-config/rules/ui.md +202 -202
  17. package/reference/claude-config/rules/vibe.md +202 -202
  18. package/reference/claude-config/skills/configure/SKILL.md +98 -98
  19. package/reference/claude-config/skills/configure/operations/codify-level-a.md +100 -100
  20. package/reference/claude-config/skills/configure/operations/codify-level-b.md +158 -158
  21. package/reference/claude-config/skills/configure/operations/customers.md +150 -150
  22. package/reference/claude-config/skills/configure/operations/features.md +162 -162
  23. package/reference/claude-config/skills/configure/operations/goals.md +147 -147
  24. package/reference/claude-config/skills/configure/operations/identity.md +133 -133
  25. package/reference/claude-config/skills/configure/operations/labels.md +128 -128
  26. package/reference/claude-config/skills/configure/operations/offerings.md +159 -159
  27. package/reference/claude-config/skills/configure/operations/roles.md +153 -153
  28. package/reference/claude-config/skills/configure/operations/techStack.md +139 -139
  29. package/reference/claude-config/skills/explore/SKILL.md +78 -78
  30. package/reference/claude-config/skills/git-sync/SKILL.md +126 -0
  31. package/reference/claude-config/skills/save/SKILL.md +183 -183
  32. package/reference/claude-config/skills/setup/SKILL.md +275 -275
  33. package/reference/claude-config/skills/submit-request/SKILL.md +5 -5
  34. package/reference/claude-config/skills/sync/SKILL.md +10 -44
  35. package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -0
  36. package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -0
  37. package/reference/claude-config/sync-notes/README.md +43 -0
  38. package/reference/packages/core/src/README.md +39 -36
  39. package/reference/packages/core/src/business/README.md +52 -52
  40. package/reference/packages/core/src/organization-model/README.md +97 -97
  41. package/reference/packages/core/src/test-utils/README.md +42 -0
  42. package/reference/scaffold/core/organization-graph.mdx +272 -272
  43. package/reference/scaffold/core/organization-model.mdx +320 -320
  44. package/reference/scaffold/index.mdx +64 -64
  45. package/reference/scaffold/operations/propagation-pipeline.md +125 -104
  46. package/reference/scaffold/operations/scaffold-maintenance.md +122 -122
  47. package/reference/scaffold/operations/workflow-recipes.md +436 -436
  48. package/reference/scaffold/recipes/add-a-feature.md +158 -158
  49. package/reference/scaffold/recipes/add-a-resource.md +158 -158
  50. package/reference/scaffold/recipes/customize-organization-model.md +400 -400
  51. package/reference/scaffold/recipes/extend-a-base-entity.md +140 -140
  52. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +158 -158
  53. package/reference/scaffold/recipes/index.md +32 -32
  54. package/reference/scaffold/reference/contracts.md +612 -607
  55. package/reference/scaffold/reference/feature-registry.md +2 -0
  56. package/reference/scaffold/reference/glossary.md +105 -105
  57. package/reference/scaffold/ui/composition-extensibility.mdx +1 -1
  58. package/reference/scaffold/ui/feature-flags-and-gating.md +1 -1
  59. package/reference/scaffold/ui/feature-shell.mdx +1 -0
package/dist/cli.cjs CHANGED
@@ -40507,12 +40507,12 @@ function wrapAction(commandName, fn) {
40507
40507
  return async (...args) => {
40508
40508
  try {
40509
40509
  await fn(...args);
40510
- process.exit(0);
40510
+ process.exitCode = 0;
40511
40511
  } catch (error46) {
40512
40512
  const errorMessage = error46 instanceof Error ? error46.message : String(error46);
40513
40513
  console.error(source_default.red("\nError:"), errorMessage);
40514
40514
  console.error(source_default.gray(`Run "elevasis-sdk ${commandName} --help" for more information`));
40515
- process.exit(1);
40515
+ process.exitCode = 1;
40516
40516
  }
40517
40517
  };
40518
40518
  }
@@ -40520,7 +40520,7 @@ function wrapAction(commandName, fn) {
40520
40520
  // package.json
40521
40521
  var package_default = {
40522
40522
  name: "@elevasis/sdk",
40523
- version: "1.8.1",
40523
+ version: "1.8.3",
40524
40524
  description: "SDK for building Elevasis organization resources",
40525
40525
  type: "module",
40526
40526
  bin: {
@@ -40950,17 +40950,25 @@ var POLL_INTERVAL_MS = 3e3;
40950
40950
  async function pollForCompletion(resourceId, executionId, apiUrl) {
40951
40951
  const pollSpinner = ora("Waiting for completion...").start();
40952
40952
  const startTime = Date.now();
40953
+ let interrupted = false;
40953
40954
  const cleanup = () => {
40955
+ interrupted = true;
40956
+ process.removeListener("SIGINT", cleanup);
40954
40957
  pollSpinner.stop();
40955
40958
  console.log();
40956
40959
  console.log(source_default.yellow("Polling stopped. Execution continues on server."));
40957
40960
  console.log(source_default.gray(" Execution ID:"), source_default.cyan(executionId));
40958
40961
  console.log(source_default.dim(" Check status manually or re-run with --async"));
40959
- process.exit(0);
40960
40962
  };
40961
40963
  process.on("SIGINT", cleanup);
40962
40964
  while (true) {
40965
+ if (interrupted) {
40966
+ return;
40967
+ }
40963
40968
  await new Promise((resolve5) => setTimeout(resolve5, POLL_INTERVAL_MS));
40969
+ if (interrupted) {
40970
+ return;
40971
+ }
40964
40972
  const elapsed = Math.round((Date.now() - startTime) / 1e3);
40965
40973
  pollSpinner.text = `Waiting for completion... (${elapsed}s)`;
40966
40974
  try {
@@ -41078,7 +41086,7 @@ function registerExecCommand(program3) {
41078
41086
  console.log(source_default.yellow("Could not recover. The execution may still be running on the server."));
41079
41087
  console.log(source_default.dim(" Check status manually or re-run with --async"));
41080
41088
  }
41081
- process.exit(0);
41089
+ return;
41082
41090
  }
41083
41091
  spinner.fail(source_default.red("Execution failed"));
41084
41092
  throw error46;
package/dist/index.d.ts CHANGED
@@ -4128,6 +4128,7 @@ interface UpdateListParams {
4128
4128
  name?: string;
4129
4129
  description?: string;
4130
4130
  status?: string;
4131
+ batchIds?: string[];
4131
4132
  }
4132
4133
  interface CreateCompanyParams {
4133
4134
  organizationId: string;
@@ -4632,6 +4633,10 @@ declare const DealSchemas: {
4632
4633
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4633
4634
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4634
4635
  }, z.core.$strict>;
4636
+ DealLookupQuery: z.ZodObject<{
4637
+ search: z.ZodOptional<z.ZodString>;
4638
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4639
+ }, z.core.$strict>;
4635
4640
  ListDealTasksDueQuery: z.ZodObject<{
4636
4641
  window: z.ZodOptional<z.ZodEnum<{
4637
4642
  overdue: "overdue";
@@ -4666,50 +4671,86 @@ declare const DealSchemas: {
4666
4671
  nurturing: "nurturing";
4667
4672
  }>;
4668
4673
  }, z.core.$strict>;
4669
- DealListResponse: z.ZodArray<z.ZodObject<{
4670
- id: z.ZodString;
4671
- organization_id: z.ZodString;
4672
- contact_id: z.ZodNullable<z.ZodString>;
4673
- contact_email: z.ZodString;
4674
- cached_stage: z.ZodNullable<z.ZodString>;
4675
- activity_log: z.ZodUnknown;
4676
- discovery_data: z.ZodNullable<z.ZodUnknown>;
4677
- discovery_submitted_at: z.ZodNullable<z.ZodString>;
4678
- discovery_submitted_by: z.ZodNullable<z.ZodString>;
4679
- proposal_data: z.ZodNullable<z.ZodUnknown>;
4680
- proposal_status: z.ZodNullable<z.ZodString>;
4681
- proposal_sent_at: z.ZodNullable<z.ZodString>;
4682
- proposal_pdf_url: z.ZodNullable<z.ZodString>;
4683
- signature_envelope_id: z.ZodNullable<z.ZodString>;
4684
- source_list_id: z.ZodNullable<z.ZodString>;
4685
- source_type: z.ZodNullable<z.ZodString>;
4686
- initial_fee: z.ZodNullable<z.ZodNumber>;
4687
- monthly_fee: z.ZodNullable<z.ZodNumber>;
4688
- closed_lost_at: z.ZodNullable<z.ZodString>;
4689
- closed_lost_reason: z.ZodNullable<z.ZodString>;
4690
- created_at: z.ZodString;
4691
- updated_at: z.ZodString;
4692
- contact: z.ZodNullable<z.ZodObject<{
4674
+ DealListResponse: z.ZodObject<{
4675
+ data: z.ZodArray<z.ZodObject<{
4693
4676
  id: z.ZodString;
4694
- first_name: z.ZodNullable<z.ZodString>;
4695
- last_name: z.ZodNullable<z.ZodString>;
4696
- email: z.ZodString;
4697
- title: z.ZodNullable<z.ZodString>;
4698
- headline: z.ZodNullable<z.ZodString>;
4699
- linkedin_url: z.ZodNullable<z.ZodString>;
4700
- pipeline_status: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4701
- enrichment_data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4702
- company: z.ZodNullable<z.ZodObject<{
4677
+ organization_id: z.ZodString;
4678
+ contact_id: z.ZodNullable<z.ZodString>;
4679
+ contact_email: z.ZodString;
4680
+ cached_stage: z.ZodNullable<z.ZodString>;
4681
+ activity_log: z.ZodUnknown;
4682
+ discovery_data: z.ZodNullable<z.ZodUnknown>;
4683
+ discovery_submitted_at: z.ZodNullable<z.ZodString>;
4684
+ discovery_submitted_by: z.ZodNullable<z.ZodString>;
4685
+ proposal_data: z.ZodNullable<z.ZodUnknown>;
4686
+ proposal_status: z.ZodNullable<z.ZodString>;
4687
+ proposal_sent_at: z.ZodNullable<z.ZodString>;
4688
+ proposal_pdf_url: z.ZodNullable<z.ZodString>;
4689
+ signature_envelope_id: z.ZodNullable<z.ZodString>;
4690
+ source_list_id: z.ZodNullable<z.ZodString>;
4691
+ source_type: z.ZodNullable<z.ZodString>;
4692
+ initial_fee: z.ZodNullable<z.ZodNumber>;
4693
+ monthly_fee: z.ZodNullable<z.ZodNumber>;
4694
+ closed_lost_at: z.ZodNullable<z.ZodString>;
4695
+ closed_lost_reason: z.ZodNullable<z.ZodString>;
4696
+ created_at: z.ZodString;
4697
+ updated_at: z.ZodString;
4698
+ contact: z.ZodNullable<z.ZodObject<{
4703
4699
  id: z.ZodString;
4704
- name: z.ZodString;
4705
- domain: z.ZodNullable<z.ZodString>;
4706
- website: z.ZodNullable<z.ZodString>;
4700
+ first_name: z.ZodNullable<z.ZodString>;
4701
+ last_name: z.ZodNullable<z.ZodString>;
4702
+ email: z.ZodString;
4703
+ title: z.ZodNullable<z.ZodString>;
4704
+ headline: z.ZodNullable<z.ZodString>;
4707
4705
  linkedin_url: z.ZodNullable<z.ZodString>;
4708
- segment: z.ZodNullable<z.ZodString>;
4709
- category: z.ZodNullable<z.ZodString>;
4710
- num_employees: z.ZodNullable<z.ZodNumber>;
4706
+ pipeline_status: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4707
+ enrichment_data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4708
+ company: z.ZodNullable<z.ZodObject<{
4709
+ id: z.ZodString;
4710
+ name: z.ZodString;
4711
+ domain: z.ZodNullable<z.ZodString>;
4712
+ website: z.ZodNullable<z.ZodString>;
4713
+ linkedin_url: z.ZodNullable<z.ZodString>;
4714
+ segment: z.ZodNullable<z.ZodString>;
4715
+ category: z.ZodNullable<z.ZodString>;
4716
+ num_employees: z.ZodNullable<z.ZodNumber>;
4717
+ }, z.core.$strip>>;
4711
4718
  }, z.core.$strip>>;
4712
4719
  }, z.core.$strip>>;
4720
+ total: z.ZodNumber;
4721
+ limit: z.ZodNumber;
4722
+ offset: z.ZodNumber;
4723
+ }, z.core.$strip>;
4724
+ DealSummaryResponse: z.ZodObject<{
4725
+ totalDeals: z.ZodNumber;
4726
+ openDeals: z.ZodNumber;
4727
+ wonDeals: z.ZodNumber;
4728
+ lostDeals: z.ZodNumber;
4729
+ winRate: z.ZodNumber;
4730
+ avgDealSize: z.ZodNumber;
4731
+ totalPipelineValue: z.ZodNumber;
4732
+ stageSummary: z.ZodArray<z.ZodObject<{
4733
+ stage: z.ZodString;
4734
+ count: z.ZodNumber;
4735
+ oldestUpdatedAt: z.ZodNullable<z.ZodString>;
4736
+ newestUpdatedAt: z.ZodNullable<z.ZodString>;
4737
+ }, z.core.$strip>>;
4738
+ staleDeals: z.ZodArray<z.ZodObject<{
4739
+ id: z.ZodString;
4740
+ contactEmail: z.ZodString;
4741
+ cachedStage: z.ZodString;
4742
+ updatedAt: z.ZodString;
4743
+ daysStale: z.ZodNumber;
4744
+ }, z.core.$strip>>;
4745
+ }, z.core.$strip>;
4746
+ DealLookupResponse: z.ZodArray<z.ZodObject<{
4747
+ id: z.ZodString;
4748
+ contactEmail: z.ZodString;
4749
+ cachedStage: z.ZodNullable<z.ZodString>;
4750
+ updatedAt: z.ZodString;
4751
+ contactName: z.ZodNullable<z.ZodString>;
4752
+ companyName: z.ZodNullable<z.ZodString>;
4753
+ displayLabel: z.ZodString;
4713
4754
  }, z.core.$strip>>;
4714
4755
  DealDetailResponse: z.ZodObject<{
4715
4756
  id: z.ZodString;
@@ -7370,6 +7411,14 @@ type LeadToolMap = {
7370
7411
  params: Omit<AddContactsToListParams, 'organizationId'>;
7371
7412
  result: AddContactsToListResult;
7372
7413
  };
7414
+ updateCompanyStage: {
7415
+ params: Omit<UpdateCompanyStageParams, 'organizationId'>;
7416
+ result: void;
7417
+ };
7418
+ updateContactStage: {
7419
+ params: Omit<UpdateContactStageParams, 'organizationId'>;
7420
+ result: void;
7421
+ };
7373
7422
  createCompany: {
7374
7423
  params: Omit<CreateCompanyParams, 'organizationId'>;
7375
7424
  result: AcqCompany;
@@ -4,7 +4,7 @@
4
4
  * Typed wrapper over platform.call() for acquisition lead management.
5
5
  * Singleton export -- no credential needed (platform tool).
6
6
  *
7
- * 49 methods covering lists, companies, contacts, deals, deal-sync, deal notes, deal tasks, enrichment, and social monitoring operations.
7
+ * 51 methods covering lists, companies, contacts, deals, list-stage updates, deal-sync, deal notes, deal tasks, enrichment, and social monitoring operations.
8
8
  * organizationId is injected server-side by the dispatcher -- never sent from the SDK.
9
9
  */
10
10
  import { type TypedAdapter } from './create-adapter.js';
@@ -4958,6 +4958,8 @@ var acqDb = createAdapter("acqDb", [
4958
4958
  "updateList",
4959
4959
  "deleteList",
4960
4960
  "addContactsToList",
4961
+ "updateCompanyStage",
4962
+ "updateContactStage",
4961
4963
  // Company operations
4962
4964
  "createCompany",
4963
4965
  "upsertCompany",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "type": "module",
6
6
  "bin": {
@@ -44,7 +44,7 @@
44
44
  "tsup": "^8.0.0",
45
45
  "typescript": "5.9.2",
46
46
  "zod": "^4.1.0",
47
- "@repo/core": "0.7.0",
47
+ "@repo/core": "0.8.3",
48
48
  "@repo/typescript-config": "0.0.0"
49
49
  },
50
50
  "scripts": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Auto-generated from the package reference manifests.
4
4
 
5
- Package entries indexed: 42.
5
+ Package entries indexed: 43.
6
6
 
7
7
  ## @elevasis/core / Core
8
8
 
@@ -22,6 +22,12 @@ Package entries indexed: 42.
22
22
  | --- | --- | --- | --- |
23
23
  | Organization Model | `packages/core/src/organization-model/README.md` | Published organization-model schema, defaults, resolver, and types. | (not specified) |
24
24
 
25
+ ## @elevasis/core / Testing
26
+
27
+ | Resource | Location | Description | When to Load |
28
+ | --- | --- | --- | --- |
29
+ | Test Utilities | `packages/core/src/test-utils/README.md` | Published test fixtures, mocks, and shared helpers for downstream automated tests. | (not specified) |
30
+
25
31
  ## @elevasis/sdk / Getting Started
26
32
 
27
33
  | Resource | Location | Description | When to Load |
@@ -43,6 +43,20 @@
43
43
  "referencePath": "packages/core/src/organization-model/README.md",
44
44
  "publishedExportPath": "./dist/organization-model/index.js"
45
45
  },
46
+ {
47
+ "packageName": "@elevasis/core",
48
+ "packageDir": "packages/core",
49
+ "subpath": "./test-utils",
50
+ "kind": "subpath",
51
+ "title": "Test Utilities",
52
+ "description": "Published test fixtures, mocks, and shared helpers for downstream automated tests.",
53
+ "group": "Testing",
54
+ "order": 1,
55
+ "sourcePath": "packages/core/src/test-utils/index.ts",
56
+ "docPath": "packages/core/src/test-utils/README.md",
57
+ "referencePath": "packages/core/src/test-utils/README.md",
58
+ "publishedExportPath": "./dist/test-utils/index.js"
59
+ },
46
60
  {
47
61
  "packageName": "@elevasis/sdk",
48
62
  "packageDir": "packages/sdk",
@@ -32,3 +32,7 @@
32
32
  [2026-04-21T08:12:30.121Z] SKIP — registry not found (pre-SDK-delivery)
33
33
  [2026-04-21T08:14:55.475Z] SKIP — registry not found (pre-SDK-delivery)
34
34
  [2026-04-21T08:17:01.426Z] SKIP — registry not found (pre-SDK-delivery)
35
+ [2026-04-21T08:36:02.820Z] SKIP — registry not found (pre-SDK-delivery)
36
+ [2026-04-21T22:16:29.986Z] SKIP — registry not found (pre-SDK-delivery)
37
+ [2026-04-21T22:16:55.680Z] SKIP — registry not found (pre-SDK-delivery)
38
+ [2026-04-21T22:17:54.009Z] SKIP — registry not found (pre-SDK-delivery)