@kitman-sh/cli 0.12.0-rc.7 → 0.12.0-rc.8

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-15geyg2d.js → chunk-3cgshf16.js} +98 -101
  2. package/dist/{chunk-j5t5nye5.js → chunk-3kxwb7qn.js} +7 -7
  3. package/dist/{chunk-bheg4ybe.js → chunk-6pqxsnk1.js} +22 -23
  4. package/dist/{chunk-e4an66v2.js → chunk-7959aeck.js} +5 -5
  5. package/dist/{chunk-xwya1er0.js → chunk-892qrkb3.js} +14 -60
  6. package/dist/{chunk-0346hwh6.js → chunk-8sz25ptv.js} +4 -5
  7. package/dist/{chunk-1t12wvv1.js → chunk-9c9vrbh4.js} +205 -216
  8. package/dist/{chunk-8twjqszj.js → chunk-9q7qc1dg.js} +1 -1
  9. package/dist/{chunk-z450wa10.js → chunk-bz4bp0q7.js} +3 -4
  10. package/dist/{chunk-znar1th3.js → chunk-d8qcmqh5.js} +4 -4
  11. package/dist/{chunk-2e91ymwn.js → chunk-det0tmx7.js} +1 -1
  12. package/dist/{chunk-xe8qf2xy.js → chunk-dh09wyed.js} +127 -129
  13. package/dist/{chunk-ewhzaqp3.js → chunk-e711ebdj.js} +2 -2
  14. package/dist/{chunk-wc2kba4z.js → chunk-ey4mf341.js} +6 -7
  15. package/dist/{chunk-qrm334c6.js → chunk-jg8n8z0z.js} +4 -4
  16. package/dist/{chunk-4w4spvb1.js → chunk-jwc8bdga.js} +5 -5
  17. package/dist/{chunk-nzjb36ad.js → chunk-mm2m3bys.js} +1 -1
  18. package/dist/{chunk-r5sw3fe0.js → chunk-mmpcdj8f.js} +10 -12
  19. package/dist/{chunk-0qz10ek8.js → chunk-s8m2tzdr.js} +4 -4
  20. package/dist/{chunk-xcf887a4.js → chunk-scb6qgy2.js} +47 -49
  21. package/dist/{chunk-5j848ckb.js → chunk-skqn4h13.js} +2 -2
  22. package/dist/{chunk-56knbdt6.js → chunk-vkchn89k.js} +23 -25
  23. package/dist/{chunk-pd2vz4bm.js → chunk-vrms6e1m.js} +13 -15
  24. package/dist/{chunk-vtfwjhzh.js → chunk-x3cc7dfc.js} +379 -63
  25. package/dist/{chunk-gspfm7qh.js → chunk-y7vjk8vv.js} +31 -165
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
  28. package/dist/chunk-c6rbt85q.js +0 -141
@@ -21,27 +21,25 @@ import {
21
21
  provideService,
22
22
  scoped,
23
23
  fnUntraced,
24
+ isJsonObject,
25
+ isString2,
24
26
  encodePrettyJsonString,
25
27
  decodeJsonStringSync
26
- } from "./chunk-vtfwjhzh.js";
27
- import {
28
- isJsonObject,
29
- isString
30
- } from "./chunk-c6rbt85q.js";
28
+ } from "./chunk-x3cc7dfc.js";
31
29
  import {
32
30
  FileSystem,
33
31
  Path,
34
32
  optionalEnv,
35
33
  tempDirectoryScoped
36
- } from "./chunk-gspfm7qh.js";
34
+ } from "./chunk-y7vjk8vv.js";
37
35
  import {
38
36
  AgentHarnessIds,
39
37
  sha2562,
40
38
  runCommand2
41
- } from "./chunk-1t12wvv1.js";
39
+ } from "./chunk-9c9vrbh4.js";
42
40
  import {
43
41
  NpmRegistry
44
- } from "./chunk-e4an66v2.js";
42
+ } from "./chunk-7959aeck.js";
45
43
 
46
44
  // packages/agent-runtime/src/config-convergence.ts
47
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -106,13 +104,13 @@ var readManagedNamesForConfig = (paths, file) => gen(function* () {
106
104
  return {
107
105
  mcpNames: new Set(servers.flatMap((entry) => {
108
106
  const item = objectValue(objectValue(entry).item);
109
- return isString(item.name) ? [item.name] : [];
107
+ return isString2(item.name) ? [item.name] : [];
110
108
  })),
111
109
  packageNames: new Set(plugins.flatMap((entry) => {
112
110
  const { source: legacySource, sources } = objectValue(objectValue(entry).item);
113
111
  return (Array.isArray(sources) ? sources : legacySource === undefined ? [] : [legacySource]).flatMap((source) => {
114
112
  const { kind, packageName } = objectValue(source);
115
- return kind === "package" && isString(packageName) ? [packageName] : [];
113
+ return kind === "package" && isString2(packageName) ? [packageName] : [];
116
114
  });
117
115
  })),
118
116
  skillPaths: manifestSkillPaths(manifest)
@@ -122,7 +120,7 @@ function manifestSkillPaths(manifest) {
122
120
  const materializedSkills = Array.isArray(manifest.materializedSkills) ? manifest.materializedSkills : [];
123
121
  return new Set(materializedSkills.flatMap((entry) => {
124
122
  const item = objectValue(entry);
125
- return isString(item.skillPath) ? [item.skillPath] : [];
123
+ return isString2(item.skillPath) ? [item.skillPath] : [];
126
124
  }));
127
125
  }
128
126
  var readManifestSkillPaths2 = (manifestPath) => map8(readExistingText(manifestPath), (text) => manifestSkillPaths(parseJsonObject(text)));
@@ -210,7 +208,7 @@ function mergeOpenCodeConfig(existingText, generatedText, managedMcpNames, manag
210
208
  `;
211
209
  }
212
210
  function isManagedPackageReference(entry, managedPackageNames, prefix = "") {
213
- if (!isString(entry))
211
+ if (!isString2(entry))
214
212
  return false;
215
213
  for (const name of managedPackageNames) {
216
214
  if (entry === `${prefix}${name}` || entry.startsWith(`${prefix}${name}@`))
@@ -253,7 +251,7 @@ function uniquePackageEntries(values) {
253
251
  const seen = new Set;
254
252
  const result = [];
255
253
  for (const value of values) {
256
- const key = isString(value) ? `string:${value}` : `json:${JSON.stringify(value)}`;
254
+ const key = isString2(value) ? `string:${value}` : `json:${JSON.stringify(value)}`;
257
255
  if (seen.has(key))
258
256
  continue;
259
257
  seen.add(key);
@@ -390,7 +388,7 @@ function codexSkillPathFromBlock(block) {
390
388
  for (const line of block) {
391
389
  const match = /^path\s*=\s*"((?:\\"|[^"])*)"/.exec(line.trim());
392
390
  const value = match === null ? undefined : decodeJsonStringSync(`"${match[1]}"`);
393
- if (isString(value))
391
+ if (isString2(value))
394
392
  return value;
395
393
  }
396
394
  }
@@ -411,7 +409,7 @@ function objectValue(value) {
411
409
  return isJsonObject(value) ? value : {};
412
410
  }
413
411
  function arrayValue(value) {
414
- return Array.isArray(value) ? value.filter((item) => isString(item)) : [];
412
+ return Array.isArray(value) ? value.filter((item) => isString2(item)) : [];
415
413
  }
416
414
  function uniqueStrings(values) {
417
415
  return [...new Set(values)];