@duckmind/dm-windows-x64 0.62.3 → 0.63.0
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/dm.exe +0 -0
- package/extensions/.dm-extensions.json +43 -183
- package/extensions/dm-context/src/context.js +1 -2
- package/extensions/dm-context/src/index.js +1 -2
- package/extensions/{greedysearch-dm/bin/cdp.mjs → dm-cua/bin/browser-cdp.mjs} +3 -3
- package/extensions/dm-cua/bin/browser-cua.mjs +1 -1
- package/extensions/{greedysearch-dm/bin/launch.mjs → dm-cua/bin/browser-launch.mjs} +12 -11
- package/extensions/dm-cua/index.js +1 -1
- package/extensions/dm-cua/src/browser-cua-lib.mjs +17 -12
- package/extensions/{greedysearch-dm/src/search → dm-cua/src/browser-helpers}/constants.mjs +11 -11
- package/extensions/{greedysearch-dm/src/utils → dm-cua/src/browser-helpers}/node-runtime.mjs +1 -1
- package/extensions/{greedysearch-dm/src/search → dm-cua/src/browser-helpers}/port-pid.mjs +1 -1
- package/extensions/dm-ponytail/extensions/ponytail.mjs +186 -0
- package/extensions/dm-ponytail/hooks/claude-codex-hooks.json +41 -0
- package/extensions/dm-ponytail/hooks/copilot-hooks.json +21 -0
- package/extensions/dm-ponytail/hooks/ponytail-activate.js +59 -0
- package/extensions/dm-ponytail/hooks/ponytail-config.js +116 -0
- package/extensions/dm-ponytail/hooks/ponytail-instructions.js +81 -0
- package/extensions/dm-ponytail/hooks/ponytail-mode-tracker.js +96 -0
- package/extensions/dm-ponytail/hooks/ponytail-runtime.js +79 -0
- package/extensions/dm-ponytail/hooks/ponytail-statusline.ps1 +24 -0
- package/extensions/dm-ponytail/hooks/ponytail-statusline.sh +18 -0
- package/extensions/dm-ponytail/hooks/ponytail-subagent.js +50 -0
- package/extensions/dm-ponytail/hooks/qoder-hooks.json +26 -0
- package/extensions/dm-ponytail/package.json +19 -0
- package/extensions/dm-ponytail/pi-extension/index.js +186 -0
- package/extensions/dm-ponytail/pi-extension/package.json +8 -0
- package/extensions/dm-ponytail/skills/ponytail/SKILL.md +120 -0
- package/extensions/dm-ponytail/skills/ponytail-audit/SKILL.md +41 -0
- package/extensions/dm-ponytail/skills/ponytail-debt/SKILL.md +44 -0
- package/extensions/dm-ponytail/skills/ponytail-gain/SKILL.md +50 -0
- package/extensions/dm-ponytail/skills/ponytail-help/SKILL.md +71 -0
- package/extensions/dm-ponytail/skills/ponytail-review/SKILL.md +57 -0
- package/package.json +2 -6
- package/extensions/dm-caveman/extensions/caveman.js +0 -300
- package/extensions/dm-caveman/package.json +0 -20
- package/extensions/dm-goal/package.json +0 -23
- package/extensions/dm-goal/src/goal.js +0 -914
- package/extensions/greedysearch-dm/bin/cdp-greedy.mjs +0 -40
- package/extensions/greedysearch-dm/bin/cdp-headless.mjs +0 -5
- package/extensions/greedysearch-dm/bin/cdp-visible.mjs +0 -5
- package/extensions/greedysearch-dm/bin/gschrome.mjs +0 -30
- package/extensions/greedysearch-dm/bin/kill-visible.mjs +0 -7
- package/extensions/greedysearch-dm/bin/launch-visible.mjs +0 -13
- package/extensions/greedysearch-dm/bin/mcp.mjs +0 -400
- package/extensions/greedysearch-dm/bin/search.mjs +0 -635
- package/extensions/greedysearch-dm/bin/visible.mjs +0 -22
- package/extensions/greedysearch-dm/extractors/bing-copilot.mjs +0 -344
- package/extensions/greedysearch-dm/extractors/chatgpt.mjs +0 -354
- package/extensions/greedysearch-dm/extractors/common.mjs +0 -794
- package/extensions/greedysearch-dm/extractors/consensus.mjs +0 -527
- package/extensions/greedysearch-dm/extractors/consent.mjs +0 -449
- package/extensions/greedysearch-dm/extractors/gemini.mjs +0 -291
- package/extensions/greedysearch-dm/extractors/google-ai.mjs +0 -86
- package/extensions/greedysearch-dm/extractors/logically.mjs +0 -589
- package/extensions/greedysearch-dm/extractors/perplexity.mjs +0 -370
- package/extensions/greedysearch-dm/extractors/selectors.mjs +0 -32
- package/extensions/greedysearch-dm/extractors/semantic-scholar.mjs +0 -199
- package/extensions/greedysearch-dm/index.js +0 -123
- package/extensions/greedysearch-dm/package.json +0 -27
- package/extensions/greedysearch-dm/skills/greedy-search/skill.md +0 -18
- package/extensions/greedysearch-dm/src/fetcher.mjs +0 -577
- package/extensions/greedysearch-dm/src/formatters/results.js +0 -95
- package/extensions/greedysearch-dm/src/formatters/sources.js +0 -57
- package/extensions/greedysearch-dm/src/formatters/synthesis.js +0 -49
- package/extensions/greedysearch-dm/src/github.mjs +0 -228
- package/extensions/greedysearch-dm/src/reddit.mjs +0 -154
- package/extensions/greedysearch-dm/src/search/browser-lifecycle.mjs +0 -340
- package/extensions/greedysearch-dm/src/search/challenge-detect.mjs +0 -156
- package/extensions/greedysearch-dm/src/search/chrome.mjs +0 -510
- package/extensions/greedysearch-dm/src/search/defaults.mjs +0 -10
- package/extensions/greedysearch-dm/src/search/engines.mjs +0 -79
- package/extensions/greedysearch-dm/src/search/fetch-source.mjs +0 -470
- package/extensions/greedysearch-dm/src/search/file-sources.mjs +0 -31
- package/extensions/greedysearch-dm/src/search/output.mjs +0 -51
- package/extensions/greedysearch-dm/src/search/paths.mjs +0 -48
- package/extensions/greedysearch-dm/src/search/pdf.mjs +0 -64
- package/extensions/greedysearch-dm/src/search/progress.mjs +0 -109
- package/extensions/greedysearch-dm/src/search/query.mjs +0 -21
- package/extensions/greedysearch-dm/src/search/recovery.mjs +0 -49
- package/extensions/greedysearch-dm/src/search/research.mjs +0 -2255
- package/extensions/greedysearch-dm/src/search/scale-aware.mjs +0 -61
- package/extensions/greedysearch-dm/src/search/simple-research.mjs +0 -418
- package/extensions/greedysearch-dm/src/search/sources.mjs +0 -412
- package/extensions/greedysearch-dm/src/search/synthesis-runner.mjs +0 -127
- package/extensions/greedysearch-dm/src/search/synthesis.mjs +0 -202
- package/extensions/greedysearch-dm/src/tools/greedy-search-handler.js +0 -209
- package/extensions/greedysearch-dm/src/tools/shared.js +0 -226
- package/extensions/greedysearch-dm/src/types.js +0 -0
- package/extensions/greedysearch-dm/src/utils/content.mjs +0 -38
- package/extensions/greedysearch-dm/src/utils/helpers.js +0 -22
- /package/extensions/{greedysearch-dm/src/search → dm-cua/src/browser-helpers}/minimize.mjs +0 -0
- /package/extensions/{greedysearch-dm/src/utils → dm-cua/src/browser-helpers}/system-cmds.mjs +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
|
+
const {
|
|
4
|
+
DEFAULT_MODE,
|
|
5
|
+
RUNTIME_MODES,
|
|
6
|
+
getDefaultMode,
|
|
7
|
+
getQuietStartup,
|
|
8
|
+
getHideStatus,
|
|
9
|
+
normalizeMode,
|
|
10
|
+
normalizePersistedMode,
|
|
11
|
+
isDeactivationCommand,
|
|
12
|
+
writeDefaultMode
|
|
13
|
+
} = require("../hooks/ponytail-config.js");
|
|
14
|
+
const { getPonytailInstructions, filterSkillBodyForMode } = require("../hooks/ponytail-instructions.js");
|
|
15
|
+
|
|
16
|
+
export { filterSkillBodyForMode };
|
|
17
|
+
export const readDefaultMode = getDefaultMode;
|
|
18
|
+
export const readQuietStartup = getQuietStartup;
|
|
19
|
+
const RUNTIME_MODE_LIST = RUNTIME_MODES.join("|");
|
|
20
|
+
const PONYTAIL_COMMAND_DESCRIPTION = `Set mode: ${RUNTIME_MODE_LIST}. Commands: status, default <mode>`;
|
|
21
|
+
export function resolveSessionMode(entries, fallbackMode = DEFAULT_MODE) {
|
|
22
|
+
const fallback = normalizePersistedMode(fallbackMode) || DEFAULT_MODE;
|
|
23
|
+
if (!Array.isArray(entries))
|
|
24
|
+
return fallback;
|
|
25
|
+
for (let i = entries.length - 1;i >= 0; i -= 1) {
|
|
26
|
+
const entry = entries[i];
|
|
27
|
+
if (entry?.type !== "custom" || entry?.customType !== "ponytail-mode")
|
|
28
|
+
continue;
|
|
29
|
+
const mode = normalizePersistedMode(entry?.data?.mode);
|
|
30
|
+
if (mode)
|
|
31
|
+
return mode;
|
|
32
|
+
}
|
|
33
|
+
return fallback;
|
|
34
|
+
}
|
|
35
|
+
export function parsePonytailCommand(text, defaultMode = DEFAULT_MODE) {
|
|
36
|
+
const fallback = normalizePersistedMode(defaultMode) || DEFAULT_MODE;
|
|
37
|
+
const normalizedText = String(text || "").trim().toLowerCase();
|
|
38
|
+
if (!normalizedText) {
|
|
39
|
+
return { type: "set-mode", mode: fallback === "off" ? "full" : fallback };
|
|
40
|
+
}
|
|
41
|
+
const [primary, secondary] = normalizedText.split(/\s+/);
|
|
42
|
+
if (primary === "status")
|
|
43
|
+
return { type: "status" };
|
|
44
|
+
if (primary === "default") {
|
|
45
|
+
const mode = normalizeMode(secondary);
|
|
46
|
+
return mode ? { type: "set-default", mode } : { type: "invalid", reason: "invalid-default-mode" };
|
|
47
|
+
}
|
|
48
|
+
const mode = normalizeMode(primary);
|
|
49
|
+
return mode ? { type: "set-mode", mode } : { type: "invalid", reason: "invalid-mode", mode: primary };
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { writeDefaultMode };
|
|
53
|
+
export default function ponytailExtension(pi) {
|
|
54
|
+
let currentMode = DEFAULT_MODE;
|
|
55
|
+
let configuredDefaultMode = getDefaultMode();
|
|
56
|
+
let hideStatus = getHideStatus();
|
|
57
|
+
let isActive = false;
|
|
58
|
+
let lastCtx = null;
|
|
59
|
+
function syncStatus(ctx) {
|
|
60
|
+
if (ctx)
|
|
61
|
+
lastCtx = ctx;
|
|
62
|
+
const c = ctx || lastCtx;
|
|
63
|
+
if (hideStatus)
|
|
64
|
+
return;
|
|
65
|
+
if (!c?.ui?.setStatus)
|
|
66
|
+
return;
|
|
67
|
+
let theme;
|
|
68
|
+
try {
|
|
69
|
+
theme = c.ui.theme;
|
|
70
|
+
if (!theme?.fg)
|
|
71
|
+
return;
|
|
72
|
+
} catch {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (currentMode === "off") {
|
|
76
|
+
c.ui.setStatus("ponytail", "");
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const levelIcons = { lite: "\uD83C\uDF3F", full: "⚡", ultra: "\uD83D\uDD25" };
|
|
80
|
+
const icon = levelIcons[currentMode] || "";
|
|
81
|
+
const label = currentMode.toUpperCase();
|
|
82
|
+
const indicator = isActive ? theme.fg("accent", "●") : theme.fg("dim", "○");
|
|
83
|
+
c.ui.setStatus("ponytail", indicator + " " + theme.fg("muted", "token saver: ") + theme.fg("text", icon + " " + label));
|
|
84
|
+
}
|
|
85
|
+
const setMode = (mode, ctx) => {
|
|
86
|
+
const normalized = normalizePersistedMode(mode);
|
|
87
|
+
if (!normalized)
|
|
88
|
+
return;
|
|
89
|
+
currentMode = normalized;
|
|
90
|
+
pi.appendEntry("ponytail-mode", { mode: normalized });
|
|
91
|
+
syncStatus(ctx);
|
|
92
|
+
ctx?.ui?.notify?.(`Ponytail mode set to ${normalized}.`, "info");
|
|
93
|
+
};
|
|
94
|
+
const sendAlias = (skillName, args, ctx) => {
|
|
95
|
+
const normalized = String(args || "").trim();
|
|
96
|
+
const message = normalized ? `${skillName} ${normalized}` : skillName;
|
|
97
|
+
if (ctx?.isIdle?.() === false) {
|
|
98
|
+
pi.sendUserMessage(message, { deliverAs: "followUp" });
|
|
99
|
+
ctx?.ui?.notify?.(`${skillName} queued as follow-up.`, "info");
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
pi.sendUserMessage(message);
|
|
103
|
+
};
|
|
104
|
+
pi.registerCommand("ponytail", {
|
|
105
|
+
description: PONYTAIL_COMMAND_DESCRIPTION,
|
|
106
|
+
handler: async (args, ctx) => {
|
|
107
|
+
const parsed = parsePonytailCommand(args, configuredDefaultMode);
|
|
108
|
+
if (parsed.type === "status") {
|
|
109
|
+
ctx?.ui?.notify?.(`Ponytail: current ${currentMode} • default ${configuredDefaultMode}`, "info");
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (parsed.type === "set-default") {
|
|
113
|
+
try {
|
|
114
|
+
const written = writeDefaultMode(parsed.mode);
|
|
115
|
+
if (written) {
|
|
116
|
+
configuredDefaultMode = getDefaultMode();
|
|
117
|
+
const message = configuredDefaultMode === written ? `Default Ponytail mode set to ${written}.` : `Saved default ${written}, but env override keeps default at ${configuredDefaultMode}.`;
|
|
118
|
+
ctx?.ui?.notify?.(message, "info");
|
|
119
|
+
}
|
|
120
|
+
} catch (e) {
|
|
121
|
+
ctx?.ui?.notify?.(`Failed to save default mode: ${e.message}`, "error");
|
|
122
|
+
}
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (parsed.type === "set-mode") {
|
|
126
|
+
setMode(parsed.mode, ctx);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
ctx?.ui?.notify?.("Unknown or unsupported /ponytail mode.", "warning");
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
pi.registerCommand("ponytail-review", {
|
|
133
|
+
description: "Run /skill:ponytail-review",
|
|
134
|
+
handler: (_args, ctx) => sendAlias("/skill:ponytail-review", "", ctx)
|
|
135
|
+
});
|
|
136
|
+
pi.registerCommand("ponytail-audit", {
|
|
137
|
+
description: "Run /skill:ponytail-audit",
|
|
138
|
+
handler: (_args, ctx) => sendAlias("/skill:ponytail-audit", "", ctx)
|
|
139
|
+
});
|
|
140
|
+
pi.registerCommand("ponytail-gain", {
|
|
141
|
+
description: "Run /skill:ponytail-gain",
|
|
142
|
+
handler: (_args, ctx) => sendAlias("/skill:ponytail-gain", "", ctx)
|
|
143
|
+
});
|
|
144
|
+
pi.registerCommand("ponytail-debt", {
|
|
145
|
+
description: "Run /skill:ponytail-debt",
|
|
146
|
+
handler: (_args, ctx) => sendAlias("/skill:ponytail-debt", "", ctx)
|
|
147
|
+
});
|
|
148
|
+
pi.registerCommand("ponytail-help", {
|
|
149
|
+
description: "Run /skill:ponytail-help",
|
|
150
|
+
handler: (_args, ctx) => sendAlias("/skill:ponytail-help", "", ctx)
|
|
151
|
+
});
|
|
152
|
+
pi.on("input", async (event) => {
|
|
153
|
+
if (event?.source === "extension")
|
|
154
|
+
return;
|
|
155
|
+
const text = String(event?.text || "");
|
|
156
|
+
if (currentMode !== "off" && isDeactivationCommand(text)) {
|
|
157
|
+
setMode("off");
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
pi.on("session_start", async (_event, ctx) => {
|
|
161
|
+
const entries = ctx?.sessionManager?.getBranch?.() || ctx?.sessionManager?.getEntries?.() || [];
|
|
162
|
+
configuredDefaultMode = getDefaultMode();
|
|
163
|
+
hideStatus = getHideStatus();
|
|
164
|
+
currentMode = resolveSessionMode(entries, configuredDefaultMode);
|
|
165
|
+
syncStatus(ctx);
|
|
166
|
+
if (!getQuietStartup()) {
|
|
167
|
+
ctx?.ui?.notify?.(`DM Ponytail loaded: ${currentMode}`, "info");
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
pi.on("agent_start", async (_event, ctx) => {
|
|
171
|
+
isActive = true;
|
|
172
|
+
syncStatus(ctx);
|
|
173
|
+
});
|
|
174
|
+
pi.on("agent_end", async (_event, ctx) => {
|
|
175
|
+
isActive = false;
|
|
176
|
+
syncStatus(ctx);
|
|
177
|
+
});
|
|
178
|
+
pi.on("before_agent_start", async (event) => {
|
|
179
|
+
if (!currentMode || currentMode === "off")
|
|
180
|
+
return;
|
|
181
|
+
const base = event?.systemPrompt ? `${event.systemPrompt}
|
|
182
|
+
|
|
183
|
+
` : "";
|
|
184
|
+
return { systemPrompt: `${base}${getPonytailInstructions(currentMode)}` };
|
|
185
|
+
});
|
|
186
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "startup|resume|clear|compact",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/ponytail-activate.js\"",
|
|
10
|
+
"timeout": 5,
|
|
11
|
+
"statusMessage": "Loading ponytail mode..."
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"SubagentStart": [
|
|
17
|
+
{
|
|
18
|
+
"hooks": [
|
|
19
|
+
{
|
|
20
|
+
"type": "command",
|
|
21
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/ponytail-subagent.js\"",
|
|
22
|
+
"timeout": 5,
|
|
23
|
+
"statusMessage": "Loading ponytail mode..."
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"UserPromptSubmit": [
|
|
29
|
+
{
|
|
30
|
+
"hooks": [
|
|
31
|
+
{
|
|
32
|
+
"type": "command",
|
|
33
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/ponytail-mode-tracker.js\"",
|
|
34
|
+
"timeout": 5,
|
|
35
|
+
"statusMessage": "Tracking ponytail mode..."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"sessionStart": [
|
|
5
|
+
{
|
|
6
|
+
"type": "command",
|
|
7
|
+
"bash": "node \"${PLUGIN_ROOT}/hooks/ponytail-activate.js\"",
|
|
8
|
+
"powershell": "node \"${PLUGIN_ROOT}\\hooks\\ponytail-activate.js\"",
|
|
9
|
+
"timeoutSec": 5
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"userPromptSubmitted": [
|
|
13
|
+
{
|
|
14
|
+
"type": "command",
|
|
15
|
+
"bash": "node \"${PLUGIN_ROOT}/hooks/ponytail-mode-tracker.js\"",
|
|
16
|
+
"powershell": "node \"${PLUGIN_ROOT}\\hooks\\ponytail-mode-tracker.js\"",
|
|
17
|
+
"timeoutSec": 5
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __dirname = "/Users/que/Projects/dm/dm-mono/packages/coding-agent/dist/extensions/dm-ponytail/hooks";
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const { getDefaultMode, getClaudeDir, isShellSafe } = require("./ponytail-config");
|
|
5
|
+
const { getPonytailInstructions } = require("./ponytail-instructions");
|
|
6
|
+
const {
|
|
7
|
+
clearMode,
|
|
8
|
+
isCodex,
|
|
9
|
+
isCopilot,
|
|
10
|
+
setMode,
|
|
11
|
+
writeHookOutput
|
|
12
|
+
} = require("./ponytail-runtime");
|
|
13
|
+
const claudeDir = getClaudeDir();
|
|
14
|
+
const settingsPath = path.join(claudeDir, "settings.json");
|
|
15
|
+
const mode = getDefaultMode();
|
|
16
|
+
if (mode === "off") {
|
|
17
|
+
clearMode();
|
|
18
|
+
const hookOutput = isCodex || isCopilot ? "" : "OK";
|
|
19
|
+
writeHookOutput("SessionStart", "off", hookOutput);
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
setMode(mode);
|
|
24
|
+
} catch (e) {}
|
|
25
|
+
let output = getPonytailInstructions(mode);
|
|
26
|
+
if (!isCodex && !isCopilot)
|
|
27
|
+
try {
|
|
28
|
+
let hasStatusline = false;
|
|
29
|
+
if (fs.existsSync(settingsPath)) {
|
|
30
|
+
const raw = fs.readFileSync(settingsPath, "utf8").replace(/^\uFEFF/, "");
|
|
31
|
+
const settings = JSON.parse(raw);
|
|
32
|
+
if (settings.statusLine) {
|
|
33
|
+
hasStatusline = true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const nudgeFlagPath = path.join(claudeDir, ".ponytail-statusline-nudged");
|
|
37
|
+
if (!hasStatusline && !fs.existsSync(nudgeFlagPath)) {
|
|
38
|
+
try {
|
|
39
|
+
fs.writeFileSync(nudgeFlagPath, "");
|
|
40
|
+
} catch (e) {}
|
|
41
|
+
const isWindows = process.platform === "win32";
|
|
42
|
+
const scriptName = isWindows ? "ponytail-statusline.ps1" : "ponytail-statusline.sh";
|
|
43
|
+
const scriptPath = path.join(__dirname, scriptName);
|
|
44
|
+
if (isShellSafe(scriptPath)) {
|
|
45
|
+
const command = isWindows ? `powershell -ExecutionPolicy Bypass -File "${scriptPath}"` : `bash "${scriptPath}"`;
|
|
46
|
+
const statusLineSnippet = '"statusLine": { "type": "command", "command": ' + JSON.stringify(command) + " }";
|
|
47
|
+
output += `
|
|
48
|
+
|
|
49
|
+
` + "STATUSLINE SETUP NEEDED: The ponytail plugin includes a statusline badge showing active mode " + "(e.g. [PONYTAIL], [PONYTAIL:ULTRA]). It is not configured yet. " + "To enable, add this to " + settingsPath + ": " + statusLineSnippet + " " + "Proactively offer to set this up for the user on first interaction.";
|
|
50
|
+
} else {
|
|
51
|
+
output += `
|
|
52
|
+
|
|
53
|
+
` + "STATUSLINE SETUP NEEDED: The ponytail plugin includes a statusline badge showing active mode. " + "Its install path contains characters unsafe to embed in a shell command, so configure it manually: " + 'add a statusLine command of type "command" that runs ' + scriptName + " from the plugin's hooks directory to " + settingsPath + ", quoting/escaping the path for your shell. " + "Proactively offer to set this up for the user on first interaction.";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
} catch (e) {}
|
|
57
|
+
try {
|
|
58
|
+
writeHookOutput("SessionStart", mode, output);
|
|
59
|
+
} catch (e) {}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const DEFAULT_MODE = "full";
|
|
5
|
+
const VALID_MODES = ["off", "lite", "full", "ultra", "review"];
|
|
6
|
+
const RUNTIME_MODES = ["off", "lite", "full", "ultra"];
|
|
7
|
+
function normalizeMode(mode) {
|
|
8
|
+
if (typeof mode !== "string")
|
|
9
|
+
return null;
|
|
10
|
+
const normalized = mode.trim().toLowerCase();
|
|
11
|
+
return RUNTIME_MODES.includes(normalized) ? normalized : null;
|
|
12
|
+
}
|
|
13
|
+
function normalizeConfigMode(mode) {
|
|
14
|
+
if (typeof mode !== "string")
|
|
15
|
+
return null;
|
|
16
|
+
const normalized = mode.trim().toLowerCase();
|
|
17
|
+
return VALID_MODES.includes(normalized) ? normalized : null;
|
|
18
|
+
}
|
|
19
|
+
function normalizePersistedMode(mode) {
|
|
20
|
+
return normalizeMode(mode) || normalizeConfigMode(mode);
|
|
21
|
+
}
|
|
22
|
+
function isDeactivationCommand(text) {
|
|
23
|
+
const t = String(text || "").trim().toLowerCase().replace(/[.!?\s]+$/, "");
|
|
24
|
+
return t === "stop ponytail" || t === "normal mode";
|
|
25
|
+
}
|
|
26
|
+
function isShellSafe(p) {
|
|
27
|
+
return typeof p === "string" && /^[A-Za-z0-9 _.\-:/\\~]+$/.test(p);
|
|
28
|
+
}
|
|
29
|
+
function getConfigDir() {
|
|
30
|
+
if (process.env.XDG_CONFIG_HOME) {
|
|
31
|
+
return path.join(process.env.XDG_CONFIG_HOME, "ponytail");
|
|
32
|
+
}
|
|
33
|
+
if (process.platform === "win32") {
|
|
34
|
+
return path.join(process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming"), "ponytail");
|
|
35
|
+
}
|
|
36
|
+
return path.join(os.homedir(), ".config", "ponytail");
|
|
37
|
+
}
|
|
38
|
+
function getConfigPath() {
|
|
39
|
+
return path.join(getConfigDir(), "config.json");
|
|
40
|
+
}
|
|
41
|
+
function getClaudeDir() {
|
|
42
|
+
return process.env.CLAUDE_CONFIG_DIR || path.join(os.homedir(), ".claude");
|
|
43
|
+
}
|
|
44
|
+
function getDefaultMode() {
|
|
45
|
+
const envMode = process.env.PONYTAIL_DEFAULT_MODE;
|
|
46
|
+
if (envMode && RUNTIME_MODES.includes(envMode.toLowerCase())) {
|
|
47
|
+
return envMode.toLowerCase();
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const configPath = getConfigPath();
|
|
51
|
+
const config = JSON.parse(fs.readFileSync(configPath, "utf8").replace(/^\uFEFF/, ""));
|
|
52
|
+
if (config.defaultMode && RUNTIME_MODES.includes(config.defaultMode.toLowerCase())) {
|
|
53
|
+
return config.defaultMode.toLowerCase();
|
|
54
|
+
}
|
|
55
|
+
} catch (e) {}
|
|
56
|
+
return DEFAULT_MODE;
|
|
57
|
+
}
|
|
58
|
+
function getQuietStartup() {
|
|
59
|
+
const env = process.env.PONYTAIL_QUIET_STARTUP;
|
|
60
|
+
if (env !== undefined) {
|
|
61
|
+
const v = env.trim().toLowerCase();
|
|
62
|
+
return v !== "" && v !== "0" && v !== "false" && v !== "no";
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
const config = JSON.parse(fs.readFileSync(getConfigPath(), "utf8").replace(/^\uFEFF/, ""));
|
|
66
|
+
return config.quietStartup === true;
|
|
67
|
+
} catch (_) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function getHideStatus() {
|
|
72
|
+
const env = process.env.PONYTAIL_HIDE_STATUS;
|
|
73
|
+
if (env !== undefined) {
|
|
74
|
+
const v = env.trim().toLowerCase();
|
|
75
|
+
return v !== "" && v !== "0" && v !== "false" && v !== "no";
|
|
76
|
+
}
|
|
77
|
+
try {
|
|
78
|
+
const config = JSON.parse(fs.readFileSync(getConfigPath(), "utf8").replace(/^\uFEFF/, ""));
|
|
79
|
+
return config.hideStatus === true;
|
|
80
|
+
} catch (_) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function writeDefaultMode(mode) {
|
|
85
|
+
const normalized = normalizeMode(mode);
|
|
86
|
+
if (!normalized)
|
|
87
|
+
return null;
|
|
88
|
+
const configPath = getConfigPath();
|
|
89
|
+
fs.mkdirSync(path.dirname(configPath), { recursive: true });
|
|
90
|
+
let config = {};
|
|
91
|
+
try {
|
|
92
|
+
config = JSON.parse(fs.readFileSync(configPath, "utf8").replace(/^\uFEFF/, ""));
|
|
93
|
+
if (!config || typeof config !== "object" || Array.isArray(config))
|
|
94
|
+
config = {};
|
|
95
|
+
} catch (_) {}
|
|
96
|
+
config.defaultMode = normalized;
|
|
97
|
+
fs.writeFileSync(configPath, JSON.stringify(config, null, 2), "utf8");
|
|
98
|
+
return normalized;
|
|
99
|
+
}
|
|
100
|
+
module.exports = {
|
|
101
|
+
DEFAULT_MODE,
|
|
102
|
+
VALID_MODES,
|
|
103
|
+
RUNTIME_MODES,
|
|
104
|
+
getDefaultMode,
|
|
105
|
+
getConfigDir,
|
|
106
|
+
getConfigPath,
|
|
107
|
+
getClaudeDir,
|
|
108
|
+
getHideStatus,
|
|
109
|
+
getQuietStartup,
|
|
110
|
+
isShellSafe,
|
|
111
|
+
normalizeMode,
|
|
112
|
+
normalizeConfigMode,
|
|
113
|
+
normalizePersistedMode,
|
|
114
|
+
isDeactivationCommand,
|
|
115
|
+
writeDefaultMode
|
|
116
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __dirname = "/Users/que/Projects/dm/dm-mono/packages/coding-agent/dist/extensions/dm-ponytail/hooks";
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const { DEFAULT_MODE, normalizeMode, normalizePersistedMode } = require("./ponytail-config");
|
|
5
|
+
const INDEPENDENT_MODES = new Set(["review"]);
|
|
6
|
+
const SKILL_PATH = path.join(__dirname, "..", "skills", "ponytail", "SKILL.md");
|
|
7
|
+
function filterSkillBodyForMode(body, mode) {
|
|
8
|
+
const effectiveMode = normalizeMode(mode) || DEFAULT_MODE;
|
|
9
|
+
const withoutFrontmatter = String(body || "").replace(/^---[\s\S]*?---\s*/, "");
|
|
10
|
+
return withoutFrontmatter.split(/\r?\n/).filter((line) => {
|
|
11
|
+
const tableLabel = line.match(/^\|\s*\*\*(.+?)\*\*\s*\|/);
|
|
12
|
+
if (tableLabel) {
|
|
13
|
+
const labelMode = normalizeMode(tableLabel[1].trim());
|
|
14
|
+
if (labelMode)
|
|
15
|
+
return labelMode === effectiveMode;
|
|
16
|
+
}
|
|
17
|
+
const exampleLabel = line.match(/^-\s*([^:]+):\s*"/);
|
|
18
|
+
if (exampleLabel) {
|
|
19
|
+
const labelMode = normalizeMode(exampleLabel[1].trim());
|
|
20
|
+
if (labelMode)
|
|
21
|
+
return labelMode === effectiveMode;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
}).join(`
|
|
25
|
+
`);
|
|
26
|
+
}
|
|
27
|
+
function getFallbackInstructions(mode) {
|
|
28
|
+
return "PONYTAIL MODE ACTIVE — level: " + mode + `
|
|
29
|
+
|
|
30
|
+
` + `You are a lazy senior developer. Lazy means efficient, not careless. The best code is the code never written.
|
|
31
|
+
|
|
32
|
+
` + `## Persistence
|
|
33
|
+
|
|
34
|
+
` + `ACTIVE EVERY RESPONSE. No drift back to over-building. Still active if unsure. Off only: "stop ponytail" / "normal mode".
|
|
35
|
+
|
|
36
|
+
` + "Current level: **" + mode + "**. Switch: `/ponytail lite|full|ultra`.\n\n" + `## The ladder
|
|
37
|
+
|
|
38
|
+
` + `Before any code, stop at the first rung that holds (the ladder runs after you understand the problem, not instead of it — read the code it touches and trace the real flow first):
|
|
39
|
+
` + `1. Does this need to be built at all? (YAGNI)
|
|
40
|
+
` + `2. Does it already exist in this codebase? Reuse what is already here, do not re-write it.
|
|
41
|
+
` + `3. Does the standard library do this? Use it.
|
|
42
|
+
` + `4. Does a native platform feature cover it? Use it.
|
|
43
|
+
` + `5. Does an already-installed dependency solve it? Use it.
|
|
44
|
+
` + `6. Can this be one line? Make it one line.
|
|
45
|
+
` + `7. Only then: write the minimum code that works.
|
|
46
|
+
|
|
47
|
+
` + `Bug fix = root cause, not symptom: grep every caller of the function you touch and fix the shared function once (a smaller diff than one guard per caller); patching only the path the ticket names leaves a sibling caller broken.
|
|
48
|
+
|
|
49
|
+
` + `## Rules
|
|
50
|
+
|
|
51
|
+
` + "No abstractions that were not requested. No avoidable dependencies. No boilerplate nobody asked for. " + "Deletion over addition. Boring over clever. Fewest files possible. " + "Ship the lazy version and question the complex request in the same response — never stall. " + "Between two same-size stdlib options, pick the one correct on edge cases. " + "Mark deliberate simplifications that cut a real corner with a known ceiling, using a `ponytail:` comment that names the ceiling and upgrade path.\n\n" + `## Output
|
|
52
|
+
|
|
53
|
+
` + "Code first. Then at most three short lines: what was skipped, when to add it. " + "If the explanation is longer than the code, delete the explanation. " + `Explanation the user explicitly asked for is not debt, give it in full.
|
|
54
|
+
|
|
55
|
+
` + `## When NOT to be lazy
|
|
56
|
+
|
|
57
|
+
` + "Never simplify away: understanding the problem (read it fully and trace the real flow before picking a rung — a small diff you do not understand is just laziness dressed up as efficiency), input validation at trust boundaries, error handling that prevents data loss, " + "security measures, accessibility basics, the calibration real hardware needs (the platform is never the spec ideal), anything the user explicitly asked to keep. " + `Lazy code without its check is unfinished: non-trivial logic leaves ONE runnable check behind (assert-based demo/self-check or one small test file; no frameworks). Trivial one-liners need no test.
|
|
58
|
+
|
|
59
|
+
` + `## Boundaries
|
|
60
|
+
|
|
61
|
+
` + 'Ponytail governs what you build, not how you talk. "stop ponytail" or "normal mode": revert. Level persists until changed or session end.';
|
|
62
|
+
}
|
|
63
|
+
function getPonytailInstructions(mode) {
|
|
64
|
+
const configuredMode = normalizePersistedMode(mode) || DEFAULT_MODE;
|
|
65
|
+
if (INDEPENDENT_MODES.has(configuredMode)) {
|
|
66
|
+
return "PONYTAIL MODE ACTIVE — level: " + configuredMode + ". Behavior defined by /ponytail-" + configuredMode + " skill.";
|
|
67
|
+
}
|
|
68
|
+
const effectiveMode = normalizeMode(configuredMode) || DEFAULT_MODE;
|
|
69
|
+
try {
|
|
70
|
+
return "PONYTAIL MODE ACTIVE — level: " + effectiveMode + `
|
|
71
|
+
|
|
72
|
+
` + filterSkillBodyForMode(fs.readFileSync(SKILL_PATH, "utf8"), effectiveMode);
|
|
73
|
+
} catch (e) {
|
|
74
|
+
return getFallbackInstructions(effectiveMode);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
module.exports = {
|
|
78
|
+
filterSkillBodyForMode,
|
|
79
|
+
getFallbackInstructions,
|
|
80
|
+
getPonytailInstructions
|
|
81
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const { getDefaultMode, isDeactivationCommand, writeDefaultMode } = require("./ponytail-config");
|
|
2
|
+
const { clearMode, isQoder, readMode, setMode, writeHookOutput } = require("./ponytail-runtime");
|
|
3
|
+
const { getPonytailInstructions } = require("./ponytail-instructions");
|
|
4
|
+
let input = "";
|
|
5
|
+
let done = false;
|
|
6
|
+
function finish() {
|
|
7
|
+
if (done)
|
|
8
|
+
return;
|
|
9
|
+
done = true;
|
|
10
|
+
try {
|
|
11
|
+
const data = JSON.parse(input.replace(/^\uFEFF/, ""));
|
|
12
|
+
const prompt = (data.prompt || "").trim().toLowerCase();
|
|
13
|
+
let modeSwitched = false;
|
|
14
|
+
let deactivated = false;
|
|
15
|
+
if (/^[/@$]ponytail/.test(prompt)) {
|
|
16
|
+
const parts = prompt.split(/\s+/);
|
|
17
|
+
const cmd = parts[0].replace(/^[@$]/, "/");
|
|
18
|
+
const arg = parts[1] || "";
|
|
19
|
+
let mode = null;
|
|
20
|
+
let isReportOnly = false;
|
|
21
|
+
if (cmd === "/ponytail-review" || cmd === "/ponytail:ponytail-review") {
|
|
22
|
+
mode = "review";
|
|
23
|
+
} else if (cmd === "/ponytail" || cmd === "/ponytail:ponytail") {
|
|
24
|
+
if (arg === "default") {
|
|
25
|
+
const dmode = parts[2];
|
|
26
|
+
if (dmode === "off" || dmode === "lite" || dmode === "full" || dmode === "ultra") {
|
|
27
|
+
writeDefaultMode(dmode);
|
|
28
|
+
writeHookOutput("UserPromptSubmit", dmode, "PONYTAIL DEFAULT SET — new sessions start in " + dmode + ".");
|
|
29
|
+
}
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (arg === "lite")
|
|
33
|
+
mode = "lite";
|
|
34
|
+
else if (arg === "full")
|
|
35
|
+
mode = "full";
|
|
36
|
+
else if (arg === "ultra")
|
|
37
|
+
mode = "ultra";
|
|
38
|
+
else if (arg === "off")
|
|
39
|
+
mode = "off";
|
|
40
|
+
else if (arg === "") {
|
|
41
|
+
isReportOnly = true;
|
|
42
|
+
mode = readMode() || getDefaultMode();
|
|
43
|
+
} else {
|
|
44
|
+
mode = getDefaultMode();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (isReportOnly) {
|
|
48
|
+
writeHookOutput("UserPromptSubmit", mode, "PONYTAIL MODE ACTIVE — level: " + mode);
|
|
49
|
+
} else if (mode && mode !== "off") {
|
|
50
|
+
setMode(mode);
|
|
51
|
+
modeSwitched = true;
|
|
52
|
+
if (!isQoder) {
|
|
53
|
+
writeHookOutput("UserPromptSubmit", mode, "PONYTAIL MODE CHANGED — level: " + mode);
|
|
54
|
+
}
|
|
55
|
+
} else if (mode === "off") {
|
|
56
|
+
clearMode();
|
|
57
|
+
deactivated = true;
|
|
58
|
+
writeHookOutput("UserPromptSubmit", "off", "PONYTAIL MODE OFF");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (!modeSwitched && !deactivated && isDeactivationCommand(prompt)) {
|
|
62
|
+
clearMode();
|
|
63
|
+
deactivated = true;
|
|
64
|
+
writeHookOutput("UserPromptSubmit", "off", "PONYTAIL MODE OFF");
|
|
65
|
+
}
|
|
66
|
+
if (isQoder && !deactivated) {
|
|
67
|
+
let currentMode = readMode();
|
|
68
|
+
if (!currentMode) {
|
|
69
|
+
currentMode = getDefaultMode();
|
|
70
|
+
if (currentMode !== "off") {
|
|
71
|
+
try {
|
|
72
|
+
setMode(currentMode);
|
|
73
|
+
} catch (e) {}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (currentMode && currentMode !== "off") {
|
|
77
|
+
const header = modeSwitched ? "PONYTAIL MODE CHANGED — level: " + currentMode + `
|
|
78
|
+
|
|
79
|
+
` : "";
|
|
80
|
+
writeHookOutput("UserPromptSubmit", currentMode, header + getPonytailInstructions(currentMode));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
} catch (e) {}
|
|
84
|
+
}
|
|
85
|
+
process.stdin.on("data", (chunk) => {
|
|
86
|
+
input += chunk;
|
|
87
|
+
});
|
|
88
|
+
process.stdin.on("end", finish);
|
|
89
|
+
process.stdin.on("error", () => {
|
|
90
|
+
finish();
|
|
91
|
+
process.exit(0);
|
|
92
|
+
});
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
finish();
|
|
95
|
+
process.exit(0);
|
|
96
|
+
}, 1000).unref();
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const { getClaudeDir, getConfigDir } = require("./ponytail-config");
|
|
5
|
+
const STATE_FILE = ".ponytail-active";
|
|
6
|
+
function isVsCodeCopilotRoot(pluginRoot) {
|
|
7
|
+
if (!pluginRoot)
|
|
8
|
+
return false;
|
|
9
|
+
return pluginRoot.split(/[\\/]+/).includes("agent-plugins") && pluginRoot.toLowerCase().includes(".vscode");
|
|
10
|
+
}
|
|
11
|
+
const isCopilot = Boolean(process.env.COPILOT_PLUGIN_DATA) || isVsCodeCopilotRoot(process.env.CLAUDE_PLUGIN_ROOT);
|
|
12
|
+
const isCodex = !isCopilot && Boolean(process.env.PLUGIN_DATA);
|
|
13
|
+
const isQoder = !isCopilot && !isCodex && Boolean(process.env.QODER_SESSION_ID);
|
|
14
|
+
let stateDir = getClaudeDir();
|
|
15
|
+
if (isCodex)
|
|
16
|
+
stateDir = process.env.PLUGIN_DATA;
|
|
17
|
+
if (isCopilot)
|
|
18
|
+
stateDir = process.env.COPILOT_PLUGIN_DATA || getClaudeDir();
|
|
19
|
+
if (isQoder)
|
|
20
|
+
stateDir = path.join(os.homedir(), ".qoder");
|
|
21
|
+
const statePath = path.join(stateDir, STATE_FILE);
|
|
22
|
+
function setMode(mode) {
|
|
23
|
+
fs.mkdirSync(path.dirname(statePath), { recursive: true });
|
|
24
|
+
fs.writeFileSync(statePath, mode);
|
|
25
|
+
}
|
|
26
|
+
function clearMode() {
|
|
27
|
+
try {
|
|
28
|
+
fs.unlinkSync(statePath);
|
|
29
|
+
} catch (e) {}
|
|
30
|
+
}
|
|
31
|
+
function readMode() {
|
|
32
|
+
try {
|
|
33
|
+
return fs.readFileSync(statePath, "utf8").trim() || null;
|
|
34
|
+
} catch (e) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function writeHookOutput(event, mode, context = "") {
|
|
39
|
+
if (isCopilot) {
|
|
40
|
+
process.stdout.write(JSON.stringify(event === "SessionStart" && context ? { additionalContext: context } : {}));
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (isCodex) {
|
|
44
|
+
const output = { systemMessage: `PONYTAIL:${mode.toUpperCase()}` };
|
|
45
|
+
if (context) {
|
|
46
|
+
output.hookSpecificOutput = {
|
|
47
|
+
hookEventName: event,
|
|
48
|
+
additionalContext: context
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
process.stdout.write(JSON.stringify(output));
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (isQoder) {
|
|
55
|
+
const output = {};
|
|
56
|
+
if (context) {
|
|
57
|
+
output.hookSpecificOutput = {
|
|
58
|
+
hookEventName: event,
|
|
59
|
+
additionalContext: context
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
process.stdout.write(JSON.stringify(output));
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (event === "SubagentStart") {
|
|
66
|
+
process.stdout.write(JSON.stringify({ hookSpecificOutput: { hookEventName: event, additionalContext: context } }));
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
process.stdout.write(context);
|
|
70
|
+
}
|
|
71
|
+
module.exports = {
|
|
72
|
+
clearMode,
|
|
73
|
+
isCodex,
|
|
74
|
+
isCopilot,
|
|
75
|
+
isQoder,
|
|
76
|
+
readMode,
|
|
77
|
+
setMode,
|
|
78
|
+
writeHookOutput
|
|
79
|
+
};
|