@kitman-sh/cli 0.10.89 → 0.10.91

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.
Files changed (26) hide show
  1. package/dist/{chunk-w9j2yb0n.js → chunk-25q7mg6g.js} +1 -1
  2. package/dist/{chunk-4b1nj0zw.js → chunk-2wsyg2g7.js} +41 -33
  3. package/dist/{chunk-73fw4pgr.js → chunk-5fxxg02f.js} +255 -49
  4. package/dist/{chunk-dmwqvnmb.js → chunk-5tqy48a3.js} +7 -7
  5. package/dist/{chunk-qqzr8ym6.js → chunk-6h0rz0zk.js} +4 -4
  6. package/dist/{chunk-99ad4j9s.js → chunk-947btdv6.js} +3 -3
  7. package/dist/{chunk-vne4rsj0.js → chunk-9m9cv82t.js} +2 -2
  8. package/dist/{chunk-maj4dn1b.js → chunk-c3k32vw4.js} +1 -1
  9. package/dist/{chunk-5dwyvg1z.js → chunk-cmtvcbxr.js} +5 -5
  10. package/dist/{chunk-daycfvkq.js → chunk-d82t42vr.js} +15 -15
  11. package/dist/{chunk-d8tabep6.js → chunk-d9wjvvbc.js} +5 -5
  12. package/dist/{chunk-caqesagt.js → chunk-dstm8aen.js} +2 -1
  13. package/dist/{chunk-phcerzkf.js → chunk-fgnfx5mw.js} +22 -215
  14. package/dist/{chunk-vzq3q5zr.js → chunk-gncygm43.js} +6 -6
  15. package/dist/{chunk-1hqy9g9w.js → chunk-gykt7zjx.js} +7 -7
  16. package/dist/{chunk-aj4ev9v2.js → chunk-hsf2sj69.js} +2 -2
  17. package/dist/{chunk-1mcwey0c.js → chunk-k4fvnphp.js} +1 -1
  18. package/dist/{chunk-p74pmd81.js → chunk-mbqeakm1.js} +1 -1
  19. package/dist/{chunk-yhh9yeqf.js → chunk-r6d67qqa.js} +255 -26
  20. package/dist/{chunk-cw2ghw7n.js → chunk-rmsm8vnc.js} +4 -4
  21. package/dist/{chunk-1whmkfzv.js → chunk-sb8c2sgy.js} +14 -14
  22. package/dist/{chunk-5w8trr75.js → chunk-tmbhak7y.js} +8 -8
  23. package/dist/{chunk-ybp1mwv9.js → chunk-w0sehmpd.js} +2 -2
  24. package/dist/{chunk-5dydsgwg.js → chunk-y1tnxz9f.js} +9 -9
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-caqesagt.js";
6
+ } from "./chunk-dstm8aen.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -7,11 +7,11 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-dmwqvnmb.js";
11
- import"./chunk-ybp1mwv9.js";
12
- import"./chunk-1mcwey0c.js";
13
- import"./chunk-w9j2yb0n.js";
14
- import"./chunk-caqesagt.js";
10
+ } from "./chunk-5tqy48a3.js";
11
+ import"./chunk-w0sehmpd.js";
12
+ import"./chunk-k4fvnphp.js";
13
+ import"./chunk-25q7mg6g.js";
14
+ import"./chunk-dstm8aen.js";
15
15
  export {
16
16
  decoded2 as decoded,
17
17
  decodedOption2 as decodedOption,
@@ -32,9 +32,9 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-caqesagt.js";
36
- import"./chunk-p74pmd81.js";
37
- import"./chunk-1mcwey0c.js";
35
+ } from "./chunk-dstm8aen.js";
36
+ import"./chunk-mbqeakm1.js";
37
+ import"./chunk-k4fvnphp.js";
38
38
  import {
39
39
  SecureRandom,
40
40
  layerWebCrypto,
@@ -44,9 +44,11 @@ import {
44
44
  filterStatusOk,
45
45
  get2,
46
46
  layer4,
47
+ AgentDeclaration,
48
+ KitDeclarations,
47
49
  kitmanMcpServer,
48
50
  RunnerRpcProtocolVersion
49
- } from "./chunk-73fw4pgr.js";
51
+ } from "./chunk-5fxxg02f.js";
50
52
  import {
51
53
  decodeText,
52
54
  mkString,
@@ -54,23 +56,21 @@ import {
54
56
  Path,
55
57
  withDefault,
56
58
  String2
57
- } from "./chunk-w9j2yb0n.js";
59
+ } from "./chunk-25q7mg6g.js";
58
60
  import {
59
61
  Packument,
60
62
  tarballMatches
61
- } from "./chunk-99ad4j9s.js";
62
- import"./chunk-vzq3q5zr.js";
63
- import {
64
- AgentDeclaration,
65
- KitDeclarations,
66
- describeFlag,
67
- Described
68
- } from "./chunk-phcerzkf.js";
63
+ } from "./chunk-947btdv6.js";
69
64
  import {
70
65
  ChildProcessSpawner,
71
66
  make2
72
- } from "./chunk-ybp1mwv9.js";
73
- import"./chunk-1whmkfzv.js";
67
+ } from "./chunk-w0sehmpd.js";
68
+ import"./chunk-gncygm43.js";
69
+ import {
70
+ describeFlag,
71
+ Described
72
+ } from "./chunk-fgnfx5mw.js";
73
+ import"./chunk-sb8c2sgy.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -23,24 +23,24 @@ import {
23
23
  fnUntraced,
24
24
  encodePrettyJsonString,
25
25
  decodeJsonStringSync
26
- } from "./chunk-caqesagt.js";
26
+ } from "./chunk-dstm8aen.js";
27
27
  import {
28
28
  isJsonObject,
29
29
  isString
30
- } from "./chunk-1mcwey0c.js";
30
+ } from "./chunk-k4fvnphp.js";
31
31
  import {
32
32
  FileSystem,
33
33
  Path,
34
34
  optionalEnv
35
- } from "./chunk-w9j2yb0n.js";
35
+ } from "./chunk-25q7mg6g.js";
36
36
  import {
37
37
  AgentHarnessIds,
38
38
  sha2562,
39
39
  runCommand2
40
- } from "./chunk-73fw4pgr.js";
40
+ } from "./chunk-5fxxg02f.js";
41
41
  import {
42
42
  NpmRegistry
43
- } from "./chunk-99ad4j9s.js";
43
+ } from "./chunk-947btdv6.js";
44
44
 
45
45
  // packages/agent-runtime/src/config-convergence.ts
46
46
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -5703,6 +5703,7 @@ var fn = fn2;
5703
5703
  var clockWith = clockWith2;
5704
5704
  var logWarning = /* @__PURE__ */ logWithLevel("Warn");
5705
5705
  var logError = /* @__PURE__ */ logWithLevel("Error");
5706
+ var logInfo = /* @__PURE__ */ logWithLevel("Info");
5706
5707
  var annotateLogs = /* @__PURE__ */ dual((args) => isEffect(args[0]), (effect, ...args) => updateService2(effect, CurrentLogAnnotations2, (annotations) => {
5707
5708
  const newAnnotations = args.length === 1 ? {
5708
5709
  ...annotations,
@@ -10200,4 +10201,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
10200
10201
  var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
10201
10202
  var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
10202
10203
 
10203
- export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make15, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, isRedacted, make16, value, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
10204
+ export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make15, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, isRedacted, make16, value, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
@@ -38,7 +38,6 @@ import {
38
38
  fnUntraced,
39
39
  makeFormatterStandardSchemaV1,
40
40
  transform,
41
- declare,
42
41
  is,
43
42
  encodeEffect,
44
43
  isSchema,
@@ -46,7 +45,6 @@ import {
46
45
  optional,
47
46
  Literal,
48
47
  Never,
49
- Null,
50
48
  String4,
51
49
  Boolean2,
52
50
  Void,
@@ -72,24 +70,15 @@ import {
72
70
  Cause,
73
71
  Class2,
74
72
  TaggedError2,
75
- toEquivalence,
76
73
  toCodecJson,
77
74
  Json
78
- } from "./chunk-caqesagt.js";
75
+ } from "./chunk-dstm8aen.js";
79
76
  import {
80
77
  guard
81
- } from "./chunk-p74pmd81.js";
78
+ } from "./chunk-mbqeakm1.js";
82
79
  import {
83
80
  currentTimeMillis,
84
81
  WebCrypto,
85
- SafeJson,
86
- AgentSandboxNetwork,
87
- AgentEfforts,
88
- AgentCapabilities,
89
- LoopDataSchemaRef,
90
- LoopVersion,
91
- ProgramLoop,
92
- AgentFallback,
93
82
  ProgramWorkUnit,
94
83
  MeasureEvidence,
95
84
  CatchUp,
@@ -101,15 +90,15 @@ import {
101
90
  bodyUint8Array,
102
91
  filterStatusOk,
103
92
  HttpClient,
104
- KitName,
105
- KitDigest,
93
+ LoopCapabilities,
94
+ LoopManifest,
106
95
  KitSetup,
107
96
  RunnerRpcError
108
- } from "./chunk-73fw4pgr.js";
97
+ } from "./chunk-5fxxg02f.js";
109
98
  import {
110
99
  runForEach,
111
100
  FileSystem
112
- } from "./chunk-w9j2yb0n.js";
101
+ } from "./chunk-25q7mg6g.js";
113
102
 
114
103
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
104
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -135,199 +124,6 @@ var sha256 = {
135
124
  implementation: undefined
136
125
  };
137
126
 
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
- secrets: optionalKey(ArraySchema(SecretName)),
265
- network: optionalKey(AgentSandboxNetwork),
266
- schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
267
- });
268
- var LoopDetail = Struct({
269
- id: String4,
270
- resolved: optionalKey(Struct({
271
- ...ProgramLoop.fields,
272
- agents: LoopManifest.fields.agents,
273
- when: LoopManifest.fields.when,
274
- schedule: optionalKey(Struct({
275
- rule: ScheduleRule,
276
- timezone: String4,
277
- on: Boolean2,
278
- nextRunAt: optionalKey(String4)
279
- }))
280
- }))
281
- });
282
- var AgentDeclaration = Struct({
283
- extends: optionalKey(String4),
284
- instructions: optionalKey(String4),
285
- harness: optionalKey(String4),
286
- model: optionalKey(String4),
287
- effort: optionalKey(Literals(AgentEfforts)),
288
- fallbacks: optionalKey(ArraySchema(AgentFallback)),
289
- tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
290
- skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
291
- network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
292
- sandbox: optionalKey(Literal("docker"))
293
- });
294
- var scheduleFields = {
295
- name: String4.check(isMinLength(1)),
296
- loop: String4,
297
- team: optionalKey(String4),
298
- input: optionalKey(JsonObject),
299
- timezone: String4,
300
- misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
301
- overlap: optionalKey(Literals(ScheduleOverlapPolicies))
302
- };
303
- var ScheduleDeclaration = Union([
304
- Struct({
305
- ...scheduleFields,
306
- cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
307
- }),
308
- Struct({
309
- ...scheduleFields,
310
- rule: declare((value) => isScheduleRule(value), {
311
- expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
312
- })
313
- })
314
- ]);
315
- var CarriedKit = Struct({
316
- name: KitName,
317
- version: String4.check(isMinLength(1)),
318
- setup: KitDigest,
319
- loops: ArraySchema(String4),
320
- agents: ArraySchema(String4)
321
- });
322
- var KitDeclarations = Struct({
323
- loops: ArraySchema(LoopManifest),
324
- agents: Record(String4, AgentDeclaration),
325
- schedules: optionalKey(Record(String4, ScheduleDeclaration)),
326
- carried: optionalKey(ArraySchema(CarriedKit))
327
- });
328
- var sameLoop = toEquivalence(LoopManifest);
329
- var sameAgent = toEquivalence(AgentDeclaration);
330
-
331
127
  // packages/sdk/src/loop/define.ts
332
128
  var LoopOutcome = Literals([
333
129
  "feature",
@@ -796,18 +592,28 @@ var TranscriptPoint = Struct({
796
592
  sequence: Int
797
593
  });
798
594
  var TranscriptsRequest = Struct({
799
- days: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(31))
595
+ days: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(31)),
596
+ teamId: optionalKey(String4)
800
597
  });
801
598
  var TranscriptsResult = Struct({
802
599
  runs: ArraySchema(Struct({
803
600
  runId: String4,
804
601
  loopId: String4,
602
+ rootRunId: optional(String4),
805
603
  status: optional(Literals(["completed", "failed", "canceled", "expired"])),
806
604
  teamId: optional(String4),
807
605
  failure: optional(String4),
808
606
  retried: optional(Boolean2),
809
- entries: ArraySchema(Struct({ stepAttemptId: String4, sequence: Int, kind: String4, text: String4 }))
810
- }))
607
+ entries: ArraySchema(Struct({ stepAttemptId: String4, sequence: Int, kind: String4, text: String4 })),
608
+ omitted: optional(Int)
609
+ })),
610
+ artifactId: optional(String4),
611
+ findings: optional(ArraySchema(Struct({
612
+ key: String4,
613
+ title: String4,
614
+ taskId: optional(String4),
615
+ taskKey: optional(String4)
616
+ })))
811
617
  });
812
618
  var Citations = NonEmptyArray(TranscriptPoint);
813
619
  var ProposeRequest = Union([
@@ -829,7 +635,8 @@ var ProposeRequest = Union([
829
635
  var ProposeResult = Struct({
830
636
  kind: Literals(["memory", "task"]),
831
637
  id: String4,
832
- matched: optionalKey(Boolean2)
638
+ matched: optionalKey(Boolean2),
639
+ task: optionalKey(Struct({ id: String4, active: Boolean2 }))
833
640
  });
834
641
  var Health = Literals(["on_track", "at_risk", "off_track"]);
835
642
  var ProjectActivityRequest = Struct({ projectId: String4 });
@@ -1119,4 +926,4 @@ var redirectStatuses = new Set([301, 302, 303, 307, 308]);
1119
926
  var readStdin = tryPromise(() => Bun.stdin.text());
1120
927
  var isWorkUnit = guard(ProgramWorkUnit);
1121
928
 
1122
- export { AgentDeclaration, KitDeclarations, uploadRunFile, programLease, rpcRunFiles, describeFlag, Described, programHostsEnv, undeclaredHostsEnv };
929
+ export { uploadRunFile, programLease, rpcRunFiles, describeFlag, Described, programHostsEnv, undeclaredHostsEnv };
@@ -6,10 +6,7 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-caqesagt.js";
10
- import {
11
- runForEach
12
- } from "./chunk-w9j2yb0n.js";
9
+ } from "./chunk-dstm8aen.js";
13
10
  import {
14
11
  WebSocketConstructor,
15
12
  layerWebSocketConstructorGlobal,
@@ -19,13 +16,16 @@ import {
19
16
  RunnerReplicaRpcs,
20
17
  RunnerRunFileRpcs,
21
18
  ProgramRpcs
22
- } from "./chunk-73fw4pgr.js";
19
+ } from "./chunk-5fxxg02f.js";
20
+ import {
21
+ runForEach
22
+ } from "./chunk-25q7mg6g.js";
23
23
  import {
24
24
  layerJson,
25
25
  make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-1whmkfzv.js";
28
+ } from "./chunk-sb8c2sgy.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -4,13 +4,13 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-vzq3q5zr.js";
8
- import"./chunk-1whmkfzv.js";
9
- import"./chunk-73fw4pgr.js";
10
- import"./chunk-p74pmd81.js";
11
- import"./chunk-1mcwey0c.js";
12
- import"./chunk-w9j2yb0n.js";
13
- import"./chunk-caqesagt.js";
7
+ } from "./chunk-gncygm43.js";
8
+ import"./chunk-sb8c2sgy.js";
9
+ import"./chunk-5fxxg02f.js";
10
+ import"./chunk-mbqeakm1.js";
11
+ import"./chunk-k4fvnphp.js";
12
+ import"./chunk-25q7mg6g.js";
13
+ import"./chunk-dstm8aen.js";
14
14
  export {
15
15
  makeProgramRpcClient2 as makeProgramRpcClient,
16
16
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-caqesagt.js";
16
+ } from "./chunk-dstm8aen.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-p74pmd81.js";
20
+ } from "./chunk-mbqeakm1.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-caqesagt.js";
11
+ } from "./chunk-dstm8aen.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-caqesagt.js";
21
+ } from "./chunk-dstm8aen.js";
22
22
 
23
23
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
24
  var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];