@kitman-sh/cli 0.52.0 → 0.54.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.
- package/dist/{chunk-h5ydhdhx.js → chunk-0my9yc76.js} +72 -72
- package/dist/{chunk-kt26vpwf.js → chunk-0yqsrr9j.js} +9 -9
- package/dist/{chunk-eqh0h088.js → chunk-176b6p9g.js} +117 -42
- package/dist/{chunk-wb04fv2s.js → chunk-47ftjd7j.js} +50 -32
- package/dist/{chunk-qsbq9gvr.js → chunk-7eqzzcvj.js} +200 -347
- package/dist/{chunk-mmt6xq48.js → chunk-b0zap0sc.js} +2 -2
- package/dist/{chunk-2t1hcdeq.js → chunk-ctrk0mrt.js} +20 -20
- package/dist/{chunk-zb4t1yrt.js → chunk-e4ced6vj.js} +102 -60
- package/dist/{chunk-bhz25x76.js → chunk-fd9cfazr.js} +3 -3
- package/dist/{chunk-xbqd3kqc.js → chunk-h52fkf0n.js} +19 -19
- package/dist/{chunk-5yygjn0k.js → chunk-hnfq9egr.js} +1 -1
- package/dist/{chunk-tqspx38s.js → chunk-hs9frges.js} +2 -2
- package/dist/{chunk-bj0zchck.js → chunk-jz2b3htb.js} +193 -35
- package/dist/{chunk-q2z8rct0.js → chunk-keveyqbv.js} +4 -4
- package/dist/{chunk-a40yta1r.js → chunk-kpgkhx9j.js} +3 -3
- package/dist/{chunk-trtgab3h.js → chunk-p77428sa.js} +11 -19
- package/dist/{chunk-tfznw549.js → chunk-q22ar0q6.js} +2 -2
- package/dist/{chunk-axfp5tzk.js → chunk-sygnhza2.js} +10 -10
- package/dist/{chunk-my9db578.js → chunk-t94stfev.js} +9 -9
- package/dist/{chunk-84qb67e2.js → chunk-wsm4adrn.js} +1 -1
- package/dist/{chunk-chbdcf34.js → chunk-xfhrsdc6.js} +17 -13
- package/dist/{chunk-qjfzcrv5.js → chunk-xs1cdxfn.js} +4 -4
- package/dist/{chunk-wxg9k10v.js → chunk-xwte7af6.js} +1 -1
- package/dist/{chunk-pppryg54.js → chunk-yn5c3tzd.js} +12 -12
- package/dist/{chunk-2nq80r46.js → chunk-z1d5jx6m.js} +14 -60
- package/dist/{chunk-9hde8p6b.js → chunk-zs1maxqg.js} +6 -6
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
empty4,
|
|
13
13
|
add,
|
|
14
14
|
getOrUndefined2,
|
|
15
|
-
|
|
15
|
+
get4,
|
|
16
16
|
merge3,
|
|
17
17
|
Reference,
|
|
18
18
|
fromInputUnsafe,
|
|
@@ -139,7 +139,13 @@ import {
|
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json,
|
|
141
141
|
encodeUnknownJsonStringSync
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-e4ced6vj.js";
|
|
143
|
+
import {
|
|
144
|
+
currentTimeMillis,
|
|
145
|
+
getCurrent,
|
|
146
|
+
runForEach,
|
|
147
|
+
FileSystem
|
|
148
|
+
} from "./chunk-jz2b3htb.js";
|
|
143
149
|
import {
|
|
144
150
|
WebCrypto,
|
|
145
151
|
makeUnsafe,
|
|
@@ -180,24 +186,18 @@ import {
|
|
|
180
186
|
StepManifest,
|
|
181
187
|
KitSetup,
|
|
182
188
|
RunnerRpcError
|
|
183
|
-
} from "./chunk-
|
|
184
|
-
import {
|
|
185
|
-
currentTimeMillis,
|
|
186
|
-
getCurrent,
|
|
187
|
-
runForEach,
|
|
188
|
-
FileSystem
|
|
189
|
-
} from "./chunk-bj0zchck.js";
|
|
189
|
+
} from "./chunk-7eqzzcvj.js";
|
|
190
190
|
import {
|
|
191
191
|
splitQuestionOptions,
|
|
192
192
|
recommendationProblem,
|
|
193
193
|
questionAdvice
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-hs9frges.js";
|
|
195
195
|
import {
|
|
196
196
|
guard,
|
|
197
197
|
Id,
|
|
198
198
|
Timestamp,
|
|
199
199
|
ActorType
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-xwte7af6.js";
|
|
201
201
|
var __defProp = Object.defineProperty;
|
|
202
202
|
var __returnValue = (v) => v;
|
|
203
203
|
function __exportSetter(name, newValue) {
|
|
@@ -664,6 +664,10 @@ var jsonSchemaOf = (loop, schema) => try_2({
|
|
|
664
664
|
catch: (error) => new ManifestInvalid({ loop, message: `Schema has no JSON Schema: ${String(error)}` })
|
|
665
665
|
}).pipe(flatMap3((document) => decodeUnknownEffect2(JsonObjectSchema)({ ...document.schema, $defs: document.definitions }).pipe(mapError2((error) => new ManifestInvalid({ loop, message: error.message })))));
|
|
666
666
|
var JsonObjectSchema = Record(String4, Json);
|
|
667
|
+
var IntentDeclaration = Union([
|
|
668
|
+
Literal("task"),
|
|
669
|
+
Struct({ goal: String4, doneWhen: optionalKey(ArraySchema(String4)) })
|
|
670
|
+
]);
|
|
667
671
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workflow/internal/crypto.js
|
|
668
672
|
var encoder = /* @__PURE__ */ new TextEncoder;
|
|
669
673
|
var makeHashDigest = (original) => WebCrypto.use((crypto) => map9(webCryptoDigest(crypto, sha256, encoder.encode(original)), (bytes) => encode(bytes).slice(0, 32)));
|
|
@@ -774,7 +778,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
|
|
|
774
778
|
[ResultTypeId] = ResultTypeId;
|
|
775
779
|
}
|
|
776
780
|
var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
|
|
777
|
-
const instance =
|
|
781
|
+
const instance = get4(context, InstanceTag);
|
|
778
782
|
return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
|
|
779
783
|
releaseActivityUnsafe(registration);
|
|
780
784
|
const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
|
|
@@ -1492,7 +1496,7 @@ var scopingActivities = (engine) => ({
|
|
|
1492
1496
|
}),
|
|
1493
1497
|
activityExecute: (activity, attempt) => gen(function* () {
|
|
1494
1498
|
const scope = yield* StepScope;
|
|
1495
|
-
if (scope === "" ||
|
|
1499
|
+
if (scope === "" || get4(activity.annotations, ActivityNamed))
|
|
1496
1500
|
return yield* engine.activityExecute(activity, attempt);
|
|
1497
1501
|
return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
|
|
1498
1502
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-z1d5jx6m.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-7eqzzcvj.js";
|
|
16
|
+
import"./chunk-jz2b3htb.js";
|
|
17
|
+
import"./chunk-e4ced6vj.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
currentTimeMillis,
|
|
4
|
+
make10,
|
|
5
|
+
runForEach,
|
|
6
|
+
toPull,
|
|
7
|
+
FileSystem,
|
|
8
|
+
compiled2
|
|
9
|
+
} from "./chunk-jz2b3htb.js";
|
|
2
10
|
import {
|
|
3
11
|
isSome,
|
|
4
12
|
getOrElse,
|
|
@@ -35,19 +43,11 @@ import {
|
|
|
35
43
|
isJsonObject,
|
|
36
44
|
isString2,
|
|
37
45
|
encodeUnknownJsonStringSync
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
currentTimeMillis,
|
|
41
|
-
make10,
|
|
42
|
-
runForEach,
|
|
43
|
-
toPull,
|
|
44
|
-
FileSystem,
|
|
45
|
-
compiled2
|
|
46
|
-
} from "./chunk-bj0zchck.js";
|
|
46
|
+
} from "./chunk-e4ced6vj.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
make2
|
|
50
|
+
} from "./chunk-z1d5jx6m.js";
|
|
51
51
|
|
|
52
52
|
// packages/agent-runtime/src/opencode-store.ts
|
|
53
53
|
import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
|
|
@@ -265,7 +265,7 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
265
265
|
var spawnReader = (request) => gen(function* () {
|
|
266
266
|
const spawner = yield* ChildProcessSpawner;
|
|
267
267
|
const [command, ...args] = opencodeReaderCommand();
|
|
268
|
-
return yield* spawner.spawn(
|
|
268
|
+
return yield* spawner.spawn(make2(command, args, {
|
|
269
269
|
stdin: make10(new TextEncoder().encode(request)),
|
|
270
270
|
stderr: "ignore",
|
|
271
271
|
extendEnv: false,
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
isString,
|
|
4
|
-
hasProperty,
|
|
5
|
-
symbol,
|
|
6
|
-
hash,
|
|
7
|
-
symbol2,
|
|
8
|
-
equals,
|
|
9
3
|
BaseProto,
|
|
10
|
-
PipeInspectableProto,
|
|
11
4
|
Prototype,
|
|
12
5
|
some,
|
|
13
6
|
Service2,
|
|
@@ -21,8 +14,11 @@ import {
|
|
|
21
14
|
andThen2,
|
|
22
15
|
map9,
|
|
23
16
|
raceFirst,
|
|
24
|
-
scoped
|
|
25
|
-
|
|
17
|
+
scoped,
|
|
18
|
+
isRedacted,
|
|
19
|
+
make16,
|
|
20
|
+
value
|
|
21
|
+
} from "./chunk-e4ced6vj.js";
|
|
26
22
|
import {
|
|
27
23
|
unwrap,
|
|
28
24
|
drainFork,
|
|
@@ -31,49 +27,7 @@ import {
|
|
|
31
27
|
runCollect,
|
|
32
28
|
runDrain,
|
|
33
29
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
|
|
36
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
-
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
-
var value2 = (self) => {
|
|
39
|
-
if (redactedRegistry.has(self)) {
|
|
40
|
-
return redactedRegistry.get(self);
|
|
41
|
-
} else {
|
|
42
|
-
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
-
var TypeId = "~effect/Redacted";
|
|
48
|
-
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
-
var make = (value, options) => {
|
|
50
|
-
const self = Object.create(Proto);
|
|
51
|
-
if (options?.label) {
|
|
52
|
-
self.label = options.label;
|
|
53
|
-
}
|
|
54
|
-
redactedRegistry.set(self, value);
|
|
55
|
-
return self;
|
|
56
|
-
};
|
|
57
|
-
var Proto = {
|
|
58
|
-
[TypeId]: {
|
|
59
|
-
_A: (_) => _
|
|
60
|
-
},
|
|
61
|
-
label: undefined,
|
|
62
|
-
...PipeInspectableProto,
|
|
63
|
-
toJSON() {
|
|
64
|
-
return this.toString();
|
|
65
|
-
},
|
|
66
|
-
toString() {
|
|
67
|
-
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
-
},
|
|
69
|
-
[symbol]() {
|
|
70
|
-
return hash(redactedRegistry.get(this));
|
|
71
|
-
},
|
|
72
|
-
[symbol2](that) {
|
|
73
|
-
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var value = value2;
|
|
30
|
+
} from "./chunk-jz2b3htb.js";
|
|
77
31
|
|
|
78
32
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
79
33
|
function nominal() {
|
|
@@ -101,7 +55,7 @@ var HandleProto = {
|
|
|
101
55
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
102
56
|
...params
|
|
103
57
|
}, HandleProto);
|
|
104
|
-
var
|
|
58
|
+
var make = (spawn) => {
|
|
105
59
|
const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
106
60
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
107
61
|
return ChildProcessSpawner.of({
|
|
@@ -222,7 +176,7 @@ var parseTemplate = (texts, values) => {
|
|
|
222
176
|
if (word.length === 0)
|
|
223
177
|
return;
|
|
224
178
|
const value = word.map(unwrap2).join("");
|
|
225
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
179
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
|
|
226
180
|
word = [];
|
|
227
181
|
plain = true;
|
|
228
182
|
braceDepth = 0;
|
|
@@ -312,23 +266,23 @@ var parseTemplate = (texts, values) => {
|
|
|
312
266
|
};
|
|
313
267
|
|
|
314
268
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
315
|
-
var
|
|
316
|
-
var
|
|
269
|
+
var TypeId = "~effect/process/ChildProcess";
|
|
270
|
+
var Proto = {
|
|
317
271
|
.../* @__PURE__ */ Prototype({
|
|
318
272
|
label: "Command",
|
|
319
273
|
evaluate(fiber) {
|
|
320
274
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
321
275
|
}
|
|
322
276
|
}),
|
|
323
|
-
[
|
|
277
|
+
[TypeId]: TypeId
|
|
324
278
|
};
|
|
325
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
279
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
|
|
326
280
|
_tag: "StandardCommand",
|
|
327
281
|
command,
|
|
328
282
|
args,
|
|
329
283
|
options
|
|
330
284
|
});
|
|
331
|
-
var
|
|
285
|
+
var make2 = function make(...args) {
|
|
332
286
|
if (isTemplateString(args[0])) {
|
|
333
287
|
const [templates, ...expressions] = args;
|
|
334
288
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -386,4 +340,4 @@ var shellScript = (templates, expressions) => {
|
|
|
386
340
|
}
|
|
387
341
|
return script;
|
|
388
342
|
};
|
|
389
|
-
export {
|
|
343
|
+
export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-0yqsrr9j.js";
|
|
8
|
+
import"./chunk-ctrk0mrt.js";
|
|
9
|
+
import"./chunk-7eqzzcvj.js";
|
|
10
|
+
import"./chunk-xwte7af6.js";
|
|
11
|
+
import"./chunk-jz2b3htb.js";
|
|
12
|
+
import"./chunk-e4ced6vj.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-b0zap0sc.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-fd9cfazr.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-keveyqbv.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-47ftjd7j.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|