opendevbrowser 0.0.20 → 0.0.21

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.
@@ -1 +1 @@
1
- {"version":3,"file":"macro-resolve.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/macro-resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK1C,OAAO,EAA6B,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjG,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD,CAAC;AAuFF,wBAAsB,eAAe,CAAC,IAAI,EAAE,UAAU;;;;GAyBrD;AAED,eAAO,MAAM,QAAQ;qCAhGmB,MAAM,EAAE,KAAG,gBAAgB;CAkGlE,CAAC"}
1
+ {"version":3,"file":"macro-resolve.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/macro-resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK1C,OAAO,EAA6B,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjG,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD,CAAC;AA8GF,wBAAsB,eAAe,CAAC,IAAI,EAAE,UAAU;;;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AAC;IAChB,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;CAC7B;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;CAChC;AAaD,eAAO,MAAM,kBAAkB,QAAO,UAAU,EAE/C,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAO,MAAM,EAI/C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,YAAY,EAIpD,CAAC;AAEJ,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAqE,CAAC;AAE7I,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EA8JhD,CAAC;AAEF,eAAO,MAAM,iBAAiB,gDAAuB,CAAC;AAEtD,eAAO,MAAM,uBAAuB,EAAE,SAAS,cAAc,EA8B5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,SAAS,cAAc,EAmE5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,SAAS,cAAc,EAgB3D,CAAC;AAkJF,wBAAgB,WAAW,IAAI,MAAM,CA+BpC"}
package/dist/cli/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  resolveExitCode,
32
32
  startDaemon,
33
33
  toCliError
34
- } from "../chunk-LMNFPJRI.js";
34
+ } from "../chunk-4KVXCXV3.js";
35
35
  import {
36
36
  getBundledSkillsDir,
37
37
  listBundledSkillDirectories
@@ -41,12 +41,14 @@ import {
41
41
  } from "../chunk-TBUCZX4A.js";
42
42
  import "../chunk-Y2KL55OG.js";
43
43
  import {
44
+ INSPIREDESIGN_HANDOFF_COMMANDS,
45
+ INSPIREDESIGN_HANDOFF_GUIDANCE,
44
46
  cleanupExpiredArtifacts,
45
47
  isChallengeAutomationMode,
46
48
  setDefaultLogSink,
47
49
  stderrSink,
48
50
  summarizePrimaryProviderIssue
49
- } from "../chunk-C6QUKABT.js";
51
+ } from "../chunk-ZE2E7ZGH.js";
50
52
  import "../chunk-FUSXMW3G.js";
51
53
 
52
54
  // src/cli/args.ts
@@ -449,7 +451,7 @@ var HELP_CAPABILITY_ENTRIES = [
449
451
  description: "Control the bounded browser-scoped computer-use challenge lane with --challenge-automation-mode; the optional helper is not a desktop agent.",
450
452
  details: [
451
453
  { label: "flag:", value: "--challenge-automation-mode off|browser|browser_with_helper" },
452
- { label: "works:", value: "research run, shopping run, product-video run, macro-resolve --execute" },
454
+ { label: "works:", value: "research run, shopping run, product-video run, inspiredesign run, macro-resolve --execute" },
453
455
  { label: "entry:", value: onboarding_metadata_default.quickStartCommands.computerUseEntry },
454
456
  { label: "proof:", value: "review, session-inspector, workflow fallback metadata" }
455
457
  ]
@@ -486,6 +488,16 @@ var HELP_ONBOARDING_ENTRIES = [
486
488
  description: "Start deal hunting with explicit providers in managed mode and only trust regional comparisons when the result reports `region_authoritative=true`.",
487
489
  details: [{ label: "cli:", value: onboarding_metadata_default.quickStartCommands.validatedShopping }]
488
490
  },
491
+ {
492
+ label: "inspiredesign_followthrough",
493
+ description: "After inspiredesign finishes, continue in Canvas with the emitted request template and load the canvas-contract design-agent lane before patching.",
494
+ details: [
495
+ { label: "quick:", value: INSPIREDESIGN_HANDOFF_COMMANDS.loadBestPractices },
496
+ { label: "design:", value: INSPIREDESIGN_HANDOFF_COMMANDS.loadDesignAgent },
497
+ { label: "prep:", value: INSPIREDESIGN_HANDOFF_GUIDANCE.prepareCanvasPlanRequest },
498
+ { label: "run:", value: INSPIREDESIGN_HANDOFF_COMMANDS.continueInCanvas }
499
+ ]
500
+ },
489
501
  {
490
502
  label: "computer_use_entry",
491
503
  description: "Enter browser-scoped computer use from a workflow run, not from a separate desktop command family.",
@@ -515,6 +527,7 @@ var HELP_ONBOARDING_ENTRIES = [
515
527
  ];
516
528
  var HELP_REFERENCE_ENTRIES = [
517
529
  { label: "src/cli/onboarding-metadata.json", description: "Canonical first-contact onboarding metadata shared by help, nudges, and proof lanes." },
530
+ { label: "src/inspiredesign/handoff.ts", description: "Shared inspiredesign follow-through commands, artifact names, and Canvas continuation guidance." },
518
531
  { label: "src/public-surface/source.ts", description: "Authoritative command, usage, flag, and tool surface metadata." },
519
532
  { label: "src/public-surface/generated-manifest.ts", description: "Checked-in generated public-surface snapshot consumed by help and parity tests." },
520
533
  { label: "src/public-surface/generated-manifest.json", description: "Checked-in generated public-surface snapshot consumed by inventory scripts." },
@@ -3696,6 +3709,10 @@ var readFailures = (data) => {
3696
3709
  const failures = meta.failures;
3697
3710
  return Array.isArray(failures) ? failures.filter((entry) => Boolean(entry) && typeof entry === "object") : [];
3698
3711
  };
3712
+ var readFollowthroughSummary = (data) => {
3713
+ const record = asRecord(data);
3714
+ return readNonEmptyString(record?.followthroughSummary) ?? readNonEmptyString(readMeta(data)?.followthroughSummary);
3715
+ };
3699
3716
  var readSuggestedSteps = (data) => {
3700
3717
  const steps = asRecord(data)?.suggestedSteps;
3701
3718
  return Array.isArray(steps) ? steps.flatMap((step) => {
@@ -3737,6 +3754,13 @@ var buildWorkflowCompletionMessage = (workflowLabel, data) => {
3737
3754
  inferred.guidance?.recommendedNextCommands[0] ?? null
3738
3755
  );
3739
3756
  }
3757
+ const followthroughSummary = readFollowthroughSummary(data);
3758
+ if (followthroughSummary) {
3759
+ return buildNextStepMessage(
3760
+ `${workflowLabel} completed. ${followthroughSummary}`,
3761
+ readSuggestedNextAction(data) ?? readSuggestedStepReason(data)
3762
+ );
3763
+ }
3740
3764
  return `${workflowLabel} completed.`;
3741
3765
  };
3742
3766
 
@@ -6874,6 +6898,26 @@ var requireValue7 = (value, flag) => {
6874
6898
  }
6875
6899
  return value;
6876
6900
  };
6901
+ var asRecord2 = (value) => {
6902
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
6903
+ return null;
6904
+ }
6905
+ return value;
6906
+ };
6907
+ var hasExecutionBlocker = (result) => {
6908
+ const execution = asRecord2(asRecord2(result)?.execution);
6909
+ const meta = asRecord2(execution?.meta);
6910
+ return asRecord2(meta?.blocker) !== null;
6911
+ };
6912
+ var buildMacroResolveMessage = (execute, result) => {
6913
+ if (!execute) {
6914
+ return "Macro resolved.";
6915
+ }
6916
+ if (hasExecutionBlocker(result)) {
6917
+ return "Macro resolved, but execution is blocked and needs follow-up.";
6918
+ }
6919
+ return "Macro resolved and executed.";
6920
+ };
6877
6921
  var parseMacroResolveArgs = (rawArgs) => {
6878
6922
  const parsed = {};
6879
6923
  for (let index = 0; index < rawArgs.length; index += 1) {
@@ -6952,7 +6996,7 @@ async function runMacroResolve(args) {
6952
6996
  }) : await callDaemon("macro.resolve", params);
6953
6997
  return {
6954
6998
  success: true,
6955
- message: parsed.execute ? "Macro resolved and executed." : "Macro resolved.",
6999
+ message: buildMacroResolveMessage(parsed.execute ?? false, result),
6956
7000
  data: result
6957
7001
  };
6958
7002
  }
@@ -7759,7 +7803,7 @@ async function runInspiredesignCommand(args) {
7759
7803
  // package.json
7760
7804
  var package_default = {
7761
7805
  name: "opendevbrowser",
7762
- version: "0.0.20",
7806
+ version: "0.0.21",
7763
7807
  description: "Browser automation runtime with snapshot-refs-actions, browser replay screencasts, public read-only desktop observation, and browser-scoped computer-use orchestration",
7764
7808
  type: "module",
7765
7809
  main: "dist/index.js",