@opencode-ai/plugin 1.1.36 → 1.1.37
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.d.ts +2 -1
- package/dist/tool.d.ts +10 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/tool.d.ts
CHANGED
|
@@ -3,6 +3,16 @@ export type ToolContext = {
|
|
|
3
3
|
sessionID: string;
|
|
4
4
|
messageID: string;
|
|
5
5
|
agent: string;
|
|
6
|
+
/**
|
|
7
|
+
* Current project directory for this session.
|
|
8
|
+
* Prefer this over process.cwd() when resolving relative paths.
|
|
9
|
+
*/
|
|
10
|
+
directory: string;
|
|
11
|
+
/**
|
|
12
|
+
* Project worktree root for this session.
|
|
13
|
+
* Useful for generating stable relative paths (e.g. path.relative(worktree, absPath)).
|
|
14
|
+
*/
|
|
15
|
+
worktree: string;
|
|
6
16
|
abort: AbortSignal;
|
|
7
17
|
metadata(input: {
|
|
8
18
|
title?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/plugin",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.37",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@opencode-ai/sdk": "1.1.
|
|
25
|
+
"@opencode-ai/sdk": "1.1.37",
|
|
26
26
|
"zod": "4.1.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|