@poe-platform/safe-bash 0.1.801 → 0.1.802

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 (83) hide show
  1. package/dist/image-ast/index.browser.js +3 -1
  2. package/dist/image-ast/index.js +3 -1
  3. package/dist/safe-bash/chunks/chunk-3HQU4OJO.js +13 -0
  4. package/dist/safe-bash/chunks/{chunk-SZH7EJLD.js → chunk-44ALJ4QG.js} +5461 -6495
  5. package/dist/safe-bash/chunks/chunk-4BSJLKNM.js +14 -0
  6. package/dist/safe-bash/chunks/chunk-4D4N7IU2.js +47 -0
  7. package/dist/safe-bash/chunks/chunk-55YJASTN.js +14 -0
  8. package/dist/safe-bash/chunks/chunk-7ZBU7KYV.js +14 -0
  9. package/dist/safe-bash/chunks/chunk-DQP3VHSB.js +15 -0
  10. package/dist/safe-bash/chunks/chunk-FZE4HW6G.js +11 -0
  11. package/dist/safe-bash/chunks/chunk-GEG3BWGE.js +14 -0
  12. package/dist/safe-bash/chunks/{chunk-45PK3NWI.js → chunk-GETUOD5D.js} +1 -1
  13. package/dist/safe-bash/chunks/chunk-HBCN24ZA.js +50 -0
  14. package/dist/safe-bash/chunks/chunk-HZ7BWKQ3.js +13 -0
  15. package/dist/safe-bash/chunks/{chunk-ICFDYV64.js → chunk-HZAMGT5I.js} +2 -2
  16. package/dist/safe-bash/chunks/chunk-KDNSPLII.js +83 -0
  17. package/dist/safe-bash/chunks/{chunk-PQRAK7HU.js → chunk-NQCM3TYR.js} +238 -462
  18. package/dist/safe-bash/chunks/{chunk-IVRQ4BXL.js → chunk-PH63PLPZ.js} +7 -7
  19. package/dist/safe-bash/chunks/chunk-QGUV42T5.js +44 -0
  20. package/dist/safe-bash/chunks/chunk-R3NAKOED.js +51 -0
  21. package/dist/safe-bash/chunks/chunk-RRR7AQ24.js +38 -0
  22. package/dist/safe-bash/chunks/{chunk-FNDNHAGE.js → chunk-RSTHLAF3.js} +1 -1
  23. package/dist/safe-bash/chunks/{chunk-7VNF5BFF.js → chunk-SHEMU2Z7.js} +83 -416
  24. package/dist/safe-bash/chunks/{chunk-NR3EM4LS.js → chunk-VKNVHEX3.js} +1 -6
  25. package/dist/safe-bash/chunks/chunk-VSAJ4OTM.js +962 -0
  26. package/dist/safe-bash/chunks/{chunk-VQDD3G76.js → chunk-WDLGKIHD.js} +19 -19
  27. package/dist/safe-bash/chunks/chunk-XAQMU6OY.js +14 -0
  28. package/dist/safe-bash/chunks/chunk-ZVD5IS4V.js +49 -0
  29. package/dist/safe-bash/command-chunks/{chunk-PCEFOYA3.js → chunk-6GWJUQAV.js} +3 -3
  30. package/dist/safe-bash/command-chunks/{chunk-EFANWIHL.js → chunk-GY3BWK7K.js} +1 -0
  31. package/dist/safe-bash/command-chunks/{chunk-WBNZ4PRE.js → chunk-NGG2XL56.js} +7 -4
  32. package/dist/safe-bash/command-chunks/{chunk-GLOZX57Y.js → chunk-OQKC5ZU2.js} +23 -114
  33. package/dist/safe-bash/command-chunks/{chunk-CZ7EN3JG.js → chunk-VT6MJBEI.js} +1 -1
  34. package/dist/safe-bash/command-chunks/{chunk-F6OYH562.js → chunk-X54L3DBL.js} +4 -9
  35. package/dist/safe-bash/command-chunks/{chunk-TNOA7FCQ.js → chunk-YVNGTIJO.js} +1 -1
  36. package/dist/safe-bash/commands/apply-patch/index.browser.js +14 -0
  37. package/dist/safe-bash/commands/archive/index.browser.js +36 -0
  38. package/dist/safe-bash/commands/column/index.browser.js +12 -0
  39. package/dist/safe-bash/commands/du/index.browser.js +14 -0
  40. package/dist/safe-bash/commands/expr/index.browser.js +12 -0
  41. package/dist/safe-bash/commands/file/index.browser.js +14 -0
  42. package/dist/safe-bash/commands/filesystem.js +9 -2
  43. package/dist/safe-bash/commands/grep-aliases/index.browser.js +14 -0
  44. package/dist/safe-bash/commands/html-to-markdown/index.browser.js +16 -0
  45. package/dist/safe-bash/commands/metadata/index.browser.js +21 -0
  46. package/dist/safe-bash/commands/network/index.browser.js +1 -1
  47. package/dist/safe-bash/commands/node/index.browser.js +3 -3
  48. package/dist/safe-bash/commands/python/index.browser.js +8 -8
  49. package/dist/safe-bash/commands/regex-execution/public.browser.js +5 -3
  50. package/dist/safe-bash/commands/split/index.browser.js +14 -0
  51. package/dist/safe-bash/commands/stream-format/index.browser.js +11 -0
  52. package/dist/safe-bash/commands/stream-inspection/index.browser.js +11 -0
  53. package/dist/safe-bash/commands/streams.js +5 -5
  54. package/dist/safe-bash/commands/table-text/index.browser.js +11 -0
  55. package/dist/safe-bash/commands/text.js +2 -133
  56. package/dist/safe-bash/commands/time-env/index.browser.js +15 -0
  57. package/dist/safe-bash/commands/tree/index.browser.js +14 -0
  58. package/dist/safe-bash/full-core.browser.js +227 -218
  59. package/dist/safe-bash/jobs.browser.js +2 -2
  60. package/dist/safe-bash/optional-host.browser.js +8 -8
  61. package/dist/safe-bash/plugins/index.browser.js +23 -9
  62. package/dist/safe-bash/registry-entry.browser.js +23 -9
  63. package/dist/safe-bash/search.browser.js +48 -0
  64. package/dist/safe-bash/shell/runtime.d.ts +0 -9
  65. package/dist/safe-bash/shell/runtime.js +43 -308
  66. package/dist/safe-bash/shell/shell.js +0 -23
  67. package/dist/safe-bash/shell-entry.browser.js +19 -10
  68. package/dist/safe-bash-command-nl/index.js +1 -1
  69. package/dist/safe-bash-command-nl/nl.js +1 -1
  70. package/dist/safe-bash-command-rg/index.js +1 -1
  71. package/dist/safe-bash-command-rg/rg-command.d.ts +0 -1
  72. package/dist/safe-bash-command-rg/rg-command.js +3 -5
  73. package/dist/safe-bash-command-unexpand/index.js +1 -1
  74. package/dist/safe-bash-command-unexpand/unexpand.js +1 -1
  75. package/dist/safe-bash-mcp/index.js +3 -1
  76. package/dist/safe-bash-regex-engine/index.js +4 -4
  77. package/dist/safe-bash-regex-engine/text/budget.d.ts +0 -1
  78. package/dist/safe-bash-regex-engine/text/budget.js +1 -1
  79. package/dist/safe-bash-regex-engine/text/regex.js +4 -4
  80. package/dist/safe-bash-regex-engine/text/replacement-buffer.js +2 -2
  81. package/dist/safe-bash-regex-engine/text/rust-syntax.js +2 -2
  82. package/package.json +65 -10
  83. package/dist/safe-bash/chunks/{chunk-A7XEHALN.js → chunk-BJA5XNP6.js} +3 -3
@@ -2,18 +2,18 @@ import {
2
2
  init_platform
3
3
  } from "./chunk-B7TAL7S5.js";
4
4
 
5
- // packages/safe-bash/src/diagnostics.ts
6
- init_platform();
7
- import { PublicDiagnostic, UsageError, publicDiagnosticMessage } from "../../safe-bash-contracts/diagnostics.js";
8
-
9
5
  // packages/safe-bash/src/escaping.ts
10
6
  init_platform();
11
7
  import { escapeText, quoteShellOperand, writeDiagnostic } from "../../safe-bash-query-engine/escaping.js";
12
8
 
9
+ // packages/safe-bash/src/diagnostics.ts
10
+ init_platform();
11
+ import { PublicDiagnostic, UsageError, publicDiagnosticMessage } from "../../safe-bash-contracts/diagnostics.js";
12
+
13
13
  export {
14
- PublicDiagnostic,
15
- publicDiagnosticMessage,
16
14
  escapeText,
17
15
  quoteShellOperand,
18
- writeDiagnostic
16
+ writeDiagnostic,
17
+ PublicDiagnostic,
18
+ publicDiagnosticMessage
19
19
  };
@@ -0,0 +1,44 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/archive/index.ts
6
+ init_platform();
7
+ import { createTarCommand } from "../../safe-bash-command-tar/index.js";
8
+ import { createZipCommand } from "../../safe-bash-command-zip/index.js";
9
+ import { createUnzipCommand } from "../../safe-bash-command-unzip/index.js";
10
+ import { DEFAULT_ARCHIVE_LIMITS, createTarCommand as createTarCommand2, createTarCommands, evalSyncTar, tarCommands } from "../../safe-bash-command-tar/index.js";
11
+ import { createZipCommand as createZipCommand2, createZipCommands, zipCommands, evalSyncZip } from "../../safe-bash-command-zip/index.js";
12
+ import { createUnzipCommand as createUnzipCommand2, createUnzipCommands, unzipCommands, evalSyncUnzip } from "../../safe-bash-command-unzip/index.js";
13
+ function createArchiveCommands(options = {}) {
14
+ return [createTarCommand(options), createZipCommand(options), createUnzipCommand(options)];
15
+ }
16
+ function archiveCommands(options = {}) {
17
+ const commands = createArchiveCommands(options);
18
+ return { name: "archive-commands", setup(host) {
19
+ if (!options.replace) {
20
+ for (const command of commands) {
21
+ if (host.commands.has(command.name)) throw new Error(`Command already registered: ${command.name}`);
22
+ }
23
+ }
24
+ for (const command of commands) host.commands.register(command, { replace: options.replace ?? false });
25
+ } };
26
+ }
27
+
28
+ export {
29
+ createArchiveCommands,
30
+ archiveCommands,
31
+ DEFAULT_ARCHIVE_LIMITS,
32
+ createTarCommand2 as createTarCommand,
33
+ createTarCommands,
34
+ evalSyncTar,
35
+ tarCommands,
36
+ createZipCommand2 as createZipCommand,
37
+ createZipCommands,
38
+ zipCommands,
39
+ evalSyncZip,
40
+ createUnzipCommand2 as createUnzipCommand,
41
+ createUnzipCommands,
42
+ unzipCommands,
43
+ evalSyncUnzip
44
+ };
@@ -0,0 +1,51 @@
1
+ import {
2
+ builtInDirectContextExecutors
3
+ } from "./chunk-E7OYNDGL.js";
4
+ import {
5
+ init_platform
6
+ } from "./chunk-B7TAL7S5.js";
7
+
8
+ // packages/safe-bash/src/commands/stream-format/index.ts
9
+ init_platform();
10
+
11
+ // packages/safe-bash/src/commands/stream-format/seq.ts
12
+ init_platform();
13
+ import { createSeqWithSettings } from "../../safe-bash-command-seq/seq.js";
14
+
15
+ // packages/safe-bash/src/commands/stream-format/nl.ts
16
+ init_platform();
17
+ import { createNlWithSettings } from "../../safe-bash-command-nl/nl.js";
18
+
19
+ // packages/safe-bash/src/commands/stream-format/rev.ts
20
+ init_platform();
21
+ import { createRevWithSettings } from "../../safe-bash-command-rev/rev.js";
22
+
23
+ // packages/safe-bash/src/commands/stream-format/unexpand.ts
24
+ init_platform();
25
+ import { createUnexpandWithSettings } from "../../safe-bash-command-unexpand/unexpand.js";
26
+
27
+ // packages/safe-bash/src/commands/stream-format/shared.ts
28
+ init_platform();
29
+ import { ByteOutput, Session, command, forEachRecord, records, settings } from "../../safe-bash-text-stream-engine/stream-format/shared.js";
30
+
31
+ // packages/safe-bash/src/commands/stream-format/index.ts
32
+ function createStreamFormatCommands(options = {}) {
33
+ const limits = settings(options);
34
+ const defs = [createSeqWithSettings(limits), createNlWithSettings(limits), createRevWithSettings(limits), createUnexpandWithSettings(limits)];
35
+ for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
36
+ return defs;
37
+ }
38
+ function streamFormatCommands(options = {}) {
39
+ const commands = createStreamFormatCommands(options);
40
+ return { name: "stream-format-commands", setup(host) {
41
+ if (!options.replace) for (const definition of commands) {
42
+ if (host.commands.has(definition.name)) throw new Error(`Command already registered: ${definition.name}`);
43
+ }
44
+ for (const definition of commands) host.commands.register(definition, { replace: options.replace ?? false });
45
+ } };
46
+ }
47
+
48
+ export {
49
+ createStreamFormatCommands,
50
+ streamFormatCommands
51
+ };
@@ -0,0 +1,38 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/grep-aliases/index.ts
6
+ init_platform();
7
+ import { createGrepCommands } from "../../safe-bash-command-grep/index.js";
8
+ import { createGrepAliases } from "../../safe-bash-io-engine/commands/grep-aliases/aliases.js";
9
+
10
+ // packages/safe-bash/src/commands/egrep/index.ts
11
+ init_platform();
12
+ import { createEgrepCommand, createEgrepCommands, egrepCommands } from "../../safe-bash-command-egrep/index.js";
13
+
14
+ // packages/safe-bash/src/commands/fgrep/index.ts
15
+ init_platform();
16
+ import { createFgrepCommand, createFgrepCommands, fgrepCommands } from "../../safe-bash-command-fgrep/index.js";
17
+
18
+ // packages/safe-bash/src/commands/grep-aliases/index.ts
19
+ function createGrepAliasCommands(options = {}) {
20
+ const grep = createGrepCommands({ ...options.regex, ...options.regexExecutor === void 0 ? {} : { regexExecutor: options.regexExecutor } })[0];
21
+ return createGrepAliases(grep);
22
+ }
23
+ function grepAliasCommands(options = {}) {
24
+ const commands = createGrepAliasCommands(options);
25
+ return { name: "grep-alias-commands", setup(host) {
26
+ if (!options.replace) {
27
+ for (const command of commands) if (host.commands.has(command.name)) throw new Error(`Command already registered: ${command.name}`);
28
+ }
29
+ for (const command of commands) host.commands.register(command, { replace: options.replace ?? false });
30
+ } };
31
+ }
32
+
33
+ export {
34
+ createEgrepCommand,
35
+ createFgrepCommand,
36
+ createGrepAliasCommands,
37
+ grepAliasCommands
38
+ };
@@ -2,7 +2,7 @@ import {
2
2
  PublicDiagnostic,
3
3
  publicDiagnosticMessage,
4
4
  writeDiagnostic
5
- } from "./chunk-IVRQ4BXL.js";
5
+ } from "./chunk-PH63PLPZ.js";
6
6
  import {
7
7
  byteLength,
8
8
  concatBytes,