@timekast/factory 1.28.1 → 2.0.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 (38) hide show
  1. package/dist/commands/backlog.js +52 -15
  2. package/dist/commands/doctor.js +210 -29
  3. package/dist/commands/env.js +146 -18
  4. package/dist/commands/invite-admin.js +62 -15
  5. package/dist/commands/provision.js +5798 -761
  6. package/dist/commands/status.js +12 -2
  7. package/dist/commands/ticket.js +4 -4
  8. package/dist/commands/update.js +97 -12
  9. package/dist/commands/vault.js +2627 -0
  10. package/dist/index.js +97 -33
  11. package/dist/lib/backlog-mapping.js +111 -18
  12. package/dist/lib/backlog-parse.js +1 -1
  13. package/dist/lib/claude-md.js +320 -0
  14. package/dist/lib/cloudflare-api.js +213 -37
  15. package/dist/lib/constants.js +70 -6
  16. package/dist/lib/env-file.js +45 -7
  17. package/dist/lib/env-wizard.js +66 -2
  18. package/dist/lib/initial-migration.js +3 -2
  19. package/dist/lib/neon-api.js +145 -10
  20. package/dist/lib/package-json.js +37 -16
  21. package/dist/lib/preflight.js +92 -38
  22. package/dist/lib/provision-preflight.js +158 -100
  23. package/dist/lib/provision-state.js +652 -20
  24. package/dist/lib/publish-engine.js +1 -1
  25. package/dist/lib/rail.js +400 -0
  26. package/dist/lib/railway-api.js +851 -0
  27. package/dist/lib/vault-adopt.js +1495 -0
  28. package/dist/lib/vault-api.js +1101 -0
  29. package/dist/lib/vault-config.js +21 -0
  30. package/dist/lib/vault-deploys.js +898 -0
  31. package/dist/lib/vercel-env.js +251 -31
  32. package/dist/lib/wrapper-wiring.js +160 -0
  33. package/dist/tui/env-wizard-flow.js +17 -3
  34. package/dist/tui/menu.js +4 -22
  35. package/dist/tui/provision-flow.js +68 -13
  36. package/package.json +1 -1
  37. package/dist/commands/secrets.js +0 -71
  38. package/dist/lib/env-merge.js +0 -238
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Embedded copy of `.claude/policy/vault.json` — the single source of the org secrets vault's
3
+ * coordinates (domain + the `rail-timekast` project).
4
+ *
5
+ * WHY A COPY: the npm package publishes only `dist/` (see `files` in `cli/package.json`), so the
6
+ * published CLI cannot read `.claude/policy/vault.json` at runtime — a derivative may not even
7
+ * have the file at the path the CLI would look for. The copy is the price of that frontier, and
8
+ * `scripts/tools/__tests__/vault-config.test.ts` fails the Factory's `pnpm verify` the moment the
9
+ * two diverge (that test lives in a folder excluded from both distribution profiles, the same
10
+ * precedent as `preflight.test.ts`).
11
+ *
12
+ * Coordinates only — ids and a URL, never a secret. Contract: `fx-secrets-vault §3`.
13
+ */
14
+ /** The embedded copy. Edit `.claude/policy/vault.json` and this object together. */
15
+ export const VAULT_CONFIG = {
16
+ domain: 'https://secrets.timekast.com',
17
+ rail: {
18
+ name: 'rail-timekast',
19
+ projectId: '32ab3274-c272-4c31-ace4-fc6726f775ba',
20
+ },
21
+ };