@kitman-sh/cli 0.12.0-rc.3 → 0.12.0-rc.5

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 (28) hide show
  1. package/dist/{chunk-ks3p7yha.js → chunk-26mj3vr6.js} +21 -21
  2. package/dist/{chunk-0346hwh6.js → chunk-2s4x5t92.js} +5 -5
  3. package/dist/{chunk-jef2vdr6.js → chunk-31hk2bjb.js} +4 -4
  4. package/dist/{chunk-56knbdt6.js → chunk-3530xts6.js} +9 -9
  5. package/dist/{chunk-gspfm7qh.js → chunk-5zzfsv07.js} +37 -177
  6. package/dist/{chunk-e7e120qw.js → chunk-6x9e1etb.js} +3 -3
  7. package/dist/{chunk-dymepetx.js → chunk-77k89h98.js} +270 -118
  8. package/dist/{chunk-yatva7be.js → chunk-bbadvwds.js} +1 -1
  9. package/dist/{chunk-nzjb36ad.js → chunk-bj73db3f.js} +1 -1
  10. package/dist/{chunk-0qz10ek8.js → chunk-bv9e34qz.js} +1 -1
  11. package/dist/{chunk-5j848ckb.js → chunk-cegdw7gw.js} +2 -2
  12. package/dist/{chunk-x55v5kyg.js → chunk-dd8hae73.js} +61 -60
  13. package/dist/{chunk-y73z1kkz.js → chunk-e838cw9z.js} +11 -11
  14. package/dist/{chunk-trb9325k.js → chunk-gr816kwr.js} +10 -10
  15. package/dist/{chunk-8ez1s9cr.js → chunk-hrds2xy2.js} +7 -7
  16. package/dist/{chunk-y8sscyvt.js → chunk-k9jd2dm0.js} +4 -4
  17. package/dist/{chunk-6akwhwyp.js → chunk-kvm7j3ed.js} +17 -17
  18. package/dist/{chunk-794hjysw.js → chunk-nc1rxeav.js} +6 -6
  19. package/dist/{chunk-z450wa10.js → chunk-rjdptgqf.js} +4 -4
  20. package/dist/{chunk-2gg3ccte.js → chunk-s1pjsak4.js} +7 -7
  21. package/dist/{chunk-ewhzaqp3.js → chunk-s661f8p0.js} +2 -2
  22. package/dist/{chunk-vtfwjhzh.js → chunk-txyp31q5.js} +60 -60
  23. package/dist/{chunk-mc87tyzm.js → chunk-x70r99jg.js} +2 -2
  24. package/dist/{chunk-c6rbt85q.js → chunk-xmq9zpr1.js} +1 -1
  25. package/dist/{chunk-xwya1er0.js → chunk-y2mkzww9.js} +2 -2
  26. package/dist/{chunk-h6hd61dn.js → chunk-yafg281p.js} +37 -24
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
1331
1331
  });
1332
1332
 
1333
1333
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
1334
- var make14 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1334
+ var make13 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1335
1335
  var isStrictEquivalent = (x, y) => x === y;
1336
1336
  var strictEqual = () => isStrictEquivalent;
1337
1337
  function Tuple(elements) {
1338
- return make14((self, that) => {
1338
+ return make13((self, that) => {
1339
1339
  if (self.length !== that.length) {
1340
1340
  return false;
1341
1341
  }
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
1348
1348
  });
1349
1349
  }
1350
1350
  function Array_(item) {
1351
- return make14((self, that) => {
1351
+ return make13((self, that) => {
1352
1352
  if (self.length !== that.length)
1353
1353
  return false;
1354
1354
  for (let i = 0;i < self.length; i++) {
@@ -1566,7 +1566,7 @@ var ServiceProto = {
1566
1566
  .../* @__PURE__ */ Prototype({
1567
1567
  label: "Service",
1568
1568
  evaluate(fiber) {
1569
- return exitSucceed(get4(fiber.context, this));
1569
+ return exitSucceed(get3(fiber.context, this));
1570
1570
  }
1571
1571
  }),
1572
1572
  toJSON() {
@@ -1579,13 +1579,13 @@ var ServiceProto = {
1579
1579
  return self;
1580
1580
  },
1581
1581
  context(self) {
1582
- return make15(this, self);
1582
+ return make14(this, self);
1583
1583
  },
1584
1584
  use(f) {
1585
- return withFiber((fiber) => f(get4(fiber.context, this)));
1585
+ return withFiber((fiber) => f(get3(fiber.context, this)));
1586
1586
  },
1587
1587
  useSync(f) {
1588
- return withFiber((fiber) => exitSucceed(f(get4(fiber.context, this))));
1588
+ return withFiber((fiber) => exitSucceed(f(get3(fiber.context, this))));
1589
1589
  }
1590
1590
  };
1591
1591
  var cacheKeys = /* @__PURE__ */ new Set;
@@ -1683,7 +1683,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
1683
1683
  var isReference = (u) => !!u[ReferenceTypeId];
1684
1684
  var empty3 = () => emptyContext2;
1685
1685
  var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
1686
- var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
1686
+ var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
1687
1687
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
1688
1688
  var addUnsafe = (self, key, service) => {
1689
1689
  const impl = self;
@@ -1715,7 +1715,7 @@ var getUnsafe = /* @__PURE__ */ dual(2, (self, service) => {
1715
1715
  }
1716
1716
  return value;
1717
1717
  });
1718
- var get4 = getUnsafe;
1718
+ var get3 = getUnsafe;
1719
1719
  var defaultValueCacheKey = "~effect/Context/defaultValue";
1720
1720
  var getDefaultValue = (ref) => {
1721
1721
  if (defaultValueCacheKey in ref) {
@@ -3001,7 +3001,7 @@ class FiberImpl {
3001
3001
  return this._dispatcher ??= this.cache.scheduler.makeDispatcher();
3002
3002
  }
3003
3003
  getRef(ref) {
3004
- return get4(this.context, ref);
3004
+ return get3(this.context, ref);
3005
3005
  }
3006
3006
  addObserver(cb) {
3007
3007
  if (this._exit) {
@@ -3029,7 +3029,7 @@ class FiberImpl {
3029
3029
  }
3030
3030
  let cause = causeInterrupt(fiberId);
3031
3031
  if (this.cache.stackFrame) {
3032
- cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
3032
+ cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
3033
3033
  }
3034
3034
  if (annotations) {
3035
3035
  cause = causeAnnotate(cause, annotations);
@@ -3202,17 +3202,17 @@ class FiberImpl {
3202
3202
  var makeFiberContextCache = (context) => {
3203
3203
  const currentTracer = getOrUndefinedUnsafe(context, TracerKey);
3204
3204
  return {
3205
- scheduler: get4(context, Scheduler),
3205
+ scheduler: get3(context, Scheduler),
3206
3206
  tracer: currentTracer,
3207
3207
  tracerContext: currentTracer ? currentTracer["context"] : undefined,
3208
- tracerEnabled: get4(context, TracerEnabled),
3208
+ tracerEnabled: get3(context, TracerEnabled),
3209
3209
  span: getOrUndefinedUnsafe(context, ParentSpanKey),
3210
- logLevel: get4(context, CurrentLogLevel),
3211
- minimumLogLevel: get4(context, MinimumLogLevel),
3212
- stackFrame: get4(context, CurrentStackFrame),
3210
+ logLevel: get3(context, CurrentLogLevel),
3211
+ minimumLogLevel: get3(context, MinimumLogLevel),
3212
+ stackFrame: get3(context, CurrentStackFrame),
3213
3213
  runtimeMetrics: getOrUndefinedUnsafe(context, FiberRuntimeMetricsKey),
3214
- maxOpsBeforeYield: get4(context, MaxOpsBeforeYield),
3215
- preventYield: get4(context, PreventSchedulerYield)
3214
+ maxOpsBeforeYield: get3(context, MaxOpsBeforeYield),
3215
+ preventYield: get3(context, PreventSchedulerYield)
3216
3216
  };
3217
3217
  };
3218
3218
  var deferredInterruptCont = {
@@ -4709,10 +4709,10 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
4709
4709
  var filterDisablePropagation = (span) => {
4710
4710
  if (!span)
4711
4711
  return none();
4712
- return get4(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
4712
+ return get3(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
4713
4713
  };
4714
4714
  var makeSpanUnsafe = (fiber, name, options) => {
4715
- const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get4(options.annotations, DisablePropagation);
4715
+ const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get3(options.annotations, DisablePropagation);
4716
4716
  const parent = options?.parent !== undefined ? some(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
4717
4717
  let span;
4718
4718
  if (disablePropagation) {
@@ -5126,7 +5126,7 @@ var DeferredImpl = function() {
5126
5126
  };
5127
5127
  DeferredImpl.prototype = DeferredProto;
5128
5128
  var makeUnsafe5 = () => new DeferredImpl;
5129
- var make16 = () => sync(() => makeUnsafe5());
5129
+ var make15 = () => sync(() => makeUnsafe5());
5130
5130
  var _await = (self) => callback2((resume) => {
5131
5131
  if (self.effect)
5132
5132
  return resume(self.effect);
@@ -5274,9 +5274,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
5274
5274
  var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
5275
5275
  var succeed5 = function() {
5276
5276
  if (arguments.length === 1) {
5277
- return (resource) => succeedContext(make15(arguments[0], resource));
5277
+ return (resource) => succeedContext(make14(arguments[0], resource));
5278
5278
  }
5279
- return succeedContext(make15(arguments[0], arguments[1]));
5279
+ return succeedContext(make14(arguments[0], arguments[1]));
5280
5280
  };
5281
5281
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
5282
5282
  var effect = function() {
@@ -5285,7 +5285,7 @@ var effect = function() {
5285
5285
  }
5286
5286
  return effectImpl(arguments[0], arguments[1]);
5287
5287
  };
5288
- var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
5288
+ var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
5289
5289
  var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
5290
5290
  var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
5291
5291
  var mergeAllEffect = (layers, memoMap, scope) => {
@@ -8889,7 +8889,7 @@ function recur(ast) {
8889
8889
  const rest = ast.rest.map(recur);
8890
8890
  const [head, ...tail] = rest;
8891
8891
  const tailLength = tail.length;
8892
- return make14((a, b) => {
8892
+ return make13((a, b) => {
8893
8893
  if (!Array.isArray(a) || !Array.isArray(b)) {
8894
8894
  return false;
8895
8895
  }
@@ -8924,7 +8924,7 @@ function recur(ast) {
8924
8924
  }
8925
8925
  const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
8926
8926
  const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
8927
- return make14((a, b) => {
8927
+ return make13((a, b) => {
8928
8928
  if (!isObject2(a) || !isObject2(b)) {
8929
8929
  return false;
8930
8930
  }
@@ -8962,7 +8962,7 @@ function recur(ast) {
8962
8962
  const types = toType2(ast).types;
8963
8963
  const index = getCandidateIndex(types);
8964
8964
  const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
8965
- return make14((a, b) => {
8965
+ return make13((a, b) => {
8966
8966
  const candidates = index(a, false);
8967
8967
  for (let i = 0;i < candidates.length; i++) {
8968
8968
  const [is, equivalence] = compiled[candidates[i]];
@@ -8975,7 +8975,7 @@ function recur(ast) {
8975
8975
  }
8976
8976
  case "Suspend": {
8977
8977
  let equivalence;
8978
- return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
8978
+ return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
8979
8979
  }
8980
8980
  }
8981
8981
  }
@@ -9076,7 +9076,7 @@ function isSchemaError(u) {
9076
9076
  var TypeId12 = TypeId11;
9077
9077
  function declareConstructor() {
9078
9078
  return (typeParameters, run, annotations) => {
9079
- return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
9079
+ return make16(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make16(ast))), annotations));
9080
9080
  };
9081
9081
  }
9082
9082
  function declare(is, annotations) {
@@ -9184,27 +9184,27 @@ function encodeUnknownSync(schema, options) {
9184
9184
  };
9185
9185
  }
9186
9186
  var encodeSync = encodeUnknownSync;
9187
- var make17 = make5;
9187
+ var make16 = make5;
9188
9188
  function isSchema(u) {
9189
9189
  return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
9190
9190
  }
9191
- var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
9191
+ var optionalKey = /* @__PURE__ */ lambda((schema) => make16(optionalKey2(schema.ast), {
9192
9192
  schema
9193
9193
  }));
9194
9194
  var optional = /* @__PURE__ */ lambda((self) => {
9195
9195
  const schema = UndefinedOr(self);
9196
- return make17(optional2(self.ast), {
9196
+ return make16(optional2(self.ast), {
9197
9197
  schema
9198
9198
  });
9199
9199
  });
9200
- var toType = /* @__PURE__ */ lambda((schema) => make17(toType2(schema.ast), {
9200
+ var toType = /* @__PURE__ */ lambda((schema) => make16(toType2(schema.ast), {
9201
9201
  schema
9202
9202
  }));
9203
- var toEncoded2 = /* @__PURE__ */ lambda((schema) => make17(toEncoded(schema.ast), {
9203
+ var toEncoded2 = /* @__PURE__ */ lambda((schema) => make16(toEncoded(schema.ast), {
9204
9204
  schema
9205
9205
  }));
9206
9206
  function Literal(literal) {
9207
- const out = make17(new Literal2(literal), {
9207
+ const out = make16(new Literal2(literal), {
9208
9208
  literal,
9209
9209
  transform(to) {
9210
9210
  return out.pipe(decodeTo2(Literal(to), {
@@ -9215,16 +9215,16 @@ function Literal(literal) {
9215
9215
  });
9216
9216
  return out;
9217
9217
  }
9218
- var Never = /* @__PURE__ */ make17(never3);
9219
- var Unknown = /* @__PURE__ */ make17(unknown);
9220
- var Null = /* @__PURE__ */ make17(null_);
9221
- var Undefined2 = /* @__PURE__ */ make17(undefined_3);
9222
- var String4 = /* @__PURE__ */ make17(string2);
9223
- var Number5 = /* @__PURE__ */ make17(number2);
9224
- var Boolean2 = /* @__PURE__ */ make17(boolean);
9225
- var Void = /* @__PURE__ */ make17(void_4);
9218
+ var Never = /* @__PURE__ */ make16(never3);
9219
+ var Unknown = /* @__PURE__ */ make16(unknown);
9220
+ var Null = /* @__PURE__ */ make16(null_);
9221
+ var Undefined2 = /* @__PURE__ */ make16(undefined_3);
9222
+ var String4 = /* @__PURE__ */ make16(string2);
9223
+ var Number5 = /* @__PURE__ */ make16(number2);
9224
+ var Boolean2 = /* @__PURE__ */ make16(boolean);
9225
+ var Void = /* @__PURE__ */ make16(void_4);
9226
9226
  function makeStruct(ast, fields) {
9227
- return make17(ast, {
9227
+ return make16(ast, {
9228
9228
  fields,
9229
9229
  mapFields(f, options) {
9230
9230
  const fields = f(this.fields);
@@ -9236,25 +9236,25 @@ function Struct(fields) {
9236
9236
  return makeStruct(struct(fields, undefined), fields);
9237
9237
  }
9238
9238
  function Record(key, value) {
9239
- return make17(record(key.ast, value.ast), {
9239
+ return make16(record(key.ast, value.ast), {
9240
9240
  key,
9241
9241
  value
9242
9242
  });
9243
9243
  }
9244
9244
  function StructWithRest(schema, records) {
9245
- return make17(structWithRest(schema.ast, records.map(getAST)), {
9245
+ return make16(structWithRest(schema.ast, records.map(getAST)), {
9246
9246
  schema,
9247
9247
  records
9248
9248
  });
9249
9249
  }
9250
- var ArraySchema = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [], [schema.ast]), {
9250
+ var ArraySchema = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [], [schema.ast]), {
9251
9251
  value: schema
9252
9252
  }));
9253
- var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [schema.ast], [schema.ast]), {
9253
+ var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [schema.ast], [schema.ast]), {
9254
9254
  value: schema
9255
9255
  }));
9256
9256
  function makeUnion(ast, members) {
9257
- return make17(ast, {
9257
+ return make16(ast, {
9258
9258
  members,
9259
9259
  mapMembers(f, options) {
9260
9260
  const members = f(this.members);
@@ -9267,7 +9267,7 @@ function Union(members, options) {
9267
9267
  }
9268
9268
  function Literals(literals) {
9269
9269
  const members = literals.map(Literal);
9270
- return make17(union(members, undefined, undefined), {
9270
+ return make16(union(members, undefined, undefined), {
9271
9271
  literals,
9272
9272
  members,
9273
9273
  mapMembers(f) {
@@ -9284,18 +9284,18 @@ function Literals(literals) {
9284
9284
  var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null]));
9285
9285
  var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
9286
9286
  function suspend4(f) {
9287
- return make17(new Suspend(() => f().ast));
9287
+ return make16(new Suspend(() => f().ast));
9288
9288
  }
9289
9289
  function decodeTo2(to, transformation) {
9290
9290
  return (from) => {
9291
- return make17(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
9291
+ return make16(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
9292
9292
  from,
9293
9293
  to
9294
9294
  });
9295
9295
  };
9296
9296
  }
9297
9297
  function withConstructorDefault2(defaultValue) {
9298
- return (schema) => make17(withConstructorDefault(schema.ast, defaultValue), {
9298
+ return (schema) => make16(withConstructorDefault(schema.ast, defaultValue), {
9299
9299
  schema
9300
9300
  });
9301
9301
  }
@@ -9371,7 +9371,7 @@ function isBase64(annotations) {
9371
9371
  ...annotations
9372
9372
  });
9373
9373
  }
9374
- var Finite = /* @__PURE__ */ make17(finite);
9374
+ var Finite = /* @__PURE__ */ make16(finite);
9375
9375
  function makeIsGreaterThan(options) {
9376
9376
  const gt = isGreaterThan2(options.order);
9377
9377
  const formatter = options.formatter ?? format;
@@ -9894,7 +9894,7 @@ function CauseReason(error, defect) {
9894
9894
  }
9895
9895
  }))
9896
9896
  });
9897
- return make17(schema.ast, {
9897
+ return make16(schema.ast, {
9898
9898
  error,
9899
9899
  defect
9900
9900
  });
@@ -9931,7 +9931,7 @@ function Cause(error, defect) {
9931
9931
  }) => failures
9932
9932
  }))
9933
9933
  });
9934
- return make17(schema.ast, {
9934
+ return make16(schema.ast, {
9935
9935
  error,
9936
9936
  defect
9937
9937
  });
@@ -9992,7 +9992,7 @@ function Exit(value, error, defect) {
9992
9992
  }
9993
9993
  }))
9994
9994
  });
9995
- return make17(schema.ast, {
9995
+ return make16(schema.ast, {
9996
9996
  value,
9997
9997
  error,
9998
9998
  defect
@@ -10096,7 +10096,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
10096
10096
  const ClassTypeId = getClassTypeId(identifier);
10097
10097
  const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
10098
10098
  const transformation = getClassTransformation(self);
10099
- const to = make17(new Declaration([from.ast], () => (input, ast, options) => {
10099
+ const to = make16(new Declaration([from.ast], () => (input, ast, options) => {
10100
10100
  return isClassValue(input) ? succeed6(input) : fail7(new InvalidType(ast, input, options));
10101
10101
  }, {
10102
10102
  identifier,
@@ -10149,7 +10149,7 @@ function toEquivalence(schema) {
10149
10149
  }
10150
10150
  var toCodecJson = toCodecJson2;
10151
10151
  var toCodecStringTree = toCodecStringTree2;
10152
- var Json = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json2, {
10152
+ var Json = /* @__PURE__ */ make16(/* @__PURE__ */ annotate(Json2, {
10153
10153
  toCode: () => ({
10154
10154
  runtime: "Schema.Json",
10155
10155
  Type: "Schema.Json"
@@ -10166,4 +10166,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
10166
10166
  var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
10167
10167
  var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
10168
10168
 
10169
- 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, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, 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, make16, _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, 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 };
10169
+ 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, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get3, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, 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, 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, make16, 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 };
@@ -604,7 +604,7 @@ export default defineKit({
604
604
 
605
605
  A Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming \`fallbacks\` replaces them, and \`fallbacks: []\` clears them.
606
606
 
607
- Effort (\`low\`, \`medium\`, \`high\` or \`xhigh\`) is recorded on each StepAttempt. \`kitman agent list\` shows each Agent merged, with the layer each field came from.`
607
+ Effort (\`low\`, \`medium\`, \`high\` or \`xhigh\`) is recorded on each StepAttempt. \`kitman agent list --team <team>\` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads \`claude (team)\`. Without \`--team\` it uses the active Team, or only the workspace layer when there is none, and its first line says which.`
608
608
  },
609
609
  {
610
610
  title: "Projects and Saved Views",
@@ -1444,7 +1444,7 @@ var pathOfLink = (link) => {
1444
1444
  return page === null ? link : page[1] || "index";
1445
1445
  };
1446
1446
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1447
- var pinnedLink2 = (link, version = "0.12.0-rc.3") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1447
+ var pinnedLink2 = (link, version = "0.12.0-rc.5") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1448
1448
  var pageOf = (path) => path.split("#")[0];
1449
1449
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1450
1450
  function excerpt(text, queryTerms) {
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-vtfwjhzh.js";
11
+ } from "./chunk-txyp31q5.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -22,7 +22,7 @@ import {
22
22
  map8,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-vtfwjhzh.js";
25
+ } from "./chunk-txyp31q5.js";
26
26
  import {
27
27
  unwrap,
28
28
  drainFork,
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-gspfm7qh.js";
34
+ } from "./chunk-5zzfsv07.js";
35
35
 
36
36
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
37
  var redactedRegistry = /* @__PURE__ */ new WeakMap;
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make16,
15
+ make15,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -96,7 +96,7 @@ import {
96
96
  decodeJsonString,
97
97
  encodeJsonStringSync,
98
98
  encodePrettyJsonString
99
- } from "./chunk-vtfwjhzh.js";
99
+ } from "./chunk-txyp31q5.js";
100
100
  import {
101
101
  tap,
102
102
  mapError,
@@ -108,7 +108,7 @@ import {
108
108
  withDefault,
109
109
  option,
110
110
  String2
111
- } from "./chunk-gspfm7qh.js";
111
+ } from "./chunk-5zzfsv07.js";
112
112
  import {
113
113
  currentTimeMillis,
114
114
  SecureRandom,
@@ -218,10 +218,10 @@ import {
218
218
  harnessNames,
219
219
  herdrRunnerCapabilities2,
220
220
  declaredChecks
221
- } from "./chunk-dymepetx.js";
221
+ } from "./chunk-77k89h98.js";
222
222
  import {
223
223
  Id
224
- } from "./chunk-0qz10ek8.js";
224
+ } from "./chunk-bv9e34qz.js";
225
225
  import {
226
226
  toJsonValue,
227
227
  isOneOf,
@@ -231,11 +231,11 @@ import {
231
231
  isObject,
232
232
  isJsonObject,
233
233
  isString
234
- } from "./chunk-c6rbt85q.js";
234
+ } from "./chunk-xmq9zpr1.js";
235
235
  import {
236
236
  ChildProcessSpawner,
237
237
  make3
238
- } from "./chunk-xwya1er0.js";
238
+ } from "./chunk-y2mkzww9.js";
239
239
 
240
240
  // apps/cli/src/cli-error.ts
241
241
  function cliErrorCode(error, status) {
@@ -452,7 +452,7 @@ var Usage = [
452
452
  " kitman loop show <loop>",
453
453
  " kitman loop starts [--limit <n>] (what Events started, or why they started nothing)",
454
454
  " kitman loop when <loop> <event> on|off (turn an automatic start on or off for the Team)",
455
- " kitman agent list",
455
+ " kitman agent list [--team <team>] (each Agent as the Team's Runs resolve it, or the Workspace's without a Team)",
456
456
  "",
457
457
  "Kits of your own, to deploy with kitman deploy:",
458
458
  " kitman init --kit [dir] (a new Kit with an example Loop and a GitLab pipeline)",
@@ -693,7 +693,7 @@ var examples = [
693
693
  "kitman loop fork build ./kits/my-build",
694
694
  "kitman loop catalog",
695
695
  `kitman loop validate build --input '{"task":"KIT-42"}'`,
696
- "kitman agent list",
696
+ "kitman agent list --team KIT",
697
697
  "kitman verify list",
698
698
  'kitman verify add unit-tests "bun run test" --cwd apps/cli',
699
699
  "kitman verify remove unit-tests",
@@ -987,10 +987,10 @@ var sandboxMissing = (sandbox, missing) => ({
987
987
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
988
988
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
989
989
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
990
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-jef2vdr6.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
990
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-31hk2bjb.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
991
991
  });
992
992
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
993
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-jef2vdr6.js")), (module) => module.updateHerdrCore(options))
993
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-31hk2bjb.js")), (module) => module.updateHerdrCore(options))
994
994
  });
995
995
  var herdrCoreMissing = (error) => {
996
996
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1410,7 +1410,7 @@ var syncTargets = (harness) => gen(function* () {
1410
1410
  });
1411
1411
  var syncKits = (input) => gen(function* () {
1412
1412
  const fs = yield* FileSystem;
1413
- const { syncKitSetup } = yield* promise(() => import("./chunk-y73z1kkz.js"));
1413
+ const { syncKitSetup } = yield* promise(() => import("./chunk-e838cw9z.js"));
1414
1414
  const harnesses = yield* syncTargets(input.harness);
1415
1415
  const chain = yield* input.client.getKitChain(input.workspaceId);
1416
1416
  for (const { name, problem } of chain.skipped)
@@ -2328,7 +2328,7 @@ var package_default = {
2328
2328
  };
2329
2329
 
2330
2330
  // apps/cli/src/scaffold.ts
2331
- var cliVersion = "0.12.0-rc.3";
2331
+ var cliVersion = "0.12.0-rc.5";
2332
2332
  var packageJson = (name, scaffold) => `${JSON.stringify({
2333
2333
  name,
2334
2334
  private: true,
@@ -2480,7 +2480,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2480
2480
 
2481
2481
  // apps/cli/src/commands.ts
2482
2482
  var ClientId = "kitman-cli";
2483
- var agentRuntime = promise(() => import("./chunk-x55v5kyg.js"));
2483
+ var agentRuntime = promise(() => import("./chunk-dd8hae73.js"));
2484
2484
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2485
2485
  defaultValue: () => gen(function* () {
2486
2486
  const tui = yield* tryPromise({
@@ -3482,7 +3482,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3482
3482
  });
3483
3483
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3484
3484
  defaultValue: () => (options) => gen(function* () {
3485
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-2gg3ccte.js"));
3485
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-s1pjsak4.js"));
3486
3486
  return yield* makeRunnerRpcClient({
3487
3487
  runnerId: options.runnerId,
3488
3488
  bearer: options.bearer,
@@ -3762,7 +3762,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3762
3762
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
3763
3763
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
3764
3764
  const platform = yield* context();
3765
- const updated = yield* make16();
3765
+ const updated = yield* make15();
3766
3766
  const scope = yield* scope2;
3767
3767
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3768
3768
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4014,7 +4014,7 @@ function mcpCommand(args) {
4014
4014
  if (command.action === "run") {
4015
4015
  if (command.args.length > 0)
4016
4016
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4017
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-ks3p7yha.js"));
4017
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-26mj3vr6.js"));
4018
4018
  return yield* runMcpServerCommand({ flags: command.flags });
4019
4019
  }
4020
4020
  if (command.action !== "setup")
@@ -4502,7 +4502,7 @@ function programLoopCommand(command) {
4502
4502
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4503
4503
  });
4504
4504
  }
4505
- var docsModule = promise(() => import("./chunk-yatva7be.js"));
4505
+ var docsModule = promise(() => import("./chunk-bbadvwds.js"));
4506
4506
  function docsCommand(args) {
4507
4507
  return gen(function* () {
4508
4508
  const command = parseCommand(args);
@@ -4536,11 +4536,11 @@ function docsCommand(args) {
4536
4536
  `));
4537
4537
  });
4538
4538
  }
4539
+ var agentListOptions = new Set(["--team", "--json", "--api-url", "--workspace"]);
4539
4540
  function agentCommand(args) {
4540
4541
  return gen(function* () {
4541
4542
  const command = parseCommand(args);
4542
4543
  const client = yield* loopClientFor(yield* resolveApiUrl(command.flags.apiUrl));
4543
- const print = (value, lines) => command.flags.json ? printJson(value) : forEach(lines(value), (line) => log(line), { discard: true });
4544
4544
  const resolvedField = (agent, field) => {
4545
4545
  const value = agent[field];
4546
4546
  const layer = agent.fieldLayers?.[field];
@@ -4573,9 +4573,22 @@ function agentCommand(args) {
4573
4573
  listField(agent, "skills")
4574
4574
  ].filter((field) => field !== "").join(" ");
4575
4575
  if (command.action === "list") {
4576
- const teamId = yield* optionalActiveTeamId(command.flags);
4577
- const listed = yield* client.listProgramAgents(yield* activeWorkspaceId(command.flags), teamId === undefined ? {} : { teamId });
4578
- return yield* print(listed, (value) => value.items.map(agentLine));
4576
+ const takes = "it takes --team <team> and --json";
4577
+ const refusedOption = args.slice(2).find((arg) => arg.startsWith("-") && !agentListOptions.has(arg));
4578
+ if (refusedOption !== undefined)
4579
+ return yield* new CliError({ message: `kitman agent list does not take ${refusedOption}; ${takes}` });
4580
+ if (command.args.length > 0)
4581
+ return yield* new CliError({ message: `kitman agent list takes no arguments; ${takes}` });
4582
+ const workspaceId = yield* activeWorkspaceId(command.flags);
4583
+ const teamRef = command.flags.team ?? (yield* optionalActiveTeamId(command.flags));
4584
+ const listed = yield* client.listProgramAgents(workspaceId, teamRef === undefined ? {} : { teamId: teamRef }).pipe(catchIf((error) => teamRef !== undefined && error.status === 404, () => fail7(new CliError({ message: `No Team ${teamRef} in the Workspace` }))));
4585
+ if (command.flags.json)
4586
+ return yield* printJson(listed);
4587
+ const team = teamRef === undefined ? undefined : yield* teamNamed(client, workspaceId, teamRef);
4588
+ const heading = team === undefined ? "Agents as the Workspace resolves them, the workspace layer only; --team <team> adds a Team's layer:" : `Agents as ${command.flags.team === undefined ? "the active " : ""}Team ${team.key}'s Runs resolve them, each field with the layer it came from:`;
4589
+ return yield* forEach([heading, ...listed.items.map(agentLine)], (line) => log(line), {
4590
+ discard: true
4591
+ });
4579
4592
  }
4580
4593
  return yield* new CliError({ message: `Unknown agent command: ${command.action}. Use kitman agent list.` });
4581
4594
  });
@@ -5322,9 +5335,9 @@ function changeRequestCommand(args) {
5322
5335
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5323
5336
  });
5324
5337
  }
5325
- var KitWriter = map8(promise(() => import("./chunk-6akwhwyp.js")), (build) => build.writeKit);
5338
+ var KitWriter = map8(promise(() => import("./chunk-kvm7j3ed.js")), (build) => build.writeKit);
5326
5339
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5327
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-6akwhwyp.js")), (build) => build.buildKit(directory))
5340
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-kvm7j3ed.js")), (build) => build.buildKit(directory))
5328
5341
  });
5329
5342
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5330
5343
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
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-ewhzaqp3.js");
8
+ const { runSrtCli } = await import("./chunk-s661f8p0.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-z450wa10.js");
11
+ const { runSrtStep } = await import("./chunk-rjdptgqf.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-0346hwh6.js");
14
+ const { runOpencodeReader } = await import("./chunk-2s4x5t92.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-h6hd61dn.js");
17
+ const { runCli } = await import("./chunk-yafg281p.js");
18
18
  runCli(args);
19
19
  }