@processfocus/cli 0.1.0-next.2 → 0.1.0-next.4

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 (45) hide show
  1. package/README.md +89 -698
  2. package/dist/bundle-organisation.mjs +2 -0
  3. package/dist/bundled-db-import.mjs +103 -120
  4. package/dist/bundled-graphql-schema.mjs +17 -15
  5. package/dist/command-reference.md +571 -0
  6. package/dist/main.mjs +326 -303
  7. package/dist/pfcli.usage.kdl +377 -0
  8. package/dist/prepare-deployment-artifact.mjs +2 -2
  9. package/dist/resources/cedar/policies.cedar +80 -38
  10. package/dist/resources/cedar/schema.cedarschema +39 -21
  11. package/dist/resources/system-migrations/20260925020504_panoramic_klaw/migration.sql +1 -0
  12. package/dist/resources/system-migrations/20260925020504_panoramic_klaw/snapshot.json +7708 -0
  13. package/dist/resources/system-migrations/20261013060336_pretty_mulholland_black/migration.sql +14 -0
  14. package/dist/resources/system-migrations/20261013060336_pretty_mulholland_black/snapshot.json +7852 -0
  15. package/dist/resources/system-migrations/20261019050118_aberrant_jetstream/migration.sql +4 -0
  16. package/dist/resources/system-migrations/20261019050118_aberrant_jetstream/snapshot.json +7908 -0
  17. package/dist/resources/system-migrations/20261023074259_previous_falcon/migration.sql +1 -0
  18. package/dist/resources/system-migrations/20261023074259_previous_falcon/snapshot.json +7918 -0
  19. package/dist/resources/system-migrations/20261023211931_black_vision/migration.sql +1 -0
  20. package/dist/resources/system-migrations/20261023211931_black_vision/snapshot.json +7928 -0
  21. package/dist/resources/system-migrations/20261024022040_magenta_dreaming_celestial/migration.sql +4 -0
  22. package/dist/resources/system-migrations/20261024022040_magenta_dreaming_celestial/snapshot.json +7968 -0
  23. package/dist/resources/system-migrations/20261025201326_confused_mordo/migration.sql +25 -0
  24. package/dist/resources/system-migrations/20261025201326_confused_mordo/snapshot.json +8141 -0
  25. package/dist/resources/system-migrations/20261025225809_pink_mysterio/migration.sql +20 -0
  26. package/dist/resources/system-migrations/20261025225809_pink_mysterio/snapshot.json +8350 -0
  27. package/dist/resources/system-migrations/20261030073445_fuzzy_patriot/migration.sql +1 -0
  28. package/dist/resources/system-migrations/20261030073445_fuzzy_patriot/snapshot.json +8360 -0
  29. package/dist/resources/system-migrations/20261101232313_curved_siren/migration.sql +3 -0
  30. package/dist/resources/system-migrations/20261101232313_curved_siren/snapshot.json +8390 -0
  31. package/dist/resources/system-migrations/20261111225459_real_overlord/migration.sql +13 -0
  32. package/dist/resources/system-migrations/20261111225459_real_overlord/snapshot.json +8511 -0
  33. package/dist/resources/system-migrations/20261112002154_fresh_mikhail_rasputin/migration.sql +1 -0
  34. package/dist/resources/system-migrations/20261112002154_fresh_mikhail_rasputin/snapshot.json +8501 -0
  35. package/dist/resources/system-migrations/20261116032801_numerous_taskmaster/migration.sql +1 -0
  36. package/dist/resources/system-migrations/20261116032801_numerous_taskmaster/snapshot.json +8511 -0
  37. package/dist/resources/system-migrations/20261119201444_settings-login-audit-index/migration.sql +3 -0
  38. package/dist/resources/system-migrations/20261119201444_settings-login-audit-index/snapshot.json +8511 -0
  39. package/dist/resources/system-migrations/20261119223342_lucky_lester/migration.sql +3 -0
  40. package/dist/resources/system-migrations/20261119223342_lucky_lester/snapshot.json +8367 -0
  41. package/dist/resources/system-migrations/20261123050259_sad_dagger/migration.sql +1 -0
  42. package/dist/resources/system-migrations/20261123050259_sad_dagger/snapshot.json +8377 -0
  43. package/dist/resources/system-migrations/20261127002114_worthless_hairball/migration.sql +17 -0
  44. package/dist/resources/system-migrations/20261127002114_worthless_hairball/snapshot.json +8550 -0
  45. package/package.json +11 -9
@@ -0,0 +1,25 @@
1
+ CREATE TABLE `pf_queue_job_lifecycle` (
2
+ `id` text(41) PRIMARY KEY,
3
+ `queue` text(512) NOT NULL,
4
+ `job_id` text(1024) NOT NULL,
5
+ `job_lifecycle` text NOT NULL,
6
+ `terminal_at` real,
7
+ `created_at` real DEFAULT (julianday('now')) NOT NULL,
8
+ `updated_at` real DEFAULT (julianday('now')) NOT NULL,
9
+ `created_by` text(256) DEFAULT 'SYSTEM' NOT NULL,
10
+ `updated_by` text(256) DEFAULT 'SYSTEM' NOT NULL,
11
+ `_deleted` integer DEFAULT false NOT NULL
12
+ );
13
+ --> statement-breakpoint
14
+ ALTER TABLE `pf_process_execution` ADD `restart_attempt_id` text(36);--> statement-breakpoint
15
+ CREATE INDEX `pf_queue_job_lifecycle_terminal_idx_idx` ON `pf_queue_job_lifecycle` (`terminal_at`) WHERE _deleted = 0;--> statement-breakpoint
16
+ CREATE UNIQUE INDEX `pf_queue_job_lifecycle_job_id_ix_idx` ON `pf_queue_job_lifecycle` (`queue`,`job_id`) WHERE _deleted = 0;--> statement-breakpoint
17
+ CREATE INDEX `pf_queue_job_lifecycle_updated_at_id_idx` ON `pf_queue_job_lifecycle` (`updated_at`,`id`);
18
+ --> statement-breakpoint
19
+ CREATE TRIGGER IF NOT EXISTS pf_queue_job_lifecycle_updated_at_trigger
20
+ AFTER UPDATE ON "pf_queue_job_lifecycle"
21
+ FOR EACH ROW
22
+ WHEN NEW.updated_at = OLD.updated_at
23
+ BEGIN
24
+ UPDATE "pf_queue_job_lifecycle" SET updated_at = julianday('now') WHERE id = NEW.id;
25
+ END;