@opencode_weave/weave 0.6.3 → 0.7.0-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.
Files changed (33) hide show
  1. package/dist/config/schema.d.ts +9 -0
  2. package/dist/features/analytics/adherence.d.ts +10 -0
  3. package/dist/features/analytics/fingerprint.d.ts +2 -1
  4. package/dist/features/analytics/format-metrics.d.ts +10 -0
  5. package/dist/features/analytics/generate-metrics-report.d.ts +17 -0
  6. package/dist/features/analytics/git-diff.d.ts +7 -0
  7. package/dist/features/analytics/index.d.ts +13 -6
  8. package/dist/features/analytics/plan-parser.d.ts +7 -0
  9. package/dist/features/analytics/plan-token-aggregator.d.ts +11 -0
  10. package/dist/features/analytics/session-tracker.d.ts +20 -0
  11. package/dist/features/analytics/storage.d.ts +13 -1
  12. package/dist/features/analytics/token-report.d.ts +14 -0
  13. package/dist/features/analytics/types.d.ts +91 -1
  14. package/dist/features/builtin-commands/templates/metrics.d.ts +1 -0
  15. package/dist/features/builtin-commands/templates/run-workflow.d.ts +1 -0
  16. package/dist/features/builtin-commands/types.d.ts +1 -1
  17. package/dist/features/workflow/commands.d.ts +17 -0
  18. package/dist/features/workflow/completion.d.ts +31 -0
  19. package/dist/features/workflow/constants.d.ts +12 -0
  20. package/dist/features/workflow/context.d.ts +16 -0
  21. package/dist/features/workflow/discovery.d.ts +19 -0
  22. package/dist/features/workflow/engine.d.ts +49 -0
  23. package/dist/features/workflow/hook.d.ts +47 -0
  24. package/dist/features/workflow/index.d.ts +15 -0
  25. package/dist/features/workflow/schema.d.ts +118 -0
  26. package/dist/features/workflow/storage.d.ts +51 -0
  27. package/dist/features/workflow/types.d.ts +142 -0
  28. package/dist/hooks/create-hooks.d.ts +6 -0
  29. package/dist/index.js +2183 -426
  30. package/dist/plugin/types.d.ts +1 -1
  31. package/dist/shared/index.d.ts +1 -0
  32. package/dist/shared/version.d.ts +5 -0
  33. package/package.json +1 -1
@@ -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">>;
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">>;
5
5
  export type ToolsRecord = Record<string, ToolDefinition>;
@@ -1,4 +1,5 @@
1
1
  export type { DeepPartial, Brand } from "./types";
2
+ export { getWeaveVersion } from "./version";
2
3
  export { log, getLogFilePath, logDelegation } from "./log";
3
4
  export type { DelegationEvent } from "./log";
4
5
  export { AGENT_DISPLAY_NAMES, getAgentDisplayName, getAgentConfigKey, registerAgentDisplayName, } from "./agent-display-names";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Returns the current Weave package version from package.json.
3
+ * Cached after first read. Falls back to "0.0.0" if reading fails.
4
+ */
5
+ export declare function getWeaveVersion(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode_weave/weave",
3
- "version": "0.6.3",
3
+ "version": "0.7.0-preview.1",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration",
5
5
  "author": "Weave",
6
6
  "license": "MIT",