adhdev 0.1.48 → 0.1.49
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/index.js
CHANGED
|
@@ -6068,14 +6068,15 @@ var init_daemon_status = __esm({
|
|
|
6068
6068
|
const allStates = this.deps.instanceManager.collectAllStates();
|
|
6069
6069
|
const ideStates = allStates.filter((s) => s.category === "ide");
|
|
6070
6070
|
const cliStates = allStates.filter((s) => s.category === "cli");
|
|
6071
|
+
const acpStates = allStates.filter((s) => s.category === "acp");
|
|
6071
6072
|
const ideSummary = ideStates.map((s) => {
|
|
6072
6073
|
const msgs = s.activeChat?.messages?.length || 0;
|
|
6073
6074
|
const exts = (s.extensions || []).length;
|
|
6074
6075
|
return `${s.type}(${s.status},${msgs}msg,${exts}ext${s.currentModel ? ",model=" + s.currentModel : ""})`;
|
|
6075
6076
|
}).join(", ");
|
|
6076
|
-
const cliSummary = cliStates.map((s) => `${s.type}(${s.status})`).join(", ");
|
|
6077
|
+
const cliSummary = [...cliStates, ...acpStates].map((s) => `${s.type}(${s.status})`).join(", ");
|
|
6077
6078
|
const logLevel = opts?.p2pOnly ? "debug" : "info";
|
|
6078
|
-
LOG[logLevel]("StatusReport", `\u2192${target} IDE: ${ideStates.length} [${ideSummary}] CLI: ${cliStates.length} [${cliSummary}]`);
|
|
6079
|
+
LOG[logLevel]("StatusReport", `\u2192${target} IDE: ${ideStates.length} [${ideSummary}] CLI: ${cliStates.length + acpStates.length} [${cliSummary}]`);
|
|
6079
6080
|
const managedIdes = ideStates.map((s) => ({
|
|
6080
6081
|
ideType: s.type,
|
|
6081
6082
|
ideVersion: "",
|
|
@@ -6150,6 +6151,19 @@ var init_daemon_status = __esm({
|
|
|
6150
6151
|
workingDir: s.workingDir || "",
|
|
6151
6152
|
activeChat: s.activeChat
|
|
6152
6153
|
}));
|
|
6154
|
+
for (const s of acpStates) {
|
|
6155
|
+
managedClis.push({
|
|
6156
|
+
id: s.instanceId,
|
|
6157
|
+
cliType: s.type,
|
|
6158
|
+
cliName: s.name,
|
|
6159
|
+
status: s.status,
|
|
6160
|
+
mode: "chat",
|
|
6161
|
+
workingDir: s.workingDir || "",
|
|
6162
|
+
activeChat: s.activeChat,
|
|
6163
|
+
currentModel: s.currentModel,
|
|
6164
|
+
isAcp: true
|
|
6165
|
+
});
|
|
6166
|
+
}
|
|
6153
6167
|
const extSummary = localServer?.getLatestExtensionData() || {
|
|
6154
6168
|
activeFile: null,
|
|
6155
6169
|
workspaceFolders: [],
|
|
@@ -9665,11 +9679,11 @@ provider.command("list").description("List all loaded providers").option("-j, --
|
|
|
9665
9679
|
return;
|
|
9666
9680
|
}
|
|
9667
9681
|
console.log(import_chalk4.default.bold("\n\u{1F50C} ADHDev Providers\n"));
|
|
9668
|
-
const categories = ["ide", "extension", "cli"];
|
|
9682
|
+
const categories = ["ide", "extension", "cli", "acp"];
|
|
9669
9683
|
for (const cat of categories) {
|
|
9670
9684
|
const catProviders = providers.filter((p) => p.category === cat);
|
|
9671
9685
|
if (catProviders.length === 0) continue;
|
|
9672
|
-
const icons = { ide: "\u{1F4BB}", extension: "\u{1F9E9}", cli: "\u2328\uFE0F " };
|
|
9686
|
+
const icons = { ide: "\u{1F4BB}", extension: "\u{1F9E9}", cli: "\u2328\uFE0F ", acp: "\u{1F50C}" };
|
|
9673
9687
|
console.log(` ${icons[cat] || ""} ${import_chalk4.default.bold(cat.toUpperCase())} (${catProviders.length})`);
|
|
9674
9688
|
for (const p of catProviders) {
|
|
9675
9689
|
const scripts = p.scripts ? Object.keys(p.scripts).filter((k) => typeof p.scripts[k] === "function") : [];
|
package/package.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex CLI — ACP Provider
|
|
3
|
+
*
|
|
4
|
+
* Category: acp (Agent Client Protocol — JSON-RPC over stdio)
|
|
5
|
+
*
|
|
6
|
+
* OpenAI Codex CLI: https://developers.openai.com/codex/cli
|
|
7
|
+
* ACP support: https://github.com/openai/codex/blob/main/docs/acp.md
|
|
8
|
+
*
|
|
9
|
+
* @type {import('../../../../src/providers/contracts').ProviderModule}
|
|
10
|
+
*/
|
|
11
|
+
module.exports = {
|
|
12
|
+
type: 'codex-cli',
|
|
13
|
+
name: 'Codex CLI',
|
|
14
|
+
category: 'acp',
|
|
15
|
+
|
|
16
|
+
displayName: 'Codex',
|
|
17
|
+
icon: '🤖',
|
|
18
|
+
|
|
19
|
+
// ACP spawn config
|
|
20
|
+
spawn: {
|
|
21
|
+
command: 'codex',
|
|
22
|
+
args: ['--acp'],
|
|
23
|
+
shell: false,
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// Settings
|
|
27
|
+
settings: {
|
|
28
|
+
approvalAlert: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
default: true,
|
|
31
|
+
public: true,
|
|
32
|
+
label: 'Approval Alerts',
|
|
33
|
+
description: 'Show notification when Codex requires approval',
|
|
34
|
+
},
|
|
35
|
+
longGeneratingAlert: {
|
|
36
|
+
type: 'boolean',
|
|
37
|
+
default: true,
|
|
38
|
+
public: true,
|
|
39
|
+
label: 'Long Generation Alert',
|
|
40
|
+
description: 'Alert when generation takes too long',
|
|
41
|
+
},
|
|
42
|
+
longGeneratingThresholdSec: {
|
|
43
|
+
type: 'number',
|
|
44
|
+
default: 180,
|
|
45
|
+
public: true,
|
|
46
|
+
label: 'Long Generation Threshold (sec)',
|
|
47
|
+
min: 30,
|
|
48
|
+
max: 600,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Goose (Block) — ACP Provider
|
|
3
|
+
*
|
|
4
|
+
* Category: acp (Agent Client Protocol — JSON-RPC over stdio)
|
|
5
|
+
*
|
|
6
|
+
* Goose: https://block.github.io/goose/docs/guides/acp-clients
|
|
7
|
+
*
|
|
8
|
+
* @type {import('../../../../src/providers/contracts').ProviderModule}
|
|
9
|
+
*/
|
|
10
|
+
module.exports = {
|
|
11
|
+
type: 'goose',
|
|
12
|
+
name: 'Goose',
|
|
13
|
+
category: 'acp',
|
|
14
|
+
|
|
15
|
+
displayName: 'Goose',
|
|
16
|
+
icon: '🪿',
|
|
17
|
+
|
|
18
|
+
spawn: {
|
|
19
|
+
command: 'goose',
|
|
20
|
+
args: ['acp'],
|
|
21
|
+
shell: false,
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
settings: {
|
|
25
|
+
approvalAlert: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
default: true,
|
|
28
|
+
public: true,
|
|
29
|
+
label: 'Approval Alerts',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenCode — ACP Provider
|
|
3
|
+
*
|
|
4
|
+
* Category: acp (Agent Client Protocol — JSON-RPC over stdio)
|
|
5
|
+
*
|
|
6
|
+
* SST OpenCode: https://github.com/sst/opencode
|
|
7
|
+
*
|
|
8
|
+
* @type {import('../../../../src/providers/contracts').ProviderModule}
|
|
9
|
+
*/
|
|
10
|
+
module.exports = {
|
|
11
|
+
type: 'opencode',
|
|
12
|
+
name: 'OpenCode',
|
|
13
|
+
category: 'acp',
|
|
14
|
+
|
|
15
|
+
displayName: 'OpenCode',
|
|
16
|
+
icon: '🟢',
|
|
17
|
+
|
|
18
|
+
spawn: {
|
|
19
|
+
command: 'opencode',
|
|
20
|
+
args: ['--acp'],
|
|
21
|
+
shell: false,
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
settings: {
|
|
25
|
+
approvalAlert: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
default: true,
|
|
28
|
+
public: true,
|
|
29
|
+
label: 'Approval Alerts',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|