@sequenceholdings/studio-cli 0.1.9

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 (74) hide show
  1. package/README.md +258 -0
  2. package/dist/artifact/delegate.d.ts +25 -0
  3. package/dist/artifact/delegate.js +263 -0
  4. package/dist/atlas-client.d.ts +44 -0
  5. package/dist/atlas-client.js +173 -0
  6. package/dist/auth-cmds/commands.d.ts +15 -0
  7. package/dist/auth-cmds/commands.js +249 -0
  8. package/dist/auth.d.ts +26 -0
  9. package/dist/auth.js +171 -0
  10. package/dist/bin.d.ts +2 -0
  11. package/dist/bin.js +8 -0
  12. package/dist/cli-errors.d.ts +5 -0
  13. package/dist/cli-errors.js +78 -0
  14. package/dist/config.d.ts +44 -0
  15. package/dist/config.js +103 -0
  16. package/dist/env-flags.d.ts +8 -0
  17. package/dist/env-flags.js +47 -0
  18. package/dist/functions/bundle.d.ts +30 -0
  19. package/dist/functions/bundle.js +137 -0
  20. package/dist/functions/commands.d.ts +86 -0
  21. package/dist/functions/commands.js +999 -0
  22. package/dist/functions/egress-preview.d.ts +32 -0
  23. package/dist/functions/egress-preview.js +54 -0
  24. package/dist/functions/lockfile-origin.d.ts +16 -0
  25. package/dist/functions/lockfile-origin.js +45 -0
  26. package/dist/functions/manifest.d.ts +89 -0
  27. package/dist/functions/manifest.js +586 -0
  28. package/dist/functions/secret-reconcile.d.ts +79 -0
  29. package/dist/functions/secret-reconcile.js +86 -0
  30. package/dist/main.d.ts +14 -0
  31. package/dist/main.js +129 -0
  32. package/dist/orm/delegate.d.ts +8 -0
  33. package/dist/orm/delegate.js +61 -0
  34. package/dist/pat-hints.d.ts +17 -0
  35. package/dist/pat-hints.js +28 -0
  36. package/dist/preview.d.ts +89 -0
  37. package/dist/preview.js +291 -0
  38. package/dist/process/agent-loader.d.ts +24 -0
  39. package/dist/process/agent-loader.js +57 -0
  40. package/dist/process/build.d.ts +14 -0
  41. package/dist/process/build.js +368 -0
  42. package/dist/process/codegen.d.ts +18 -0
  43. package/dist/process/codegen.js +270 -0
  44. package/dist/process/commands.d.ts +47 -0
  45. package/dist/process/commands.js +786 -0
  46. package/dist/process/discover.d.ts +32 -0
  47. package/dist/process/discover.js +131 -0
  48. package/dist/process/lint.d.ts +39 -0
  49. package/dist/process/lint.js +485 -0
  50. package/dist/process/local-bundle.d.ts +17 -0
  51. package/dist/process/local-bundle.js +65 -0
  52. package/dist/process/plan-diff.d.ts +82 -0
  53. package/dist/process/plan-diff.js +333 -0
  54. package/dist/process/resolve-process-pin.d.ts +11 -0
  55. package/dist/process/resolve-process-pin.js +63 -0
  56. package/dist/process/simulate.d.ts +50 -0
  57. package/dist/process/simulate.js +328 -0
  58. package/dist/prompt.d.ts +35 -0
  59. package/dist/prompt.js +65 -0
  60. package/dist/repos/commands.d.ts +49 -0
  61. package/dist/repos/commands.js +548 -0
  62. package/dist/repos/git-clone.d.ts +10 -0
  63. package/dist/repos/git-clone.js +49 -0
  64. package/dist/secrets/commands.d.ts +24 -0
  65. package/dist/secrets/commands.js +704 -0
  66. package/dist/templates/process/example-process/process.ts +43 -0
  67. package/dist/templates/process/package.json +23 -0
  68. package/dist/templates/process/pnpm-workspace.yaml +21 -0
  69. package/dist/templates/process/tsconfig.json +17 -0
  70. package/package.json +78 -0
  71. package/templates/process/example-process/process.ts +43 -0
  72. package/templates/process/package.json +23 -0
  73. package/templates/process/pnpm-workspace.yaml +21 -0
  74. package/templates/process/tsconfig.json +17 -0
@@ -0,0 +1,47 @@
1
+ /**
2
+ * seq-studio process * commands. Each command is a small function with
3
+ * its own argv slice, called by the argv router in main.ts. Network I/O
4
+ * happens through `atlas-client.ts` and `getAccessToken()`; commands
5
+ * themselves do not know about the token file or config TOML.
6
+ */
7
+ export interface ParsedArgs {
8
+ positional: string[];
9
+ flags: Record<string, string | true>;
10
+ }
11
+ export declare function parseArgs(rest: string[]): ParsedArgs;
12
+ export declare function initCommand(args: ParsedArgs): Promise<number>;
13
+ export declare function lintCommand(args: ParsedArgs): Promise<number>;
14
+ export declare function planCommand(args: ParsedArgs): Promise<number>;
15
+ export declare function testCommand(args: ParsedArgs): Promise<number>;
16
+ /**
17
+ * Parse + validate the `--only <id1,id2,...>` promote filter for `apply`.
18
+ * The bundle is still built and registered from the full discovery root
19
+ * (registration is content-addressed and inert — only the promote flips
20
+ * active versions), so CI can target a subset of a shared root per
21
+ * environment. Returns `ids: null` when the flag is absent (promote all).
22
+ */
23
+ export declare function resolveOnlyIds({ only, knownIds, }: {
24
+ only: string | true | undefined;
25
+ knownIds: ReadonlySet<string>;
26
+ }): {
27
+ ids: Set<string> | null;
28
+ error?: string;
29
+ };
30
+ export declare function applyCommand(args: ParsedArgs): Promise<number>;
31
+ /**
32
+ * Pull a published process's source back into a local tree. Resolves the
33
+ * requested (or active) version to a bundle, then regenerates `process.ts`
34
+ * (+ `recommendations.ts`) under `<out>/<processId>/`. Pulls the process and
35
+ * its co-located subprocess children by default (`--no-children` for just the
36
+ * root). This closes the loop: apply a change in the UI → publish an inactive
37
+ * version → pull it here → review + commit.
38
+ */
39
+ export declare function pullCommand(args: ParsedArgs): Promise<number>;
40
+ /**
41
+ * Make a published version the active one — the same promote `apply` runs, as a
42
+ * standalone command (and the same endpoint the UI version menu hits).
43
+ */
44
+ export declare function promoteCommand(args: ParsedArgs): Promise<number>;
45
+ export declare function bundleCommand(args: ParsedArgs): Promise<number>;
46
+ export declare function simulateCommand(args: ParsedArgs): Promise<number>;
47
+ export declare function doctorCommand(args: ParsedArgs): Promise<number>;