@mytegroupinc/myte-core 0.0.53 → 0.0.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mytegroupinc/myte-core",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "Myte CLI core implementation.",
5
5
  "type": "commonjs",
6
6
  "main": "cli.js",
@@ -15,15 +15,15 @@
15
15
  "package.json"
16
16
  ],
17
17
  "scripts": {
18
- "test": "node --test --test-concurrency=1"
18
+ "test": "node --test --test-concurrency=1"
19
19
  },
20
20
  "license": "MIT",
21
- "engines": {
22
- "node": ">=18.17"
23
- },
24
- "dependencies": {
25
- "undici": "6.21.3"
26
- },
21
+ "engines": {
22
+ "node": ">=18.17"
23
+ },
24
+ "dependencies": {
25
+ "undici": "6.21.3"
26
+ },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
@@ -1,53 +1,53 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
-
4
- const fs = require("node:fs");
5
- const path = require("node:path");
6
-
7
- const {
8
- buildCertificationCleanupPlan,
9
- validateCertificationManifest,
10
- } = require("../lib/certification-manifest");
11
-
12
- function parseArgs(argv) {
13
- const args = {};
14
- for (let index = 0; index < argv.length; index += 1) {
15
- const token = argv[index];
16
- if (!token.startsWith("--")) continue;
17
- const key = token.slice(2);
18
- const next = argv[index + 1];
19
- if (!next || next.startsWith("--")) {
20
- args[key] = true;
21
- } else {
22
- args[key] = next;
23
- index += 1;
24
- }
25
- }
26
- return args;
27
- }
28
-
29
- function main() {
30
- const args = parseArgs(process.argv.slice(2));
31
- const manifestArg = String(args.manifest || "").trim();
32
- const expectedRunId = String(args["run-id"] || "").trim();
33
- if (!manifestArg || !expectedRunId) {
34
- throw new Error("Usage: feedback-certification-cleanup --manifest <path> --run-id <id> [--json]");
35
- }
36
- if (args.execute || args["confirm-live"]) {
37
- throw new Error(
38
- "This command is intentionally dry-run only. Execute the reviewed exact-ID actions through the live Feedback harness after deployment.",
39
- );
40
- }
41
- const manifestPath = path.resolve(process.cwd(), manifestArg);
42
- const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
43
- validateCertificationManifest(manifest, { expectedRunId });
44
- const plan = buildCertificationCleanupPlan(manifest, { expectedRunId });
45
- console.log(JSON.stringify({ ok: true, manifest_path: manifestPath, ...plan }, null, 2));
46
- }
47
-
48
- try {
49
- main();
50
- } catch (error) {
51
- console.error(JSON.stringify({ ok: false, message: error?.message || String(error) }, null, 2));
52
- process.exit(1);
53
- }
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ const fs = require("node:fs");
5
+ const path = require("node:path");
6
+
7
+ const {
8
+ buildCertificationCleanupPlan,
9
+ validateCertificationManifest,
10
+ } = require("../lib/certification-manifest");
11
+
12
+ function parseArgs(argv) {
13
+ const args = {};
14
+ for (let index = 0; index < argv.length; index += 1) {
15
+ const token = argv[index];
16
+ if (!token.startsWith("--")) continue;
17
+ const key = token.slice(2);
18
+ const next = argv[index + 1];
19
+ if (!next || next.startsWith("--")) {
20
+ args[key] = true;
21
+ } else {
22
+ args[key] = next;
23
+ index += 1;
24
+ }
25
+ }
26
+ return args;
27
+ }
28
+
29
+ function main() {
30
+ const args = parseArgs(process.argv.slice(2));
31
+ const manifestArg = String(args.manifest || "").trim();
32
+ const expectedRunId = String(args["run-id"] || "").trim();
33
+ if (!manifestArg || !expectedRunId) {
34
+ throw new Error("Usage: feedback-certification-cleanup --manifest <path> --run-id <id> [--json]");
35
+ }
36
+ if (args.execute || args["confirm-live"]) {
37
+ throw new Error(
38
+ "This command is intentionally dry-run only. Execute the reviewed exact-ID actions through the live Feedback harness after deployment.",
39
+ );
40
+ }
41
+ const manifestPath = path.resolve(process.cwd(), manifestArg);
42
+ const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
43
+ validateCertificationManifest(manifest, { expectedRunId });
44
+ const plan = buildCertificationCleanupPlan(manifest, { expectedRunId });
45
+ console.log(JSON.stringify({ ok: true, manifest_path: manifestPath, ...plan }, null, 2));
46
+ }
47
+
48
+ try {
49
+ main();
50
+ } catch (error) {
51
+ console.error(JSON.stringify({ ok: false, message: error?.message || String(error) }, null, 2));
52
+ process.exit(1);
53
+ }