@nymbalhq/platform 1.5.0 → 1.7.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 (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -0
  3. package/dist/{chunk-TRLERRUI.js → chunk-PYB26JT2.js} +10967 -7704
  4. package/dist/chunk-PYB26JT2.js.map +1 -0
  5. package/dist/{chunk-NNDIAIT6.js → chunk-TVKV5GBY.js} +102 -7
  6. package/dist/chunk-TVKV5GBY.js.map +1 -0
  7. package/dist/db/schema/index.d.ts +6551 -4210
  8. package/dist/db/schema/index.js +1 -1
  9. package/dist/index.d.ts +695 -48
  10. package/dist/index.js +4108 -2103
  11. package/dist/index.js.map +1 -1
  12. package/dist/register-NPVDXQ2B.js +8 -0
  13. package/migrations/postgres/0019_carts_customer_idx.sql +1 -0
  14. package/migrations/postgres/0020_alert_confirmation_sent.sql +1 -0
  15. package/migrations/postgres/0021_proposals.sql +27 -0
  16. package/migrations/postgres/0022_order_source.sql +3 -0
  17. package/migrations/postgres/meta/0019_snapshot.json +2322 -0
  18. package/migrations/postgres/meta/0020_snapshot.json +2328 -0
  19. package/migrations/postgres/meta/0021_snapshot.json +2543 -0
  20. package/migrations/postgres/meta/0022_snapshot.json +2578 -0
  21. package/migrations/postgres/meta/_journal.json +28 -0
  22. package/migrations/sqlite/0019_carts_customer_idx.sql +1 -0
  23. package/migrations/sqlite/0020_alert_confirmation_sent.sql +1 -0
  24. package/migrations/sqlite/0021_proposals.sql +27 -0
  25. package/migrations/sqlite/0022_order_source.sql +3 -0
  26. package/migrations/sqlite/meta/0019_snapshot.json +2056 -0
  27. package/migrations/sqlite/meta/0020_snapshot.json +2063 -0
  28. package/migrations/sqlite/meta/0021_snapshot.json +2246 -0
  29. package/migrations/sqlite/meta/0022_snapshot.json +2270 -0
  30. package/migrations/sqlite/meta/_journal.json +28 -0
  31. package/package.json +24 -21
  32. package/dist/chunk-NNDIAIT6.js.map +0 -1
  33. package/dist/chunk-TRLERRUI.js.map +0 -1
  34. package/dist/register-SBGUI2L5.js +0 -8
  35. /package/dist/{register-SBGUI2L5.js.map → register-NPVDXQ2B.js.map} +0 -0
@@ -134,6 +134,34 @@
134
134
  "when": 1793344408253,
135
135
  "tag": "0018_order_key_expiry",
136
136
  "breakpoints": true
137
+ },
138
+ {
139
+ "idx": 19,
140
+ "version": "7",
141
+ "when": 1793507532518,
142
+ "tag": "0019_carts_customer_idx",
143
+ "breakpoints": true
144
+ },
145
+ {
146
+ "idx": 20,
147
+ "version": "7",
148
+ "when": 1793605267195,
149
+ "tag": "0020_alert_confirmation_sent",
150
+ "breakpoints": true
151
+ },
152
+ {
153
+ "idx": 21,
154
+ "version": "7",
155
+ "when": 1793740929141,
156
+ "tag": "0021_proposals",
157
+ "breakpoints": true
158
+ },
159
+ {
160
+ "idx": 22,
161
+ "version": "7",
162
+ "when": 1793809830713,
163
+ "tag": "0022_order_source",
164
+ "breakpoints": true
137
165
  }
138
166
  ]
139
167
  }
@@ -0,0 +1 @@
1
+ CREATE INDEX `carts_customer_idx` ON `carts` (`customer_id`) WHERE "carts"."customer_id" IS NOT NULL;
@@ -0,0 +1 @@
1
+ ALTER TABLE `alert_subscriptions` ADD `confirmation_sent_at` text;
@@ -0,0 +1,27 @@
1
+ CREATE TABLE `proposals` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `tool` text NOT NULL,
4
+ `command` text NOT NULL,
5
+ `args` text NOT NULL,
6
+ `handles` text,
7
+ `idempotency_key` text,
8
+ `proposer_id` text,
9
+ `agent_name` text NOT NULL,
10
+ `agent_version` text,
11
+ `correlation_id` text NOT NULL,
12
+ `status` text NOT NULL,
13
+ `decided_by_kind` text,
14
+ `decided_by` text,
15
+ `decided_at` text,
16
+ `reason` text,
17
+ `outcome_status` integer,
18
+ `outcome_code` text,
19
+ `outcome_message` text,
20
+ `created_at` text NOT NULL,
21
+ `settled_at` text,
22
+ CONSTRAINT "proposals_status" CHECK("proposals"."status" IN ('pending', 'approved', 'rejected', 'applied', 'failed'))
23
+ );
24
+ --> statement-breakpoint
25
+ CREATE UNIQUE INDEX `proposals_key_unique` ON `proposals` (`proposer_id`,`tool`,`idempotency_key`) WHERE "proposals"."proposer_id" IS NOT NULL AND "proposals"."idempotency_key" IS NOT NULL;--> statement-breakpoint
26
+ CREATE INDEX `proposals_created_idx` ON `proposals` (`created_at`,`id`);--> statement-breakpoint
27
+ CREATE INDEX `proposals_status_idx` ON `proposals` (`status`,`created_at`,`id`);
@@ -0,0 +1,3 @@
1
+ ALTER TABLE `carts` ADD `source` text DEFAULT 'storefront' NOT NULL;--> statement-breakpoint
2
+ ALTER TABLE `orders` ADD `source` text DEFAULT 'storefront' NOT NULL;--> statement-breakpoint
3
+ CREATE INDEX `orders_source_created_idx` ON `orders` (`source`,`created_at`);