@poe-platform/safe-bash 0.1.772 → 0.1.773
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.
- package/dist/image-ast/index.browser.js +2801 -556
- package/dist/image-ast/index.js +2801 -556
- package/dist/pdf-ast/ast.d.ts +7 -0
- package/dist/pdf-ast/content/evaluator.d.ts +1 -0
- package/dist/pdf-ast/index.js +2845 -568
- package/dist/pdf-ast/render/raster.d.ts +1 -0
- package/dist/pdf-ast/vendor/pdfjs-fonts.d.mts +24 -0
- package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +2621 -0
- package/dist/safe-bash/command-chunks/{chunk-M2XU2YCK.js → chunk-5VXZSNM2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-C4AAJTXF.js → chunk-B2MM5DIT.js} +2804 -556
- package/dist/safe-bash/command-chunks/{chunk-NBENXODJ.js → chunk-G3NVK25P.js} +1 -1
- package/dist/safe-bash/core.browser.js +38 -38
- package/dist/safe-bash/core.d.ts +1 -1
- package/dist/safe-bash/plugins/composition.d.ts +2 -0
- package/dist/safe-bash/plugins/composition.js +2 -1
- package/dist/safe-bash-command-ffmpeg/index.js +10968 -9719
- package/dist/safe-bash-command-gh/index.d.ts +1 -0
- package/dist/safe-bash-command-gh/index.js +43 -13
- package/dist/safe-bash-command-gh/types.d.ts +1 -0
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-git/index.js +22 -15
- package/dist/safe-bash-command-git/wasm.generated.js +1 -1
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +2800 -510
- package/dist/safe-bash-command-pdfinfo/index.js +2842 -568
- package/dist/safe-bash-command-pdftk/index.js +2800 -510
- package/dist/safe-bash-command-pdftoppm/index.js +2847 -637
- package/dist/safe-bash-command-pdftotext/index.js +2800 -510
- package/dist/safe-bash-command-qpdf/index.js +2800 -510
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +2811 -566
- package/dist/safe-bash-command-wkhtmltopdf/index.js +2833 -510
- package/dist/safe-bash-mcp/index.d.ts +8 -2
- package/dist/safe-bash-mcp/index.js +13 -6
- package/package.json +7 -7
- package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +62 -1
|
@@ -1102,6 +1102,43 @@ import * as bounded_provider_star from "../safe-bash-regex-engine/execution/boun
|
|
|
1102
1102
|
// packages/safe-bash/src/plugins/composition.ts
|
|
1103
1103
|
init_platform();
|
|
1104
1104
|
|
|
1105
|
+
// packages/safe-bash/src/commands/gh/index.ts
|
|
1106
|
+
var gh_exports = {};
|
|
1107
|
+
__export(gh_exports, {
|
|
1108
|
+
createGhCommand: () => createGhCommand,
|
|
1109
|
+
createGhCommands: () => createGhCommands,
|
|
1110
|
+
evalSyncGh: () => evalSyncGh,
|
|
1111
|
+
ghCommands: () => ghCommands
|
|
1112
|
+
});
|
|
1113
|
+
init_platform();
|
|
1114
|
+
__reExport(gh_exports, safe_bash_command_gh_star);
|
|
1115
|
+
import {
|
|
1116
|
+
createGhCommand as createRawGhCommand,
|
|
1117
|
+
createGhCommands as createRawGhCommands,
|
|
1118
|
+
evalSyncGh
|
|
1119
|
+
} from "../safe-bash-command-gh/index.js";
|
|
1120
|
+
import * as safe_bash_command_gh_star from "../safe-bash-command-gh/index.js";
|
|
1121
|
+
function createGhCommand(options8 = {}) {
|
|
1122
|
+
const def = createRawGhCommand(options8);
|
|
1123
|
+
internal_exports.builtInDirectContextExecutors.add(def.execute);
|
|
1124
|
+
return def;
|
|
1125
|
+
}
|
|
1126
|
+
function createGhCommands(options8 = {}) {
|
|
1127
|
+
const defs = createRawGhCommands(options8);
|
|
1128
|
+
for (let i = 0; i < defs.length; i++) internal_exports.builtInDirectContextExecutors.add(defs[i].execute);
|
|
1129
|
+
return defs;
|
|
1130
|
+
}
|
|
1131
|
+
function ghCommands(options8 = {}) {
|
|
1132
|
+
const command4 = createGhCommand(options8);
|
|
1133
|
+
return {
|
|
1134
|
+
name: "gh-commands",
|
|
1135
|
+
setup(host2) {
|
|
1136
|
+
host2.commands.register(command4, { replace: options8.replace ?? false });
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
internal_exports.syncCommandEvaluators.evalSyncGh = evalSyncGh;
|
|
1141
|
+
|
|
1105
1142
|
// packages/safe-bash/src/commands/standard.ts
|
|
1106
1143
|
init_platform();
|
|
1107
1144
|
|
|
@@ -43560,7 +43597,7 @@ function hasCustomFamilyOptions(options8) {
|
|
|
43560
43597
|
return options8.text !== void 0 || options8.structured !== void 0 || options8.bytes !== void 0 || options8.diffPatch !== void 0 || options8.metadata !== void 0 || options8.archive !== void 0 || options8.tableText !== void 0 || options8.streamInspection !== void 0 || options8.streamFormat !== void 0 || options8.split !== void 0 || options8.timeEnv !== void 0 || options8.tree !== void 0 || options8.file !== void 0 || options8.column !== void 0 || options8.htmlToMarkdown !== void 0 || options8.du !== void 0 || options8.which !== void 0 || options8.timeout !== void 0 || options8.applyPatch !== void 0 || options8.xml !== void 0 || options8.pr !== void 0 || options8.tsort !== void 0 || options8.factor !== void 0 || options8.getopt !== void 0 || options8.hexdump !== void 0 || options8.iconv !== void 0 || options8.lineEndings !== void 0 || options8.bc !== void 0 || options8.sponge !== void 0 || options8.fd !== void 0 || options8.less !== void 0 || options8.sqlite3 !== void 0 || options8.muscleMemory !== void 0 || options8.mdq !== void 0;
|
|
43561
43598
|
}
|
|
43562
43599
|
function composeRawAgentCommands(options8, executors) {
|
|
43563
|
-
const commands = [];
|
|
43600
|
+
const commands = [...createGhCommands(options8.gh)];
|
|
43564
43601
|
const useErgonomicGrep = options8.regexExecutor === void 0;
|
|
43565
43602
|
const grep = (0, grep_exports.createGrepCommands)(executors.grep, { ergonomicRegex: useErgonomicGrep });
|
|
43566
43603
|
const exprLimits = options8.expr?.limits;
|
|
@@ -95575,43 +95612,6 @@ function xzCommands(options8 = {}) {
|
|
|
95575
95612
|
};
|
|
95576
95613
|
}
|
|
95577
95614
|
|
|
95578
|
-
// packages/safe-bash/src/commands/gh/index.ts
|
|
95579
|
-
var gh_exports = {};
|
|
95580
|
-
__export(gh_exports, {
|
|
95581
|
-
createGhCommand: () => createGhCommand,
|
|
95582
|
-
createGhCommands: () => createGhCommands,
|
|
95583
|
-
evalSyncGh: () => evalSyncGh,
|
|
95584
|
-
ghCommands: () => ghCommands
|
|
95585
|
-
});
|
|
95586
|
-
init_platform();
|
|
95587
|
-
__reExport(gh_exports, safe_bash_command_gh_star);
|
|
95588
|
-
import {
|
|
95589
|
-
createGhCommand as createRawGhCommand,
|
|
95590
|
-
createGhCommands as createRawGhCommands,
|
|
95591
|
-
evalSyncGh
|
|
95592
|
-
} from "../safe-bash-command-gh/index.js";
|
|
95593
|
-
import * as safe_bash_command_gh_star from "../safe-bash-command-gh/index.js";
|
|
95594
|
-
function createGhCommand(options8 = {}) {
|
|
95595
|
-
const def = createRawGhCommand(options8);
|
|
95596
|
-
internal_exports.builtInDirectContextExecutors.add(def.execute);
|
|
95597
|
-
return def;
|
|
95598
|
-
}
|
|
95599
|
-
function createGhCommands(options8 = {}) {
|
|
95600
|
-
const defs = createRawGhCommands(options8);
|
|
95601
|
-
for (let i = 0; i < defs.length; i++) internal_exports.builtInDirectContextExecutors.add(defs[i].execute);
|
|
95602
|
-
return defs;
|
|
95603
|
-
}
|
|
95604
|
-
function ghCommands(options8 = {}) {
|
|
95605
|
-
const command4 = createGhCommand(options8);
|
|
95606
|
-
return {
|
|
95607
|
-
name: "gh-commands",
|
|
95608
|
-
setup(host2) {
|
|
95609
|
-
host2.commands.register(command4, { replace: options8.replace ?? false });
|
|
95610
|
-
}
|
|
95611
|
-
};
|
|
95612
|
-
}
|
|
95613
|
-
internal_exports.syncCommandEvaluators.evalSyncGh = evalSyncGh;
|
|
95614
|
-
|
|
95615
95615
|
// packages/safe-bash/src/core.browser.ts
|
|
95616
95616
|
__reExport(core_browser_exports, core_exports);
|
|
95617
95617
|
import { CommandArgumentIdentityError, createCommandArguments as createCommandArguments4, getCommandArguments as getCommandArguments11, commandRuntimeIdentity as commandRuntimeIdentity2, CommandRegistry as CommandRegistry3, validateExitCode as validateExitCode2 } from "../safe-bash-contracts/command.js";
|
package/dist/safe-bash/core.d.ts
CHANGED
|
@@ -110,5 +110,5 @@ export * from "./commands/mdq/index.js";
|
|
|
110
110
|
export { createOpensslCommand, createOpensslCommands, opensslCommands, type OpensslCommandsOptions, type OpensslLimits, type OpensslOptions } from "./commands/openssl/index.js";
|
|
111
111
|
export { createSshCommand, createSshKeygenCommand, createSshCommands, sshCommands, type SshCommandsOptions, type SshLimits, type SshOptions } from "./commands/ssh/index.js";
|
|
112
112
|
export { createGpgCommand, createGpgCommands, gpgCommands, type GpgCommandsOptions, type GpgLimits, type GpgOptions } from "./commands/gpg/index.js";
|
|
113
|
-
export { createGhCommand, createGhCommands, ghCommands, type GhCommandOptions, type GhCommandsOptions } from "./commands/gh/index.js";
|
|
113
|
+
export { createGhCommand, createGhCommands, ghCommands, type GhCommandOptions, type GhCommandsOptions, type GhLimits } from "./commands/gh/index.js";
|
|
114
114
|
//# sourceMappingURL=core.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type GhCommandOptions } from "../commands/gh/index.js";
|
|
1
2
|
import { type CommandDefinition, type CommandHandler } from "../contracts/index.js";
|
|
2
3
|
import { type ExecutionCommandsOptions, type StandardCommandsOptions } from "../commands/standard.js";
|
|
3
4
|
import { type TextProgramOptions } from "../commands/text-programs/index.js";
|
|
@@ -40,6 +41,7 @@ import { type MdqCommandOptions } from "../commands/mdq/index.js";
|
|
|
40
41
|
import type { RegexExecutionOptions } from "../commands/regex-execution/protocol.js";
|
|
41
42
|
import type { BoundedRegexProvider } from "../commands/regex-execution/provider.js";
|
|
42
43
|
export interface AgentCommandsOptions {
|
|
44
|
+
readonly gh?: GhCommandOptions;
|
|
43
45
|
readonly predicateIdentity?: StandardCommandsOptions["predicateIdentity"];
|
|
44
46
|
readonly execution?: ExecutionCommandsOptions;
|
|
45
47
|
readonly bytes?: Omit<ByteCommandsOptions, "replace">;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createGhCommands } from "../commands/gh/index.js";
|
|
1
2
|
import { CommandRegistry } from "../contracts/index.js";
|
|
2
3
|
import { PublicDiagnostic } from "../diagnostics.js";
|
|
3
4
|
import { createStandardCommandsWithGrep } from "../commands/standard.js";
|
|
@@ -153,7 +154,7 @@ function hasCustomFamilyOptions(options) {
|
|
|
153
154
|
options.mdq !== undefined);
|
|
154
155
|
}
|
|
155
156
|
export function composeRawAgentCommands(options, executors) {
|
|
156
|
-
const commands = [];
|
|
157
|
+
const commands = [...createGhCommands(options.gh)];
|
|
157
158
|
const useErgonomicGrep = options.regexExecutor === undefined;
|
|
158
159
|
const grep = createGrepCommands(executors.grep, { ergonomicRegex: useErgonomicGrep });
|
|
159
160
|
const exprLimits = options.expr?.limits;
|