@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
@@ -0,0 +1,14 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/file/index.ts
6
+ init_platform();
7
+ import { createFileCommand, createFileCommands, evalSyncFile, fileCommands } from "../../safe-bash-command-file/index.js";
8
+
9
+ export {
10
+ createFileCommand,
11
+ createFileCommands,
12
+ evalSyncFile,
13
+ fileCommands
14
+ };
@@ -0,0 +1,47 @@
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/table-text/index.ts
9
+ init_platform();
10
+
11
+ // packages/safe-bash/src/commands/table-text/paste.ts
12
+ init_platform();
13
+ import { createPasteCommand } from "../../safe-bash-command-paste/paste.js";
14
+
15
+ // packages/safe-bash/src/commands/table-text/comm.ts
16
+ init_platform();
17
+ import { createCommCommand } from "../../safe-bash-command-comm/comm.js";
18
+
19
+ // packages/safe-bash/src/commands/table-text/join.ts
20
+ init_platform();
21
+ import { createJoinCommand } from "../../safe-bash-command-join/join.js";
22
+
23
+ // packages/safe-bash/src/commands/table-text/internal.ts
24
+ init_platform();
25
+ import { Budget, Inputs, OrderCheck, RecordReader, argument, command, compare, empty, encode, fail, settings } from "../../safe-bash-table-text-engine/table-text/internal.js";
26
+
27
+ // packages/safe-bash/src/commands/table-text/index.ts
28
+ function createTableTextCommands(options = {}) {
29
+ settings(options);
30
+ const defs = [createPasteCommand(options), createCommCommand(options), createJoinCommand(options)];
31
+ for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
32
+ return defs;
33
+ }
34
+ function tableTextCommands(options = {}) {
35
+ const commands = createTableTextCommands(options);
36
+ return { name: "table-text-commands", setup(host) {
37
+ if (!options.replace) for (const definition of commands) {
38
+ if (host.commands.has(definition.name)) throw new Error(`Command already registered: ${definition.name}`);
39
+ }
40
+ for (const definition of commands) host.commands.register(definition, { replace: options.replace ?? false });
41
+ } };
42
+ }
43
+
44
+ export {
45
+ createTableTextCommands,
46
+ tableTextCommands
47
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/tree/index.ts
6
+ init_platform();
7
+ import { createTreeCommand, createTreeCommands, evalSyncTree, treeCommands } from "../../safe-bash-command-tree/index.js";
8
+
9
+ export {
10
+ createTreeCommand,
11
+ createTreeCommands,
12
+ evalSyncTree,
13
+ treeCommands
14
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/split/index.ts
6
+ init_platform();
7
+ import { createSplitCommand, createSplitCommands, evalSyncSplit, splitCommands } from "../../safe-bash-command-split/index.js";
8
+
9
+ export {
10
+ createSplitCommand,
11
+ createSplitCommands,
12
+ evalSyncSplit,
13
+ splitCommands
14
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/html-to-markdown/index.ts
6
+ init_platform();
7
+ import { createHtmlToMarkdownCommand, createHtmlToMarkdownCommands, evalSyncHtmlToMarkdown, evalSyncShuf, htmlToMarkdownCommands } from "../../safe-bash-command-html-to-markdown/index.js";
8
+
9
+ export {
10
+ createHtmlToMarkdownCommand,
11
+ createHtmlToMarkdownCommands,
12
+ evalSyncHtmlToMarkdown,
13
+ evalSyncShuf,
14
+ htmlToMarkdownCommands
15
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/regex-execution/bounded-provider.ts
6
+ init_platform();
7
+ import { createBoundedRegexProvider } from "../../safe-bash-regex-engine/execution/bounded-provider.js";
8
+
9
+ export {
10
+ createBoundedRegexProvider
11
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/du/index.ts
6
+ init_platform();
7
+ import { createDuCommand, createDuCommands, duCommands, evalSyncDu } from "../../safe-bash-command-du/index.js";
8
+
9
+ export {
10
+ createDuCommand,
11
+ createDuCommands,
12
+ duCommands,
13
+ evalSyncDu
14
+ };
@@ -2,7 +2,7 @@ import {
2
2
  composeAgentCommands,
3
3
  createAgentCommandPlugin,
4
4
  createRegexExecutors
5
- } from "./chunk-PQRAK7HU.js";
5
+ } from "./chunk-NQCM3TYR.js";
6
6
  import {
7
7
  commandRuntimeIdentity
8
8
  } from "./chunk-7R5BDCG7.js";
@@ -0,0 +1,50 @@
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-inspection/index.ts
9
+ init_platform();
10
+
11
+ // packages/safe-bash/src/commands/stream-inspection/tac.ts
12
+ init_platform();
13
+ import { createTacWithSettings } from "../../safe-bash-command-tac/tac.js";
14
+
15
+ // packages/safe-bash/src/commands/stream-inspection/expand.ts
16
+ init_platform();
17
+ import { createExpandWithSettings } from "../../safe-bash-command-expand/expand.js";
18
+
19
+ // packages/safe-bash/src/commands/stream-inspection/index.ts
20
+ import { createFoldCommand } from "../../safe-bash-command-fold/family.js";
21
+
22
+ // packages/safe-bash/src/commands/stream-inspection/strings.ts
23
+ init_platform();
24
+ import { createStringsWithSettings } from "../../safe-bash-command-strings/strings.js";
25
+
26
+ // packages/safe-bash/src/commands/stream-inspection/shared.ts
27
+ init_platform();
28
+ import { ByteOutput, RecordBuffer, Session, command, settings } from "../../safe-bash-text-stream-engine/stream-inspection/shared.js";
29
+
30
+ // packages/safe-bash/src/commands/stream-inspection/index.ts
31
+ function createStreamInspectionCommands(options = {}) {
32
+ const limits = settings(options);
33
+ const defs = [createTacWithSettings(limits), createExpandWithSettings(limits), createFoldCommand(limits), createStringsWithSettings(limits)];
34
+ for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
35
+ return defs;
36
+ }
37
+ function streamInspectionCommands(options = {}) {
38
+ const commands = createStreamInspectionCommands(options);
39
+ return { name: "stream-inspection-commands", setup(host) {
40
+ if (!options.replace) for (const definition of commands) {
41
+ if (host.commands.has(definition.name)) throw new Error(`Command already registered: ${definition.name}`);
42
+ }
43
+ for (const definition of commands) host.commands.register(definition, { replace: options.replace ?? false });
44
+ } };
45
+ }
46
+
47
+ export {
48
+ createStreamInspectionCommands,
49
+ streamInspectionCommands
50
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/commands/expr/index.ts
6
+ init_platform();
7
+ import { createExprCommand, createExprCommands, exprCommands } from "../../safe-bash-command-expr/index.js";
8
+
9
+ export {
10
+ createExprCommand,
11
+ createExprCommands,
12
+ exprCommands
13
+ };
@@ -726,6 +726,7 @@ var sha384 = /* @__PURE__ */ createHasher(
726
726
  );
727
727
 
728
728
  export {
729
+ createOutputOperation,
729
730
  anumber,
730
731
  abytes,
731
732
  ahash,
@@ -742,6 +743,5 @@ export {
742
743
  HashMD,
743
744
  sha256,
744
745
  sha512,
745
- sha384,
746
- createOutputOperation
746
+ sha384
747
747
  };
@@ -0,0 +1,83 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-B7TAL7S5.js";
4
+
5
+ // packages/safe-bash/src/shell/worker-limits.ts
6
+ init_platform();
7
+ var cloudflareWorkerLimits = Object.freeze({
8
+ maxEnvSplitBytes: 131072,
9
+ maxEnvSplitArguments: 1e4,
10
+ maxEnvSplitExpansions: 32,
11
+ maxEnvSplitWork: 1048576,
12
+ maxDirectoryStackBytes: 4194304,
13
+ maxDirectoryDiagnosticBytes: 65792,
14
+ commandLimits: Object.freeze({ archive: Object.freeze({
15
+ maxArchiveBytes: 4 * 1024 * 1024,
16
+ maxInputMemoryBytes: 8 * 1024 * 1024,
17
+ maxEntryBytes: 4 * 1024 * 1024,
18
+ maxTotalBytes: 8 * 1024 * 1024,
19
+ maxMembers: 1e3,
20
+ maxPathBytes: 4 * 1024,
21
+ maxDepth: 64,
22
+ maxPaxBytes: 64 * 1024,
23
+ maxFilesFromBytes: 256 * 1024,
24
+ maxArgumentBytes: 256 * 1024,
25
+ maxTextBytes: 4 * 1024 * 1024,
26
+ maxDiagnosticBytes: 4 * 1024,
27
+ maxPatternSteps: 1e6,
28
+ maxBufferedFileBytes: 4 * 1024 * 1024,
29
+ chunkSize: 16 * 1024
30
+ }), htmlToMarkdown: Object.freeze({
31
+ maxInputBytes: 4 * 1024 * 1024,
32
+ maxOutputBytes: 4 * 1024 * 1024,
33
+ maxTokenBytes: 64 * 1024,
34
+ maxTokens: 3e4,
35
+ maxNodes: 1e4,
36
+ maxDepth: 64,
37
+ maxAttributes: 64,
38
+ maxTableCells: 1e4,
39
+ maxTableCellBytes: 64 * 1024,
40
+ maxFiles: 64,
41
+ maxArgumentBytes: 256 * 1024,
42
+ maxDiagnosticBytes: 4 * 1024,
43
+ maxWorkUnits: 32 * 1024 * 1024
44
+ }), split: Object.freeze({ maxSuffixLength: 255 }) }),
45
+ maxSyntaxDepth: 64,
46
+ maxAdmittedHandles: 64,
47
+ maxDescriptorOperations: 16,
48
+ maxDescriptorReadBytes: 65536,
49
+ maxCdWork: 8388608,
50
+ maxCdPathBytes: 65536,
51
+ maxCdProbes: 4097,
52
+ maxCdPathComponents: 4096,
53
+ maxDirectoryStackEntries: 4096,
54
+ maxDirectoryStackOutputBytes: 65536,
55
+ maxGlobstarStates: 1e5,
56
+ maxGlobstarDepth: 128,
57
+ maxGlobstarEntries: 1e5,
58
+ maxParseUnits: 65536,
59
+ maxInputBytes: 4 * 1024 * 1024,
60
+ maxOutputBytes: 4 * 1024 * 1024,
61
+ maxCommands: 1e3,
62
+ maxFileSystemOperations: 1e4,
63
+ maxPathComponents: 64,
64
+ maxPathnameComponents: 64,
65
+ maxRedirects: 64,
66
+ maxPipelineStages: 64,
67
+ maxLoopIterations: 1e3,
68
+ maxSubstitutionDepth: 16,
69
+ maxFunctionDepth: 16,
70
+ maxSourceBytes: 256 * 1024,
71
+ maxExpansionFields: 1e3,
72
+ maxExpansionBytes: 4 * 1024 * 1024,
73
+ maxWallClockMs: 1e4,
74
+ maxCpuMs: 1e4,
75
+ pipeHighWaterMark: 16 * 1024
76
+ });
77
+
78
+ // packages/safe-bash/src/shell/index.ts
79
+ init_platform();
80
+
81
+ export {
82
+ cloudflareWorkerLimits
83
+ };