@lace-cloud/canvas 0.33.0 → 0.35.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.
@@ -61,6 +61,7 @@ __export(engine_exports, {
61
61
  openEngineSession: () => openEngineSession,
62
62
  parseBound: () => parseBound,
63
63
  parseCommandFailure: () => parseCommandFailure,
64
+ proposeStackSlug: () => proposeStackSlug,
64
65
  reasonWire: () => reasonWire,
65
66
  reduceFollow: () => reduceFollow,
66
67
  reducePreview: () => reducePreview,
@@ -68,6 +69,7 @@ __export(engine_exports, {
68
69
  reduceRun: () => reduceRun,
69
70
  reportDiagnostics: () => reportDiagnostics,
70
71
  settleRun: () => settleRun,
72
+ stackSlugRule: () => stackSlugRule,
71
73
  toArgv: () => toArgv,
72
74
  uniqueDiagnostics: () => uniqueDiagnostics
73
75
  });
@@ -12288,6 +12290,9 @@ var COMMANDS = {
12288
12290
  ],
12289
12291
  "short": "o"
12290
12292
  },
12293
+ "source": {
12294
+ "type": "string"
12295
+ },
12291
12296
  "sourcePath": {
12292
12297
  "type": "string"
12293
12298
  },
@@ -12629,7 +12634,7 @@ var registryManifestSchema = import_zod.z.object({
12629
12634
  readme: import_zod.z.string().nullable(),
12630
12635
  vendor: registryVendorSchema,
12631
12636
  status: import_zod.z.string(),
12632
- installCount: import_zod.z.number(),
12637
+ installCount: import_zod.z.number().optional(),
12633
12638
  publishedAt: import_zod.z.string().nullable(),
12634
12639
  publishedBy: import_zod.z.string().nullable(),
12635
12640
  createdAt: import_zod.z.string(),
@@ -12813,7 +12818,7 @@ var runSchema = reads()(
12813
12818
  planHumanLocation: import_zod.z.string().nullable(),
12814
12819
  applyLogLocation: import_zod.z.string().nullable(),
12815
12820
  policyResultsLocation: import_zod.z.string().nullable(),
12816
- policyPassed: import_zod.z.boolean().nullable(),
12821
+ policyEvaluatedWithoutBlock: import_zod.z.boolean().nullable(),
12817
12822
  policyResolution: import_zod.z.unknown().nullable(),
12818
12823
  changeRequestId: import_zod.z.string().nullable(),
12819
12824
  cancelReason: import_zod.z.string().nullable(),
@@ -14781,6 +14786,24 @@ function createActionRunner(ports, store, options = {}) {
14781
14786
  };
14782
14787
  }
14783
14788
 
14789
+ // src/generated/stack-slug.ts
14790
+ var STACK_SLUG_PATTERN = "^[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$";
14791
+ var STACK_SLUG_DESCRIPTION = "Slug must be 1-63 characters of lowercase letters, digits and hyphens, starting with a letter and not ending with a hyphen";
14792
+
14793
+ // src/core/stack-slug.ts
14794
+ var stackSlugRule = {
14795
+ pattern: new RegExp(STACK_SLUG_PATTERN),
14796
+ description: STACK_SLUG_DESCRIPTION
14797
+ };
14798
+ function proposeStackSlug(folder) {
14799
+ const slug = folder.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^[^a-z]+/, "");
14800
+ for (let end = slug.length; end > 0; end--) {
14801
+ const prefix = slug.slice(0, end);
14802
+ if (stackSlugRule.pattern.test(prefix)) return prefix;
14803
+ }
14804
+ return "";
14805
+ }
14806
+
14784
14807
  // src/engine/autosave.ts
14785
14808
  var AutosaveEndedError = class extends Error {
14786
14809
  constructor(reason) {
@@ -14910,6 +14933,7 @@ function autosave(source, save, policy, report) {
14910
14933
  openEngineSession,
14911
14934
  parseBound,
14912
14935
  parseCommandFailure,
14936
+ proposeStackSlug,
14913
14937
  reasonWire,
14914
14938
  reduceFollow,
14915
14939
  reducePreview,
@@ -14917,6 +14941,7 @@ function autosave(source, save, policy, report) {
14917
14941
  reduceRun,
14918
14942
  reportDiagnostics,
14919
14943
  settleRun,
14944
+ stackSlugRule,
14920
14945
  toArgv,
14921
14946
  uniqueDiagnostics
14922
14947
  });