@hasna/hooks 0.13.1 → 0.13.2
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/bin/hooks-mcp.js +1 -1
- package/bin/index.js +22 -22
- package/bin/native-safety-entry.js +23 -23
- package/bin/native-safety-worker.cjs +23 -23
- package/bin/serve.js +8 -8
- package/dist/index.js +11 -11
- package/hooks/local-executors.ts +97 -12
- package/package.json +1 -1
package/bin/hooks-mcp.js
CHANGED
|
@@ -3983,7 +3983,7 @@ import { existsSync as existsSync11, lstatSync as lstatSync9 } from "fs";
|
|
|
3983
3983
|
import { homedir as homedir7 } from "os";
|
|
3984
3984
|
import { join as join17, resolve as resolve9 } from "path";
|
|
3985
3985
|
|
|
3986
|
-
//
|
|
3986
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/@hasna+skills@0.10.78+a00d3064559565bb/node_modules/@hasna/skills/dist/index.js
|
|
3987
3987
|
import { existsSync as existsSync10 } from "fs";
|
|
3988
3988
|
import { homedir as homedir6 } from "os";
|
|
3989
3989
|
import { join as join11, resolve as resolve4 } from "path";
|
package/bin/index.js
CHANGED
|
@@ -3215,7 +3215,7 @@ var init_codex_settings = __esm(() => {
|
|
|
3215
3215
|
snapshots = new WeakMap;
|
|
3216
3216
|
});
|
|
3217
3217
|
|
|
3218
|
-
//
|
|
3218
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/@hasna+skills@0.10.78+a00d3064559565bb/node_modules/@hasna/skills/dist/index.js
|
|
3219
3219
|
import { existsSync as existsSync10 } from "fs";
|
|
3220
3220
|
import { homedir as homedir7 } from "os";
|
|
3221
3221
|
import { join as join12, resolve as resolve5 } from "path";
|
|
@@ -44148,7 +44148,7 @@ var init_codex_safety_trust = __esm(() => {
|
|
|
44148
44148
|
};
|
|
44149
44149
|
});
|
|
44150
44150
|
|
|
44151
|
-
//
|
|
44151
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/lib/error.js
|
|
44152
44152
|
var require_error = __commonJS((exports) => {
|
|
44153
44153
|
class CommanderError extends Error {
|
|
44154
44154
|
constructor(exitCode, code2, message) {
|
|
@@ -44172,7 +44172,7 @@ var require_error = __commonJS((exports) => {
|
|
|
44172
44172
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
44173
44173
|
});
|
|
44174
44174
|
|
|
44175
|
-
//
|
|
44175
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/lib/argument.js
|
|
44176
44176
|
var require_argument = __commonJS((exports) => {
|
|
44177
44177
|
var { InvalidArgumentError } = require_error();
|
|
44178
44178
|
|
|
@@ -44251,7 +44251,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
44251
44251
|
exports.humanReadableArgName = humanReadableArgName;
|
|
44252
44252
|
});
|
|
44253
44253
|
|
|
44254
|
-
//
|
|
44254
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/lib/help.js
|
|
44255
44255
|
var require_help = __commonJS((exports) => {
|
|
44256
44256
|
var { humanReadableArgName } = require_argument();
|
|
44257
44257
|
|
|
@@ -44500,7 +44500,7 @@ var require_help = __commonJS((exports) => {
|
|
|
44500
44500
|
exports.Help = Help;
|
|
44501
44501
|
});
|
|
44502
44502
|
|
|
44503
|
-
//
|
|
44503
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/lib/option.js
|
|
44504
44504
|
var require_option = __commonJS((exports) => {
|
|
44505
44505
|
var { InvalidArgumentError } = require_error();
|
|
44506
44506
|
|
|
@@ -44651,7 +44651,7 @@ var require_option = __commonJS((exports) => {
|
|
|
44651
44651
|
exports.DualOptions = DualOptions;
|
|
44652
44652
|
});
|
|
44653
44653
|
|
|
44654
|
-
//
|
|
44654
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/lib/suggestSimilar.js
|
|
44655
44655
|
var require_suggestSimilar = __commonJS((exports) => {
|
|
44656
44656
|
var maxDistance = 3;
|
|
44657
44657
|
function editDistance(a, b) {
|
|
@@ -44724,7 +44724,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
44724
44724
|
exports.suggestSimilar = suggestSimilar;
|
|
44725
44725
|
});
|
|
44726
44726
|
|
|
44727
|
-
//
|
|
44727
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/lib/command.js
|
|
44728
44728
|
var require_command = __commonJS((exports) => {
|
|
44729
44729
|
var EventEmitter = __require("events").EventEmitter;
|
|
44730
44730
|
var childProcess = __require("child_process");
|
|
@@ -45967,7 +45967,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
45967
45967
|
exports.Command = Command;
|
|
45968
45968
|
});
|
|
45969
45969
|
|
|
45970
|
-
//
|
|
45970
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/index.js
|
|
45971
45971
|
var require_commander = __commonJS((exports) => {
|
|
45972
45972
|
var { Argument } = require_argument();
|
|
45973
45973
|
var { Command } = require_command();
|
|
@@ -45987,7 +45987,7 @@ var require_commander = __commonJS((exports) => {
|
|
|
45987
45987
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
45988
45988
|
});
|
|
45989
45989
|
|
|
45990
|
-
//
|
|
45990
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json
|
|
45991
45991
|
var require_spinners = __commonJS((exports, module) => {
|
|
45992
45992
|
module.exports = {
|
|
45993
45993
|
dots: {
|
|
@@ -47613,7 +47613,7 @@ var require_spinners = __commonJS((exports, module) => {
|
|
|
47613
47613
|
};
|
|
47614
47614
|
});
|
|
47615
47615
|
|
|
47616
|
-
//
|
|
47616
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/index.js
|
|
47617
47617
|
var require_cli_spinners = __commonJS((exports, module) => {
|
|
47618
47618
|
var spinners = Object.assign({}, require_spinners());
|
|
47619
47619
|
var spinnersList = Object.keys(spinners);
|
|
@@ -55236,7 +55236,7 @@ async function verifyClaudeSafetyConfiguration(options = {}, dependencies = {})
|
|
|
55236
55236
|
// src/cli/index.tsx
|
|
55237
55237
|
init_codex_safety_trust();
|
|
55238
55238
|
|
|
55239
|
-
//
|
|
55239
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/@hasna+events@0.1.18/node_modules/@hasna/events/dist/commander.js
|
|
55240
55240
|
import { chmod, mkdir, readFile as readFile2, rename, writeFile } from "fs/promises";
|
|
55241
55241
|
import { Buffer as Buffer2 } from "buffer";
|
|
55242
55242
|
import { existsSync as existsSync22 } from "fs";
|
|
@@ -56875,7 +56875,7 @@ function replaySummary(events3, deliveries, nextCursor) {
|
|
|
56875
56875
|
// src/cli/index.tsx
|
|
56876
56876
|
import { render } from "ink";
|
|
56877
56877
|
|
|
56878
|
-
//
|
|
56878
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/commander@12.1.0/node_modules/commander/esm.mjs
|
|
56879
56879
|
var import__ = __toESM(require_commander(), 1);
|
|
56880
56880
|
var {
|
|
56881
56881
|
program: program2,
|
|
@@ -56902,11 +56902,11 @@ import { homedir as homedir21 } from "os";
|
|
|
56902
56902
|
import { useState as useState7 } from "react";
|
|
56903
56903
|
import { Box as Box8, Text as Text10, useApp, useInput as useInput5 } from "ink";
|
|
56904
56904
|
|
|
56905
|
-
//
|
|
56905
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-select-input@6.2.0+fa875fef9f949ebd/node_modules/ink-select-input/build/Indicator.js
|
|
56906
56906
|
import React from "react";
|
|
56907
56907
|
import { Box, Text } from "ink";
|
|
56908
56908
|
|
|
56909
|
-
//
|
|
56909
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
56910
56910
|
import process3 from "process";
|
|
56911
56911
|
function isUnicodeSupported() {
|
|
56912
56912
|
const { env } = process3;
|
|
@@ -56917,7 +56917,7 @@ function isUnicodeSupported() {
|
|
|
56917
56917
|
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
56918
56918
|
}
|
|
56919
56919
|
|
|
56920
|
-
//
|
|
56920
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/figures@6.1.0/node_modules/figures/index.js
|
|
56921
56921
|
var common2 = {
|
|
56922
56922
|
circleQuestionMark: "(?)",
|
|
56923
56923
|
questionMarkPrefix: "(?)",
|
|
@@ -57193,23 +57193,23 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
57193
57193
|
var figures_default = figures;
|
|
57194
57194
|
var replacements = Object.entries(specialMainSymbols);
|
|
57195
57195
|
|
|
57196
|
-
//
|
|
57196
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-select-input@6.2.0+fa875fef9f949ebd/node_modules/ink-select-input/build/Indicator.js
|
|
57197
57197
|
function Indicator({ isSelected = false }) {
|
|
57198
57198
|
return React.createElement(Box, { marginRight: 1 }, isSelected ? React.createElement(Text, { color: "blue" }, figures_default.pointer) : React.createElement(Text, null, " "));
|
|
57199
57199
|
}
|
|
57200
57200
|
var Indicator_default = Indicator;
|
|
57201
|
-
//
|
|
57201
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-select-input@6.2.0+fa875fef9f949ebd/node_modules/ink-select-input/build/Item.js
|
|
57202
57202
|
import * as React2 from "react";
|
|
57203
57203
|
import { Text as Text2 } from "ink";
|
|
57204
57204
|
function Item({ isSelected = false, label }) {
|
|
57205
57205
|
return React2.createElement(Text2, { color: isSelected ? "blue" : undefined }, label);
|
|
57206
57206
|
}
|
|
57207
57207
|
var Item_default = Item;
|
|
57208
|
-
//
|
|
57208
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-select-input@6.2.0+fa875fef9f949ebd/node_modules/ink-select-input/build/SelectInput.js
|
|
57209
57209
|
import { isDeepStrictEqual } from "util";
|
|
57210
57210
|
import React3, { useState, useEffect, useRef, useCallback } from "react";
|
|
57211
57211
|
|
|
57212
|
-
//
|
|
57212
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/to-rotated@1.0.0/node_modules/to-rotated/index.js
|
|
57213
57213
|
function toRotated(array3, steps) {
|
|
57214
57214
|
if (!Array.isArray(array3)) {
|
|
57215
57215
|
throw new TypeError(`Expected an array, got \`${typeof array3}\`.`);
|
|
@@ -57231,7 +57231,7 @@ function toRotated(array3, steps) {
|
|
|
57231
57231
|
];
|
|
57232
57232
|
}
|
|
57233
57233
|
|
|
57234
|
-
//
|
|
57234
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-select-input@6.2.0+fa875fef9f949ebd/node_modules/ink-select-input/build/SelectInput.js
|
|
57235
57235
|
import { Box as Box2, useInput } from "ink";
|
|
57236
57236
|
function SelectInput({ items = [], isFocused = true, initialIndex = 0, indicatorComponent = Indicator_default, itemComponent = Item_default, limit: customLimit, onSelect, onHighlight }) {
|
|
57237
57237
|
const hasLimit = typeof customLimit === "number" && items.length > customLimit;
|
|
@@ -57527,7 +57527,7 @@ function HookSelect({
|
|
|
57527
57527
|
import { useState as useState4, useEffect as useEffect3 } from "react";
|
|
57528
57528
|
import { Box as Box6, Text as Text7, useInput as useInput4 } from "ink";
|
|
57529
57529
|
|
|
57530
|
-
//
|
|
57530
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-text-input@6.0.0+fa875fef9f949ebd/node_modules/ink-text-input/build/index.js
|
|
57531
57531
|
import React5, { useState as useState3, useEffect as useEffect2 } from "react";
|
|
57532
57532
|
import { Text as Text6, useInput as useInput3 } from "ink";
|
|
57533
57533
|
import chalk from "chalk";
|
|
@@ -57705,7 +57705,7 @@ function SearchView({
|
|
|
57705
57705
|
import { useState as useState6, useEffect as useEffect5 } from "react";
|
|
57706
57706
|
import { Box as Box7, Text as Text9 } from "ink";
|
|
57707
57707
|
|
|
57708
|
-
//
|
|
57708
|
+
// ../../../../../../home/hasna/.hasna/scratchpad/scratch/baf4a176-62b7-49a5-aab3-8dcbe08e5fc2/apps-copy/node_modules/.bun/ink-spinner@5.0.0+fa875fef9f949ebd/node_modules/ink-spinner/build/index.js
|
|
57709
57709
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
57710
57710
|
import React7, { useState as useState5, useEffect as useEffect4 } from "react";
|
|
57711
57711
|
import { Text as Text8 } from "ink";
|