@weaveio/weave-adapter-opencode 0.0.0-preview-20260710183641 → 0.0.0-preview-20260715084847
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.js +12 -4
- package/dist/plugin.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19829,6 +19829,7 @@ var AgentConfigSchema = exports_external.object({
|
|
|
19829
19829
|
prompt_append: exports_external.string().optional(),
|
|
19830
19830
|
prompt_append_file: exports_external.string().optional(),
|
|
19831
19831
|
models: exports_external.array(exports_external.string()).optional(),
|
|
19832
|
+
review_models: exports_external.array(exports_external.string()).min(1).optional(),
|
|
19832
19833
|
temperature: exports_external.number().min(0).max(2).optional(),
|
|
19833
19834
|
mode: exports_external.enum(["primary", "subagent", "all"]).optional(),
|
|
19834
19835
|
tool_policy: ToolPolicySchema.optional(),
|
|
@@ -22887,8 +22888,13 @@ function buildLegacyRunAgentEffect(stepName) {
|
|
|
22887
22888
|
resolvedSkills: []
|
|
22888
22889
|
};
|
|
22889
22890
|
}
|
|
22890
|
-
function buildConfiguredRunAgentEffect(step, promptMetadata) {
|
|
22891
|
+
function buildConfiguredRunAgentEffect(step, promptMetadata, agentConfig) {
|
|
22891
22892
|
const effectivePolicy = evaluateEffectiveToolPolicy(undefined);
|
|
22893
|
+
const isGateReviewVerdict = step.type === "gate" && step.completion.method === "review_verdict";
|
|
22894
|
+
const reviewFanOutIntent = isGateReviewVerdict && agentConfig?.review_models && agentConfig.review_models.length > 0 ? {
|
|
22895
|
+
agentName: step.agent,
|
|
22896
|
+
reviewModels: agentConfig.review_models
|
|
22897
|
+
} : undefined;
|
|
22892
22898
|
return {
|
|
22893
22899
|
kind: "run-agent",
|
|
22894
22900
|
agentName: step.agent,
|
|
@@ -22908,7 +22914,8 @@ function buildConfiguredRunAgentEffect(step, promptMetadata) {
|
|
|
22908
22914
|
completionMethod: step.completion.method,
|
|
22909
22915
|
stepType: step.type,
|
|
22910
22916
|
correlationId: crypto.randomUUID(),
|
|
22911
|
-
promptMetadata
|
|
22917
|
+
promptMetadata,
|
|
22918
|
+
...reviewFanOutIntent !== undefined ? { reviewFanOutIntent } : {}
|
|
22912
22919
|
};
|
|
22913
22920
|
}
|
|
22914
22921
|
function resolveWorkflowStep(workflowConfig, stepName) {
|
|
@@ -22987,7 +22994,7 @@ function dispatchStep(input, store) {
|
|
|
22987
22994
|
effects: [
|
|
22988
22995
|
{
|
|
22989
22996
|
kind: "dispatch-agent",
|
|
22990
|
-
runAgent: buildConfiguredRunAgentEffect(step, promptMetadata)
|
|
22997
|
+
runAgent: buildConfiguredRunAgentEffect(step, promptMetadata, input.context?.agentConfigs?.[step.agent])
|
|
22991
22998
|
}
|
|
22992
22999
|
],
|
|
22993
23000
|
...hasInputs ? { artifactInputSummary } : {}
|
|
@@ -24542,7 +24549,8 @@ function runWorkflowLifecycle(input) {
|
|
|
24542
24549
|
workflowName,
|
|
24543
24550
|
goal,
|
|
24544
24551
|
slug,
|
|
24545
|
-
workflows
|
|
24552
|
+
workflows,
|
|
24553
|
+
...input.agentConfigs !== undefined ? { agentConfigs: input.agentConfigs } : {}
|
|
24546
24554
|
};
|
|
24547
24555
|
log8.info({ workflowName, goal, slug, workflowInstanceId }, "Starting workflow lifecycle");
|
|
24548
24556
|
return startExecution({
|
package/dist/plugin.js
CHANGED
|
@@ -19832,6 +19832,7 @@ var AgentConfigSchema = exports_external.object({
|
|
|
19832
19832
|
prompt_append: exports_external.string().optional(),
|
|
19833
19833
|
prompt_append_file: exports_external.string().optional(),
|
|
19834
19834
|
models: exports_external.array(exports_external.string()).optional(),
|
|
19835
|
+
review_models: exports_external.array(exports_external.string()).min(1).optional(),
|
|
19835
19836
|
temperature: exports_external.number().min(0).max(2).optional(),
|
|
19836
19837
|
mode: exports_external.enum(["primary", "subagent", "all"]).optional(),
|
|
19837
19838
|
tool_policy: ToolPolicySchema.optional(),
|