@kitman-sh/cli 0.10.91 → 0.10.93
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-d82t42vr.js → chunk-15w92pn6.js} +16 -16
- package/dist/{chunk-5fxxg02f.js → chunk-2kr43ps6.js} +144 -337
- package/dist/{chunk-w0sehmpd.js → chunk-3r7ahnwy.js} +60 -14
- package/dist/{chunk-fgnfx5mw.js → chunk-4psvc86s.js} +212 -7
- package/dist/{chunk-6h0rz0zk.js → chunk-6aa8y66v.js} +4 -4
- package/dist/{chunk-sb8c2sgy.js → chunk-8tq7n7wc.js} +16 -16
- package/dist/{chunk-c3k32vw4.js → chunk-a244myqw.js} +1 -1
- package/dist/{chunk-cmtvcbxr.js → chunk-abf4m4b2.js} +5 -5
- package/dist/{chunk-dstm8aen.js → chunk-ampzxrqe.js} +28 -70
- package/dist/{chunk-k4fvnphp.js → chunk-bk3dpjxq.js} +1 -1
- package/dist/{chunk-tmbhak7y.js → chunk-c9wzakrx.js} +8 -8
- package/dist/{chunk-d9wjvvbc.js → chunk-dh3108wk.js} +5 -5
- package/dist/{chunk-mbqeakm1.js → chunk-et6qa95h.js} +1 -1
- package/dist/{chunk-hsf2sj69.js → chunk-fv6kgtze.js} +2 -2
- package/dist/{chunk-9m9cv82t.js → chunk-g3r5xp0t.js} +2 -2
- package/dist/{chunk-947btdv6.js → chunk-mcpesyz2.js} +3 -3
- package/dist/{chunk-2wsyg2g7.js → chunk-mjn42bxn.js} +32 -32
- package/dist/{chunk-gykt7zjx.js → chunk-q3nygncv.js} +7 -7
- package/dist/{chunk-gncygm43.js → chunk-qacvrg7j.js} +9 -9
- package/dist/{chunk-rmsm8vnc.js → chunk-rdv42ygn.js} +4 -4
- package/dist/{chunk-r6d67qqa.js → chunk-s3qgchay.js} +41 -33
- package/dist/{chunk-5tqy48a3.js → chunk-t7ncjd6s.js} +10 -10
- package/dist/{chunk-y1tnxz9f.js → chunk-tpdcq44c.js} +25 -25
- package/dist/{chunk-25q7mg6g.js → chunk-vjcn82g3.js} +17 -17
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString2,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map8,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-dstm8aen.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-ampzxrqe.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-vjcn82g3.js";
|
|
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${isString2(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;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
fnUntraced,
|
|
39
39
|
makeFormatterStandardSchemaV1,
|
|
40
40
|
transform,
|
|
41
|
+
declare,
|
|
41
42
|
is,
|
|
42
43
|
encodeEffect,
|
|
43
44
|
isSchema,
|
|
@@ -45,6 +46,7 @@ import {
|
|
|
45
46
|
optional,
|
|
46
47
|
Literal,
|
|
47
48
|
Never,
|
|
49
|
+
Null,
|
|
48
50
|
String4,
|
|
49
51
|
Boolean2,
|
|
50
52
|
Void,
|
|
@@ -70,15 +72,24 @@ import {
|
|
|
70
72
|
Cause,
|
|
71
73
|
Class2,
|
|
72
74
|
TaggedError2,
|
|
75
|
+
toEquivalence,
|
|
73
76
|
toCodecJson,
|
|
74
77
|
Json
|
|
75
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-ampzxrqe.js";
|
|
76
79
|
import {
|
|
77
80
|
guard
|
|
78
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-et6qa95h.js";
|
|
79
82
|
import {
|
|
80
83
|
currentTimeMillis,
|
|
81
84
|
WebCrypto,
|
|
85
|
+
SafeJson,
|
|
86
|
+
AgentSandboxNetwork,
|
|
87
|
+
AgentEfforts,
|
|
88
|
+
AgentCapabilities,
|
|
89
|
+
LoopDataSchemaRef,
|
|
90
|
+
LoopVersion,
|
|
91
|
+
ProgramLoop,
|
|
92
|
+
AgentFallback,
|
|
82
93
|
ProgramWorkUnit,
|
|
83
94
|
MeasureEvidence,
|
|
84
95
|
CatchUp,
|
|
@@ -90,15 +101,15 @@ import {
|
|
|
90
101
|
bodyUint8Array,
|
|
91
102
|
filterStatusOk,
|
|
92
103
|
HttpClient,
|
|
93
|
-
|
|
94
|
-
|
|
104
|
+
KitName,
|
|
105
|
+
KitDigest,
|
|
95
106
|
KitSetup,
|
|
96
107
|
RunnerRpcError
|
|
97
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-2kr43ps6.js";
|
|
98
109
|
import {
|
|
99
110
|
runForEach,
|
|
100
111
|
FileSystem
|
|
101
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-vjcn82g3.js";
|
|
102
113
|
|
|
103
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
104
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -124,6 +135,200 @@ var sha256 = {
|
|
|
124
135
|
implementation: undefined
|
|
125
136
|
};
|
|
126
137
|
|
|
138
|
+
// packages/core/src/schedule.ts
|
|
139
|
+
var ScheduleFrequency = ["daily", "weekly"];
|
|
140
|
+
var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
|
|
141
|
+
var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
|
|
142
|
+
var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
|
|
143
|
+
var ScheduleCalendarRule = Struct({
|
|
144
|
+
frequency: Literals(ScheduleFrequency),
|
|
145
|
+
hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(23)),
|
|
146
|
+
minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59)),
|
|
147
|
+
second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59))),
|
|
148
|
+
daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(6))).check(isMinLength(1), isMaxLength(7)))
|
|
149
|
+
});
|
|
150
|
+
var ScheduleCronRule = Struct({
|
|
151
|
+
cron: String4.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
|
|
152
|
+
});
|
|
153
|
+
var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
|
|
154
|
+
var cronBounds = [
|
|
155
|
+
[0, 59],
|
|
156
|
+
[0, 23],
|
|
157
|
+
[1, 31],
|
|
158
|
+
[1, 12],
|
|
159
|
+
[0, 7]
|
|
160
|
+
];
|
|
161
|
+
function cronField(field, [min, max]) {
|
|
162
|
+
const values = new Set;
|
|
163
|
+
for (const part of field.split(",")) {
|
|
164
|
+
const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
|
|
165
|
+
if (match === null)
|
|
166
|
+
return;
|
|
167
|
+
const from = match[1] === "*" ? min : Number(match[2]);
|
|
168
|
+
const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
|
|
169
|
+
const step = match[4] === undefined ? 1 : Number(match[4]);
|
|
170
|
+
if (from < min || to > max || from > to || step < 1)
|
|
171
|
+
return;
|
|
172
|
+
for (let value = from;value <= to; value += step)
|
|
173
|
+
values.add(value);
|
|
174
|
+
}
|
|
175
|
+
return values;
|
|
176
|
+
}
|
|
177
|
+
function parseCron(cron) {
|
|
178
|
+
const fields = cron.split(" ");
|
|
179
|
+
const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
|
|
180
|
+
if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
|
|
181
|
+
return;
|
|
182
|
+
return {
|
|
183
|
+
minutes,
|
|
184
|
+
hours,
|
|
185
|
+
days,
|
|
186
|
+
months,
|
|
187
|
+
weekdays: new Set([...weekdays].map((value) => value % 7)),
|
|
188
|
+
dayRestricted: !(fields[2] ?? "").startsWith("*"),
|
|
189
|
+
weekdayRestricted: !(fields[4] ?? "").startsWith("*")
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function isScheduleRule(value) {
|
|
193
|
+
return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
|
|
194
|
+
}
|
|
195
|
+
var ScheduleVersion = Struct({
|
|
196
|
+
contractVersion: Literal("schedule.v1"),
|
|
197
|
+
id: String4.check(isMinLength(1)),
|
|
198
|
+
scheduleId: String4.check(isMinLength(1)),
|
|
199
|
+
workspaceId: String4.check(isMinLength(1)),
|
|
200
|
+
teamId: optionalKey(String4.check(isMinLength(1))),
|
|
201
|
+
loopId: optionalKey(String4.check(isMinLength(1))),
|
|
202
|
+
name: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
|
|
203
|
+
version: Int.check(isGreaterThanOrEqualTo(1)),
|
|
204
|
+
status: Literals(ScheduleVersionStatuses),
|
|
205
|
+
timezone: String4.check(isMinLength(1), isMaxLength(80)),
|
|
206
|
+
rule: ScheduleRule,
|
|
207
|
+
misfirePolicy: Literals(ScheduleMisfirePolicies),
|
|
208
|
+
overlapPolicy: Literals(ScheduleOverlapPolicies),
|
|
209
|
+
maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(200)),
|
|
210
|
+
misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(604800))),
|
|
211
|
+
inputSchemaRef: optionalKey(LoopDataSchemaRef),
|
|
212
|
+
input: optionalKey(SafeJson),
|
|
213
|
+
createdAt: String4.check(isMinLength(1))
|
|
214
|
+
});
|
|
215
|
+
var zones = new Map;
|
|
216
|
+
var resolvedLocalDateTimes = new Map;
|
|
217
|
+
|
|
218
|
+
// packages/core/src/kit-declarations.ts
|
|
219
|
+
var LoopCapabilities = [
|
|
220
|
+
"agent_work",
|
|
221
|
+
"ask",
|
|
222
|
+
"call",
|
|
223
|
+
"verify",
|
|
224
|
+
"change_request",
|
|
225
|
+
"write_back",
|
|
226
|
+
"post_comment",
|
|
227
|
+
"create_tasks",
|
|
228
|
+
"merge_change_request",
|
|
229
|
+
"approve_change_request",
|
|
230
|
+
"publish_release",
|
|
231
|
+
"read_transcripts",
|
|
232
|
+
"read_change_request",
|
|
233
|
+
"measure",
|
|
234
|
+
"claim",
|
|
235
|
+
"propose",
|
|
236
|
+
"read_project",
|
|
237
|
+
"draft_update"
|
|
238
|
+
];
|
|
239
|
+
var JsonObject = Record(String4, Json);
|
|
240
|
+
var SecretName = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
|
|
241
|
+
var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
|
|
242
|
+
var LoopManifest = Struct({
|
|
243
|
+
id: String4,
|
|
244
|
+
title: String4,
|
|
245
|
+
version: optionalKey(LoopVersion),
|
|
246
|
+
input: JsonObject,
|
|
247
|
+
output: JsonObject,
|
|
248
|
+
outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
|
|
249
|
+
agents: Record(String4, String4),
|
|
250
|
+
checkout: Literals(["none", "read", "write"]),
|
|
251
|
+
when: ArraySchema(Struct({
|
|
252
|
+
event: String4,
|
|
253
|
+
filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
|
|
254
|
+
input: Record(String4, String4),
|
|
255
|
+
values: optionalKey(JsonObject)
|
|
256
|
+
})),
|
|
257
|
+
offers: ArraySchema(Struct({
|
|
258
|
+
id: String4,
|
|
259
|
+
title: String4,
|
|
260
|
+
loop: String4,
|
|
261
|
+
from: optionalKey(String4)
|
|
262
|
+
})),
|
|
263
|
+
capabilities: ArraySchema(Literals(LoopCapabilities)),
|
|
264
|
+
ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
|
|
265
|
+
secrets: optionalKey(ArraySchema(SecretName)),
|
|
266
|
+
network: optionalKey(AgentSandboxNetwork),
|
|
267
|
+
schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
|
|
268
|
+
});
|
|
269
|
+
var LoopDetail = Struct({
|
|
270
|
+
id: String4,
|
|
271
|
+
resolved: optionalKey(Struct({
|
|
272
|
+
...ProgramLoop.fields,
|
|
273
|
+
agents: LoopManifest.fields.agents,
|
|
274
|
+
when: LoopManifest.fields.when,
|
|
275
|
+
schedule: optionalKey(Struct({
|
|
276
|
+
rule: ScheduleRule,
|
|
277
|
+
timezone: String4,
|
|
278
|
+
on: Boolean2,
|
|
279
|
+
nextRunAt: optionalKey(String4)
|
|
280
|
+
}))
|
|
281
|
+
}))
|
|
282
|
+
});
|
|
283
|
+
var AgentDeclaration = Struct({
|
|
284
|
+
extends: optionalKey(String4),
|
|
285
|
+
instructions: optionalKey(String4),
|
|
286
|
+
harness: optionalKey(String4),
|
|
287
|
+
model: optionalKey(String4),
|
|
288
|
+
effort: optionalKey(Literals(AgentEfforts)),
|
|
289
|
+
fallbacks: optionalKey(ArraySchema(AgentFallback)),
|
|
290
|
+
tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
|
|
291
|
+
skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
|
|
292
|
+
network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
|
|
293
|
+
sandbox: optionalKey(Literal("docker"))
|
|
294
|
+
});
|
|
295
|
+
var scheduleFields = {
|
|
296
|
+
name: String4.check(isMinLength(1)),
|
|
297
|
+
loop: String4,
|
|
298
|
+
team: optionalKey(String4),
|
|
299
|
+
input: optionalKey(JsonObject),
|
|
300
|
+
timezone: String4,
|
|
301
|
+
misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
|
|
302
|
+
overlap: optionalKey(Literals(ScheduleOverlapPolicies))
|
|
303
|
+
};
|
|
304
|
+
var ScheduleDeclaration = Union([
|
|
305
|
+
Struct({
|
|
306
|
+
...scheduleFields,
|
|
307
|
+
cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
|
|
308
|
+
}),
|
|
309
|
+
Struct({
|
|
310
|
+
...scheduleFields,
|
|
311
|
+
rule: declare((value) => isScheduleRule(value), {
|
|
312
|
+
expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
|
|
313
|
+
})
|
|
314
|
+
})
|
|
315
|
+
]);
|
|
316
|
+
var CarriedKit = Struct({
|
|
317
|
+
name: KitName,
|
|
318
|
+
version: String4.check(isMinLength(1)),
|
|
319
|
+
setup: KitDigest,
|
|
320
|
+
loops: ArraySchema(String4),
|
|
321
|
+
agents: ArraySchema(String4)
|
|
322
|
+
});
|
|
323
|
+
var KitDeclarations = Struct({
|
|
324
|
+
loops: ArraySchema(LoopManifest),
|
|
325
|
+
agents: Record(String4, AgentDeclaration),
|
|
326
|
+
schedules: optionalKey(Record(String4, ScheduleDeclaration)),
|
|
327
|
+
carried: optionalKey(ArraySchema(CarriedKit))
|
|
328
|
+
});
|
|
329
|
+
var sameLoop = toEquivalence(LoopManifest);
|
|
330
|
+
var sameAgent = toEquivalence(AgentDeclaration);
|
|
331
|
+
|
|
127
332
|
// packages/sdk/src/loop/define.ts
|
|
128
333
|
var LoopOutcome = Literals([
|
|
129
334
|
"feature",
|
|
@@ -926,4 +1131,4 @@ var redirectStatuses = new Set([301, 302, 303, 307, 308]);
|
|
|
926
1131
|
var readStdin = tryPromise(() => Bun.stdin.text());
|
|
927
1132
|
var isWorkUnit = guard(ProgramWorkUnit);
|
|
928
1133
|
|
|
929
|
-
export { uploadRunFile, programLease, rpcRunFiles, describeFlag, Described, programHostsEnv, undeclaredHostsEnv };
|
|
1134
|
+
export { AgentDeclaration, KitDeclarations, uploadRunFile, programLease, rpcRunFiles, describeFlag, Described, programHostsEnv, undeclaredHostsEnv };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-3r7ahnwy.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-2kr43ps6.js";
|
|
16
|
+
import"./chunk-vjcn82g3.js";
|
|
17
|
+
import"./chunk-ampzxrqe.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -96,7 +96,19 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-ampzxrqe.js";
|
|
100
|
+
import {
|
|
101
|
+
interrupt,
|
|
102
|
+
getCurrent,
|
|
103
|
+
makeUnsafe2,
|
|
104
|
+
bounded,
|
|
105
|
+
offerAll,
|
|
106
|
+
failCause,
|
|
107
|
+
end,
|
|
108
|
+
shutdownUnsafe,
|
|
109
|
+
fromQueue,
|
|
110
|
+
unwrap
|
|
111
|
+
} from "./chunk-vjcn82g3.js";
|
|
100
112
|
import {
|
|
101
113
|
Clock,
|
|
102
114
|
empty,
|
|
@@ -111,19 +123,7 @@ import {
|
|
|
111
123
|
ParseOptions,
|
|
112
124
|
RpcClientDefect,
|
|
113
125
|
RpcClientError
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import {
|
|
116
|
-
interrupt,
|
|
117
|
-
getCurrent,
|
|
118
|
-
makeUnsafe2,
|
|
119
|
-
bounded,
|
|
120
|
-
offerAll,
|
|
121
|
-
failCause,
|
|
122
|
-
end,
|
|
123
|
-
shutdownUnsafe,
|
|
124
|
-
fromQueue,
|
|
125
|
-
unwrap
|
|
126
|
-
} from "./chunk-25q7mg6g.js";
|
|
126
|
+
} from "./chunk-2kr43ps6.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-t7ncjd6s.js";
|
|
11
|
+
import"./chunk-3r7ahnwy.js";
|
|
12
|
+
import"./chunk-bk3dpjxq.js";
|
|
13
|
+
import"./chunk-vjcn82g3.js";
|
|
14
|
+
import"./chunk-ampzxrqe.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|