@opencode_weave/weave 0.7.1 → 0.7.4-preview.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/README.md +3 -196
- package/dist/agents/tapestry/prompt-composer.d.ts +3 -1
- package/dist/config/schema.d.ts +3 -0
- package/dist/features/analytics/generate-metrics-report.d.ts +4 -4
- package/dist/features/analytics/index.d.ts +4 -3
- package/dist/features/analytics/plan-token-aggregator.d.ts +24 -1
- package/dist/features/analytics/quality-score.d.ts +30 -0
- package/dist/features/analytics/session-tracker.d.ts +5 -0
- package/dist/features/analytics/types.d.ts +51 -14
- package/dist/features/evals/evaluators/trajectory-assertion.d.ts +2 -0
- package/dist/features/evals/executors/github-models-api.d.ts +13 -0
- package/dist/features/evals/executors/model-response.d.ts +6 -1
- package/dist/features/evals/executors/prompt-renderer.d.ts +1 -1
- package/dist/features/evals/executors/trajectory-run.d.ts +3 -0
- package/dist/features/evals/index.d.ts +8 -5
- package/dist/features/evals/loader.d.ts +2 -1
- package/dist/features/evals/reporter.d.ts +1 -0
- package/dist/features/evals/runner.d.ts +1 -1
- package/dist/features/evals/schema.d.ts +65 -16
- package/dist/features/evals/storage.d.ts +2 -0
- package/dist/features/evals/types.d.ts +43 -2
- package/dist/features/skill-loader/loader.d.ts +2 -0
- package/dist/features/workflow/context.d.ts +2 -1
- package/dist/features/workflow/discovery.d.ts +6 -3
- package/dist/features/workflow/hook.d.ts +2 -0
- package/dist/hooks/compaction-todo-preserver.d.ts +20 -0
- package/dist/hooks/create-hooks.d.ts +4 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +25 -0
- package/dist/hooks/todo-description-override.d.ts +18 -0
- package/dist/hooks/todo-writer.d.ts +17 -0
- package/dist/index.js +755 -254
- package/dist/plugin/types.d.ts +1 -1
- package/dist/shared/resolve-safe-path.d.ts +14 -0
- package/package.json +10 -8
- package/dist/features/analytics/suggestions.d.ts +0 -10
package/dist/plugin/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin, ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
export type PluginContext = Parameters<Plugin>[0];
|
|
3
3
|
export type PluginInstance = Awaited<ReturnType<Plugin>>;
|
|
4
|
-
export type PluginInterface = Required<Pick<PluginInstance, "tool" | "config" | "chat.message" | "chat.params" | "chat.headers" | "event" | "tool.execute.before" | "tool.execute.after" | "command.execute.before">>;
|
|
4
|
+
export type PluginInterface = Required<Pick<PluginInstance, "tool" | "config" | "chat.message" | "chat.params" | "chat.headers" | "event" | "tool.execute.before" | "tool.execute.after" | "command.execute.before" | "tool.definition" | "experimental.session.compacting">>;
|
|
5
5
|
export type ToolsRecord = Record<string, ToolDefinition>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Safely resolve a user-supplied directory path, ensuring it stays within the
|
|
3
|
+
* project root (sandbox). Returns the resolved absolute path, or null if the
|
|
4
|
+
* path escapes the sandbox.
|
|
5
|
+
*
|
|
6
|
+
* Security rules:
|
|
7
|
+
* - Absolute paths are rejected (must be relative to projectRoot)
|
|
8
|
+
* - Resolved path must start with projectRoot (prevents `../../` traversal)
|
|
9
|
+
*
|
|
10
|
+
* @param dir - User-supplied directory path (from config)
|
|
11
|
+
* @param projectRoot - Project root to resolve relative paths against and sandbox within
|
|
12
|
+
* @returns Resolved absolute path, or null if the path is rejected
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveSafePath(dir: string, projectRoot: string): string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode_weave/weave",
|
|
3
|
-
"version": "0.7.1",
|
|
3
|
+
"version": "0.7.4-preview.1",
|
|
4
4
|
"description": "Weave — lean OpenCode plugin with multi-agent orchestration",
|
|
5
5
|
"author": "Weave",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"test": "bun test",
|
|
29
29
|
"eval": "bun run script/eval.ts",
|
|
30
|
-
"eval:smoke": "bun run script/eval.ts --suite
|
|
31
|
-
"eval:
|
|
30
|
+
"eval:smoke": "bun run script/eval.ts --suite prompt-smoke",
|
|
31
|
+
"eval:phase2": "bun run script/eval.ts --suite agent-routing",
|
|
32
|
+
"eval:coverage": "bun run script/verify-eval-coverage.ts",
|
|
33
|
+
"eval:trend": "bun run script/eval-trend-report.ts"
|
|
32
34
|
},
|
|
33
35
|
"keywords": [
|
|
34
36
|
"opencode",
|
|
@@ -41,15 +43,15 @@
|
|
|
41
43
|
"access": "public"
|
|
42
44
|
},
|
|
43
45
|
"dependencies": {
|
|
44
|
-
"@opencode-ai/plugin": "^1.
|
|
45
|
-
"@opencode-ai/sdk": "^1.
|
|
46
|
+
"@opencode-ai/plugin": "^1.3.3",
|
|
47
|
+
"@opencode-ai/sdk": "^1.3.3",
|
|
46
48
|
"jsonc-parser": "^3.3.1",
|
|
47
49
|
"picocolors": "^1.1.1",
|
|
48
50
|
"zod": "^4.0.0"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
|
-
"bun": "^1.3.
|
|
52
|
-
"bun-types": "^1.3.
|
|
53
|
-
"typescript": "^
|
|
53
|
+
"bun": "^1.3.11",
|
|
54
|
+
"bun-types": "^1.3.11",
|
|
55
|
+
"typescript": "^6.0.2"
|
|
54
56
|
}
|
|
55
57
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SessionSummary, Suggestion } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Generate suggestions based on session history.
|
|
4
|
-
* Analyzes tool usage patterns, delegation frequency, and workflow patterns.
|
|
5
|
-
*/
|
|
6
|
-
export declare function generateSuggestions(summaries: SessionSummary[]): Suggestion[];
|
|
7
|
-
/**
|
|
8
|
-
* Generate suggestions from stored session summaries for a project.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getSuggestionsForProject(directory: string): Suggestion[];
|