@cnwenf/occ 2.1.335 → 2.1.336
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/cli.js +37 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
globalThis.MACRO={"VERSION":"2.1.
|
|
2
|
+
globalThis.MACRO={"VERSION":"2.1.336","BINARY_NAME":"occ","BUILD_TIME":"2026-09-15T19:40:03.023Z","FEEDBACK_CHANNEL":"","ISSUES_EXPLAINER":"","NATIVE_PACKAGE_URL":"","PACKAGE_URL":"@cnwenf/occ","VERSION_CHANGELOG":""};
|
|
3
3
|
// @bun
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -381307,6 +381307,16 @@ var init_pathValidation2 = __esm(() => {
|
|
|
381307
381307
|
sha256sum: filterOutFlags,
|
|
381308
381308
|
sha1sum: filterOutFlags,
|
|
381309
381309
|
md5sum: filterOutFlags,
|
|
381310
|
+
tac: filterOutFlags,
|
|
381311
|
+
rev: filterOutFlags,
|
|
381312
|
+
fold: filterOutFlags,
|
|
381313
|
+
expand: filterOutFlags,
|
|
381314
|
+
unexpand: filterOutFlags,
|
|
381315
|
+
fmt: filterOutFlags,
|
|
381316
|
+
comm: filterOutFlags,
|
|
381317
|
+
cmp: filterOutFlags,
|
|
381318
|
+
pr: filterOutFlags,
|
|
381319
|
+
tsort: filterOutFlags,
|
|
381310
381320
|
tee: (args) => filterTeeDevicePaths(filterOutFlags(args)),
|
|
381311
381321
|
tr: (args) => {
|
|
381312
381322
|
const hasDelete = args.some((a5) => a5 === "-d" || a5 === "--delete" || a5.startsWith("-") && a5.includes("d"));
|
|
@@ -381499,7 +381509,17 @@ var init_pathValidation2 = __esm(() => {
|
|
|
381499
381509
|
sha256sum: "compute SHA-256 checksums for files in",
|
|
381500
381510
|
sha1sum: "compute SHA-1 checksums for files in",
|
|
381501
381511
|
md5sum: "compute MD5 checksums for files in",
|
|
381502
|
-
tee: "write to files in"
|
|
381512
|
+
tee: "write to files in",
|
|
381513
|
+
tac: "display files in reverse from",
|
|
381514
|
+
rev: "reverse lines of files from",
|
|
381515
|
+
fold: "wrap lines of files from",
|
|
381516
|
+
expand: "expand tabs in files from",
|
|
381517
|
+
unexpand: "convert spaces to tabs in files from",
|
|
381518
|
+
fmt: "format text from files in",
|
|
381519
|
+
comm: "compare sorted lines from files in",
|
|
381520
|
+
cmp: "compare bytes of files from",
|
|
381521
|
+
pr: "paginate files from",
|
|
381522
|
+
tsort: "topologically sort lines from files in"
|
|
381503
381523
|
};
|
|
381504
381524
|
COMMAND_OPERATION_TYPE = {
|
|
381505
381525
|
cd: "read",
|
|
@@ -381538,7 +381558,17 @@ var init_pathValidation2 = __esm(() => {
|
|
|
381538
381558
|
sha256sum: "read",
|
|
381539
381559
|
sha1sum: "read",
|
|
381540
381560
|
md5sum: "read",
|
|
381541
|
-
tee: "write"
|
|
381561
|
+
tee: "write",
|
|
381562
|
+
tac: "read",
|
|
381563
|
+
rev: "read",
|
|
381564
|
+
fold: "read",
|
|
381565
|
+
expand: "read",
|
|
381566
|
+
unexpand: "read",
|
|
381567
|
+
fmt: "read",
|
|
381568
|
+
comm: "read",
|
|
381569
|
+
cmp: "read",
|
|
381570
|
+
pr: "read",
|
|
381571
|
+
tsort: "read"
|
|
381542
381572
|
};
|
|
381543
381573
|
COMMAND_VALIDATOR = {
|
|
381544
381574
|
mv: (args) => !args.some((arg) => arg?.startsWith("-")),
|
|
@@ -710323,6 +710353,9 @@ function groupHooksByEventAndMatcher(appState, toolNames) {
|
|
|
710323
710353
|
MessageDisplay: {},
|
|
710324
710354
|
DirectoryAdded: {}
|
|
710325
710355
|
};
|
|
710356
|
+
for (const event of Object.keys(grouped)) {
|
|
710357
|
+
grouped[event] = Object.create(null);
|
|
710358
|
+
}
|
|
710326
710359
|
const metadata = getHookEventMetadata(toolNames);
|
|
710327
710360
|
getAllHooks(appState).forEach((hook) => {
|
|
710328
710361
|
const eventGroup = grouped[hook.event];
|
|
@@ -805938,6 +805971,7 @@ function REPL({
|
|
|
805938
805971
|
const loadedNestedMemoryPathsRef = import_react321.useRef(new Set);
|
|
805939
805972
|
const restoreReadFileState = import_react321.useCallback((messages2, cwd2) => {
|
|
805940
805973
|
const extracted = extractReadFilesFromMessages(messages2, cwd2, READ_FILE_STATE_CACHE_SIZE);
|
|
805974
|
+
readFileState.current.clear();
|
|
805941
805975
|
readFileState.current = mergeFileStateCaches(readFileState.current, extracted);
|
|
805942
805976
|
for (const tool of extractBashToolsFromMessages(messages2)) {
|
|
805943
805977
|
bashTools.current.add(tool);
|