poe-code 17.0.32 → 17.0.34

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 (92) hide show
  1. package/dist/{chunk-UC3KWJDL.js → chunk-EQAAKXQV.js} +8 -8
  2. package/dist/{chunk-54JM3XZC.js → chunk-LYH24BKM.js} +358 -46
  3. package/dist/chunk-LYH24BKM.js.map +7 -0
  4. package/dist/{chunk-GK6Z56OL.js → chunk-S2NLSD2J.js} +2 -2
  5. package/dist/{core-BR637SCW.js → core-CRWO3R4F.js} +2 -2
  6. package/dist/index.js +2 -2
  7. package/dist/metafile.json +1 -1
  8. package/dist/{program-3DNB5ZIC.js → program-3H7FXQW5.js} +3 -3
  9. package/dist/safe-bash.js +2 -2
  10. package/dist/{src-R4LATOF3.js → src-IES5F6JJ.js} +3 -3
  11. package/package.json +1 -1
  12. package/packages/package-lint/dist/bundle-policy.d.ts +3 -0
  13. package/packages/package-lint/dist/bundle-policy.js +4 -1
  14. package/packages/safe-bash/dist/chunks/{chunk-RVYQDJCC.js → chunk-AOT4SUBQ.js} +2 -2
  15. package/packages/safe-bash/dist/chunks/{chunk-MCBWPJRQ.js → chunk-FOMU56TU.js} +18 -2
  16. package/packages/safe-bash/dist/chunks/chunk-FOMU56TU.js.map +7 -0
  17. package/packages/safe-bash/dist/chunks/{chunk-JESM4RK2.js → chunk-KLEL3WAN.js} +41 -5
  18. package/packages/safe-bash/dist/chunks/chunk-KLEL3WAN.js.map +7 -0
  19. package/packages/safe-bash/dist/chunks/{chunk-LUQYNLH7.js → chunk-L4HKTYVE.js} +2 -2
  20. package/packages/safe-bash/dist/chunks/{chunk-WSCXISXW.js → chunk-RYXT5BJJ.js} +2 -2
  21. package/packages/safe-bash/dist/chunks/{chunk-HC4S4QZD.js → chunk-WSX5CLK2.js} +2 -2
  22. package/packages/safe-bash/dist/chunks/{chunk-BM3BGSH7.js → chunk-YJPA2BVP.js} +63 -20
  23. package/packages/safe-bash/dist/chunks/chunk-YJPA2BVP.js.map +7 -0
  24. package/packages/safe-bash/dist/commands/archive/index.d.ts.map +1 -1
  25. package/packages/safe-bash/dist/commands/archive/index.js +27 -0
  26. package/packages/safe-bash/dist/commands/archive/index.js.map +1 -1
  27. package/packages/safe-bash/dist/commands/archive/options.d.ts +1 -1
  28. package/packages/safe-bash/dist/commands/archive/options.d.ts.map +1 -1
  29. package/packages/safe-bash/dist/commands/archive/options.js +2 -0
  30. package/packages/safe-bash/dist/commands/archive/options.js.map +1 -1
  31. package/packages/safe-bash/dist/commands/basic.d.ts.map +1 -1
  32. package/packages/safe-bash/dist/commands/basic.js +9 -2
  33. package/packages/safe-bash/dist/commands/basic.js.map +1 -1
  34. package/packages/safe-bash/dist/commands/csplit/index.browser.js +1 -1
  35. package/packages/safe-bash/dist/commands/internal.d.ts +5 -2
  36. package/packages/safe-bash/dist/commands/internal.d.ts.map +1 -1
  37. package/packages/safe-bash/dist/commands/internal.js +48 -4
  38. package/packages/safe-bash/dist/commands/internal.js.map +1 -1
  39. package/packages/safe-bash/dist/commands/llm/index.browser.js +2 -2
  40. package/packages/safe-bash/dist/commands/network/index.browser.js +2 -2
  41. package/packages/safe-bash/dist/commands/node/index.browser.js +2 -2
  42. package/packages/safe-bash/dist/commands/regex-execution/ascii.d.ts +2 -0
  43. package/packages/safe-bash/dist/commands/regex-execution/ascii.d.ts.map +1 -1
  44. package/packages/safe-bash/dist/commands/regex-execution/ascii.js +4 -0
  45. package/packages/safe-bash/dist/commands/regex-execution/ascii.js.map +1 -1
  46. package/packages/safe-bash/dist/commands/regex-execution/bounded-provider.d.ts.map +1 -1
  47. package/packages/safe-bash/dist/commands/regex-execution/bounded-provider.js +51 -21
  48. package/packages/safe-bash/dist/commands/regex-execution/bounded-provider.js.map +1 -1
  49. package/packages/safe-bash/dist/commands/regex-execution/ere/matcher.d.ts +2 -2
  50. package/packages/safe-bash/dist/commands/regex-execution/ere/matcher.d.ts.map +1 -1
  51. package/packages/safe-bash/dist/commands/regex-execution/ere/matcher.js +23 -9
  52. package/packages/safe-bash/dist/commands/regex-execution/ere/matcher.js.map +1 -1
  53. package/packages/safe-bash/dist/commands/search/grep.d.ts.map +1 -1
  54. package/packages/safe-bash/dist/commands/search/grep.js +99 -4
  55. package/packages/safe-bash/dist/commands/search/grep.js.map +1 -1
  56. package/packages/safe-bash/dist/commands/search/options.d.ts +1 -0
  57. package/packages/safe-bash/dist/commands/search/options.d.ts.map +1 -1
  58. package/packages/safe-bash/dist/commands/search/options.js +4 -1
  59. package/packages/safe-bash/dist/commands/search/options.js.map +1 -1
  60. package/packages/safe-bash/dist/commands/search/rg-command.d.ts.map +1 -1
  61. package/packages/safe-bash/dist/commands/search/rg-command.js +59 -0
  62. package/packages/safe-bash/dist/commands/search/rg-command.js.map +1 -1
  63. package/packages/safe-bash/dist/commands/streams.d.ts.map +1 -1
  64. package/packages/safe-bash/dist/commands/streams.js +32 -12
  65. package/packages/safe-bash/dist/commands/streams.js.map +1 -1
  66. package/packages/safe-bash/dist/commands/structured/jq.d.ts.map +1 -1
  67. package/packages/safe-bash/dist/commands/structured/jq.js +8 -4
  68. package/packages/safe-bash/dist/commands/structured/jq.js.map +1 -1
  69. package/packages/safe-bash/dist/commands/structured/values.d.ts +1 -0
  70. package/packages/safe-bash/dist/commands/structured/values.d.ts.map +1 -1
  71. package/packages/safe-bash/dist/commands/structured/values.js +18 -1
  72. package/packages/safe-bash/dist/commands/structured/values.js.map +1 -1
  73. package/packages/safe-bash/dist/commands/text-programs/sed.d.ts.map +1 -1
  74. package/packages/safe-bash/dist/commands/text-programs/sed.js +10 -1
  75. package/packages/safe-bash/dist/commands/text-programs/sed.js.map +1 -1
  76. package/packages/safe-bash/dist/commands/xml/index.browser.js +2 -2
  77. package/packages/safe-bash/dist/commands/yq/index.browser.js +2 -2
  78. package/packages/safe-bash/dist/core.browser.js +248 -29
  79. package/packages/safe-bash/dist/core.browser.js.map +3 -3
  80. package/dist/chunk-54JM3XZC.js.map +0 -7
  81. package/packages/safe-bash/dist/chunks/chunk-BM3BGSH7.js.map +0 -7
  82. package/packages/safe-bash/dist/chunks/chunk-JESM4RK2.js.map +0 -7
  83. package/packages/safe-bash/dist/chunks/chunk-MCBWPJRQ.js.map +0 -7
  84. /package/dist/{chunk-UC3KWJDL.js.map → chunk-EQAAKXQV.js.map} +0 -0
  85. /package/dist/{chunk-GK6Z56OL.js.map → chunk-S2NLSD2J.js.map} +0 -0
  86. /package/dist/{core-BR637SCW.js.map → core-CRWO3R4F.js.map} +0 -0
  87. /package/dist/{program-3DNB5ZIC.js.map → program-3H7FXQW5.js.map} +0 -0
  88. /package/dist/{src-R4LATOF3.js.map → src-IES5F6JJ.js.map} +0 -0
  89. /package/packages/safe-bash/dist/chunks/{chunk-RVYQDJCC.js.map → chunk-AOT4SUBQ.js.map} +0 -0
  90. /package/packages/safe-bash/dist/chunks/{chunk-LUQYNLH7.js.map → chunk-L4HKTYVE.js.map} +0 -0
  91. /package/packages/safe-bash/dist/chunks/{chunk-WSCXISXW.js.map → chunk-RYXT5BJJ.js.map} +0 -0
  92. /package/packages/safe-bash/dist/chunks/{chunk-HC4S4QZD.js.map → chunk-WSX5CLK2.js.map} +0 -0
@@ -78,7 +78,7 @@ import {
78
78
  traceReaders,
79
79
  validateResolvedPromptVars,
80
80
  writeFrontmatter
81
- } from "./chunk-GK6Z56OL.js";
81
+ } from "./chunk-S2NLSD2J.js";
82
82
  import {
83
83
  checkAuth,
84
84
  createCliEnvironment,
@@ -7692,7 +7692,7 @@ function registerBashCommand(program) {
7692
7692
  });
7693
7693
  try {
7694
7694
  if (ui) await once(ui, "open");
7695
- const { MemoryFileSystem, RealFileSystem } = await import("./src-R4LATOF3.js");
7695
+ const { MemoryFileSystem, RealFileSystem } = await import("./src-IES5F6JJ.js");
7696
7696
  const totals = { upload: 0, download: 0 };
7697
7697
  const result = await runBash({
7698
7698
  ...dryRun ? { dryRun: true } : {},
@@ -24002,4 +24002,4 @@ function suppressCommanderOutput(command) {
24002
24002
  export {
24003
24003
  createProgram
24004
24004
  };
24005
- //# sourceMappingURL=program-3DNB5ZIC.js.map
24005
+ //# sourceMappingURL=program-3H7FXQW5.js.map
package/dist/safe-bash.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  opCommands,
24
24
  posix,
25
25
  ssconvertCommands
26
- } from "./chunk-UC3KWJDL.js";
26
+ } from "./chunk-EQAAKXQV.js";
27
27
  import {
28
28
  ACCESS_MODES,
29
29
  CurlError,
@@ -212,7 +212,7 @@ import {
212
212
  writeText,
213
213
  xmlCommands,
214
214
  yqCommands
215
- } from "./chunk-54JM3XZC.js";
215
+ } from "./chunk-LYH24BKM.js";
216
216
  import {
217
217
  CommandArgumentIdentityError,
218
218
  CommandRegistry,
@@ -23,7 +23,7 @@ import {
23
23
  opCommands,
24
24
  posix,
25
25
  ssconvertCommands
26
- } from "./chunk-UC3KWJDL.js";
26
+ } from "./chunk-EQAAKXQV.js";
27
27
  import {
28
28
  ACCESS_MODES,
29
29
  CurlError,
@@ -212,7 +212,7 @@ import {
212
212
  writeText,
213
213
  xmlCommands,
214
214
  yqCommands
215
- } from "./chunk-54JM3XZC.js";
215
+ } from "./chunk-LYH24BKM.js";
216
216
  import {
217
217
  CommandArgumentIdentityError,
218
218
  CommandRegistry,
@@ -441,4 +441,4 @@ export {
441
441
  xmlCommands,
442
442
  yqCommands
443
443
  };
444
- //# sourceMappingURL=src-R4LATOF3.js.map
444
+ //# sourceMappingURL=src-IES5F6JJ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "17.0.32",
3
+ "version": "17.0.34",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -167,6 +167,9 @@ export declare const canonicalFs: {
167
167
  readonly node: "packages/safe-fs/dist/node/filesystem.d.ts";
168
168
  readonly browser: "packages/safe-fs/dist/node-unavailable.d.ts";
169
169
  };
170
+ }, {
171
+ readonly workspace: "@poe-code/safe-fs/xml";
172
+ readonly specifier: "poe-code/safe-fs/core";
170
173
  }];
171
174
  };
172
175
  export interface BundleMetafile {
@@ -101,7 +101,10 @@ export const canonicalFs = {
101
101
  source: "packages/safe-fs/src/index.ts",
102
102
  runtime: "packages/safe-js/dist/safe-fs.js",
103
103
  types: "packages/safe-fs/dist/index.d.ts",
104
- routes: canonicalFsRoutes
104
+ routes: [
105
+ ...canonicalFsRoutes,
106
+ { workspace: "@poe-code/safe-fs/xml", specifier: "poe-code/safe-fs/core" }
107
+ ]
105
108
  };
106
109
  function record(value) {
107
110
  return value !== null && typeof value === "object" && !Array.isArray(value)
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  pathOf,
6
6
  writeDiagnostic
7
- } from "./chunk-JESM4RK2.js";
7
+ } from "./chunk-KLEL3WAN.js";
8
8
  import {
9
9
  createOutputOperation
10
10
  } from "./chunk-LCORBKFF.js";
@@ -1432,4 +1432,4 @@ export {
1432
1432
  createCurlCommands,
1433
1433
  curlCommands
1434
1434
  };
1435
- //# sourceMappingURL=chunk-RVYQDJCC.js.map
1435
+ //# sourceMappingURL=chunk-AOT4SUBQ.js.map
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  escapeText,
27
27
  pathOf
28
- } from "./chunk-JESM4RK2.js";
28
+ } from "./chunk-KLEL3WAN.js";
29
29
  import {
30
30
  createOutputOperation
31
31
  } from "./chunk-LCORBKFF.js";
@@ -643,6 +643,21 @@ async function sortedKeys(value, budget) {
643
643
  await stableSort(keys, budget, (left, right) => stringCompare(left, right, budget));
644
644
  return keys;
645
645
  }
646
+ async function sortObjectKeys(value, budget) {
647
+ await budget.tick();
648
+ if (Array.isArray(value)) {
649
+ budget.collection(value.length);
650
+ const result = [];
651
+ for (const item of value) result.push(await sortObjectKeys(item, budget));
652
+ return result;
653
+ }
654
+ if (isObject(value)) {
655
+ const result = object();
656
+ for (const key of await sortedKeys(value, budget)) put(result, key, await sortObjectKeys(value[key], budget));
657
+ return result;
658
+ }
659
+ return value;
660
+ }
646
661
  async function compare(left, right, budget) {
647
662
  await budget.tick();
648
663
  const rank = (value) => value === null ? 0 : value === false ? 1 : value === true ? 2 : isNumber(value) ? 3 : typeof value === "string" ? 4 : Array.isArray(value) ? 5 : 6;
@@ -5221,10 +5236,11 @@ export {
5221
5236
  jsonValues,
5222
5237
  rawValues,
5223
5238
  stringify,
5239
+ sortObjectKeys,
5224
5240
  Interpreter,
5225
5241
  parse,
5226
5242
  createYqCommand,
5227
5243
  createYqCommands,
5228
5244
  yqCommands
5229
5245
  };
5230
- //# sourceMappingURL=chunk-MCBWPJRQ.js.map
5246
+ //# sourceMappingURL=chunk-FOMU56TU.js.map