@tomradex/engine-acp 0.14.0 → 0.15.1
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/agent.d.ts +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/local.d.ts +24 -0
- package/package.json +6 -4
package/dist/agent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
2
|
import type { EngineNeed, EnginePick, EngineSetup, TurnInput } from "@tomradex/agent";
|
|
3
|
-
import type { CliLocator } from "@tomradex/engine-claude-code";
|
|
3
|
+
import type { CliLocator, DesktopApp } from "@tomradex/engine-claude-code";
|
|
4
4
|
/** How much the agent may do without asking, as Tomrade settles it for one turn. */
|
|
5
5
|
export type Policy = "full-access" | "ask" | "read-only";
|
|
6
6
|
export interface AcpOptions {
|
|
@@ -100,6 +100,8 @@ export interface AcpAgent<O extends AcpOptions = AcpOptions> {
|
|
|
100
100
|
logs?(): string[];
|
|
101
101
|
facts?(catalog: Catalog): Record<string, string>;
|
|
102
102
|
};
|
|
103
|
+
/** Its desktop app, named when the app is installed without the CLI. */
|
|
104
|
+
desktopApp?: DesktopApp;
|
|
103
105
|
}
|
|
104
106
|
export declare const PERMISSION_CHOICES: {
|
|
105
107
|
readonly "full-access": {
|
package/dist/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export declare function createAcpEngine<O extends AcpOptions>(ctx: Context, agen
|
|
|
11
11
|
export { PERMISSION_CHOICES, isTomradeTool, policyOf, wrappedTool, type AcpAgent, type AcpOptions, type Catalog, type Policy, type RequestUsage } from "./agent.js";
|
|
12
12
|
export { AcpConnection, AcpError, AUTH_REQUIRED, type AcpPeer } from "./connection.js";
|
|
13
13
|
export { AcpRuntime } from "./runtime.js";
|
|
14
|
+
export { LocalAgents, LocalAgents as default } from "./local.js";
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/local.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Context, Service } from "cordis";
|
|
2
|
+
import type { LocalAgentInstaller, LocalAgentOptions, LocalAgentSpec } from "@tomradex/plugin-sdk";
|
|
3
|
+
declare module "cordis" {
|
|
4
|
+
interface Context {
|
|
5
|
+
localAgents: LocalAgents;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
type Spec = LocalAgentSpec<LocalAgentOptions>;
|
|
9
|
+
/** An installer script as the command the app runs for the person; the plugin names only its address. */
|
|
10
|
+
export declare const installCommand: (step: string | LocalAgentInstaller) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Coding agents a plugin describes rather than implements: this module finds
|
|
13
|
+
* their CLI, runs them over ACP or hands them a ticket in a terminal, keeps
|
|
14
|
+
* their connection to Tomrade and lends their sign-in to the worker — what the
|
|
15
|
+
* app's own agents get.
|
|
16
|
+
*/
|
|
17
|
+
export declare class LocalAgents extends Service {
|
|
18
|
+
static provide: string;
|
|
19
|
+
constructor(ctx: Context);
|
|
20
|
+
/** Goes with the plugin that registered it, or when the answer is called. */
|
|
21
|
+
register(spec: Spec): () => void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=local.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomradex/engine-acp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Haoyuan Tang",
|
|
6
6
|
"engines": {
|
|
@@ -27,9 +27,11 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tomradex/agent": "0.
|
|
31
|
-
"@tomradex/engine-claude-code": "0.
|
|
32
|
-
"@tomradex/
|
|
30
|
+
"@tomradex/agent": "0.15.1",
|
|
31
|
+
"@tomradex/engine-claude-code": "0.15.1",
|
|
32
|
+
"@tomradex/llm": "0.15.1",
|
|
33
|
+
"@tomradex/mcp": "0.15.1",
|
|
34
|
+
"@tomradex/plugin-sdk": "0.2.18",
|
|
33
35
|
"cordis": "4.0.0-rc.8",
|
|
34
36
|
"zod": "^4.4.3"
|
|
35
37
|
}
|