@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.
- package/README.md +21 -2
- package/dist/check-data.json +1 -1
- package/dist/{cli-assets-cli-FMLE5XEF.mjs → cli-assets-cli-WEGERBBR.mjs} +8 -134
- package/dist/{cli-check-data-PIXADUF2.mjs → cli-check-data-7TKAM34J.mjs} +152 -2259
- package/dist/cli-chunk-25JQRNTW.mjs +24138 -0
- package/dist/{cli-chunk-U2ET6LQJ.mjs → cli-chunk-3SEADNVJ.mjs} +153 -1
- package/dist/{cli-chunk-TEV2VFGB.mjs → cli-chunk-77DCVFIZ.mjs} +7 -23955
- package/dist/{cli-chunk-4FQYK2WG.mjs → cli-chunk-ES45EAOO.mjs} +4 -1
- package/dist/{cli-skill-file-26B4RRZZ.mjs → cli-chunk-KZOQCV4Y.mjs} +7 -8
- package/dist/{cli-chunk-2YX3ABIW.mjs → cli-chunk-NEXRHJ3X.mjs} +1500 -44
- package/dist/{cli-chunk-XMVYLKEB.mjs → cli-chunk-TDGR3ENO.mjs} +278 -1
- package/dist/cli-chunk-XO3FRXQ4.mjs +3200 -0
- package/dist/{cli-chunk-GCF6XYTF.mjs → cli-chunk-XQQBHS6I.mjs} +18 -2
- package/dist/cli-skill-file-XEFKCU5Y.mjs +27 -0
- package/dist/{cli-workflows-YLHANSO2.mjs → cli-workflows-VFKTQW7H.mjs} +14 -18
- package/dist/cli.mjs +10361 -99
- package/dist/index.d.ts +18 -0
- package/dist/sdk-contract.d.ts +4 -1
- package/package.json +4 -4
- package/dist/cli-chunk-C3LVTOK3.mjs +0 -1054
- package/dist/cli-chunk-WPC3DBHX.mjs +0 -52
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
SourceError,
|
|
6
6
|
defaultExportOf,
|
|
7
7
|
expectDefineCall,
|
|
8
|
+
generatedBindingLocal,
|
|
8
9
|
staticObject
|
|
9
|
-
} from "./cli-chunk-
|
|
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-
|
|
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
|
-
|
|
14
|
-
|
|
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-
|
|
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-
|
|
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";
|