@kitman-sh/cli 0.14.9 → 0.15.1

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 (30) hide show
  1. package/dist/{chunk-cwdrhsvk.js → chunk-0ws25xvg.js} +2 -2
  2. package/dist/{chunk-czmbgsqr.js → chunk-2vxb3q01.js} +656 -39
  3. package/dist/{chunk-mgjer6c7.js → chunk-39ykbhq8.js} +3 -3
  4. package/dist/{chunk-vt8aqeby.js → chunk-3ns4sbfb.js} +1 -1
  5. package/dist/{chunk-c80dvhxf.js → chunk-5hkdgzh4.js} +1 -6
  6. package/dist/{chunk-0x5r7h2g.js → chunk-60fhzjx3.js} +1127 -109
  7. package/dist/{chunk-enmtmq63.js → chunk-69xka6ew.js} +1 -1
  8. package/dist/{chunk-vjt0d9zj.js → chunk-6h70kent.js} +7 -7
  9. package/dist/{chunk-qb9jft1r.js → chunk-8wpg3rph.js} +2 -2
  10. package/dist/{chunk-ftre6ndb.js → chunk-91tmbf95.js} +6 -6
  11. package/dist/chunk-csxxwscf.js +39 -0
  12. package/dist/chunk-d40233pm.js +3080 -0
  13. package/dist/{chunk-jsb61dsk.js → chunk-dv4v0tbn.js} +1815 -117
  14. package/dist/{chunk-wttgq85b.js → chunk-dx792s4w.js} +1396 -41
  15. package/dist/{chunk-dd7wknyk.js → chunk-f36s9s1g.js} +1512 -125
  16. package/dist/{chunk-y9x0yv20.js → chunk-fggwdr03.js} +461 -224
  17. package/dist/{chunk-93xj74qp.js → chunk-fzaecdgv.js} +3 -3
  18. package/dist/{chunk-2r4jy82z.js → chunk-k2wd9r6t.js} +4 -4
  19. package/dist/{chunk-h7qv6nzc.js → chunk-kskb0hkb.js} +7 -7
  20. package/dist/{chunk-6qygqj10.js → chunk-tgt9a3yz.js} +6 -6
  21. package/dist/{chunk-bmwf2ea5.js → chunk-vg78dz3w.js} +85 -26
  22. package/dist/{chunk-axr8avvs.js → chunk-wh4bpc4w.js} +4 -4
  23. package/dist/chunk-xrjt25ns.js +4345 -0
  24. package/dist/{chunk-e3c15bgw.js → chunk-xx711t5r.js} +4 -4
  25. package/dist/{chunk-b2yy07ag.js → chunk-ygx2pda7.js} +7 -7
  26. package/dist/{chunk-cpss81fx.js → chunk-zy4sv70r.js} +13 -5
  27. package/dist/index.js +4 -4
  28. package/package.json +2 -1
  29. package/dist/chunk-3hdjd2c3.js +0 -1192
  30. package/dist/chunk-qvyqfm54.js +0 -526
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-czmbgsqr.js";
7
+ } from "./chunk-2vxb3q01.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -13,18 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-wttgq85b.js";
17
- import"./chunk-c80dvhxf.js";
16
+ } from "./chunk-dx792s4w.js";
18
17
  import {
19
18
  FileSystem,
20
19
  Path
21
- } from "./chunk-bmwf2ea5.js";
20
+ } from "./chunk-vg78dz3w.js";
22
21
  import {
23
22
  tomlTableHeader2,
24
23
  tomlKeyPath2,
25
24
  kitmanSkillEntry,
26
25
  isPathWithin2
27
- } from "./chunk-b2yy07ag.js";
26
+ } from "./chunk-ygx2pda7.js";
28
27
  import {
29
28
  instructionsStart,
30
29
  instructionsEnd,
@@ -32,9 +31,10 @@ import {
32
31
  antigravityPlugins,
33
32
  materializeKitSetup,
34
33
  tomlInline
35
- } from "./chunk-dd7wknyk.js";
36
- import"./chunk-h7qv6nzc.js";
37
- import"./chunk-2r4jy82z.js";
34
+ } from "./chunk-f36s9s1g.js";
35
+ import"./chunk-kskb0hkb.js";
36
+ import"./chunk-k2wd9r6t.js";
37
+ import"./chunk-5hkdgzh4.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-bmwf2ea5.js";
19
- import"./chunk-wttgq85b.js";
18
+ } from "./chunk-vg78dz3w.js";
19
+ import"./chunk-dx792s4w.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -51,7 +51,7 @@ import {
51
51
  withFiber2,
52
52
  flatMap3,
53
53
  andThen2,
54
- map8,
54
+ map9,
55
55
  catchCause2,
56
56
  catchCauseIf,
57
57
  orDie,
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-wttgq85b.js";
99
+ } from "./chunk-dx792s4w.js";
100
100
  import {
101
101
  interrupt,
102
102
  getCurrent,
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-bmwf2ea5.js";
111
+ } from "./chunk-vg78dz3w.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-dd7wknyk.js";
126
+ } from "./chunk-f36s9s1g.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")) {
@@ -200,7 +200,7 @@ var withRunClient = (f) => suspend3(() => {
200
200
  buffer.push([data, context]);
201
201
  return void_3;
202
202
  });
203
- return map8(f((clientId, data) => {
203
+ return map9(f((clientId, data) => {
204
204
  const clientWrite = clientWrites.get(clientId);
205
205
  if (clientWrite) {
206
206
  return clientWrite(data);
@@ -271,7 +271,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
271
271
  const queue = onStreamRequest(rpc, middleware, rpc.payloadSchema.make(payload), headers, opts?.streamBufferSize ?? 16, context);
272
272
  if (opts?.asQueue)
273
273
  return queue;
274
- return unwrap(map8(queue, fromQueue));
274
+ return unwrap(map9(queue, fromQueue));
275
275
  };
276
276
  };
277
277
  const onEffectRequest = (rpc, middleware, span, payload, headers, context, discard) => withFiber2((parentFiber) => {
@@ -0,0 +1,39 @@
1
+ // @bun
2
+ import {
3
+ isString2
4
+ } from "./chunk-dx792s4w.js";
5
+
6
+ // packages/core/src/question-recommendation.ts
7
+ var optionValue = (option) => isString2(option) ? option : option.value;
8
+ var splitQuestionOptions = (options) => {
9
+ const descriptions = Object.fromEntries(options.flatMap((option) => isString2(option) || option.description === undefined || option.description.trim() === "" ? [] : [[option.value, option.description]]));
10
+ return {
11
+ options: options.map(optionValue),
12
+ ...Object.keys(descriptions).length === 0 ? undefined : { optionDescriptions: descriptions }
13
+ };
14
+ };
15
+ var recommendationProblem = (question) => {
16
+ const options = question.options?.map(optionValue);
17
+ const reason = question.recommendationReason?.trim() ?? "";
18
+ const recommended = question.recommended?.trim() ?? "";
19
+ if (question.informationOnly === true) {
20
+ if (options !== undefined)
21
+ return "A Question with options always has one to recommend: set `recommended` to one of them, and drop `informationOnly`.";
22
+ if (recommended !== "")
23
+ return "A Question that recommends an answer is not `informationOnly`: drop `informationOnly`.";
24
+ return reason === "" ? "Say in `recommendationReason` why you cannot suggest an answer, such as that only the person knows the secret\u2019s name." : undefined;
25
+ }
26
+ if (recommended === "")
27
+ return `Add \`recommended\`: the answer you would pick${options === undefined ? ", as a suggested free-text answer" : `, one of: ${options.join(", ")}`}. Add \`recommendationReason\` too, in one or two sentences. Only a Question that purely asks for information you cannot guess, such as a secret's name, may set \`informationOnly\` instead and say why in \`recommendationReason\`.`;
28
+ if (options !== undefined && !options.includes(question.recommended ?? ""))
29
+ return `The recommended answer "${question.recommended}" is not one of the options: ${options.join(", ")}.`;
30
+ return reason === "" ? "Add `recommendationReason`: why you recommend that answer, in one or two sentences." : undefined;
31
+ };
32
+ var questionAdvice = (question) => ({
33
+ ...question.optionDescriptions === undefined ? undefined : { optionDescriptions: question.optionDescriptions },
34
+ ...question.recommended === undefined ? undefined : { recommended: question.recommended },
35
+ ...question.recommendationReason === undefined ? undefined : { recommendationReason: question.recommendationReason },
36
+ ...question.informationOnly === true ? { informationOnly: true } : undefined
37
+ });
38
+
39
+ export { splitQuestionOptions, recommendationProblem, questionAdvice };