@staff0rd/assist 0.1127.2 → 0.1127.3
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/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +28 -28
- package/dist/index.js +37 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.1127.
|
|
9
|
+
version: "0.1127.3",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -7152,11 +7152,8 @@ var harnessCapabilityDeclarations = {
|
|
|
7152
7152
|
"the shared policy still applies the allowlist, restricted paths and docs/schema locks; run work that must keep those guards on Claude",
|
|
7153
7153
|
"a1592"
|
|
7154
7154
|
),
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
"Codex asks its questions in chat; a native Codex question is answered in the terminal",
|
|
7158
|
-
"a1563"
|
|
7159
|
-
),
|
|
7155
|
+
// codex-cli 0.167.1 reports request_user_input via PreToolUse; captured in codexQuestionHook.json and replayed through codexHook.
|
|
7156
|
+
"intercept.question": supported,
|
|
7160
7157
|
"slashCommands.suggest": unsupported(
|
|
7161
7158
|
"assist reads skills and commands only from Claude's home and project dirs",
|
|
7162
7159
|
"type the Codex skill name in full in the phone reply bar"
|
|
@@ -7892,9 +7889,17 @@ function parseApplyPatch(patch2) {
|
|
|
7892
7889
|
}));
|
|
7893
7890
|
}
|
|
7894
7891
|
|
|
7895
|
-
// src/shared/harnessAdapters/
|
|
7896
|
-
|
|
7897
|
-
|
|
7892
|
+
// src/shared/harnessAdapters/patchWrites.ts
|
|
7893
|
+
function patchWrites(tool, patch2) {
|
|
7894
|
+
return parseApplyPatch(patch2).map(({ path: path128, contents }) => ({
|
|
7895
|
+
kind: "fileWrite",
|
|
7896
|
+
tool,
|
|
7897
|
+
path: path128,
|
|
7898
|
+
contents
|
|
7899
|
+
}));
|
|
7900
|
+
}
|
|
7901
|
+
|
|
7902
|
+
// src/shared/harnessAdapters/patchText.ts
|
|
7898
7903
|
var PATCH_MARKER = "*** Begin Patch";
|
|
7899
7904
|
function patchText(input) {
|
|
7900
7905
|
const candidates = [
|
|
@@ -7907,25 +7912,39 @@ function patchText(input) {
|
|
|
7907
7912
|
(value) => typeof value === "string" && value.includes(PATCH_MARKER)
|
|
7908
7913
|
);
|
|
7909
7914
|
}
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
contents
|
|
7916
|
-
}));
|
|
7917
|
-
}
|
|
7915
|
+
|
|
7916
|
+
// src/shared/harnessAdapters/codexToolOperations.ts
|
|
7917
|
+
var COMMAND_TOOLS2 = /* @__PURE__ */ new Set(["Bash", "PowerShell"]);
|
|
7918
|
+
var PATCH_TOOLS = /* @__PURE__ */ new Set(["apply_patch", "Edit", "Write"]);
|
|
7919
|
+
var PATCH_MARKER2 = "*** Begin Patch";
|
|
7918
7920
|
function codexToolOperations({
|
|
7919
7921
|
toolName,
|
|
7920
7922
|
toolInput
|
|
7921
7923
|
}) {
|
|
7924
|
+
if (toolName === "request_user_input" && Array.isArray(toolInput.questions))
|
|
7925
|
+
return [
|
|
7926
|
+
{
|
|
7927
|
+
kind: "question",
|
|
7928
|
+
tool: toolName,
|
|
7929
|
+
questionsJson: JSON.stringify({
|
|
7930
|
+
questions: toolInput.questions.map(
|
|
7931
|
+
({ question, header, options: options2 }) => ({
|
|
7932
|
+
question,
|
|
7933
|
+
header,
|
|
7934
|
+
options: options2,
|
|
7935
|
+
multiSelect: false
|
|
7936
|
+
})
|
|
7937
|
+
)
|
|
7938
|
+
})
|
|
7939
|
+
}
|
|
7940
|
+
];
|
|
7922
7941
|
if (COMMAND_TOOLS2.has(toolName)) {
|
|
7923
7942
|
const { command } = toolInput;
|
|
7924
7943
|
if (typeof command !== "string" || !command.trim()) return [];
|
|
7925
7944
|
const operations2 = [
|
|
7926
7945
|
{ kind: "command", tool: toolName, command: command.trim() }
|
|
7927
7946
|
];
|
|
7928
|
-
return command.includes(
|
|
7947
|
+
return command.includes(PATCH_MARKER2) ? [...operations2, ...patchWrites(toolName, command)] : operations2;
|
|
7929
7948
|
}
|
|
7930
7949
|
if (!PATCH_TOOLS.has(toolName)) return [];
|
|
7931
7950
|
const patch2 = patchText(toolInput);
|