opendevbrowser 0.0.26 → 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.
Files changed (102) hide show
  1. package/README.md +7 -10
  2. package/dist/browser/canvas-manager.d.ts.map +1 -1
  3. package/dist/canvas/document-store.d.ts.map +1 -1
  4. package/dist/canvas/guidance.d.ts +22 -0
  5. package/dist/canvas/guidance.d.ts.map +1 -0
  6. package/dist/canvas/types.d.ts +3 -0
  7. package/dist/canvas/types.d.ts.map +1 -1
  8. package/dist/{chunk-GTTYIAI7.js → chunk-I5ZCOZZV.js} +316 -94
  9. package/dist/chunk-I5ZCOZZV.js.map +1 -0
  10. package/dist/{chunk-AVQL6WAS.js → chunk-T3VVHJTK.js} +2384 -544
  11. package/dist/chunk-T3VVHJTK.js.map +1 -0
  12. package/dist/cli/args.d.ts.map +1 -1
  13. package/dist/cli/commands/daemon.d.ts +2 -0
  14. package/dist/cli/commands/daemon.d.ts.map +1 -1
  15. package/dist/cli/commands/devtools/console-poll.d.ts.map +1 -1
  16. package/dist/cli/commands/devtools/network-poll.d.ts.map +1 -1
  17. package/dist/cli/commands/inspiredesign.d.ts +2 -0
  18. package/dist/cli/commands/inspiredesign.d.ts.map +1 -1
  19. package/dist/cli/commands/macro-resolve.d.ts +2 -0
  20. package/dist/cli/commands/macro-resolve.d.ts.map +1 -1
  21. package/dist/cli/commands/product-video.d.ts +2 -0
  22. package/dist/cli/commands/product-video.d.ts.map +1 -1
  23. package/dist/cli/commands/research.d.ts +2 -0
  24. package/dist/cli/commands/research.d.ts.map +1 -1
  25. package/dist/cli/commands/update.d.ts.map +1 -1
  26. package/dist/cli/daemon-autostart.d.ts +6 -2
  27. package/dist/cli/daemon-autostart.d.ts.map +1 -1
  28. package/dist/cli/daemon-commands.d.ts.map +1 -1
  29. package/dist/cli/help.d.ts.map +1 -1
  30. package/dist/cli/index.js +516 -86
  31. package/dist/cli/index.js.map +1 -1
  32. package/dist/cli/utils/parse.d.ts.map +1 -1
  33. package/dist/cli/utils/workflow-message.d.ts +3 -0
  34. package/dist/cli/utils/workflow-message.d.ts.map +1 -1
  35. package/dist/daemon-fingerprint.json +1 -1
  36. package/dist/index.js +39 -15
  37. package/dist/index.js.map +1 -1
  38. package/dist/inspiredesign/brief-expansion.d.ts +3 -0
  39. package/dist/inspiredesign/brief-expansion.d.ts.map +1 -1
  40. package/dist/{providers/inspiredesign-capture-mode.d.ts → inspiredesign/capture-mode.d.ts} +2 -2
  41. package/dist/inspiredesign/capture-mode.d.ts.map +1 -0
  42. package/dist/{providers/inspiredesign-capture.d.ts → inspiredesign/capture.d.ts} +3 -3
  43. package/dist/inspiredesign/capture.d.ts.map +1 -0
  44. package/dist/{providers/inspiredesign-contract.d.ts → inspiredesign/contract.d.ts} +70 -6
  45. package/dist/inspiredesign/contract.d.ts.map +1 -0
  46. package/dist/inspiredesign/handoff.d.ts +12 -10
  47. package/dist/inspiredesign/handoff.d.ts.map +1 -1
  48. package/dist/inspiredesign/reference-pattern-board.d.ts +74 -0
  49. package/dist/inspiredesign/reference-pattern-board.d.ts.map +1 -0
  50. package/dist/macros/execute-runtime.d.ts +2 -1
  51. package/dist/macros/execute-runtime.d.ts.map +1 -1
  52. package/dist/macros/execute.d.ts +4 -2
  53. package/dist/macros/execute.d.ts.map +1 -1
  54. package/dist/opendevbrowser.js +39 -15
  55. package/dist/opendevbrowser.js.map +1 -1
  56. package/dist/providers/browser-fallback.d.ts +7 -0
  57. package/dist/providers/browser-fallback.d.ts.map +1 -1
  58. package/dist/providers/community/index.d.ts.map +1 -1
  59. package/dist/providers/index.d.ts.map +1 -1
  60. package/dist/providers/renderer.d.ts +1 -1
  61. package/dist/providers/renderer.d.ts.map +1 -1
  62. package/dist/providers/research-compiler.d.ts.map +1 -1
  63. package/dist/providers/runtime-bundle.d.ts +1 -1
  64. package/dist/providers/runtime-bundle.d.ts.map +1 -1
  65. package/dist/providers/runtime-factory.d.ts.map +1 -1
  66. package/dist/providers/shopping/index.d.ts.map +1 -1
  67. package/dist/providers/social/platform.d.ts.map +1 -1
  68. package/dist/providers/social/search-quality.d.ts.map +1 -1
  69. package/dist/providers/social/youtube.d.ts.map +1 -1
  70. package/dist/providers/workflow-handoff.d.ts +18 -1
  71. package/dist/providers/workflow-handoff.d.ts.map +1 -1
  72. package/dist/providers/workflows.d.ts +10 -5
  73. package/dist/providers/workflows.d.ts.map +1 -1
  74. package/dist/{providers-T2FQJCF6.js → providers-QF2RFB4J.js} +2 -2
  75. package/dist/public-surface/generated-manifest.d.ts +8 -8
  76. package/dist/public-surface/generated-manifest.d.ts.map +1 -1
  77. package/dist/public-surface/source.d.ts +13 -12
  78. package/dist/public-surface/source.d.ts.map +1 -1
  79. package/dist/relay/protocol.d.ts +14 -2
  80. package/dist/relay/protocol.d.ts.map +1 -1
  81. package/dist/tools/inspiredesign_run.d.ts.map +1 -1
  82. package/dist/tools/macro_resolve.d.ts.map +1 -1
  83. package/dist/tools/product_video_run.d.ts.map +1 -1
  84. package/dist/tools/research_run.d.ts.map +1 -1
  85. package/dist/tools/shopping_run.d.ts.map +1 -1
  86. package/extension/dist/canvas/canvas-runtime.js +13 -6
  87. package/extension/dist/services/ConnectionManager.js +8 -4
  88. package/extension/manifest.json +1 -1
  89. package/package.json +1 -1
  90. package/skills/opendevbrowser-best-practices/SKILL.md +6 -6
  91. package/skills/opendevbrowser-best-practices/assets/templates/skill-runtime-pack-matrix.json +1 -1
  92. package/skills/opendevbrowser-design-agent/SKILL.md +5 -0
  93. package/skills/opendevbrowser-design-agent/artifacts/design-contract-playbook.md +6 -1
  94. package/skills/opendevbrowser-design-agent/assets/templates/design-contract.v1.json +15 -1
  95. package/skills/opendevbrowser-design-agent/assets/templates/inspiredesign-advanced-brief.v1.json +72 -33
  96. package/skills/opendevbrowser-design-agent/assets/templates/reference-pattern-board.v1.json +2 -0
  97. package/dist/chunk-AVQL6WAS.js.map +0 -1
  98. package/dist/chunk-GTTYIAI7.js.map +0 -1
  99. package/dist/providers/inspiredesign-capture-mode.d.ts.map +0 -1
  100. package/dist/providers/inspiredesign-capture.d.ts.map +0 -1
  101. package/dist/providers/inspiredesign-contract.d.ts.map +0 -1
  102. /package/dist/{providers-T2FQJCF6.js.map → providers-QF2RFB4J.js.map} +0 -0
@@ -21,6 +21,7 @@ export type InspiredesignBriefFormat = {
21
21
  paletteIntent: string;
22
22
  visualDensity: string;
23
23
  designVariance: string;
24
+ focusAreas?: string[];
24
25
  responsiveCollapseRules: string[];
25
26
  guardrails: string[];
26
27
  antiPatterns: string[];
@@ -34,6 +35,8 @@ export type InspiredesignBriefExpansion = {
34
35
  format: InspiredesignBriefFormat;
35
36
  };
36
37
  export declare const INSPIREDESIGN_BRIEF_TEMPLATE_VERSION: string;
38
+ export declare const INSPIREDESIGN_BRIEF_COMMON_RULES: string[];
39
+ export declare const INSPIREDESIGN_BRIEF_OUTPUT_REQUIREMENTS: string[];
37
40
  export declare const normalizeInspiredesignBriefText: (value: string) => string;
38
41
  export declare const cloneInspiredesignBriefFormat: (format: InspiredesignBriefFormat) => InspiredesignBriefFormat;
39
42
  export declare const expandInspiredesignBrief: (brief: string, preferredFormatId?: string) => InspiredesignBriefExpansion;
@@ -1 +1 @@
1
- {"version":3,"file":"brief-expansion.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/brief-expansion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AAUzB,KAAK,6BAA6B,GAAG;IACnC,OAAO,EAAE,4BAA4B,CAAC;IACtC,aAAa,EAAE,mBAAmB,CAAC;IACnC,eAAe,EAAE,qBAAqB,CAAC;IACvC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAoCF,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aA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,QAAQ,wBAAwB,KAC/B,wBAsBD,CAAC;AAoJH,eAAO,MAAM,wBAAwB,GACnC,OAAO,MAAM,EACb,oBAAoB,MAAM,KACzB,2BASF,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { InspiredesignCaptureMode } from "./types";
1
+ import type { InspiredesignCaptureMode } from "../providers/types";
2
2
  export declare function resolveInspiredesignCaptureMode(requested: InspiredesignCaptureMode | undefined, urls?: readonly string[]): InspiredesignCaptureMode;
3
- //# sourceMappingURL=inspiredesign-capture-mode.d.ts.map
3
+ //# sourceMappingURL=capture-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-mode.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/capture-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAMnE,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,wBAAwB,GAAG,SAAS,EAC/C,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GACvB,wBAAwB,CAE1B"}
@@ -1,7 +1,7 @@
1
1
  import type { BrowserManagerLike } from "../browser/manager-types";
2
2
  import type { ChallengeAutomationMode } from "../challenges/types";
3
- import type { ProviderCookiePolicy, ProviderCookieSourceConfig } from "./types";
4
- import type { InspiredesignCaptureEvidence } from "./inspiredesign-contract";
3
+ import type { ProviderCookiePolicy, ProviderCookieSourceConfig } from "../providers/types";
4
+ import type { InspiredesignCaptureEvidence } from "./contract";
5
5
  type InspiredesignCaptureManagerBase = Pick<BrowserManagerLike, "launch" | "cookieImport" | "cookieList" | "goto" | "waitForLoad" | "snapshot" | "clonePage" | "disconnect" | "clonePageHtmlWithOptions">;
6
6
  type InspiredesignCaptureManagerLike = Omit<InspiredesignCaptureManagerBase, "launch" | "cookieImport" | "cookieList" | "snapshot" | "clonePage" | "clonePageHtmlWithOptions"> & {
7
7
  launch: (options: Parameters<BrowserManagerLike["launch"]>[0], timeoutMs?: number) => ReturnType<BrowserManagerLike["launch"]>;
@@ -21,4 +21,4 @@ export type InspiredesignCaptureOptions = {
21
21
  };
22
22
  export declare function captureInspiredesignReferenceFromManager(manager: InspiredesignCaptureManagerLike, url: string, options?: InspiredesignCaptureOptions): Promise<InspiredesignCaptureEvidence>;
23
23
  export {};
24
- //# sourceMappingURL=inspiredesign-capture.d.ts.map
24
+ //# sourceMappingURL=capture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/inspiredesign/capture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,KAAK,EAIV,4BAA4B,EAC7B,MAAM,YAAY,CAAC;AAEpB,KAAK,+BAA+B,GAAG,IAAI,CACzC,kBAAkB,EAChB,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,aAAa,GACb,UAAU,GACV,WAAW,GACX,YAAY,GACZ,0BAA0B,CAC7B,CAAC;AAEF,KAAK,+BAA+B,GAAG,IAAI,CACzC,+BAA+B,EAC/B,QAAQ,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,0BAA0B,CACjG,GAAG;IACF,MAAM,EAAE,CACN,OAAO,EAAE,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EACpD,SAAS,CAAC,EAAE,MAAM,KACf,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9C,YAAY,EAAE,CACZ,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,UAAU,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,EAC1D,MAAM,CAAC,EAAE,O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;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,YAAY,CAAC,EAAE,0BAA0B,CAAC;CAC3C,CAAC;AA+UF,wBAAsB,wCAAwC,CAC5D,OAAO,EAAE,+BAA+B,EACxC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,4BAA4B,CAAC,CAwDvC"}
@@ -1,6 +1,8 @@
1
- import type { CanvasDesignGovernance, CanvasGenerationPlan } from "../canvas/types";
2
- import { type InspiredesignBriefExpansion, type InspiredesignBriefFormat } from "../inspiredesign/brief-expansion";
3
- import type { JsonValue } from "./types";
1
+ import type { CanvasAsset, CanvasComponentInventoryItem, CanvasDesignGovernance, CanvasGenerationPlan } from "../canvas/types";
2
+ import { type InspiredesignArtifactGuide, type InspiredesignContractSectionGuide } from "./handoff";
3
+ import { type InspiredesignBriefExpansion, type InspiredesignBriefFormat } from "./brief-expansion";
4
+ import { type InspiredesignDesignVectors, type InspiredesignReferencePatternBoard } from "./reference-pattern-board";
5
+ import type { JsonValue } from "../providers/types";
4
6
  type JsonRecord = Record<string, JsonValue>;
5
7
  type FetchStatus = "captured" | "failed" | "skipped";
6
8
  type CaptureStatus = "off" | "captured" | "failed";
@@ -21,7 +23,9 @@ type CanvasPlanRequestTemplate = {
21
23
  canvasSessionId: string;
22
24
  leaseId: string;
23
25
  documentId: string;
24
- generationPlan: CanvasGenerationPlan;
26
+ generationPlan: CanvasGenerationPlan & {
27
+ designVectors?: JsonRecord;
28
+ };
25
29
  };
26
30
  export type InspiredesignCaptureEvidence = {
27
31
  title?: string;
@@ -74,6 +78,7 @@ export type InspiredesignTokenStrategy = {
74
78
  export type InspiredesignImplementationPlan = {
75
79
  architectureRecommendation: string;
76
80
  tokenStrategy: InspiredesignTokenStrategy;
81
+ referenceImplementationNotes: string[];
77
82
  componentBuildPlan: Array<{
78
83
  name: string;
79
84
  purpose: string;
@@ -87,10 +92,17 @@ export type InspiredesignImplementationPlan = {
87
92
  risksAndAmbiguities: string[];
88
93
  buildSequence: string[];
89
94
  };
95
+ type InspiredesignGenerationPlan = CanvasGenerationPlan & {
96
+ referencePatternBoard: InspiredesignReferencePatternBoard;
97
+ designVectors: InspiredesignDesignVectors;
98
+ targetAnalysis: InspiredesignTargetAnalysis;
99
+ interactionMoments: string[];
100
+ materialEffects: string[];
101
+ };
90
102
  export type InspiredesignPacket = {
91
103
  advancedBriefMarkdown: string;
92
104
  designContract: CanvasDesignGovernance;
93
- generationPlan: CanvasGenerationPlan;
105
+ generationPlan: InspiredesignGenerationPlan;
94
106
  canvasPlanRequest: CanvasPlanRequestTemplate;
95
107
  followthrough: InspiredesignFollowthrough;
96
108
  designMarkdown: string;
@@ -109,10 +121,62 @@ export type InspiredesignImplementationContext = {
109
121
  navigationModel: JsonRecord;
110
122
  asyncModel: JsonRecord;
111
123
  performanceModel: JsonRecord;
124
+ referenceSynthesis: JsonRecord;
125
+ referencePatternBoard: InspiredesignReferencePatternBoard;
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
+ };
112
174
  };
113
175
  export type InspiredesignFollowthrough = {
114
176
  summary: string;
115
177
  nextStep: string;
178
+ artifactGuide: InspiredesignArtifactGuide;
179
+ contractSectionGuide: InspiredesignContractSectionGuide;
116
180
  briefExpansion: {
117
181
  templateVersion: string;
118
182
  file: string;
@@ -137,4 +201,4 @@ export type BuildInspiredesignPacketInput = {
137
201
  };
138
202
  export declare const buildInspiredesignPacket: (input: BuildInspiredesignPacketInput) => InspiredesignPacket;
139
203
  export {};
140
- //# sourceMappingURL=inspiredesign-contract.d.ts.map
204
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
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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EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;IACF,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,aAAa,CAAC;QAC1B,MAAM,EAAE,0BAA0B,EAAE,CAAC;QACrC,iBAAiB,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,0BAA0B,CAAC;IAC1C,oBAAoB,EAAE,iCAAiC,CAAC;IACxD,cAAc,EAAE;QACd,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,wBAAwB,CAAC;KAClC,CAAC;IACF,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE;QACf,iBAAiB,EAAE,MAAM,CAAC;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,16 +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 declare const INSPIREDESIGN_HANDOFF_SKILLS: {
14
- readonly bestPractices: {
15
- readonly name: "opendevbrowser-best-practices";
16
- readonly topic: "quick start";
17
- };
18
- readonly designAgent: {
19
- readonly name: "opendevbrowser-design-agent";
20
- readonly topic: "canvas-contract";
21
- };
13
+ export type InspiredesignGuideEntry = {
14
+ purpose: string;
15
+ expectedContents: readonly string[];
16
+ howToUse: readonly string[];
17
+ mustNot: readonly string[];
22
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>;
23
22
  export declare const INSPIREDESIGN_HANDOFF_COMMANDS: {
24
23
  readonly loadBestPractices: string;
25
24
  readonly loadDesignAgent: string;
@@ -27,10 +26,13 @@ export declare const INSPIREDESIGN_HANDOFF_COMMANDS: {
27
26
  };
28
27
  export declare const INSPIREDESIGN_HANDOFF_RECOMMENDED_SKILLS: readonly [string, string];
29
28
  export declare const INSPIREDESIGN_HANDOFF_GUIDANCE: {
30
- readonly reviewAdvancedBrief: "advanced-brief.md is the authoritative prompt route for the selected format, profile defaults, layout posture, motion grammar, and anti-patterns. Read it before touching Canvas or implementation files.";
29
+ readonly reviewAdvancedBrief: "advanced-brief.md is the authoritative reference-first brief. When URL references exist, captured evidence leads the creative direction; selected format, profile defaults, layout posture, motion grammar, and anti-patterns are route guardrails only. Read it before touching Canvas or implementation files.";
31
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.";
32
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.";
33
32
  };
33
+ export declare const INSPIREDESIGN_ARTIFACT_GUIDE: InspiredesignArtifactGuide;
34
+ export declare const INSPIREDESIGN_CONTRACT_SECTION_GUIDE: InspiredesignContractSectionGuide;
34
35
  export declare const buildInspiredesignFollowthroughSummary: () => string;
35
36
  export declare const buildInspiredesignNextStep: () => string;
37
+ export {};
36
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;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;CAS/B,CAAC;AAaX,eAAO,MAAM,8BAA8B;;;;CAIjC,CAAC;AAEX,eAAO,MAAM,wCAAwC,2BAG3C,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;CAIjC,CAAC;AAEX,eAAO,MAAM,sCAAsC,QAAO,MAEzD,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,MAE7C,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"}
@@ -0,0 +1,74 @@
1
+ import type { InspiredesignBriefFormat } from "./brief-expansion";
2
+ type ReferenceStatus = "captured" | "failed" | "skipped";
3
+ type ReferenceInput = {
4
+ id: string;
5
+ url: string;
6
+ title?: string;
7
+ excerpt?: string;
8
+ fetchStatus: ReferenceStatus;
9
+ captureStatus: "off" | "captured" | "failed";
10
+ capture?: {
11
+ title?: string;
12
+ snapshot?: {
13
+ content: string;
14
+ };
15
+ dom?: {
16
+ outerHTML: string;
17
+ };
18
+ clone?: {
19
+ componentPreview: string;
20
+ cssPreview: string;
21
+ };
22
+ } | null;
23
+ };
24
+ export type InspiredesignReferencePatternBoard = {
25
+ briefId: string;
26
+ targetSurface: string;
27
+ references: Array<{
28
+ id: string;
29
+ name: string;
30
+ url: string;
31
+ surfaceType: string;
32
+ capturedVia: string[];
33
+ layoutRecipe: string;
34
+ contentHierarchy: string[];
35
+ componentFamilies: string[];
36
+ motionPosture: string[];
37
+ tokenNotes: string[];
38
+ patternsToBorrow: string[];
39
+ patternsToReject: string[];
40
+ whyItWorks: string;
41
+ }>;
42
+ synthesis: {
43
+ dominantDirection: string;
44
+ sharedStrengths: string[];
45
+ sharedFailuresToAvoid: string[];
46
+ contractDeltas: string[];
47
+ };
48
+ };
49
+ export type InspiredesignDesignVectors = {
50
+ sourcePriority: "reference-evidence-first" | "brief-only";
51
+ directionLabel: string;
52
+ surfaceIntent: string;
53
+ compositionModel: string[];
54
+ premiumPosture: string[];
55
+ motionPosture: string[];
56
+ sectionArchitecture: string[];
57
+ typographyPosture: string[];
58
+ imageryPosture: string[];
59
+ interactionDensity: string;
60
+ interactionMoments: string[];
61
+ materialEffects: string[];
62
+ advancedMotionAdvisory: string[];
63
+ referenceInfluence: string[];
64
+ patternsToBorrow: string[];
65
+ patternsToReject: string[];
66
+ guardrails: string[];
67
+ antiPatterns: string[];
68
+ };
69
+ export declare const getInspiredesignReferenceSignals: (reference: ReferenceInput) => string[];
70
+ export declare const hasInspiredesignUsableReferenceEvidence: (reference: ReferenceInput) => boolean;
71
+ export declare const buildInspiredesignReferencePatternBoard: (briefId: string, format: InspiredesignBriefFormat, references: ReferenceInput[]) => InspiredesignReferencePatternBoard;
72
+ export declare const buildInspiredesignDesignVectors: (format: InspiredesignBriefFormat, board: InspiredesignReferencePatternBoard) => InspiredesignDesignVectors;
73
+ export {};
74
+ //# sourceMappingURL=reference-pattern-board.d.ts.map
@@ -0,0 +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,CAAC,EAAE;YACN,gBAAgB,EAAE,MAAM,CAAC;YACzB,UAAU,EAAE,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3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,gBAAgB,EAAE,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;AAC9D,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,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD,KAAG,OAAO,CAAC,qBAAqB,CAkBhC,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"}
@@ -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,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAI5B,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE;QACN,MAAM,EAAE,iBAAiB,CAAC;QAC1B,SAAS,EAAE,iBAAiB,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC,CAAC;IACF,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACJ,UAAU,EAAE,MAAM,EAAE,CAAC;YACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAC/B,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,C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;IACnF,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAySF,eAAO,MAAM,sBAAsB,GACjC,YAAY,eAAe,EAC3B,SAAS,oBAAoB,EAC7B,YAAY,uBAAuB,KAClC,OAAO,CAAC,uBAAuB,CA2BjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,QAAQ,uBAAuB,KAAG,qBAkBvE,CAAC"}
@@ -27,7 +27,7 @@ import {
27
27
  resolveBundledProviderRuntime,
28
28
  resolveSessionRelayRoute,
29
29
  startDaemon
30
- } from "./chunk-GTTYIAI7.js";
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-AVQL6WAS.js";
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 challengeAutomationModeSchema4 = z63.enum(CHALLENGE_AUTOMATION_MODES);
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: challengeAutomationModeSchema4.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
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-T2FQJCF6.js");
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 challengeAutomationModeSchema5 = z64.enum(CHALLENGE_AUTOMATION_MODES);
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: challengeAutomationModeSchema5.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
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-T2FQJCF6.js");
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 challengeAutomationModeSchema6 = z65.enum(CHALLENGE_AUTOMATION_MODES);
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: challengeAutomationModeSchema6.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
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-T2FQJCF6.js");
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 challengeAutomationModeSchema7 = z66.enum(CHALLENGE_AUTOMATION_MODES);
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: challengeAutomationModeSchema7.optional().describe("Challenge automation mode: off|browser|browser_with_helper"),
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-T2FQJCF6.js");
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