@zalosai/zalos-cli 0.2.25 → 0.2.27

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.
package/README.md CHANGED
@@ -139,7 +139,9 @@ zl file seed --source-team-id <team-ref> --source-path /Fixtures --target-path /
139
139
  zl file seed --source-team-id <team-ref> --source-scope generated-outputs --source-path /__mesh/outputs/<execution-id> --target-path /Priors
140
140
  zl file seed --source-team-id <team-ref> --source-path /Fixtures --target-path /Rehearsal --apply --expected-checksum <sha256>
141
141
  zl close registry apply --file <overlay.yaml> --team-id <team-ref> --catalog <path-or-url> [--revision <sha>] --dry-run
142
+ zl close registry inspect-input --team-id <team-ref> --workflow-id <id> --field <name>
142
143
  zl close registry show --team-id <team-ref>
144
+ zl close registry import-baseline --team-id <team-ref> --expected-version <version> [--apply]
143
145
  ```
144
146
 
145
147
  Workflow import/update/publish require `--apply`; without it they validate and print a preview.
@@ -85,5 +85,54 @@ export function registerCloseCommand(program) {
85
85
  .description("Print a team's registry as applied, with its latest version")
86
86
  .requiredOption('--team-id <ref>', 'Team public ID (preferred) or UUID')
87
87
  .action(async (o) => action(() => showRegistryAction(o)));
88
+ registry
89
+ .command('inspect-input')
90
+ .description('Inspect a runnable workflow file input, its package revision, and its current dataset binding')
91
+ .requiredOption('--team-id <ref>', 'Team public ID or UUID')
92
+ .requiredOption('--workflow-id <id>', 'Workflow ID')
93
+ .requiredOption('--field <name>', 'Workflow file input field')
94
+ .action(async (o) => action(async () => {
95
+ printJson(dataRow(await client.get('/developer/finance/registry/inspect-input', {
96
+ teamId: resourceId(o.teamId),
97
+ workflowId: resourceId(o.workflowId),
98
+ field: o.field,
99
+ })));
100
+ }));
101
+ registry
102
+ .command('import-baseline')
103
+ .description('Verify the current registry against its pinned sources and optionally store the authored baseline')
104
+ .requiredOption('--team-id <ref>', 'Team public ID or UUID')
105
+ .requiredOption('--expected-version <number>', 'Active registry version to verify')
106
+ .option('--source-bundle <file>', 'Verified JSON source bundle for a pinned private catalog')
107
+ .option('--apply', 'Save the baseline only if the runtime diff is empty')
108
+ .action(async (o) => action(async () => {
109
+ const expectedVersion = Number(o.expectedVersion);
110
+ if (!Number.isSafeInteger(expectedVersion) || expectedVersion < 1)
111
+ throw new ValidationError('expected-version', 'Expected a positive registry version');
112
+ printJson(dataRow(await client.post('/developer/finance/registry/import-baseline', {
113
+ teamId: resourceId(o.teamId),
114
+ expectedVersion,
115
+ apply: Boolean(o.apply),
116
+ ...(o.sourceBundle
117
+ ? { bundle: JSON.parse(await readFile(o.sourceBundle, 'utf8')) }
118
+ : {}),
119
+ }, { timeoutMs: APPLY_TIMEOUT_MS })));
120
+ }));
121
+ registry
122
+ .command('adopt-baseline')
123
+ .description('Switch the selected team to Mesh ownership using its verified registry baseline')
124
+ .requiredOption('--team-id <ref>', 'Selected team public ID or UUID')
125
+ .requiredOption('--expected-version <number>', 'Active baseline version')
126
+ .requiredOption('--digest <sha256>', 'Verified authored baseline digest')
127
+ .action(async (o) => action(async () => {
128
+ const expectedVersion = Number(o.expectedVersion);
129
+ if (!Number.isSafeInteger(expectedVersion) || expectedVersion < 1)
130
+ throw new ValidationError('expected-version', 'Expected a positive registry version');
131
+ printJson(dataRow(await client.post('/developer/finance/registry/adopt-baseline', {
132
+ teamId: resourceId(o.teamId),
133
+ expectedVersion,
134
+ digest: o.digest,
135
+ }, { timeoutMs: APPLY_TIMEOUT_MS })));
136
+ }));
88
137
  }
89
138
  //# sourceMappingURL=close.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalosai/zalos-cli",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "description": "API-only product command-line interface for Zalos",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,15 +33,15 @@
33
33
  "typecheck": "tsgo --noEmit --types node --incremental --tsBuildInfoFile dist/tsconfig.typecheck.tsbuildinfo"
34
34
  },
35
35
  "dependencies": {
36
- "@tiptap/core": "3.27.1",
37
- "@tiptap/extension-heading": "3.27.1",
38
- "@tiptap/extension-image": "3.27.1",
39
- "@tiptap/extension-list": "3.27.1",
40
- "@tiptap/extension-paragraph": "3.27.1",
41
- "@tiptap/markdown": "3.27.1",
42
- "@tiptap/pm": "3.27.1",
43
- "@tiptap/static-renderer": "3.27.1",
44
- "@tiptap/starter-kit": "3.27.1",
36
+ "@tiptap/core": "3.33.1",
37
+ "@tiptap/extension-heading": "3.33.1",
38
+ "@tiptap/extension-image": "3.33.1",
39
+ "@tiptap/extension-list": "3.33.1",
40
+ "@tiptap/extension-paragraph": "3.33.1",
41
+ "@tiptap/markdown": "3.33.1",
42
+ "@tiptap/pm": "3.33.1",
43
+ "@tiptap/static-renderer": "3.33.1",
44
+ "@tiptap/starter-kit": "3.33.1",
45
45
  "commander": "^13.1.0",
46
46
  "yaml": "2.9.0"
47
47
  },