opendevbrowser 0.0.27 → 0.0.28
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 +1 -1
- package/dist/browser/canvas-manager.d.ts.map +1 -1
- package/dist/canvas/document-store.d.ts.map +1 -1
- package/dist/canvas/guidance.d.ts +22 -0
- package/dist/canvas/guidance.d.ts.map +1 -0
- package/dist/{chunk-MWBDO2L5.js → chunk-I5ZCOZZV.js} +224 -80
- package/dist/chunk-I5ZCOZZV.js.map +1 -0
- package/dist/{chunk-V5DJUSPV.js → chunk-T3VVHJTK.js} +1381 -318
- package/dist/chunk-T3VVHJTK.js.map +1 -0
- package/dist/cli/commands/inspiredesign.d.ts +2 -0
- package/dist/cli/commands/inspiredesign.d.ts.map +1 -1
- package/dist/cli/commands/macro-resolve.d.ts +2 -0
- package/dist/cli/commands/macro-resolve.d.ts.map +1 -1
- package/dist/cli/commands/product-video.d.ts +2 -0
- package/dist/cli/commands/product-video.d.ts.map +1 -1
- package/dist/cli/commands/research.d.ts +2 -0
- package/dist/cli/commands/research.d.ts.map +1 -1
- package/dist/cli/daemon-commands.d.ts.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/index.js +125 -28
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/workflow-message.d.ts +3 -0
- package/dist/cli/utils/workflow-message.d.ts.map +1 -1
- package/dist/daemon-fingerprint.json +1 -1
- package/dist/index.js +39 -15
- package/dist/index.js.map +1 -1
- package/dist/inspiredesign/contract.d.ts +52 -1
- package/dist/inspiredesign/contract.d.ts.map +1 -1
- package/dist/inspiredesign/handoff.d.ts +12 -0
- package/dist/inspiredesign/handoff.d.ts.map +1 -1
- package/dist/inspiredesign/reference-pattern-board.d.ts +1 -0
- package/dist/inspiredesign/reference-pattern-board.d.ts.map +1 -1
- package/dist/macros/execute-runtime.d.ts +2 -1
- package/dist/macros/execute-runtime.d.ts.map +1 -1
- package/dist/macros/execute.d.ts +4 -2
- package/dist/macros/execute.d.ts.map +1 -1
- package/dist/opendevbrowser.js +39 -15
- package/dist/opendevbrowser.js.map +1 -1
- package/dist/providers/browser-fallback.d.ts +7 -0
- package/dist/providers/browser-fallback.d.ts.map +1 -1
- package/dist/providers/community/index.d.ts.map +1 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/renderer.d.ts.map +1 -1
- package/dist/providers/research-compiler.d.ts.map +1 -1
- package/dist/providers/runtime-bundle.d.ts +1 -1
- package/dist/providers/runtime-bundle.d.ts.map +1 -1
- package/dist/providers/runtime-factory.d.ts.map +1 -1
- package/dist/providers/shopping/index.d.ts.map +1 -1
- package/dist/providers/social/platform.d.ts.map +1 -1
- package/dist/providers/social/search-quality.d.ts.map +1 -1
- package/dist/providers/social/youtube.d.ts.map +1 -1
- package/dist/providers/workflow-handoff.d.ts +18 -1
- package/dist/providers/workflow-handoff.d.ts.map +1 -1
- package/dist/providers/workflows.d.ts +3 -0
- package/dist/providers/workflows.d.ts.map +1 -1
- package/dist/{providers-TR3DUJZV.js → providers-QF2RFB4J.js} +2 -2
- package/dist/public-surface/generated-manifest.d.ts +6 -6
- package/dist/public-surface/generated-manifest.d.ts.map +1 -1
- package/dist/public-surface/source.d.ts +8 -8
- package/dist/public-surface/source.d.ts.map +1 -1
- package/dist/tools/inspiredesign_run.d.ts.map +1 -1
- package/dist/tools/macro_resolve.d.ts.map +1 -1
- package/dist/tools/product_video_run.d.ts.map +1 -1
- package/dist/tools/research_run.d.ts.map +1 -1
- package/dist/tools/shopping_run.d.ts.map +1 -1
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
- package/skills/opendevbrowser-best-practices/SKILL.md +6 -6
- package/skills/opendevbrowser-design-agent/SKILL.md +5 -0
- package/skills/opendevbrowser-design-agent/artifacts/design-contract-playbook.md +6 -1
- package/skills/opendevbrowser-design-agent/assets/templates/design-contract.v1.json +15 -1
- package/skills/opendevbrowser-design-agent/assets/templates/inspiredesign-advanced-brief.v1.json +5 -2
- package/skills/opendevbrowser-design-agent/assets/templates/reference-pattern-board.v1.json +2 -0
- package/dist/chunk-MWBDO2L5.js.map +0 -1
- package/dist/chunk-V5DJUSPV.js.map +0 -1
- /package/dist/{providers-TR3DUJZV.js.map → providers-QF2RFB4J.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CanvasDesignGovernance, CanvasGenerationPlan } from "../canvas/types";
|
|
1
|
+
import type { CanvasAsset, CanvasComponentInventoryItem, CanvasDesignGovernance, CanvasGenerationPlan } from "../canvas/types";
|
|
2
|
+
import { type InspiredesignArtifactGuide, type InspiredesignContractSectionGuide } from "./handoff";
|
|
2
3
|
import { type InspiredesignBriefExpansion, type InspiredesignBriefFormat } from "./brief-expansion";
|
|
3
4
|
import { type InspiredesignDesignVectors, type InspiredesignReferencePatternBoard } from "./reference-pattern-board";
|
|
4
5
|
import type { JsonValue } from "../providers/types";
|
|
@@ -94,6 +95,7 @@ export type InspiredesignImplementationPlan = {
|
|
|
94
95
|
type InspiredesignGenerationPlan = CanvasGenerationPlan & {
|
|
95
96
|
referencePatternBoard: InspiredesignReferencePatternBoard;
|
|
96
97
|
designVectors: InspiredesignDesignVectors;
|
|
98
|
+
targetAnalysis: InspiredesignTargetAnalysis;
|
|
97
99
|
interactionMoments: string[];
|
|
98
100
|
materialEffects: string[];
|
|
99
101
|
};
|
|
@@ -122,10 +124,59 @@ export type InspiredesignImplementationContext = {
|
|
|
122
124
|
referenceSynthesis: JsonRecord;
|
|
123
125
|
referencePatternBoard: InspiredesignReferencePatternBoard;
|
|
124
126
|
designVectors: InspiredesignDesignVectors;
|
|
127
|
+
targetAnalysis: InspiredesignTargetAnalysis;
|
|
128
|
+
};
|
|
129
|
+
type InspiredesignTargetKind = "page" | "component" | "asset";
|
|
130
|
+
type InspiredesignEvidenceBuckets = {
|
|
131
|
+
anatomy: string[];
|
|
132
|
+
propsSlots: string[];
|
|
133
|
+
stateMatrix: string[];
|
|
134
|
+
tokens: string[];
|
|
135
|
+
assets: string[];
|
|
136
|
+
accessibility: string[];
|
|
137
|
+
motion: string[];
|
|
138
|
+
previewFixtures: string[];
|
|
139
|
+
};
|
|
140
|
+
type InspiredesignComponentInventoryEvidence = Pick<CanvasComponentInventoryItem, "id" | "name" | "componentName" | "description" | "sourceFamily" | "origin"> & {
|
|
141
|
+
variants: CanvasComponentInventoryItem["variants"];
|
|
142
|
+
props: CanvasComponentInventoryItem["props"];
|
|
143
|
+
slots: CanvasComponentInventoryItem["slots"];
|
|
144
|
+
events: CanvasComponentInventoryItem["events"];
|
|
145
|
+
content: CanvasComponentInventoryItem["content"];
|
|
146
|
+
metadata: JsonRecord;
|
|
147
|
+
};
|
|
148
|
+
type InspiredesignAssetEvidence = Pick<CanvasAsset, "id" | "sourceType" | "kind" | "url" | "status"> & {
|
|
149
|
+
provenanceNotes: string[];
|
|
150
|
+
usageNotes: string[];
|
|
151
|
+
metadata: JsonRecord;
|
|
152
|
+
};
|
|
153
|
+
type InspiredesignTargetAnalysis = {
|
|
154
|
+
primaryKind: InspiredesignTargetKind;
|
|
155
|
+
kinds: InspiredesignTargetKind[];
|
|
156
|
+
confidence: number;
|
|
157
|
+
triggeringSignals: string[];
|
|
158
|
+
evidenceBuckets: InspiredesignEvidenceBuckets;
|
|
159
|
+
page?: {
|
|
160
|
+
canvasType: "CanvasPage";
|
|
161
|
+
assemblyFocus: string[];
|
|
162
|
+
implementationNotes: string[];
|
|
163
|
+
};
|
|
164
|
+
component?: {
|
|
165
|
+
canvasType: "CanvasComponentInventoryItem";
|
|
166
|
+
inventoryItems: InspiredesignComponentInventoryEvidence[];
|
|
167
|
+
prototypeGuidance: string[];
|
|
168
|
+
};
|
|
169
|
+
asset?: {
|
|
170
|
+
canvasType: "CanvasAsset";
|
|
171
|
+
assets: InspiredesignAssetEvidence[];
|
|
172
|
+
prototypeGuidance: string[];
|
|
173
|
+
};
|
|
125
174
|
};
|
|
126
175
|
export type InspiredesignFollowthrough = {
|
|
127
176
|
summary: string;
|
|
128
177
|
nextStep: string;
|
|
178
|
+
artifactGuide: InspiredesignArtifactGuide;
|
|
179
|
+
contractSectionGuide: InspiredesignContractSectionGuide;
|
|
129
180
|
briefExpansion: {
|
|
130
181
|
templateVersion: string;
|
|
131
182
|
file: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/contract.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAGrB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/contract.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EASL,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACvC,MAAM,WAAW,CAAC;AACnB,OAAO,EAIL,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAKL,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC5C,KAAK,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AACrD,KAAK,aAAa,GAAG,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnD,MAAM,MAAM,iCAAiC,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElF,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,iCAAiC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,kCAAk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;QAC1B,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,yBAAyB,EAAE,MAAM,CAAC;IAClC,aAAa,EAAE,0BAA0B,CAAC;IAC1C,qBAAqB,EAAE,kCAAkC,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,2BAA2B,CAAC;IAC5C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,EAAE,8BAA8B,EAAE,CAAC;IAC7C,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAmmDF,eAAO,MAAM,wBAAwB,GAAI,OAAO,6BAA6B,KAAG,mBAsK/E,CAAC"}
|
|
@@ -10,6 +10,15 @@ export declare const INSPIREDESIGN_HANDOFF_FILES: {
|
|
|
10
10
|
readonly evidence: "evidence.json";
|
|
11
11
|
readonly prototypeGuidance: "prototype-guidance.md";
|
|
12
12
|
};
|
|
13
|
+
export type InspiredesignGuideEntry = {
|
|
14
|
+
purpose: string;
|
|
15
|
+
expectedContents: readonly string[];
|
|
16
|
+
howToUse: readonly string[];
|
|
17
|
+
mustNot: readonly string[];
|
|
18
|
+
};
|
|
19
|
+
type InspiredesignHandoffFile = (typeof INSPIREDESIGN_HANDOFF_FILES)[keyof typeof INSPIREDESIGN_HANDOFF_FILES];
|
|
20
|
+
export type InspiredesignArtifactGuide = Record<InspiredesignHandoffFile, InspiredesignGuideEntry>;
|
|
21
|
+
export type InspiredesignContractSectionGuide = Record<string, InspiredesignGuideEntry>;
|
|
13
22
|
export declare const INSPIREDESIGN_HANDOFF_COMMANDS: {
|
|
14
23
|
readonly loadBestPractices: string;
|
|
15
24
|
readonly loadDesignAgent: string;
|
|
@@ -21,6 +30,9 @@ export declare const INSPIREDESIGN_HANDOFF_GUIDANCE: {
|
|
|
21
30
|
readonly prepareCanvasPlanRequest: "Fill canvasSessionId, leaseId, and documentId in canvas-plan.request.json before running opendevbrowser canvas --command canvas.plan.set --params-file ./canvas-plan.request.json.";
|
|
22
31
|
readonly deepCaptureRecommendation: "Any inspiredesign run with reference URLs already uses captureMode=deep. Rerun with the same URLs only when you need refreshed DOM/layout evidence, restored session state, or capture-specific debugging.";
|
|
23
32
|
};
|
|
33
|
+
export declare const INSPIREDESIGN_ARTIFACT_GUIDE: InspiredesignArtifactGuide;
|
|
34
|
+
export declare const INSPIREDESIGN_CONTRACT_SECTION_GUIDE: InspiredesignContractSectionGuide;
|
|
24
35
|
export declare const buildInspiredesignFollowthroughSummary: () => string;
|
|
25
36
|
export declare const buildInspiredesignNextStep: () => string;
|
|
37
|
+
export {};
|
|
26
38
|
//# sourceMappingURL=handoff.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/handoff.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;CAW9B,CAAC;
|
|
1
|
+
{"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/handoff.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;CAW9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,KAAK,wBAAwB,GAC3B,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAC;AAEnG,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAwBxF,eAAO,MAAM,8BAA8B;;;;CAIjC,CAAC;AAEX,eAAO,MAAM,wCAAwC,2BAG3C,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;CAIjC,CAAC;AAEX,eAAO,MAAM,4BAA4B,EAAE,0BA6D1C,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,iCAuGlD,CAAC;AAEF,eAAO,MAAM,sCAAsC,QAAO,MAEzD,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,MAE7C,CAAC"}
|
|
@@ -59,6 +59,7 @@ export type InspiredesignDesignVectors = {
|
|
|
59
59
|
interactionDensity: string;
|
|
60
60
|
interactionMoments: string[];
|
|
61
61
|
materialEffects: string[];
|
|
62
|
+
advancedMotionAdvisory: string[];
|
|
62
63
|
referenceInfluence: string[];
|
|
63
64
|
patternsToBorrow: string[];
|
|
64
65
|
patternsToReject: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-pattern-board.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/reference-pattern-board.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,KAAK,eAAe,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC7C,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,GAAG,CAAC,EAAE;YACJ,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,CAA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,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AA0HF,eAAO,MAAM,gCAAgC,GAAI,WAAW,cAAc,KAAG,MAAM,EAUlF,CAAC;AAkBF,eAAO,MAAM,uCAAuC,GAAI,WAAW,cAAc,KAAG,OAInF,CAAC;AA2JF,eAAO,MAAM,uCAAuC,GAClD,SAAS,MAAM,EACf,QAAQ,wBAAwB,EAChC,YAAY,cAAc,EAAE,KAC3B,kCAsBF,CAAC;AA0HF,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,wBAAwB,EAChC,OAAO,kCAAkC,KACxC,0BAwCF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BrowserManagerLike } from "../browser/manager-types";
|
|
2
2
|
import type { ChallengeAutomationMode } from "../challenges";
|
|
3
3
|
import type { BundledProviderRuntime, ProviderRuntimeBundleConfig } from "../providers/runtime-bundle";
|
|
4
|
-
import type { BrowserFallbackPort } from "../providers/types";
|
|
4
|
+
import type { BrowserFallbackPort, WorkflowBrowserMode } from "../providers/types";
|
|
5
5
|
import type { RuntimeInit } from "../providers";
|
|
6
6
|
import { type MacroExecutionPayload, type MacroResolution, type MacroRuntimeExecutor } from "./execute";
|
|
7
7
|
export declare const clampMacroRuntimeTimeout: (timeoutMs: number | undefined) => number | null;
|
|
@@ -14,6 +14,7 @@ export declare const executeMacroWithRuntime: (args: {
|
|
|
14
14
|
manager?: BrowserManagerLike;
|
|
15
15
|
browserFallbackPort?: BrowserFallbackPort;
|
|
16
16
|
timeoutMs?: number;
|
|
17
|
+
browserMode?: WorkflowBrowserMode;
|
|
17
18
|
challengeAutomationMode?: ChallengeAutomationMode;
|
|
18
19
|
}) => Promise<MacroExecutionPayload>;
|
|
19
20
|
//# sourceMappingURL=execute-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-runtime.d.ts","sourceRoot":"","sources":["../../src/macros/execute-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAEvG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"execute-runtime.d.ts","sourceRoot":"","sources":["../../src/macros/execute-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAEvG,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,WAAW,CAAC;AAKnB,eAAO,MAAM,wBAAwB,GAAI,WAAW,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,IAMjF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,GAAG,SAAS,KAC5B,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,SAgBnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAU,MAAM;IAClD,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD,KAAG,OAAO,CAAC,qBAAqB,CAqBhC,CAAC"}
|
package/dist/macros/execute.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProviderAggregateResult, ProviderCallResultByOperation, ProviderExecutionMetadata, ProviderOperation, ProviderRunOptions, ProviderSelection } from "../providers/types";
|
|
1
|
+
import type { ProviderAggregateResult, ProviderCallResultByOperation, ProviderExecutionMetadata, ProviderOperation, ProviderRunOptions, ProviderSelection, WorkflowBrowserMode } from "../providers/types";
|
|
2
2
|
export type MacroResolution = {
|
|
3
3
|
action: {
|
|
4
4
|
source: ProviderSelection;
|
|
@@ -39,7 +39,9 @@ export type MacroExecutionPayload = {
|
|
|
39
39
|
};
|
|
40
40
|
diagnostics?: ProviderAggregateResult["diagnostics"];
|
|
41
41
|
};
|
|
42
|
-
type MacroExecutionOverrides = Pick<ProviderRunOptions, "challengeAutomationMode"
|
|
42
|
+
type MacroExecutionOverrides = Pick<ProviderRunOptions, "challengeAutomationMode"> & {
|
|
43
|
+
browserMode?: WorkflowBrowserMode;
|
|
44
|
+
};
|
|
43
45
|
export declare const executeMacroResolution: (resolution: MacroResolution, runtime: MacroRuntimeExecutor, overrides?: MacroExecutionOverrides) => Promise<ProviderAggregateResult>;
|
|
44
46
|
export declare const shapeExecutionPayload: (result: ProviderAggregateResult) => MacroExecutionPayload;
|
|
45
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/macros/execute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EAC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 @@ import {
|
|
|
27
27
|
resolveBundledProviderRuntime,
|
|
28
28
|
resolveSessionRelayRoute,
|
|
29
29
|
startDaemon
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-I5ZCOZZV.js";
|
|
31
31
|
import "./chunk-STGGGVYT.js";
|
|
32
32
|
import "./chunk-3ILXPKSJ.js";
|
|
33
33
|
import "./chunk-TBUCZX4A.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
classifyBlockerSignal,
|
|
40
40
|
createRequestId,
|
|
41
41
|
resolveInspiredesignCaptureMode
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-T3VVHJTK.js";
|
|
43
43
|
import "./chunk-FUSXMW3G.js";
|
|
44
44
|
|
|
45
45
|
// src/cli/remote-manager.ts
|
|
@@ -2646,6 +2646,8 @@ var resolveProviderRuntime = async (deps, options) => {
|
|
|
2646
2646
|
|
|
2647
2647
|
// src/tools/macro_resolve.ts
|
|
2648
2648
|
var z49 = tool49.schema;
|
|
2649
|
+
var browserModeSchema = z49.enum(["auto", "extension", "managed"]);
|
|
2650
|
+
var challengeAutomationModeSchema4 = z49.enum(CHALLENGE_AUTOMATION_MODES);
|
|
2649
2651
|
async function loadMacroRuntime() {
|
|
2650
2652
|
try {
|
|
2651
2653
|
const module = await import("./macros-ND2M7LWU.js");
|
|
@@ -2699,6 +2701,8 @@ function createMacroResolveTool(deps) {
|
|
|
2699
2701
|
expression: z49.string().min(2).describe('Macro expression, e.g. @web.search("query")'),
|
|
2700
2702
|
defaultProvider: z49.string().optional().describe("Default provider fallback"),
|
|
2701
2703
|
includeCatalog: z49.boolean().optional().describe("Include available runtime macro names"),
|
|
2704
|
+
browserMode: browserModeSchema.optional().describe("Browser transport mode for executed macros: auto|extension|managed"),
|
|
2705
|
+
challengeAutomationMode: challengeAutomationModeSchema4.optional().describe("Challenge automation mode for executed macros: off|browser|browser_with_helper"),
|
|
2702
2706
|
execute: z49.boolean().optional().describe("Execute the resolved provider action and include execution payload")
|
|
2703
2707
|
},
|
|
2704
2708
|
async execute(args) {
|
|
@@ -2721,6 +2725,12 @@ function createMacroResolveTool(deps) {
|
|
|
2721
2725
|
} else {
|
|
2722
2726
|
resolution = parseFallbackMacro(args.expression, args.defaultProvider);
|
|
2723
2727
|
}
|
|
2728
|
+
if (!args.execute && args.browserMode) {
|
|
2729
|
+
throw new Error("browserMode requires execute=true for macro resolution");
|
|
2730
|
+
}
|
|
2731
|
+
if (!args.execute && args.challengeAutomationMode) {
|
|
2732
|
+
throw new Error("challengeAutomationMode requires execute=true for macro resolution");
|
|
2733
|
+
}
|
|
2724
2734
|
if (!args.execute) {
|
|
2725
2735
|
const handoff2 = buildMacroResolveSuccessHandoff({
|
|
2726
2736
|
expression: args.expression,
|
|
@@ -2738,7 +2748,9 @@ function createMacroResolveTool(deps) {
|
|
|
2738
2748
|
const providerRuntime = await resolveProviderRuntime(deps);
|
|
2739
2749
|
const execution = await executeMacroWithRuntime({
|
|
2740
2750
|
resolution,
|
|
2741
|
-
runtime: providerRuntime
|
|
2751
|
+
runtime: providerRuntime,
|
|
2752
|
+
browserMode: args.browserMode,
|
|
2753
|
+
challengeAutomationMode: args.challengeAutomationMode
|
|
2742
2754
|
});
|
|
2743
2755
|
const handoff = buildMacroResolveSuccessHandoff({
|
|
2744
2756
|
expression: args.expression,
|
|
@@ -3168,8 +3180,9 @@ var z63 = tool64.schema;
|
|
|
3168
3180
|
var sourceSelectionSchema = z63.enum(["auto", "web", "community", "social", "shopping", "all"]);
|
|
3169
3181
|
var sourceSchema = z63.enum(["web", "community", "social", "shopping"]);
|
|
3170
3182
|
var modeSchema = z63.enum(["compact", "json", "md", "context", "path"]);
|
|
3183
|
+
var browserModeSchema2 = z63.enum(["auto", "extension", "managed"]);
|
|
3171
3184
|
var cookiePolicySchema = z63.enum(["off", "auto", "required"]);
|
|
3172
|
-
var
|
|
3185
|
+
var challengeAutomationModeSchema5 = z63.enum(CHALLENGE_AUTOMATION_MODES);
|
|
3173
3186
|
function createResearchRunTool(deps) {
|
|
3174
3187
|
return tool64({
|
|
3175
3188
|
description: "Run cross-source research with strict timebox and artifact outputs.",
|
|
@@ -3185,14 +3198,15 @@ function createResearchRunTool(deps) {
|
|
|
3185
3198
|
limitPerSource: z63.number().int().positive().optional().describe("Result limit per source"),
|
|
3186
3199
|
outputDir: z63.string().optional().describe("Optional artifact output directory"),
|
|
3187
3200
|
ttlHours: z63.number().int().positive().optional().describe("Artifact retention TTL in hours"),
|
|
3201
|
+
browserMode: browserModeSchema2.optional().describe("Browser transport mode: auto|extension|managed"),
|
|
3188
3202
|
useCookies: z63.boolean().optional().describe("Enable/disable provider cookie injection for this run"),
|
|
3189
|
-
challengeAutomationMode:
|
|
3203
|
+
challengeAutomationMode: challengeAutomationModeSchema5.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
|
|
3190
3204
|
cookiePolicyOverride: cookiePolicySchema.optional().describe("Override cookie policy: off|auto|required")
|
|
3191
3205
|
},
|
|
3192
3206
|
async execute(args) {
|
|
3193
3207
|
try {
|
|
3194
3208
|
const runtime = await resolveProviderRuntime(deps);
|
|
3195
|
-
const { runResearchWorkflow } = await import("./providers-
|
|
3209
|
+
const { runResearchWorkflow } = await import("./providers-QF2RFB4J.js");
|
|
3196
3210
|
const result = await runResearchWorkflow(runtime, {
|
|
3197
3211
|
topic: args.topic,
|
|
3198
3212
|
days: args.days,
|
|
@@ -3205,6 +3219,7 @@ function createResearchRunTool(deps) {
|
|
|
3205
3219
|
limitPerSource: args.limitPerSource,
|
|
3206
3220
|
outputDir: args.outputDir,
|
|
3207
3221
|
ttlHours: args.ttlHours,
|
|
3222
|
+
browserMode: args.browserMode,
|
|
3208
3223
|
useCookies: args.useCookies,
|
|
3209
3224
|
challengeAutomationMode: args.challengeAutomationMode,
|
|
3210
3225
|
cookiePolicyOverride: args.cookiePolicyOverride
|
|
@@ -3222,8 +3237,9 @@ import { tool as tool65 } from "@opencode-ai/plugin";
|
|
|
3222
3237
|
var z64 = tool65.schema;
|
|
3223
3238
|
var sortSchema = z64.enum(["best_deal", "lowest_price", "highest_rating", "fastest_shipping"]);
|
|
3224
3239
|
var modeSchema2 = z64.enum(["compact", "json", "md", "context", "path"]);
|
|
3240
|
+
var browserModeSchema3 = z64.enum(["auto", "extension", "managed"]);
|
|
3225
3241
|
var cookiePolicySchema2 = z64.enum(["off", "auto", "required"]);
|
|
3226
|
-
var
|
|
3242
|
+
var challengeAutomationModeSchema6 = z64.enum(CHALLENGE_AUTOMATION_MODES);
|
|
3227
3243
|
function createShoppingRunTool(deps) {
|
|
3228
3244
|
return tool65({
|
|
3229
3245
|
description: "Run shopping/deal intelligence across shopping providers.",
|
|
@@ -3232,23 +3248,25 @@ function createShoppingRunTool(deps) {
|
|
|
3232
3248
|
providers: z64.array(z64.string()).optional().describe("Optional provider allow-list"),
|
|
3233
3249
|
budget: z64.number().positive().optional().describe("Optional budget amount"),
|
|
3234
3250
|
region: z64.string().optional().describe("Region hint"),
|
|
3251
|
+
browserMode: browserModeSchema3.optional().describe("Browser transport mode: auto|extension|managed"),
|
|
3235
3252
|
sort: sortSchema.optional().describe("best_deal|lowest_price|highest_rating|fastest_shipping"),
|
|
3236
3253
|
mode: modeSchema2.optional().describe("compact|json|md|context|path"),
|
|
3237
3254
|
outputDir: z64.string().optional().describe("Optional artifact output directory"),
|
|
3238
3255
|
ttlHours: z64.number().int().positive().optional().describe("Artifact retention TTL in hours"),
|
|
3239
3256
|
useCookies: z64.boolean().optional().describe("Enable/disable provider cookie injection for this run"),
|
|
3240
|
-
challengeAutomationMode:
|
|
3257
|
+
challengeAutomationMode: challengeAutomationModeSchema6.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
|
|
3241
3258
|
cookiePolicyOverride: cookiePolicySchema2.optional().describe("Override cookie policy: off|auto|required")
|
|
3242
3259
|
},
|
|
3243
3260
|
async execute(args) {
|
|
3244
3261
|
try {
|
|
3245
3262
|
const runtime = await resolveProviderRuntime(deps);
|
|
3246
|
-
const { runShoppingWorkflow } = await import("./providers-
|
|
3263
|
+
const { runShoppingWorkflow } = await import("./providers-QF2RFB4J.js");
|
|
3247
3264
|
const result = await runShoppingWorkflow(runtime, {
|
|
3248
3265
|
query: args.query,
|
|
3249
3266
|
providers: args.providers,
|
|
3250
3267
|
budget: args.budget,
|
|
3251
3268
|
region: args.region,
|
|
3269
|
+
browserMode: args.browserMode,
|
|
3252
3270
|
sort: args.sort,
|
|
3253
3271
|
mode: args.mode ?? "compact",
|
|
3254
3272
|
outputDir: args.outputDir,
|
|
@@ -3268,8 +3286,9 @@ function createShoppingRunTool(deps) {
|
|
|
3268
3286
|
// src/tools/product_video_run.ts
|
|
3269
3287
|
import { tool as tool66 } from "@opencode-ai/plugin";
|
|
3270
3288
|
var z65 = tool66.schema;
|
|
3289
|
+
var browserModeSchema4 = z65.enum(["auto", "extension", "managed"]);
|
|
3271
3290
|
var cookiePolicySchema3 = z65.enum(["off", "auto", "required"]);
|
|
3272
|
-
var
|
|
3291
|
+
var challengeAutomationModeSchema7 = z65.enum(CHALLENGE_AUTOMATION_MODES);
|
|
3273
3292
|
async function captureScreenshotBuffer(deps, url) {
|
|
3274
3293
|
let sessionId = null;
|
|
3275
3294
|
try {
|
|
@@ -3305,14 +3324,15 @@ function createProductVideoRunTool(deps) {
|
|
|
3305
3324
|
output_dir: z65.string().optional().describe("Optional output directory"),
|
|
3306
3325
|
ttl_hours: z65.number().int().positive().optional().describe("Artifact retention TTL in hours"),
|
|
3307
3326
|
timeoutMs: z65.number().int().positive().optional().describe("Workflow timeout in milliseconds"),
|
|
3327
|
+
browserMode: browserModeSchema4.optional().describe("Browser transport mode: auto|extension|managed"),
|
|
3308
3328
|
useCookies: z65.boolean().optional().describe("Enable/disable provider cookie injection for this run"),
|
|
3309
|
-
challengeAutomationMode:
|
|
3329
|
+
challengeAutomationMode: challengeAutomationModeSchema7.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
|
|
3310
3330
|
cookiePolicyOverride: cookiePolicySchema3.optional().describe("Override cookie policy: off|auto|required")
|
|
3311
3331
|
},
|
|
3312
3332
|
async execute(args) {
|
|
3313
3333
|
try {
|
|
3314
3334
|
const runtime = await resolveProviderRuntime(deps);
|
|
3315
|
-
const { runProductVideoWorkflow } = await import("./providers-
|
|
3335
|
+
const { runProductVideoWorkflow } = await import("./providers-QF2RFB4J.js");
|
|
3316
3336
|
const includeScreenshots = args.include_screenshots ?? true;
|
|
3317
3337
|
const result = await runProductVideoWorkflow(runtime, {
|
|
3318
3338
|
product_url: args.product_url,
|
|
@@ -3324,6 +3344,7 @@ function createProductVideoRunTool(deps) {
|
|
|
3324
3344
|
output_dir: args.output_dir,
|
|
3325
3345
|
ttl_hours: args.ttl_hours,
|
|
3326
3346
|
timeoutMs: args.timeoutMs,
|
|
3347
|
+
browserMode: args.browserMode,
|
|
3327
3348
|
useCookies: args.useCookies,
|
|
3328
3349
|
challengeAutomationMode: args.challengeAutomationMode,
|
|
3329
3350
|
cookiePolicyOverride: args.cookiePolicyOverride
|
|
@@ -3343,8 +3364,9 @@ import { tool as tool67 } from "@opencode-ai/plugin";
|
|
|
3343
3364
|
var z66 = tool67.schema;
|
|
3344
3365
|
var modeSchema3 = z66.enum(["compact", "json", "md", "context", "path"]);
|
|
3345
3366
|
var captureModeSchema = z66.enum(["off", "deep"]);
|
|
3367
|
+
var browserModeSchema5 = z66.enum(["auto", "extension", "managed"]);
|
|
3346
3368
|
var cookiePolicySchema4 = z66.enum(["off", "auto", "required"]);
|
|
3347
|
-
var
|
|
3369
|
+
var challengeAutomationModeSchema8 = z66.enum(CHALLENGE_AUTOMATION_MODES);
|
|
3348
3370
|
function createInspiredesignRunTool(deps) {
|
|
3349
3371
|
return tool67({
|
|
3350
3372
|
description: "Run the inspiredesign workflow directly.",
|
|
@@ -3357,14 +3379,15 @@ function createInspiredesignRunTool(deps) {
|
|
|
3357
3379
|
timeoutMs: z66.number().int().positive().optional().describe("Workflow timeout in milliseconds"),
|
|
3358
3380
|
outputDir: z66.string().optional().describe("Optional artifact output directory"),
|
|
3359
3381
|
ttlHours: z66.number().int().positive().optional().describe("Artifact retention TTL in hours"),
|
|
3382
|
+
browserMode: browserModeSchema5.optional().describe("Browser transport mode: auto|extension|managed"),
|
|
3360
3383
|
useCookies: z66.boolean().optional().describe("Enable/disable provider cookie injection for this run"),
|
|
3361
|
-
challengeAutomationMode:
|
|
3384
|
+
challengeAutomationMode: challengeAutomationModeSchema8.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
|
|
3362
3385
|
cookiePolicyOverride: cookiePolicySchema4.optional().describe("Override cookie policy: off|auto|required")
|
|
3363
3386
|
},
|
|
3364
3387
|
async execute(args) {
|
|
3365
3388
|
try {
|
|
3366
3389
|
const runtime = await resolveProviderRuntime(deps);
|
|
3367
|
-
const { runInspiredesignWorkflow } = await import("./providers-
|
|
3390
|
+
const { runInspiredesignWorkflow } = await import("./providers-QF2RFB4J.js");
|
|
3368
3391
|
const captureMode = resolveInspiredesignCaptureMode(args.captureMode, args.urls);
|
|
3369
3392
|
const cookieSource = deps.config.get().providers?.cookieSource;
|
|
3370
3393
|
const result = await runInspiredesignWorkflow(runtime, {
|
|
@@ -3376,6 +3399,7 @@ function createInspiredesignRunTool(deps) {
|
|
|
3376
3399
|
timeoutMs: args.timeoutMs ?? DEFAULT_WORKFLOW_TRANSPORT_TIMEOUT_MS,
|
|
3377
3400
|
outputDir: args.outputDir,
|
|
3378
3401
|
ttlHours: args.ttlHours,
|
|
3402
|
+
browserMode: args.browserMode,
|
|
3379
3403
|
useCookies: args.useCookies,
|
|
3380
3404
|
challengeAutomationMode: args.challengeAutomationMode,
|
|
3381
3405
|
cookiePolicyOverride: args.cookiePolicyOverride
|