@scarn/sdk 0.0.0 → 0.8.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 (54) hide show
  1. package/dist/{chunk-4361gxk0.js → chunk-0y2fy5en.js} +7 -7
  2. package/dist/{chunk-91p9vzcs.js → chunk-3ctaaseb.js} +405 -402
  3. package/dist/{chunk-9s07v9r1.js → chunk-4ggr8af6.js} +8 -8
  4. package/dist/chunk-5zsavw98.js +91 -0
  5. package/dist/chunk-63f90zky.js +39 -0
  6. package/dist/{chunk-tfm5hjzm.js → chunk-700xe701.js} +9 -9
  7. package/dist/{chunk-njd6npf0.js → chunk-ar6hcj1r.js} +6 -6
  8. package/dist/chunk-cdanncng.js +74 -0
  9. package/dist/chunk-dp86pa6m.js +68 -0
  10. package/dist/chunk-e1h021kq.js +86 -0
  11. package/dist/{chunk-ny07ncb9.js → chunk-gds7w7zh.js} +35 -35
  12. package/dist/chunk-k4y5qt4y.js +14 -0
  13. package/dist/{chunk-eg1hcvhb.js → chunk-mz53r914.js} +16 -16
  14. package/dist/{chunk-631ffb6r.js → chunk-ngy1fdcx.js} +10 -10
  15. package/dist/chunk-p7yrcmqm.js +322 -0
  16. package/dist/{chunk-h9yxx0hd.js → chunk-rt9tq4j6.js} +7 -7
  17. package/dist/{chunk-dnn39qt4.js → chunk-skzxcba3.js} +2960 -2217
  18. package/dist/{chunk-ynk2bjae.js → chunk-vfeytkqx.js} +89 -88
  19. package/dist/{chunk-56e4kp0a.js → chunk-y2pv8d6a.js} +19 -19
  20. package/dist/chunk-y64skrwp.js +17 -0
  21. package/dist/{chunk-rq3q8vg7.js → chunk-yjtaq94c.js} +69 -69
  22. package/dist/{chunk-qpw5wt1p.js → chunk-zm72ksz0.js} +26 -27
  23. package/dist/client.js +53 -52
  24. package/dist/contracts/artifact-markers.js +12 -11
  25. package/dist/contracts/artifacts.js +23 -21
  26. package/dist/contracts/pipeline-document/index.js +94 -92
  27. package/dist/contracts/step-artifact-submissions.js +17 -20
  28. package/dist/defaults/index.js +140 -139
  29. package/dist/definitions/pipelines/index.js +22 -20
  30. package/dist/definitions/steps/index.js +70 -67
  31. package/dist/definitions/validation/index.js +15 -13
  32. package/dist/devcontainer-config-path.js +11 -9
  33. package/dist/env-vars.js +33 -31
  34. package/dist/eslint.js +2 -0
  35. package/dist/generated/types.gen.d.ts +7 -0
  36. package/dist/git-url/git-repo-identity.js +2 -0
  37. package/dist/health-checks.js +17 -15
  38. package/dist/index.js +280 -277
  39. package/dist/jsonc.js +8 -7
  40. package/dist/managed-runtimes.js +11 -9
  41. package/dist/opencode-mcp.js +27 -25
  42. package/dist/pipelines/index.js +78 -75
  43. package/dist/push/code-step-lookup.js +8 -7
  44. package/dist/push/index.js +51 -52
  45. package/dist/repo-config.js +21 -19
  46. package/dist/scarn-config-parser.js +6 -5
  47. package/package.json +1 -1
  48. package/dist/chunk-4vehh3dq.js +0 -333
  49. package/dist/chunk-5mmj03ah.js +0 -1074
  50. package/dist/chunk-b21233rt.js +0 -78
  51. package/dist/chunk-g0rdnn0r.js +0 -95
  52. package/dist/chunk-p6kc9wq8.js +0 -97
  53. package/dist/chunk-s0gap8r8.js +0 -14
  54. package/dist/chunk-zpqyjgb4.js +0 -49
@@ -2,7 +2,7 @@
2
2
  // src/scarn-config-parser.ts
3
3
  import { access, readFile } from "fs/promises";
4
4
  import path from "path";
5
- var SCARN_CONFIG_RELATIVE_PATH2 = ".scarn/scarn.jsonc";
5
+ var SCARN_CONFIG_RELATIVE_PATH = ".scarn/scarn.jsonc";
6
6
  var stripJsoncComments = (content) => {
7
7
  let result = "";
8
8
  let inString = false;
@@ -90,12 +90,12 @@ var stripTrailingCommas = (content) => {
90
90
  if (character === ",") {
91
91
  let lookaheadIndex = index + 1;
92
92
  while (lookaheadIndex < content.length) {
93
- const lookaheadCharacter = content.charAt(lookaheadIndex);
94
- if (/\s/u.test(lookaheadCharacter)) {
93
+ const lookaheadCharacter2 = content.charAt(lookaheadIndex);
94
+ if (/\s/u.test(lookaheadCharacter2)) {
95
95
  lookaheadIndex += 1;
96
96
  continue;
97
97
  }
98
- if (lookaheadCharacter === "}" || lookaheadCharacter === "]") {
98
+ if (lookaheadCharacter2 === "}" || lookaheadCharacter2 === "]") {
99
99
  break;
100
100
  }
101
101
  result += character;
@@ -146,8 +146,8 @@ var parseServices = (raw) => {
146
146
  };
147
147
  });
148
148
  };
149
- async function parseScarnConfig2(workspacePath) {
150
- const filePath = path.join(workspacePath, SCARN_CONFIG_RELATIVE_PATH2);
149
+ async function parseScarnConfig(workspacePath) {
150
+ const filePath = path.join(workspacePath, SCARN_CONFIG_RELATIVE_PATH);
151
151
  const exists = await access(filePath).then(() => true).catch(() => false);
152
152
  if (!exists) {
153
153
  return { found: false };
@@ -163,4 +163,4 @@ async function parseScarnConfig2(workspacePath) {
163
163
  };
164
164
  }
165
165
 
166
- export { SCARN_CONFIG_RELATIVE_PATH2, parseScarnConfig2 };
166
+ export { SCARN_CONFIG_RELATIVE_PATH, parseScarnConfig };