@enactprotocol/cli 1.0.12 → 1.0.14
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/dist/index.js +154 -137
- package/dist/index.js.bak +154 -137
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2530,7 +2530,7 @@ var require_thread_stream = __commonJS((exports, module) => {
|
|
|
2530
2530
|
var { version } = require_package2();
|
|
2531
2531
|
var { EventEmitter } = __require("events");
|
|
2532
2532
|
var { Worker } = __require("worker_threads");
|
|
2533
|
-
var { join:
|
|
2533
|
+
var { join: join7 } = __require("path");
|
|
2534
2534
|
var { pathToFileURL } = __require("url");
|
|
2535
2535
|
var { wait } = require_wait();
|
|
2536
2536
|
var {
|
|
@@ -2566,7 +2566,7 @@ var require_thread_stream = __commonJS((exports, module) => {
|
|
|
2566
2566
|
function createWorker(stream, opts) {
|
|
2567
2567
|
const { filename, workerData } = opts;
|
|
2568
2568
|
const bundlerOverrides = "__bundlerPathsOverrides" in globalThis ? globalThis.__bundlerPathsOverrides : {};
|
|
2569
|
-
const toExecute = bundlerOverrides["thread-stream-worker"] ||
|
|
2569
|
+
const toExecute = bundlerOverrides["thread-stream-worker"] || join7(__dirname, "lib", "worker.js");
|
|
2570
2570
|
const worker = new Worker(toExecute, {
|
|
2571
2571
|
...opts.workerOpts,
|
|
2572
2572
|
trackUnmanagedFds: false,
|
|
@@ -2950,7 +2950,7 @@ var require_transport = __commonJS((exports, module) => {
|
|
|
2950
2950
|
var __dirname = "/Users/keithgroves/projects/enact/enact-cli/node_modules/pino/lib";
|
|
2951
2951
|
var { createRequire: createRequire2 } = __require("module");
|
|
2952
2952
|
var getCallers = require_caller();
|
|
2953
|
-
var { join:
|
|
2953
|
+
var { join: join7, isAbsolute, sep } = __require("node:path");
|
|
2954
2954
|
var sleep = require_atomic_sleep();
|
|
2955
2955
|
var onExit = require_on_exit_leak_free();
|
|
2956
2956
|
var ThreadStream = require_thread_stream();
|
|
@@ -3013,7 +3013,7 @@ var require_transport = __commonJS((exports, module) => {
|
|
|
3013
3013
|
throw new Error("only one of target or targets can be specified");
|
|
3014
3014
|
}
|
|
3015
3015
|
if (targets) {
|
|
3016
|
-
target = bundlerOverrides["pino-worker"] ||
|
|
3016
|
+
target = bundlerOverrides["pino-worker"] || join7(__dirname, "worker.js");
|
|
3017
3017
|
options.targets = targets.filter((dest) => dest.target).map((dest) => {
|
|
3018
3018
|
return {
|
|
3019
3019
|
...dest,
|
|
@@ -3030,7 +3030,7 @@ var require_transport = __commonJS((exports, module) => {
|
|
|
3030
3030
|
});
|
|
3031
3031
|
});
|
|
3032
3032
|
} else if (pipeline) {
|
|
3033
|
-
target = bundlerOverrides["pino-worker"] ||
|
|
3033
|
+
target = bundlerOverrides["pino-worker"] || join7(__dirname, "worker.js");
|
|
3034
3034
|
options.pipelines = [pipeline.map((dest) => {
|
|
3035
3035
|
return {
|
|
3036
3036
|
...dest,
|
|
@@ -3052,7 +3052,7 @@ var require_transport = __commonJS((exports, module) => {
|
|
|
3052
3052
|
return origin;
|
|
3053
3053
|
}
|
|
3054
3054
|
if (origin === "pino/file") {
|
|
3055
|
-
return
|
|
3055
|
+
return join7(__dirname, "..", "file.js");
|
|
3056
3056
|
}
|
|
3057
3057
|
let fixTarget2;
|
|
3058
3058
|
for (const filePath of callers) {
|
|
@@ -3955,7 +3955,7 @@ var require_safe_stable_stringify = __commonJS((exports, module) => {
|
|
|
3955
3955
|
return circularValue;
|
|
3956
3956
|
}
|
|
3957
3957
|
let res = "";
|
|
3958
|
-
let
|
|
3958
|
+
let join7 = ",";
|
|
3959
3959
|
const originalIndentation = indentation;
|
|
3960
3960
|
if (Array.isArray(value)) {
|
|
3961
3961
|
if (value.length === 0) {
|
|
@@ -3969,7 +3969,7 @@ var require_safe_stable_stringify = __commonJS((exports, module) => {
|
|
|
3969
3969
|
indentation += spacer;
|
|
3970
3970
|
res += `
|
|
3971
3971
|
${indentation}`;
|
|
3972
|
-
|
|
3972
|
+
join7 = `,
|
|
3973
3973
|
${indentation}`;
|
|
3974
3974
|
}
|
|
3975
3975
|
const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
|
|
@@ -3977,13 +3977,13 @@ ${indentation}`;
|
|
|
3977
3977
|
for (;i < maximumValuesToStringify - 1; i++) {
|
|
3978
3978
|
const tmp2 = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
|
|
3979
3979
|
res += tmp2 !== undefined ? tmp2 : "null";
|
|
3980
|
-
res +=
|
|
3980
|
+
res += join7;
|
|
3981
3981
|
}
|
|
3982
3982
|
const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
|
|
3983
3983
|
res += tmp !== undefined ? tmp : "null";
|
|
3984
3984
|
if (value.length - 1 > maximumBreadth) {
|
|
3985
3985
|
const removedKeys = value.length - maximumBreadth - 1;
|
|
3986
|
-
res += `${
|
|
3986
|
+
res += `${join7}"... ${getItemCount(removedKeys)} not stringified"`;
|
|
3987
3987
|
}
|
|
3988
3988
|
if (spacer !== "") {
|
|
3989
3989
|
res += `
|
|
@@ -4004,7 +4004,7 @@ ${originalIndentation}`;
|
|
|
4004
4004
|
let separator = "";
|
|
4005
4005
|
if (spacer !== "") {
|
|
4006
4006
|
indentation += spacer;
|
|
4007
|
-
|
|
4007
|
+
join7 = `,
|
|
4008
4008
|
${indentation}`;
|
|
4009
4009
|
whitespace = " ";
|
|
4010
4010
|
}
|
|
@@ -4018,13 +4018,13 @@ ${indentation}`;
|
|
|
4018
4018
|
const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation);
|
|
4019
4019
|
if (tmp !== undefined) {
|
|
4020
4020
|
res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
|
|
4021
|
-
separator =
|
|
4021
|
+
separator = join7;
|
|
4022
4022
|
}
|
|
4023
4023
|
}
|
|
4024
4024
|
if (keyLength > maximumBreadth) {
|
|
4025
4025
|
const removedKeys = keyLength - maximumBreadth;
|
|
4026
4026
|
res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`;
|
|
4027
|
-
separator =
|
|
4027
|
+
separator = join7;
|
|
4028
4028
|
}
|
|
4029
4029
|
if (spacer !== "" && separator.length > 1) {
|
|
4030
4030
|
res = `
|
|
@@ -4064,7 +4064,7 @@ ${originalIndentation}`;
|
|
|
4064
4064
|
}
|
|
4065
4065
|
const originalIndentation = indentation;
|
|
4066
4066
|
let res = "";
|
|
4067
|
-
let
|
|
4067
|
+
let join7 = ",";
|
|
4068
4068
|
if (Array.isArray(value)) {
|
|
4069
4069
|
if (value.length === 0) {
|
|
4070
4070
|
return "[]";
|
|
@@ -4077,7 +4077,7 @@ ${originalIndentation}`;
|
|
|
4077
4077
|
indentation += spacer;
|
|
4078
4078
|
res += `
|
|
4079
4079
|
${indentation}`;
|
|
4080
|
-
|
|
4080
|
+
join7 = `,
|
|
4081
4081
|
${indentation}`;
|
|
4082
4082
|
}
|
|
4083
4083
|
const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
|
|
@@ -4085,13 +4085,13 @@ ${indentation}`;
|
|
|
4085
4085
|
for (;i < maximumValuesToStringify - 1; i++) {
|
|
4086
4086
|
const tmp2 = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
|
|
4087
4087
|
res += tmp2 !== undefined ? tmp2 : "null";
|
|
4088
|
-
res +=
|
|
4088
|
+
res += join7;
|
|
4089
4089
|
}
|
|
4090
4090
|
const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
|
|
4091
4091
|
res += tmp !== undefined ? tmp : "null";
|
|
4092
4092
|
if (value.length - 1 > maximumBreadth) {
|
|
4093
4093
|
const removedKeys = value.length - maximumBreadth - 1;
|
|
4094
|
-
res += `${
|
|
4094
|
+
res += `${join7}"... ${getItemCount(removedKeys)} not stringified"`;
|
|
4095
4095
|
}
|
|
4096
4096
|
if (spacer !== "") {
|
|
4097
4097
|
res += `
|
|
@@ -4104,7 +4104,7 @@ ${originalIndentation}`;
|
|
|
4104
4104
|
let whitespace = "";
|
|
4105
4105
|
if (spacer !== "") {
|
|
4106
4106
|
indentation += spacer;
|
|
4107
|
-
|
|
4107
|
+
join7 = `,
|
|
4108
4108
|
${indentation}`;
|
|
4109
4109
|
whitespace = " ";
|
|
4110
4110
|
}
|
|
@@ -4113,7 +4113,7 @@ ${indentation}`;
|
|
|
4113
4113
|
const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation);
|
|
4114
4114
|
if (tmp !== undefined) {
|
|
4115
4115
|
res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
|
|
4116
|
-
separator =
|
|
4116
|
+
separator = join7;
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
4119
|
if (spacer !== "" && separator.length > 1) {
|
|
@@ -4170,20 +4170,20 @@ ${originalIndentation}`;
|
|
|
4170
4170
|
indentation += spacer;
|
|
4171
4171
|
let res2 = `
|
|
4172
4172
|
${indentation}`;
|
|
4173
|
-
const
|
|
4173
|
+
const join8 = `,
|
|
4174
4174
|
${indentation}`;
|
|
4175
4175
|
const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
|
|
4176
4176
|
let i = 0;
|
|
4177
4177
|
for (;i < maximumValuesToStringify - 1; i++) {
|
|
4178
4178
|
const tmp2 = stringifyIndent(String(i), value[i], stack, spacer, indentation);
|
|
4179
4179
|
res2 += tmp2 !== undefined ? tmp2 : "null";
|
|
4180
|
-
res2 +=
|
|
4180
|
+
res2 += join8;
|
|
4181
4181
|
}
|
|
4182
4182
|
const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
|
|
4183
4183
|
res2 += tmp !== undefined ? tmp : "null";
|
|
4184
4184
|
if (value.length - 1 > maximumBreadth) {
|
|
4185
4185
|
const removedKeys = value.length - maximumBreadth - 1;
|
|
4186
|
-
res2 += `${
|
|
4186
|
+
res2 += `${join8}"... ${getItemCount(removedKeys)} not stringified"`;
|
|
4187
4187
|
}
|
|
4188
4188
|
res2 += `
|
|
4189
4189
|
${originalIndentation}`;
|
|
@@ -4199,16 +4199,16 @@ ${originalIndentation}`;
|
|
|
4199
4199
|
return '"[Object]"';
|
|
4200
4200
|
}
|
|
4201
4201
|
indentation += spacer;
|
|
4202
|
-
const
|
|
4202
|
+
const join7 = `,
|
|
4203
4203
|
${indentation}`;
|
|
4204
4204
|
let res = "";
|
|
4205
4205
|
let separator = "";
|
|
4206
4206
|
let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
|
|
4207
4207
|
if (isTypedArrayWithEntries(value)) {
|
|
4208
|
-
res += stringifyTypedArray(value,
|
|
4208
|
+
res += stringifyTypedArray(value, join7, maximumBreadth);
|
|
4209
4209
|
keys = keys.slice(value.length);
|
|
4210
4210
|
maximumPropertiesToStringify -= value.length;
|
|
4211
|
-
separator =
|
|
4211
|
+
separator = join7;
|
|
4212
4212
|
}
|
|
4213
4213
|
if (deterministic) {
|
|
4214
4214
|
keys = sort(keys, comparator);
|
|
@@ -4219,13 +4219,13 @@ ${indentation}`;
|
|
|
4219
4219
|
const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation);
|
|
4220
4220
|
if (tmp !== undefined) {
|
|
4221
4221
|
res += `${separator}${strEscape(key2)}: ${tmp}`;
|
|
4222
|
-
separator =
|
|
4222
|
+
separator = join7;
|
|
4223
4223
|
}
|
|
4224
4224
|
}
|
|
4225
4225
|
if (keyLength > maximumBreadth) {
|
|
4226
4226
|
const removedKeys = keyLength - maximumBreadth;
|
|
4227
4227
|
res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`;
|
|
4228
|
-
separator =
|
|
4228
|
+
separator = join7;
|
|
4229
4229
|
}
|
|
4230
4230
|
if (separator !== "") {
|
|
4231
4231
|
res = `
|
|
@@ -15479,23 +15479,23 @@ var require_printer = __commonJS((exports) => {
|
|
|
15479
15479
|
leave: (node) => "$" + node.name
|
|
15480
15480
|
},
|
|
15481
15481
|
Document: {
|
|
15482
|
-
leave: (node) =>
|
|
15482
|
+
leave: (node) => join11(node.definitions, `
|
|
15483
15483
|
|
|
15484
15484
|
`)
|
|
15485
15485
|
},
|
|
15486
15486
|
OperationDefinition: {
|
|
15487
15487
|
leave(node) {
|
|
15488
|
-
const varDefs = wrap("(",
|
|
15489
|
-
const prefix =
|
|
15488
|
+
const varDefs = wrap("(", join11(node.variableDefinitions, ", "), ")");
|
|
15489
|
+
const prefix = join11([
|
|
15490
15490
|
node.operation,
|
|
15491
|
-
|
|
15492
|
-
|
|
15491
|
+
join11([node.name, varDefs]),
|
|
15492
|
+
join11(node.directives, " ")
|
|
15493
15493
|
], " ");
|
|
15494
15494
|
return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
|
|
15495
15495
|
}
|
|
15496
15496
|
},
|
|
15497
15497
|
VariableDefinition: {
|
|
15498
|
-
leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ",
|
|
15498
|
+
leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join11(directives, " "))
|
|
15499
15499
|
},
|
|
15500
15500
|
SelectionSet: {
|
|
15501
15501
|
leave: ({ selections }) => block(selections)
|
|
@@ -15503,32 +15503,32 @@ var require_printer = __commonJS((exports) => {
|
|
|
15503
15503
|
Field: {
|
|
15504
15504
|
leave({ alias, name, arguments: args, directives, selectionSet }) {
|
|
15505
15505
|
const prefix = wrap("", alias, ": ") + name;
|
|
15506
|
-
let argsLine = prefix + wrap("(",
|
|
15506
|
+
let argsLine = prefix + wrap("(", join11(args, ", "), ")");
|
|
15507
15507
|
if (argsLine.length > MAX_LINE_LENGTH) {
|
|
15508
15508
|
argsLine = prefix + wrap(`(
|
|
15509
|
-
`, indent(
|
|
15509
|
+
`, indent(join11(args, `
|
|
15510
15510
|
`)), `
|
|
15511
15511
|
)`);
|
|
15512
15512
|
}
|
|
15513
|
-
return
|
|
15513
|
+
return join11([argsLine, join11(directives, " "), selectionSet], " ");
|
|
15514
15514
|
}
|
|
15515
15515
|
},
|
|
15516
15516
|
Argument: {
|
|
15517
15517
|
leave: ({ name, value }) => name + ": " + value
|
|
15518
15518
|
},
|
|
15519
15519
|
FragmentSpread: {
|
|
15520
|
-
leave: ({ name, directives }) => "..." + name + wrap(" ",
|
|
15520
|
+
leave: ({ name, directives }) => "..." + name + wrap(" ", join11(directives, " "))
|
|
15521
15521
|
},
|
|
15522
15522
|
InlineFragment: {
|
|
15523
|
-
leave: ({ typeCondition, directives, selectionSet }) =>
|
|
15523
|
+
leave: ({ typeCondition, directives, selectionSet }) => join11([
|
|
15524
15524
|
"...",
|
|
15525
15525
|
wrap("on ", typeCondition),
|
|
15526
|
-
|
|
15526
|
+
join11(directives, " "),
|
|
15527
15527
|
selectionSet
|
|
15528
15528
|
], " ")
|
|
15529
15529
|
},
|
|
15530
15530
|
FragmentDefinition: {
|
|
15531
|
-
leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => `fragment ${name}${wrap("(",
|
|
15531
|
+
leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => `fragment ${name}${wrap("(", join11(variableDefinitions, ", "), ")")} ` + `on ${typeCondition} ${wrap("", join11(directives, " "), " ")}` + selectionSet
|
|
15532
15532
|
},
|
|
15533
15533
|
IntValue: {
|
|
15534
15534
|
leave: ({ value }) => value
|
|
@@ -15549,16 +15549,16 @@ var require_printer = __commonJS((exports) => {
|
|
|
15549
15549
|
leave: ({ value }) => value
|
|
15550
15550
|
},
|
|
15551
15551
|
ListValue: {
|
|
15552
|
-
leave: ({ values }) => "[" +
|
|
15552
|
+
leave: ({ values }) => "[" + join11(values, ", ") + "]"
|
|
15553
15553
|
},
|
|
15554
15554
|
ObjectValue: {
|
|
15555
|
-
leave: ({ fields }) => "{" +
|
|
15555
|
+
leave: ({ fields }) => "{" + join11(fields, ", ") + "}"
|
|
15556
15556
|
},
|
|
15557
15557
|
ObjectField: {
|
|
15558
15558
|
leave: ({ name, value }) => name + ": " + value
|
|
15559
15559
|
},
|
|
15560
15560
|
Directive: {
|
|
15561
|
-
leave: ({ name, arguments: args }) => "@" + name + wrap("(",
|
|
15561
|
+
leave: ({ name, arguments: args }) => "@" + name + wrap("(", join11(args, ", "), ")")
|
|
15562
15562
|
},
|
|
15563
15563
|
NamedType: {
|
|
15564
15564
|
leave: ({ name }) => name
|
|
@@ -15571,115 +15571,115 @@ var require_printer = __commonJS((exports) => {
|
|
|
15571
15571
|
},
|
|
15572
15572
|
SchemaDefinition: {
|
|
15573
15573
|
leave: ({ description, directives, operationTypes }) => wrap("", description, `
|
|
15574
|
-
`) +
|
|
15574
|
+
`) + join11(["schema", join11(directives, " "), block(operationTypes)], " ")
|
|
15575
15575
|
},
|
|
15576
15576
|
OperationTypeDefinition: {
|
|
15577
15577
|
leave: ({ operation, type }) => operation + ": " + type
|
|
15578
15578
|
},
|
|
15579
15579
|
ScalarTypeDefinition: {
|
|
15580
15580
|
leave: ({ description, name, directives }) => wrap("", description, `
|
|
15581
|
-
`) +
|
|
15581
|
+
`) + join11(["scalar", name, join11(directives, " ")], " ")
|
|
15582
15582
|
},
|
|
15583
15583
|
ObjectTypeDefinition: {
|
|
15584
15584
|
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, `
|
|
15585
|
-
`) +
|
|
15585
|
+
`) + join11([
|
|
15586
15586
|
"type",
|
|
15587
15587
|
name,
|
|
15588
|
-
wrap("implements ",
|
|
15589
|
-
|
|
15588
|
+
wrap("implements ", join11(interfaces, " & ")),
|
|
15589
|
+
join11(directives, " "),
|
|
15590
15590
|
block(fields)
|
|
15591
15591
|
], " ")
|
|
15592
15592
|
},
|
|
15593
15593
|
FieldDefinition: {
|
|
15594
15594
|
leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, `
|
|
15595
15595
|
`) + name + (hasMultilineItems(args) ? wrap(`(
|
|
15596
|
-
`, indent(
|
|
15596
|
+
`, indent(join11(args, `
|
|
15597
15597
|
`)), `
|
|
15598
|
-
)`) : wrap("(",
|
|
15598
|
+
)`) : wrap("(", join11(args, ", "), ")")) + ": " + type + wrap(" ", join11(directives, " "))
|
|
15599
15599
|
},
|
|
15600
15600
|
InputValueDefinition: {
|
|
15601
15601
|
leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, `
|
|
15602
|
-
`) +
|
|
15602
|
+
`) + join11([name + ": " + type, wrap("= ", defaultValue), join11(directives, " ")], " ")
|
|
15603
15603
|
},
|
|
15604
15604
|
InterfaceTypeDefinition: {
|
|
15605
15605
|
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, `
|
|
15606
|
-
`) +
|
|
15606
|
+
`) + join11([
|
|
15607
15607
|
"interface",
|
|
15608
15608
|
name,
|
|
15609
|
-
wrap("implements ",
|
|
15610
|
-
|
|
15609
|
+
wrap("implements ", join11(interfaces, " & ")),
|
|
15610
|
+
join11(directives, " "),
|
|
15611
15611
|
block(fields)
|
|
15612
15612
|
], " ")
|
|
15613
15613
|
},
|
|
15614
15614
|
UnionTypeDefinition: {
|
|
15615
15615
|
leave: ({ description, name, directives, types: types2 }) => wrap("", description, `
|
|
15616
|
-
`) +
|
|
15616
|
+
`) + join11(["union", name, join11(directives, " "), wrap("= ", join11(types2, " | "))], " ")
|
|
15617
15617
|
},
|
|
15618
15618
|
EnumTypeDefinition: {
|
|
15619
15619
|
leave: ({ description, name, directives, values }) => wrap("", description, `
|
|
15620
|
-
`) +
|
|
15620
|
+
`) + join11(["enum", name, join11(directives, " "), block(values)], " ")
|
|
15621
15621
|
},
|
|
15622
15622
|
EnumValueDefinition: {
|
|
15623
15623
|
leave: ({ description, name, directives }) => wrap("", description, `
|
|
15624
|
-
`) +
|
|
15624
|
+
`) + join11([name, join11(directives, " ")], " ")
|
|
15625
15625
|
},
|
|
15626
15626
|
InputObjectTypeDefinition: {
|
|
15627
15627
|
leave: ({ description, name, directives, fields }) => wrap("", description, `
|
|
15628
|
-
`) +
|
|
15628
|
+
`) + join11(["input", name, join11(directives, " "), block(fields)], " ")
|
|
15629
15629
|
},
|
|
15630
15630
|
DirectiveDefinition: {
|
|
15631
15631
|
leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, `
|
|
15632
15632
|
`) + "directive @" + name + (hasMultilineItems(args) ? wrap(`(
|
|
15633
|
-
`, indent(
|
|
15633
|
+
`, indent(join11(args, `
|
|
15634
15634
|
`)), `
|
|
15635
|
-
)`) : wrap("(",
|
|
15635
|
+
)`) : wrap("(", join11(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join11(locations, " | ")
|
|
15636
15636
|
},
|
|
15637
15637
|
SchemaExtension: {
|
|
15638
|
-
leave: ({ directives, operationTypes }) =>
|
|
15638
|
+
leave: ({ directives, operationTypes }) => join11(["extend schema", join11(directives, " "), block(operationTypes)], " ")
|
|
15639
15639
|
},
|
|
15640
15640
|
ScalarTypeExtension: {
|
|
15641
|
-
leave: ({ name, directives }) =>
|
|
15641
|
+
leave: ({ name, directives }) => join11(["extend scalar", name, join11(directives, " ")], " ")
|
|
15642
15642
|
},
|
|
15643
15643
|
ObjectTypeExtension: {
|
|
15644
|
-
leave: ({ name, interfaces, directives, fields }) =>
|
|
15644
|
+
leave: ({ name, interfaces, directives, fields }) => join11([
|
|
15645
15645
|
"extend type",
|
|
15646
15646
|
name,
|
|
15647
|
-
wrap("implements ",
|
|
15648
|
-
|
|
15647
|
+
wrap("implements ", join11(interfaces, " & ")),
|
|
15648
|
+
join11(directives, " "),
|
|
15649
15649
|
block(fields)
|
|
15650
15650
|
], " ")
|
|
15651
15651
|
},
|
|
15652
15652
|
InterfaceTypeExtension: {
|
|
15653
|
-
leave: ({ name, interfaces, directives, fields }) =>
|
|
15653
|
+
leave: ({ name, interfaces, directives, fields }) => join11([
|
|
15654
15654
|
"extend interface",
|
|
15655
15655
|
name,
|
|
15656
|
-
wrap("implements ",
|
|
15657
|
-
|
|
15656
|
+
wrap("implements ", join11(interfaces, " & ")),
|
|
15657
|
+
join11(directives, " "),
|
|
15658
15658
|
block(fields)
|
|
15659
15659
|
], " ")
|
|
15660
15660
|
},
|
|
15661
15661
|
UnionTypeExtension: {
|
|
15662
|
-
leave: ({ name, directives, types: types2 }) =>
|
|
15662
|
+
leave: ({ name, directives, types: types2 }) => join11([
|
|
15663
15663
|
"extend union",
|
|
15664
15664
|
name,
|
|
15665
|
-
|
|
15666
|
-
wrap("= ",
|
|
15665
|
+
join11(directives, " "),
|
|
15666
|
+
wrap("= ", join11(types2, " | "))
|
|
15667
15667
|
], " ")
|
|
15668
15668
|
},
|
|
15669
15669
|
EnumTypeExtension: {
|
|
15670
|
-
leave: ({ name, directives, values }) =>
|
|
15670
|
+
leave: ({ name, directives, values }) => join11(["extend enum", name, join11(directives, " "), block(values)], " ")
|
|
15671
15671
|
},
|
|
15672
15672
|
InputObjectTypeExtension: {
|
|
15673
|
-
leave: ({ name, directives, fields }) =>
|
|
15673
|
+
leave: ({ name, directives, fields }) => join11(["extend input", name, join11(directives, " "), block(fields)], " ")
|
|
15674
15674
|
}
|
|
15675
15675
|
};
|
|
15676
|
-
function
|
|
15676
|
+
function join11(maybeArray, separator = "") {
|
|
15677
15677
|
var _maybeArray$filter$jo;
|
|
15678
15678
|
return (_maybeArray$filter$jo = maybeArray === null || maybeArray === undefined ? undefined : maybeArray.filter((x2) => x2).join(separator)) !== null && _maybeArray$filter$jo !== undefined ? _maybeArray$filter$jo : "";
|
|
15679
15679
|
}
|
|
15680
15680
|
function block(array) {
|
|
15681
15681
|
return wrap(`{
|
|
15682
|
-
`, indent(
|
|
15682
|
+
`, indent(join11(array, `
|
|
15683
15683
|
`)), `
|
|
15684
15684
|
}`);
|
|
15685
15685
|
}
|
|
@@ -31270,8 +31270,8 @@ var require_adm_zip = __commonJS((exports, module) => {
|
|
|
31270
31270
|
return null;
|
|
31271
31271
|
}
|
|
31272
31272
|
function fixPath(zipPath) {
|
|
31273
|
-
const { join:
|
|
31274
|
-
return
|
|
31273
|
+
const { join: join11, normalize, sep } = pth.posix;
|
|
31274
|
+
return join11(".", normalize(sep + zipPath.split("\\").join(sep) + sep));
|
|
31275
31275
|
}
|
|
31276
31276
|
function filenameFilter(filterfn) {
|
|
31277
31277
|
if (filterfn instanceof RegExp) {
|
|
@@ -42175,11 +42175,11 @@ var require_path_arg = __commonJS((exports, module) => {
|
|
|
42175
42175
|
|
|
42176
42176
|
// ../../node_modules/mkdirp/lib/find-made.js
|
|
42177
42177
|
var require_find_made = __commonJS((exports, module) => {
|
|
42178
|
-
var { dirname:
|
|
42178
|
+
var { dirname: dirname3 } = __require("path");
|
|
42179
42179
|
var findMade = (opts, parent, path7 = undefined) => {
|
|
42180
42180
|
if (path7 === parent)
|
|
42181
42181
|
return Promise.resolve();
|
|
42182
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path7 : undefined, (er) => er.code === "ENOENT" ? findMade(opts,
|
|
42182
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path7 : undefined, (er) => er.code === "ENOENT" ? findMade(opts, dirname3(parent), parent) : undefined);
|
|
42183
42183
|
};
|
|
42184
42184
|
var findMadeSync = (opts, parent, path7 = undefined) => {
|
|
42185
42185
|
if (path7 === parent)
|
|
@@ -42187,7 +42187,7 @@ var require_find_made = __commonJS((exports, module) => {
|
|
|
42187
42187
|
try {
|
|
42188
42188
|
return opts.statSync(parent).isDirectory() ? path7 : undefined;
|
|
42189
42189
|
} catch (er) {
|
|
42190
|
-
return er.code === "ENOENT" ? findMadeSync(opts,
|
|
42190
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname3(parent), parent) : undefined;
|
|
42191
42191
|
}
|
|
42192
42192
|
};
|
|
42193
42193
|
module.exports = { findMade, findMadeSync };
|
|
@@ -42195,10 +42195,10 @@ var require_find_made = __commonJS((exports, module) => {
|
|
|
42195
42195
|
|
|
42196
42196
|
// ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
42197
42197
|
var require_mkdirp_manual = __commonJS((exports, module) => {
|
|
42198
|
-
var { dirname:
|
|
42198
|
+
var { dirname: dirname3 } = __require("path");
|
|
42199
42199
|
var mkdirpManual = (path7, opts, made) => {
|
|
42200
42200
|
opts.recursive = false;
|
|
42201
|
-
const parent =
|
|
42201
|
+
const parent = dirname3(path7);
|
|
42202
42202
|
if (parent === path7) {
|
|
42203
42203
|
return opts.mkdirAsync(path7, opts).catch((er) => {
|
|
42204
42204
|
if (er.code !== "EISDIR")
|
|
@@ -42221,7 +42221,7 @@ var require_mkdirp_manual = __commonJS((exports, module) => {
|
|
|
42221
42221
|
});
|
|
42222
42222
|
};
|
|
42223
42223
|
var mkdirpManualSync = (path7, opts, made) => {
|
|
42224
|
-
const parent =
|
|
42224
|
+
const parent = dirname3(path7);
|
|
42225
42225
|
opts.recursive = false;
|
|
42226
42226
|
if (parent === path7) {
|
|
42227
42227
|
try {
|
|
@@ -42254,12 +42254,12 @@ var require_mkdirp_manual = __commonJS((exports, module) => {
|
|
|
42254
42254
|
|
|
42255
42255
|
// ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
42256
42256
|
var require_mkdirp_native = __commonJS((exports, module) => {
|
|
42257
|
-
var { dirname:
|
|
42257
|
+
var { dirname: dirname3 } = __require("path");
|
|
42258
42258
|
var { findMade, findMadeSync } = require_find_made();
|
|
42259
42259
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
42260
42260
|
var mkdirpNative = (path7, opts) => {
|
|
42261
42261
|
opts.recursive = true;
|
|
42262
|
-
const parent =
|
|
42262
|
+
const parent = dirname3(path7);
|
|
42263
42263
|
if (parent === path7)
|
|
42264
42264
|
return opts.mkdirAsync(path7, opts);
|
|
42265
42265
|
return findMade(opts, path7).then((made) => opts.mkdirAsync(path7, opts).then(() => made).catch((er) => {
|
|
@@ -42271,7 +42271,7 @@ var require_mkdirp_native = __commonJS((exports, module) => {
|
|
|
42271
42271
|
};
|
|
42272
42272
|
var mkdirpNativeSync = (path7, opts) => {
|
|
42273
42273
|
opts.recursive = true;
|
|
42274
|
-
const parent =
|
|
42274
|
+
const parent = dirname3(path7);
|
|
42275
42275
|
if (parent === path7)
|
|
42276
42276
|
return opts.mkdirSync(path7, opts);
|
|
42277
42277
|
const made = findMadeSync(opts, path7);
|
|
@@ -42660,7 +42660,7 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
42660
42660
|
var assert = __require("assert");
|
|
42661
42661
|
var normalize = require_normalize_unicode();
|
|
42662
42662
|
var stripSlashes = require_strip_trailing_slashes();
|
|
42663
|
-
var { join:
|
|
42663
|
+
var { join: join11 } = __require("path");
|
|
42664
42664
|
var platform2 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
42665
42665
|
var isWindows = platform2 === "win32";
|
|
42666
42666
|
module.exports = () => {
|
|
@@ -42669,7 +42669,7 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
42669
42669
|
const getDirs = (path7) => {
|
|
42670
42670
|
const dirs = path7.split("/").slice(0, -1).reduce((set, path8) => {
|
|
42671
42671
|
if (set.length) {
|
|
42672
|
-
path8 =
|
|
42672
|
+
path8 = join11(set[set.length - 1], path8);
|
|
42673
42673
|
}
|
|
42674
42674
|
set.push(path8 || "/");
|
|
42675
42675
|
return set;
|
|
@@ -42737,7 +42737,7 @@ var require_path_reservations = __commonJS((exports, module) => {
|
|
|
42737
42737
|
};
|
|
42738
42738
|
const reserve = (paths, fn) => {
|
|
42739
42739
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
|
|
42740
|
-
return stripSlashes(
|
|
42740
|
+
return stripSlashes(join11(normalize(p2))).toLowerCase();
|
|
42741
42741
|
});
|
|
42742
42742
|
const dirs = new Set(paths.map((path7) => getDirs(path7)).reduce((a, b3) => a.concat(b3)));
|
|
42743
42743
|
reservations.set(fn, { dirs, paths });
|
|
@@ -214641,8 +214641,25 @@ function parseTimeout(timeout) {
|
|
|
214641
214641
|
}
|
|
214642
214642
|
// ../shared/dist/utils/version.js
|
|
214643
214643
|
var import_picocolors5 = __toESM(require_picocolors(), 1);
|
|
214644
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
214645
|
+
import { join as join5, dirname } from "path";
|
|
214646
|
+
import { fileURLToPath } from "url";
|
|
214647
|
+
var __filename = "/Users/keithgroves/projects/enact/enact-cli/packages/shared/dist/utils/version.js";
|
|
214644
214648
|
function showVersion() {
|
|
214645
|
-
|
|
214649
|
+
let version = "0.0.1-dev";
|
|
214650
|
+
try {
|
|
214651
|
+
if (process.env.npm_package_version) {
|
|
214652
|
+
version = process.env.npm_package_version;
|
|
214653
|
+
} else {
|
|
214654
|
+
const currentFile = typeof __filename !== "undefined" ? __filename : fileURLToPath(import.meta.url);
|
|
214655
|
+
const sharedDir = dirname(dirname(dirname(currentFile)));
|
|
214656
|
+
const packageJsonPath = join5(sharedDir, "package.json");
|
|
214657
|
+
const packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf8"));
|
|
214658
|
+
version = packageJson.version;
|
|
214659
|
+
}
|
|
214660
|
+
} catch (error) {
|
|
214661
|
+
version = "1.0.14";
|
|
214662
|
+
}
|
|
214646
214663
|
const versionText = `v${version}`;
|
|
214647
214664
|
console.error(`
|
|
214648
214665
|
${import_picocolors5.default.bold("Enact CLI")} ${import_picocolors5.default.cyan(versionText)}
|
|
@@ -214653,10 +214670,10 @@ ${import_picocolors5.default.dim("A tool to create and publish enact documents."
|
|
|
214653
214670
|
var import_picocolors6 = __toESM(require_picocolors(), 1);
|
|
214654
214671
|
import { existsSync as existsSync4 } from "fs";
|
|
214655
214672
|
import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir3 } from "fs/promises";
|
|
214656
|
-
import { join as
|
|
214673
|
+
import { join as join6 } from "path";
|
|
214657
214674
|
import { homedir as homedir4 } from "os";
|
|
214658
|
-
var CONFIG_DIR4 =
|
|
214659
|
-
var CONFIG_FILE2 =
|
|
214675
|
+
var CONFIG_DIR4 = join6(homedir4(), ".enact");
|
|
214676
|
+
var CONFIG_FILE2 = join6(CONFIG_DIR4, "config.json");
|
|
214660
214677
|
async function handleRemoteCommand(args, options) {
|
|
214661
214678
|
if (options.help || !args[0]) {
|
|
214662
214679
|
console.error(`
|
|
@@ -216399,21 +216416,21 @@ async function handleSignToolCommand(args, options) {
|
|
|
216399
216416
|
var import_picocolors10 = __toESM(require_picocolors(), 1);
|
|
216400
216417
|
import { existsSync as existsSync8 } from "fs";
|
|
216401
216418
|
import { readFile as readFile5, writeFile as writeFile5, mkdir as mkdir5 } from "fs/promises";
|
|
216402
|
-
import { join as
|
|
216419
|
+
import { join as join9, dirname as dirname2 } from "path";
|
|
216403
216420
|
import { homedir as homedir5 } from "os";
|
|
216404
|
-
var CONFIG_DIR5 =
|
|
216405
|
-
var ENV_BASE_DIR =
|
|
216421
|
+
var CONFIG_DIR5 = join9(homedir5(), ".enact");
|
|
216422
|
+
var ENV_BASE_DIR = join9(CONFIG_DIR5, "env");
|
|
216406
216423
|
function getPackageEnvPath2(packageName) {
|
|
216407
216424
|
const parts = packageName.split("/");
|
|
216408
216425
|
if (parts.length < 2) {
|
|
216409
216426
|
throw new Error('Package name must be in format "org/package" or "org/package/tool"');
|
|
216410
216427
|
}
|
|
216411
216428
|
const namespace = parts.slice(0, -1).join("/");
|
|
216412
|
-
return
|
|
216429
|
+
return join9(ENV_BASE_DIR, namespace, ".env");
|
|
216413
216430
|
}
|
|
216414
216431
|
async function ensurePackageEnvDir(packageName) {
|
|
216415
216432
|
const envFile = getPackageEnvPath2(packageName);
|
|
216416
|
-
const envDir =
|
|
216433
|
+
const envDir = dirname2(envFile);
|
|
216417
216434
|
if (!existsSync8(envDir)) {
|
|
216418
216435
|
await mkdir5(envDir, { recursive: true });
|
|
216419
216436
|
}
|
|
@@ -216477,7 +216494,7 @@ async function listPackageNamespaces() {
|
|
|
216477
216494
|
let scanDirectory = function(dir, prefix = "") {
|
|
216478
216495
|
const items = fs3.readdirSync(dir);
|
|
216479
216496
|
for (const item of items) {
|
|
216480
|
-
const itemPath =
|
|
216497
|
+
const itemPath = join9(dir, item);
|
|
216481
216498
|
const stat = fs3.statSync(itemPath);
|
|
216482
216499
|
if (stat.isDirectory()) {
|
|
216483
216500
|
const currentPath = prefix ? `${prefix}/${item}` : item;
|
|
@@ -216740,7 +216757,7 @@ Use "enact env list <package>" to see variables for a specific package.`));
|
|
|
216740
216757
|
var import_picocolors11 = __toESM(require_picocolors(), 1);
|
|
216741
216758
|
import { existsSync as existsSync9 } from "fs";
|
|
216742
216759
|
import { readFile as readFile6, writeFile as writeFile6, mkdir as mkdir6 } from "fs/promises";
|
|
216743
|
-
import { join as
|
|
216760
|
+
import { join as join10 } from "path";
|
|
216744
216761
|
import { homedir as homedir6 } from "os";
|
|
216745
216762
|
import { platform } from "os";
|
|
216746
216763
|
import { exec as exec2 } from "child_process";
|
|
@@ -216750,33 +216767,33 @@ var MCP_CLIENTS = {
|
|
|
216750
216767
|
"claude-desktop": {
|
|
216751
216768
|
name: "Claude Desktop",
|
|
216752
216769
|
configPaths: {
|
|
216753
|
-
darwin:
|
|
216754
|
-
win32:
|
|
216755
|
-
linux:
|
|
216770
|
+
darwin: join10(homedir6(), "Library/Application Support/Claude/claude_desktop_config.json"),
|
|
216771
|
+
win32: join10(process.env.APPDATA || "", "Claude/claude_desktop_config.json"),
|
|
216772
|
+
linux: join10(homedir6(), ".config/claude/claude_desktop_config.json")
|
|
216756
216773
|
}
|
|
216757
216774
|
},
|
|
216758
216775
|
"claude-code": {
|
|
216759
216776
|
name: "Claude Code",
|
|
216760
216777
|
configPaths: {
|
|
216761
|
-
darwin:
|
|
216762
|
-
win32:
|
|
216763
|
-
linux:
|
|
216778
|
+
darwin: join10(homedir6(), ".claude.json"),
|
|
216779
|
+
win32: join10(homedir6(), ".claude.json"),
|
|
216780
|
+
linux: join10(homedir6(), ".claude.json")
|
|
216764
216781
|
}
|
|
216765
216782
|
},
|
|
216766
216783
|
vscode: {
|
|
216767
216784
|
name: "VS Code MCP",
|
|
216768
216785
|
configPaths: {
|
|
216769
|
-
darwin:
|
|
216770
|
-
win32:
|
|
216771
|
-
linux:
|
|
216786
|
+
darwin: join10(homedir6(), "Library/Application Support/Code/User/settings.json"),
|
|
216787
|
+
win32: join10(process.env.APPDATA || "", "Code/User/settings.json"),
|
|
216788
|
+
linux: join10(homedir6(), ".config/Code/User/settings.json")
|
|
216772
216789
|
}
|
|
216773
216790
|
},
|
|
216774
216791
|
goose: {
|
|
216775
216792
|
name: "Goose AI",
|
|
216776
216793
|
configPaths: {
|
|
216777
|
-
darwin:
|
|
216778
|
-
win32:
|
|
216779
|
-
linux:
|
|
216794
|
+
darwin: join10(homedir6(), ".config/goose/config.yaml"),
|
|
216795
|
+
win32: join10(process.env.APPDATA || "", "Block/goose/config/config.yaml"),
|
|
216796
|
+
linux: join10(homedir6(), ".config/goose/config.yaml")
|
|
216780
216797
|
}
|
|
216781
216798
|
}
|
|
216782
216799
|
};
|
|
@@ -216918,7 +216935,7 @@ async function detectMcpClients() {
|
|
|
216918
216935
|
await execAsync2("goose --version");
|
|
216919
216936
|
isGooseAvailable = true;
|
|
216920
216937
|
} catch (error) {
|
|
216921
|
-
const configDir =
|
|
216938
|
+
const configDir = join10(configPath, "..");
|
|
216922
216939
|
if (existsSync9(configDir)) {
|
|
216923
216940
|
isGooseAvailable = true;
|
|
216924
216941
|
}
|
|
@@ -216949,7 +216966,7 @@ async function installMcpServer(client) {
|
|
|
216949
216966
|
const extensionName = "Enact Tools";
|
|
216950
216967
|
const yaml = await Promise.resolve().then(() => __toESM(require_dist(), 1));
|
|
216951
216968
|
const configPath2 = client.configPath;
|
|
216952
|
-
const configDir2 =
|
|
216969
|
+
const configDir2 = join10(configPath2, "..");
|
|
216953
216970
|
await mkdir6(configDir2, { recursive: true });
|
|
216954
216971
|
let config3 = {};
|
|
216955
216972
|
if (existsSync9(configPath2)) {
|
|
@@ -216981,7 +216998,7 @@ async function installMcpServer(client) {
|
|
|
216981
216998
|
return;
|
|
216982
216999
|
}
|
|
216983
217000
|
const configPath = client.configPath;
|
|
216984
|
-
const configDir =
|
|
217001
|
+
const configDir = join10(configPath, "..");
|
|
216985
217002
|
await mkdir6(configDir, { recursive: true });
|
|
216986
217003
|
let config2 = {};
|
|
216987
217004
|
if (existsSync9(configPath)) {
|
|
@@ -217060,7 +217077,7 @@ async function loadConfig(global2 = false) {
|
|
|
217060
217077
|
const configPath = getConfigPath(global2);
|
|
217061
217078
|
if (!existsSync10(configPath)) {
|
|
217062
217079
|
return {
|
|
217063
|
-
executionProvider: "
|
|
217080
|
+
executionProvider: "dagger",
|
|
217064
217081
|
defaultTimeout: "30s",
|
|
217065
217082
|
verificationPolicy: "permissive"
|
|
217066
217083
|
};
|
|
@@ -217069,7 +217086,7 @@ async function loadConfig(global2 = false) {
|
|
|
217069
217086
|
const content = await fs3.readFile(configPath, "utf8");
|
|
217070
217087
|
const config2 = JSON.parse(content);
|
|
217071
217088
|
return {
|
|
217072
|
-
executionProvider: "
|
|
217089
|
+
executionProvider: "dagger",
|
|
217073
217090
|
defaultTimeout: "30s",
|
|
217074
217091
|
verificationPolicy: "permissive",
|
|
217075
217092
|
...config2
|
|
@@ -217077,7 +217094,7 @@ async function loadConfig(global2 = false) {
|
|
|
217077
217094
|
} catch (error) {
|
|
217078
217095
|
console.error(import_picocolors12.default.red(`Error reading config file: ${error}`));
|
|
217079
217096
|
return {
|
|
217080
|
-
executionProvider: "
|
|
217097
|
+
executionProvider: "dagger",
|
|
217081
217098
|
defaultTimeout: "30s",
|
|
217082
217099
|
verificationPolicy: "permissive"
|
|
217083
217100
|
};
|
|
@@ -217138,7 +217155,7 @@ async function listConfig(global2 = false) {
|
|
|
217138
217155
|
}
|
|
217139
217156
|
async function resetConfig(global2 = false) {
|
|
217140
217157
|
const defaultConfig = {
|
|
217141
|
-
executionProvider: "
|
|
217158
|
+
executionProvider: "dagger",
|
|
217142
217159
|
defaultTimeout: "30s",
|
|
217143
217160
|
verificationPolicy: "permissive"
|
|
217144
217161
|
};
|
|
@@ -217152,8 +217169,8 @@ async function interactiveConfig(global2 = false) {
|
|
|
217152
217169
|
const executionProvider = await ve({
|
|
217153
217170
|
message: "Select execution provider:",
|
|
217154
217171
|
options: [
|
|
217155
|
-
{ value: "
|
|
217156
|
-
{ value: "
|
|
217172
|
+
{ value: "dagger", label: "Dagger (containerized execution)" },
|
|
217173
|
+
{ value: "direct", label: "Direct (run commands directly on host)" }
|
|
217157
217174
|
],
|
|
217158
217175
|
initialValue: currentConfig.executionProvider
|
|
217159
217176
|
});
|
|
@@ -217237,7 +217254,7 @@ Options:`);
|
|
|
217237
217254
|
console.log(` --help Show this help
|
|
217238
217255
|
`);
|
|
217239
217256
|
console.log("Configuration Keys:");
|
|
217240
|
-
console.log(" executionProvider
|
|
217257
|
+
console.log(" executionProvider dagger | direct");
|
|
217241
217258
|
console.log(" verificationPolicy permissive | enterprise | paranoid");
|
|
217242
217259
|
console.log(" defaultTimeout 30s | 5m | 1h");
|
|
217243
217260
|
console.log(" daggerOptions.baseImage node:20-slim");
|
|
@@ -217300,7 +217317,7 @@ async function getCurrentConfig(global2 = false) {
|
|
|
217300
217317
|
}
|
|
217301
217318
|
|
|
217302
217319
|
// src/commands/core.ts
|
|
217303
|
-
import { readFileSync as
|
|
217320
|
+
import { readFileSync as readFileSync7, existsSync as existsSync12 } from "fs";
|
|
217304
217321
|
import { readFile as readFile7 } from "fs/promises";
|
|
217305
217322
|
import { resolve, extname } from "path";
|
|
217306
217323
|
|
|
@@ -218428,7 +218445,7 @@ function stripFinalNewline(input) {
|
|
|
218428
218445
|
// ../../node_modules/npm-run-path/index.js
|
|
218429
218446
|
import process3 from "node:process";
|
|
218430
218447
|
import path5 from "node:path";
|
|
218431
|
-
import { fileURLToPath } from "node:url";
|
|
218448
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
218432
218449
|
|
|
218433
218450
|
// ../../node_modules/npm-run-path/node_modules/path-key/index.js
|
|
218434
218451
|
function pathKey(options = {}) {
|
|
@@ -218450,7 +218467,7 @@ var npmRunPath = ({
|
|
|
218450
218467
|
execPath = process3.execPath,
|
|
218451
218468
|
addExecPath = true
|
|
218452
218469
|
} = {}) => {
|
|
218453
|
-
const cwdString = cwd instanceof URL ?
|
|
218470
|
+
const cwdString = cwd instanceof URL ? fileURLToPath2(cwd) : cwd;
|
|
218454
218471
|
const cwdPath = path5.resolve(cwdString);
|
|
218455
218472
|
const result = [];
|
|
218456
218473
|
if (preferLocal) {
|
|
@@ -218470,7 +218487,7 @@ var applyPreferLocal = (result, cwdPath) => {
|
|
|
218470
218487
|
}
|
|
218471
218488
|
};
|
|
218472
218489
|
var applyExecPath = (result, execPath, cwdPath) => {
|
|
218473
|
-
const execPathString = execPath instanceof URL ?
|
|
218490
|
+
const execPathString = execPath instanceof URL ? fileURLToPath2(execPath) : execPath;
|
|
218474
218491
|
result.push(path5.resolve(cwdPath, execPathString, ".."));
|
|
218475
218492
|
};
|
|
218476
218493
|
var npmRunPathEnv = ({ env: env2 = process3.env, ...options } = {}) => {
|
|
@@ -219348,7 +219365,7 @@ var addPipeMethods = (spawned) => {
|
|
|
219348
219365
|
};
|
|
219349
219366
|
|
|
219350
219367
|
// ../../node_modules/execa/lib/stream.js
|
|
219351
|
-
import { createReadStream, readFileSync as
|
|
219368
|
+
import { createReadStream, readFileSync as readFileSync5 } from "node:fs";
|
|
219352
219369
|
import { setTimeout as setTimeout2 } from "node:timers/promises";
|
|
219353
219370
|
|
|
219354
219371
|
// ../../node_modules/get-stream/source/contents.js
|
|
@@ -219544,7 +219561,7 @@ var getInputSync = ({ input, inputFile }) => {
|
|
|
219544
219561
|
return input;
|
|
219545
219562
|
}
|
|
219546
219563
|
validateInputOptions(input);
|
|
219547
|
-
return
|
|
219564
|
+
return readFileSync5(inputFile);
|
|
219548
219565
|
};
|
|
219549
219566
|
var handleInputSync = (options) => {
|
|
219550
219567
|
const input = getInputSync(options);
|
|
@@ -221147,7 +221164,7 @@ import * as os5 from "os";
|
|
|
221147
221164
|
import * as path7 from "path";
|
|
221148
221165
|
import * as process8 from "process";
|
|
221149
221166
|
import readline from "readline";
|
|
221150
|
-
import { fileURLToPath as
|
|
221167
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
221151
221168
|
|
|
221152
221169
|
// ../../node_modules/@dagger.io/dagger/dist/common/utils.js
|
|
221153
221170
|
var import_node_color_log = __toESM(require_node_color_log(), 1);
|
|
@@ -221360,7 +221377,7 @@ class Bin {
|
|
|
221360
221377
|
}
|
|
221361
221378
|
getSDKVersion() {
|
|
221362
221379
|
const currentFileUrl = import.meta.url;
|
|
221363
|
-
const currentFilePath =
|
|
221380
|
+
const currentFilePath = fileURLToPath3(currentFileUrl);
|
|
221364
221381
|
let currentPath = path7.dirname(currentFilePath);
|
|
221365
221382
|
while (currentPath !== path7.parse(currentPath).root) {
|
|
221366
221383
|
const packageJsonPath = path7.join(currentPath, "package.json");
|
|
@@ -226013,7 +226030,7 @@ var func = registry.func;
|
|
|
226013
226030
|
var field = registry.field;
|
|
226014
226031
|
// ../../node_modules/@dagger.io/dagger/dist/entrypoint/entrypoint.js
|
|
226015
226032
|
import * as path8 from "path";
|
|
226016
|
-
import { fileURLToPath as
|
|
226033
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
226017
226034
|
|
|
226018
226035
|
// ../../node_modules/@dagger.io/dagger/dist/introspector/scanner/scan.js
|
|
226019
226036
|
var import_typescript3 = __toESM(require_typescript(), 1);
|
|
@@ -226025,7 +226042,7 @@ var import_typescript2 = __toESM(require_typescript(), 1);
|
|
|
226025
226042
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
226026
226043
|
|
|
226027
226044
|
// ../../node_modules/@dagger.io/dagger/dist/entrypoint/entrypoint.js
|
|
226028
|
-
var __filename2 =
|
|
226045
|
+
var __filename2 = fileURLToPath4(import.meta.url);
|
|
226029
226046
|
var __dirname2 = path8.dirname(__filename2);
|
|
226030
226047
|
var moduleSrcDirectory = `${__dirname2}/../../src/`;
|
|
226031
226048
|
// ../shared/dist/core/DaggerExecutionProvider.js
|
|
@@ -226832,7 +226849,7 @@ class EnactCore {
|
|
|
226832
226849
|
this.options = {
|
|
226833
226850
|
apiUrl: "https://enact.tools",
|
|
226834
226851
|
supabaseUrl: "https://xjnhhxwxovjifdxdwzih.supabase.co",
|
|
226835
|
-
executionProvider: "
|
|
226852
|
+
executionProvider: "dagger",
|
|
226836
226853
|
defaultTimeout: "30s",
|
|
226837
226854
|
verificationPolicy: "permissive",
|
|
226838
226855
|
...options
|
|
@@ -227282,11 +227299,11 @@ class EnactCore {
|
|
|
227282
227299
|
}
|
|
227283
227300
|
createExecutionProvider() {
|
|
227284
227301
|
switch (this.options.executionProvider) {
|
|
227285
|
-
case "dagger":
|
|
227286
|
-
return new DaggerExecutionProvider(this.options.daggerOptions);
|
|
227287
227302
|
case "direct":
|
|
227288
|
-
default:
|
|
227289
227303
|
return new DirectExecutionProvider;
|
|
227304
|
+
case "dagger":
|
|
227305
|
+
default:
|
|
227306
|
+
return new DaggerExecutionProvider(this.options.daggerOptions);
|
|
227290
227307
|
}
|
|
227291
227308
|
}
|
|
227292
227309
|
switchExecutionProvider(provider, options) {
|
|
@@ -227518,7 +227535,7 @@ async function loadLocalTool(filePath) {
|
|
|
227518
227535
|
throw new Error(`Tool file not found: ${resolvedPath}`);
|
|
227519
227536
|
}
|
|
227520
227537
|
try {
|
|
227521
|
-
const fileContent =
|
|
227538
|
+
const fileContent = readFileSync7(resolvedPath, "utf8");
|
|
227522
227539
|
const toolData = import_yaml3.default.parse(fileContent);
|
|
227523
227540
|
const toolDefinition = {
|
|
227524
227541
|
...toolData,
|