@opencode/schema 0.0.0-dev-1365 → 0.0.0-dev-1367
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/config/flag.d.ts +1 -1
- package/dist/config/flag.js +2 -2
- package/dist/tool.d.ts +9 -0
- package/package.json +1 -1
package/dist/config/flag.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const registry: {
|
|
|
16
16
|
readonly machines: "Let a tool path name a machine, as in gpu:/work/train.py, and act on that machine's files and processes.";
|
|
17
17
|
readonly home_memory: "Give sessions in the home folder a persistent memory/, docs/ and scripts/ workspace the agent can use freely, tidied by a daily maintenance session that reads the day's home-folder conversations.";
|
|
18
18
|
readonly project_overlay: "Load a personal config dir for each project from ~/.config/opencode/project/<project-id>/, read like an extra .opencode dir that ranks above the repo's own, and let home memory keep the skills it builds for the user there.";
|
|
19
|
-
readonly opencode_api: 'Let Code Mode scripts call the OpenCode HTTP API with fetch("opencode:///api/..."), in-process and already signed in, with
|
|
19
|
+
readonly opencode_api: 'Let Code Mode scripts call the OpenCode HTTP API with fetch("opencode:///api/..."), in-process and already signed in, with calls checked as the equivalent opencode api shell command. On by default in local and dev builds and unavailable in releases.';
|
|
20
20
|
readonly mcp_skills: "Load skills from MCP servers that offer them (the io.modelcontextprotocol/skills extension), named <server>:<skill>. A server that offers skills no longer has its instructions included.";
|
|
21
21
|
readonly compaction_jobs: "List a session's subagents, with their session IDs, and its running background jobs in its compaction checkpoints, so the agent can still continue or account for them after compacting.";
|
|
22
22
|
readonly sqlite_fts: "Build an SQLite full-text index of session titles and message text in the background, and enable the opencode.session.search and opencode.session.read tools. The index covers every session in the database and starts while any loaded location enables it; SQLite keeps it current from then on, also after this is turned off.";
|
package/dist/config/flag.js
CHANGED
|
@@ -16,7 +16,7 @@ export const registry = {
|
|
|
16
16
|
machines: "Let a tool path name a machine, as in gpu:/work/train.py, and act on that machine's files and processes.",
|
|
17
17
|
home_memory: "Give sessions in the home folder a persistent memory/, docs/ and scripts/ workspace the agent can use freely, tidied by a daily maintenance session that reads the day's home-folder conversations.",
|
|
18
18
|
project_overlay: "Load a personal config dir for each project from ~/.config/opencode/project/<project-id>/, read like an extra .opencode dir that ranks above the repo's own, and let home memory keep the skills it builds for the user there.",
|
|
19
|
-
opencode_api: 'Let Code Mode scripts call the OpenCode HTTP API with fetch("opencode:///api/..."), in-process and already signed in, with
|
|
19
|
+
opencode_api: 'Let Code Mode scripts call the OpenCode HTTP API with fetch("opencode:///api/..."), in-process and already signed in, with calls checked as the equivalent opencode api shell command. On by default in local and dev builds and unavailable in releases.',
|
|
20
20
|
mcp_skills: "Load skills from MCP servers that offer them (the io.modelcontextprotocol/skills extension), named <server>:<skill>. A server that offers skills no longer has its instructions included.",
|
|
21
21
|
compaction_jobs: "List a session's subagents, with their session IDs, and its running background jobs in its compaction checkpoints, so the agent can still continue or account for them after compacting.",
|
|
22
22
|
sqlite_fts: "Build an SQLite full-text index of session titles and message text in the background, and enable the opencode.session.search and opencode.session.read tools. The index covers every session in the database and starts while any loaded location enables it; SQLite keeps it current from then on, also after this is turned off.",
|
|
@@ -24,6 +24,6 @@ export const registry = {
|
|
|
24
24
|
};
|
|
25
25
|
/** Flags the server reports to clients at `GET /api/experimental/flag`, so they can adapt their UI. */
|
|
26
26
|
export const ui = ["full_codemode"];
|
|
27
|
-
export const optInOnly = new Set(["todo"
|
|
27
|
+
export const optInOnly = new Set(["todo"]);
|
|
28
28
|
/** Flags that stay off outside local and dev builds, whatever `OPENCODE_FLAGS` or config say. */
|
|
29
29
|
export const localOnly = new Set(["opencode_api"]);
|
package/dist/tool.d.ts
CHANGED
|
@@ -48,6 +48,15 @@ export interface Context {
|
|
|
48
48
|
readonly automation?: {
|
|
49
49
|
readonly id: Automation.ID;
|
|
50
50
|
};
|
|
51
|
+
/** Calls other tools from inside this one. */
|
|
52
|
+
readonly tool: Calls;
|
|
53
|
+
}
|
|
54
|
+
export interface Calls {
|
|
55
|
+
/**
|
|
56
|
+
* Calls another registered tool as part of this call: the same input checks, `execute` hooks and permission rules as
|
|
57
|
+
* a call the model makes, with permission requests shown on this call. Fails with the tool's error.
|
|
58
|
+
*/
|
|
59
|
+
readonly call: (name: string, input: unknown) => Effect.Effect<Result, Error>;
|
|
51
60
|
}
|
|
52
61
|
export interface Namespace {
|
|
53
62
|
readonly name: string;
|