@nymbalhq/platform 1.5.0 → 1.6.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-KH3BABMV.js} +10467 -7548
  4. package/dist/chunk-KH3BABMV.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 +5745 -3404
  8. package/dist/db/schema/index.js +1 -1
  9. package/dist/index.d.ts +678 -47
  10. package/dist/index.js +4055 -2098
  11. package/dist/index.js.map +1 -1
  12. package/dist/register-XP5XVAXM.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-XP5XVAXM.js.map} +0 -0
@@ -0,0 +1,8 @@
1
+ import {
2
+ registerAllRoutes
3
+ } from "./chunk-KH3BABMV.js";
4
+ import "./chunk-TVKV5GBY.js";
5
+ export {
6
+ registerAllRoutes
7
+ };
8
+ //# sourceMappingURL=register-XP5XVAXM.js.map
@@ -0,0 +1 @@
1
+ CREATE INDEX IF NOT EXISTS "carts_customer_idx" ON "carts" USING btree ("customer_id") WHERE "carts"."customer_id" IS NOT NULL;
@@ -0,0 +1 @@
1
+ ALTER TABLE "alert_subscriptions" ADD COLUMN "confirmation_sent_at" timestamp with time zone;
@@ -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" jsonb NOT NULL,
6
+ "handles" jsonb,
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" timestamp with time zone,
16
+ "reason" text,
17
+ "outcome_status" integer,
18
+ "outcome_code" text,
19
+ "outcome_message" text,
20
+ "created_at" timestamp with time zone NOT NULL,
21
+ "settled_at" timestamp with time zone,
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" USING btree ("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" USING btree ("created_at","id");--> statement-breakpoint
27
+ CREATE INDEX "proposals_status_idx" ON "proposals" USING btree ("status","created_at","id");
@@ -0,0 +1,3 @@
1
+ ALTER TABLE "carts" ADD COLUMN "source" text DEFAULT 'storefront' NOT NULL;--> statement-breakpoint
2
+ ALTER TABLE "orders" ADD COLUMN "source" text COLLATE "C" DEFAULT 'storefront' NOT NULL;--> statement-breakpoint
3
+ CREATE INDEX "orders_source_created_idx" ON "orders" USING btree ("source","created_at");