@diagonal-hq/cli 0.41.5 → 0.41.6

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.
@@ -5,8 +5,9 @@ import {
5
5
  SourceError,
6
6
  defaultExportOf,
7
7
  expectDefineCall,
8
+ generatedBindingLocal,
8
9
  staticObject
9
- } from "./cli-chunk-2YX3ABIW.mjs";
10
+ } from "./cli-chunk-NEXRHJ3X.mjs";
10
11
 
11
12
  // scripts/lib/runtime-build/assets.mjs
12
13
  var ASSET_KEY = /^[a-z][A-Za-z0-9]*$/;
@@ -53,11 +54,26 @@ function buildAssets(ast, catalog) {
53
54
  });
54
55
  }
55
56
  var GENERATED_ASSETS_PATH = "generated/assets.ts";
57
+ var GENERATED_ASSETS_MODULE = "@app/generated/assets";
58
+ var ASSETS_EXPORT = "Assets";
59
+ function assetsBinding(ast, entries) {
60
+ const local = generatedBindingLocal(ast, GENERATED_ASSETS_MODULE, ASSETS_EXPORT);
61
+ if (local === null) {
62
+ return null;
63
+ }
64
+ return {
65
+ local,
66
+ keysByName: entries === null ? null : new Map(Object.entries(entries).map(([name, entry]) => [name, entry.key]))
67
+ };
68
+ }
56
69
 
57
70
  export {
58
71
  isAssetKey,
59
72
  assetKeyMessage,
60
73
  assetLibraryMessage,
61
74
  buildAssets,
62
- GENERATED_ASSETS_PATH
75
+ GENERATED_ASSETS_PATH,
76
+ GENERATED_ASSETS_MODULE,
77
+ ASSETS_EXPORT,
78
+ assetsBinding
63
79
  };
@@ -0,0 +1,27 @@
1
+ import { createRequire as __diagonalCreateRequire } from 'node:module';
2
+ const require = __diagonalCreateRequire(import.meta.url);
3
+ import {
4
+ SKILL_DESCRIPTION_MAX_LENGTH,
5
+ SKILL_INSTRUCTIONS_MAX_LENGTH,
6
+ SKILL_NAME_MAX_LENGTH,
7
+ SkillFileError,
8
+ buildSkill,
9
+ isSkillPath,
10
+ skillFrontMatter,
11
+ skillUidDefinition,
12
+ writeSkillFile
13
+ } from "./cli-chunk-KZOQCV4Y.mjs";
14
+ import "./cli-chunk-ES45EAOO.mjs";
15
+ import "./cli-chunk-NEXRHJ3X.mjs";
16
+ import "./cli-chunk-LRS5IEI3.mjs";
17
+ export {
18
+ SKILL_DESCRIPTION_MAX_LENGTH,
19
+ SKILL_INSTRUCTIONS_MAX_LENGTH,
20
+ SKILL_NAME_MAX_LENGTH,
21
+ SkillFileError,
22
+ buildSkill,
23
+ isSkillPath,
24
+ skillFrontMatter,
25
+ skillUidDefinition,
26
+ writeSkillFile
27
+ };
@@ -1,44 +1,40 @@
1
1
  import { createRequire as __diagonalCreateRequire } from 'node:module';
2
2
  const require = __diagonalCreateRequire(import.meta.url);
3
3
  import {
4
+ WORKFLOW_STAGE,
4
5
  stripTypes
5
- } from "./cli-chunk-U2ET6LQJ.mjs";
6
+ } from "./cli-chunk-3SEADNVJ.mjs";
7
+ import {
8
+ scriptSdkRuntimeFiles
9
+ } from "./cli-chunk-77DCVFIZ.mjs";
6
10
  import {
7
11
  AUTHORING_HELPERS_MODULE,
8
12
  GENERATED_NOTIFICATION_TYPES_PATH,
13
+ PROFILES,
9
14
  appImportsOf,
10
15
  appModuleClosure,
11
16
  isAppSpecifier,
12
- resolveAppSpecifier,
13
- scriptSdkRuntimeFiles
14
- } from "./cli-chunk-TEV2VFGB.mjs";
15
- import {
16
- PROFILES
17
- } from "./cli-chunk-WPC3DBHX.mjs";
18
- import "./cli-chunk-4FQYK2WG.mjs";
17
+ resolveAppSpecifier
18
+ } from "./cli-chunk-25JQRNTW.mjs";
19
+ import "./cli-chunk-ES45EAOO.mjs";
19
20
  import {
20
21
  GENERATED_ASSETS_PATH
21
- } from "./cli-chunk-GCF6XYTF.mjs";
22
+ } from "./cli-chunk-XQQBHS6I.mjs";
22
23
  import {
24
+ AUTHORING_MODULE,
23
25
  SourceError,
24
26
  childNodes,
27
+ diagnostic,
28
+ diagnosticAt,
25
29
  diagnosticFromError,
26
30
  parseSource
27
- } from "./cli-chunk-2YX3ABIW.mjs";
28
- import {
29
- AUTHORING_MODULE,
30
- diagnostic,
31
- diagnosticAt
32
- } from "./cli-chunk-C3LVTOK3.mjs";
31
+ } from "./cli-chunk-NEXRHJ3X.mjs";
33
32
  import "./cli-chunk-LRS5IEI3.mjs";
34
33
 
35
34
  // scripts/lib/runtime-build/workflows.mjs
36
35
  import { readFileSync } from "node:fs";
37
36
  import { join as join2 } from "node:path";
38
37
 
39
- // scripts/lib/runtime-build/workflow-config.mjs
40
- var WORKFLOW_STAGE = "workflow";
41
-
42
38
  // scripts/lib/runtime-build/workflow-tests.mjs
43
39
  import { spawnSync } from "node:child_process";
44
40
  import { mkdirSync, mkdtempSync, realpathSync, rmSync, writeFileSync } from "node:fs";