@liyuera/dsh-chrome-browser 0.2.0 → 0.4.0

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 (96) hide show
  1. package/README.md +270 -20
  2. package/extension/manifest.json +4 -3
  3. package/extension/service-worker.js +721 -68
  4. package/lib/activity.d.ts +65 -0
  5. package/lib/activity.d.ts.map +1 -0
  6. package/lib/activity.js +111 -0
  7. package/lib/activity.js.map +1 -0
  8. package/lib/backend.d.ts +193 -11
  9. package/lib/backend.d.ts.map +1 -1
  10. package/lib/backend.js +344 -39
  11. package/lib/backend.js.map +1 -1
  12. package/lib/cdp.d.ts +7 -1
  13. package/lib/cdp.d.ts.map +1 -1
  14. package/lib/cdp.js +17 -1
  15. package/lib/cdp.js.map +1 -1
  16. package/lib/chrome.d.ts +8 -0
  17. package/lib/chrome.d.ts.map +1 -1
  18. package/lib/chrome.js +20 -0
  19. package/lib/chrome.js.map +1 -1
  20. package/lib/client/BrowserActivity.d.ts +22 -0
  21. package/lib/client/BrowserActivity.d.ts.map +1 -0
  22. package/lib/client/BrowserActivity.js +100 -0
  23. package/lib/client/BrowserActivity.js.map +1 -0
  24. package/lib/client/activity.d.ts +27 -0
  25. package/lib/client/activity.d.ts.map +1 -0
  26. package/lib/client/activity.js +57 -0
  27. package/lib/client/activity.js.map +1 -0
  28. package/lib/client/index.d.ts +4 -6
  29. package/lib/client/index.d.ts.map +1 -1
  30. package/lib/client/index.js +13 -19
  31. package/lib/client/index.js.map +1 -1
  32. package/lib/client/tab-catalog.d.ts +11 -1
  33. package/lib/client/tab-catalog.d.ts.map +1 -1
  34. package/lib/client/tab-catalog.js.map +1 -1
  35. package/lib/client/tab-source.d.ts +8 -2
  36. package/lib/client/tab-source.d.ts.map +1 -1
  37. package/lib/client/tab-source.js.map +1 -1
  38. package/lib/client.js +177 -13
  39. package/lib/client.js.map +1 -1
  40. package/lib/console-events.d.ts +32 -0
  41. package/lib/console-events.d.ts.map +1 -0
  42. package/lib/console-events.js +106 -0
  43. package/lib/console-events.js.map +1 -0
  44. package/lib/console-log.d.ts +107 -0
  45. package/lib/console-log.d.ts.map +1 -0
  46. package/lib/console-log.js +158 -0
  47. package/lib/console-log.js.map +1 -0
  48. package/lib/expressions.d.ts +71 -2
  49. package/lib/expressions.d.ts.map +1 -1
  50. package/lib/expressions.js +277 -14
  51. package/lib/expressions.js.map +1 -1
  52. package/lib/extension-package.d.ts +33 -0
  53. package/lib/extension-package.d.ts.map +1 -0
  54. package/lib/extension-package.js +133 -0
  55. package/lib/extension-package.js.map +1 -0
  56. package/lib/help.d.ts +89 -0
  57. package/lib/help.d.ts.map +1 -0
  58. package/lib/help.js +94 -0
  59. package/lib/help.js.map +1 -0
  60. package/lib/index.d.ts +4 -2
  61. package/lib/index.d.ts.map +1 -1
  62. package/lib/index.js +30 -9
  63. package/lib/index.js.map +1 -1
  64. package/lib/presentation.d.ts +130 -0
  65. package/lib/presentation.d.ts.map +1 -0
  66. package/lib/presentation.js +361 -0
  67. package/lib/presentation.js.map +1 -0
  68. package/lib/routes.d.ts +3 -8
  69. package/lib/routes.d.ts.map +1 -1
  70. package/lib/routes.js +38 -99
  71. package/lib/routes.js.map +1 -1
  72. package/lib/skill.d.ts +50 -0
  73. package/lib/skill.d.ts.map +1 -0
  74. package/lib/skill.js +163 -0
  75. package/lib/skill.js.map +1 -0
  76. package/lib/text.d.ts +21 -0
  77. package/lib/text.d.ts.map +1 -1
  78. package/lib/text.js +18 -0
  79. package/lib/text.js.map +1 -1
  80. package/lib/tools.d.ts +22 -4
  81. package/lib/tools.d.ts.map +1 -1
  82. package/lib/tools.js +467 -75
  83. package/lib/tools.js.map +1 -1
  84. package/lib/ws.d.ts +9 -2
  85. package/lib/ws.d.ts.map +1 -1
  86. package/lib/ws.js +49 -19
  87. package/lib/ws.js.map +1 -1
  88. package/package.json +4 -3
  89. package/lib/bindings.d.ts +0 -23
  90. package/lib/bindings.d.ts.map +0 -1
  91. package/lib/bindings.js +0 -49
  92. package/lib/bindings.js.map +0 -1
  93. package/lib/client/TabPicker.d.ts +0 -54
  94. package/lib/client/TabPicker.d.ts.map +0 -1
  95. package/lib/client/TabPicker.js +0 -329
  96. package/lib/client/TabPicker.js.map +0 -1
package/lib/help.js ADDED
@@ -0,0 +1,94 @@
1
+ /**
2
+ * The human-help channel behind `chrome_request_help`: the model asks the user
3
+ * to do a step only they can do — sign in, solve a CAPTCHA, approve a prompt —
4
+ * and waits for the answer instead of guessing at a login wall.
5
+ *
6
+ * The question service is reached structurally and through `ctx.inject`, so a
7
+ * composition without one keeps every other tool working and answers this one
8
+ * with a clear error rather than hanging or silently doing nothing.
9
+ * @module @liyuera/dsh-chrome-browser/help
10
+ */
11
+ /** Label the human picks to say the step is done; the answer is compared against it. */
12
+ export const HELP_DONE_LABEL = '已完成,继续';
13
+ /** Label the human picks to stop this line of work. */
14
+ export const HELP_SKIP_LABEL = '跳过,停止这条路径';
15
+ /**
16
+ * Build the asker over a live question service.
17
+ *
18
+ * The question offers exactly two answers, so the model cannot read an
19
+ * ambiguous reply as permission: anything that is not the done label — a skip,
20
+ * or a dismissal that comes back empty — means the step did not happen.
21
+ * @param questions - the resolved `ctx.userQuestions`.
22
+ * @returns the asker {@link HelpChannel.wire} takes.
23
+ */
24
+ export function questionAsker(questions) {
25
+ return async (reason, agent) => {
26
+ const answer = await questions.ask({
27
+ questions: [{
28
+ id: 'chrome-request-help',
29
+ header: '需要你在浏览器里操作一下',
30
+ question: reason,
31
+ detail: '做完后选「' + HELP_DONE_LABEL + '」,模型会接着往下走;'
32
+ + '选「' + HELP_SKIP_LABEL + '」它会停下这条路径,不会反复重试。',
33
+ options: [
34
+ { label: HELP_DONE_LABEL, description: '我已经做完了,继续' },
35
+ { label: HELP_SKIP_LABEL, description: '不做了,让模型停止' },
36
+ ],
37
+ }],
38
+ ...(agent === undefined ? {} : { agent }),
39
+ });
40
+ const first = answer.answers[0];
41
+ const note = first?.custom;
42
+ return {
43
+ completed: first?.selected?.[0] === HELP_DONE_LABEL,
44
+ ...(note === undefined || note === '' ? {} : { note }),
45
+ };
46
+ };
47
+ }
48
+ /**
49
+ * The channel `chrome_request_help` speaks to. It starts unwired, because the
50
+ * question service may be absent or may resolve after this plugin applies;
51
+ * {@link registerHelpChannel} installs the asker once it exists.
52
+ */
53
+ export class HelpChannel {
54
+ asker;
55
+ /** Install the asker; the last wiring wins. */
56
+ wire(asker) {
57
+ this.asker = asker;
58
+ }
59
+ /** Whether this composition can reach a human at all. */
60
+ get wired() {
61
+ return this.asker !== undefined;
62
+ }
63
+ /**
64
+ * Ask the human to do a step and wait for their answer.
65
+ * @param reason - what the human must do, in their own language.
66
+ * @param agent - the asking agent, when the caller has one.
67
+ * @returns what the human answered.
68
+ * @throws when this composition exposes no question service.
69
+ */
70
+ async request(reason, agent) {
71
+ const asker = this.asker;
72
+ if (asker === undefined) {
73
+ throw new Error('chrome_request_help: this dsh composition exposes no user-question service, so the plugin cannot reach'
74
+ + ' you. Continue without the step — and say in your reply what you needed the user to do.');
75
+ }
76
+ return await asker(reason, agent);
77
+ }
78
+ }
79
+ /**
80
+ * Wire the channel once a question service exists in this composition. A
81
+ * composition without one never runs the callback, which is the intended
82
+ * degradation: the tool stays registered and explains itself.
83
+ * @param ctx - the plugin's Cordis context.
84
+ * @param channel - the channel `chrome_request_help` reads.
85
+ */
86
+ export function registerHelpChannel(ctx, channel) {
87
+ ctx.inject(['userQuestions'], (scoped) => {
88
+ const questions = scoped.get('userQuestions');
89
+ if (questions === undefined)
90
+ return;
91
+ channel.wire(questionAsker(questions));
92
+ });
93
+ }
94
+ //# sourceMappingURL=help.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,wFAAwF;AACxF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA;AAEvC,uDAAuD;AACvD,MAAM,CAAC,MAAM,eAAe,GAAG,WAA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,SAAS,CAAA;IACjC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,KAAc;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACxB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,wGAAwG;kBACtG,yFAAyF,CAC5F,CAAA;QACH,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAY,EAAE,OAAoB;IACpE,GAAG,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE;QACvC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAkC,CAAA;QAC9E,IAAI,SAAS,KAAK,SAAS;YAAE,OAAM;QACnC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/lib/index.d.ts CHANGED
@@ -4,8 +4,10 @@
4
4
  * Protocol (cdp fallback): list tabs, read page content, navigate, open
5
5
  * tabs, capture screenshots, click, type, and evaluate JS — plus the
6
6
  * same-origin routes the browser half uses to list tabs, bind them per
7
- * session, and serve the extension bridge WebSocket, and the pre-step hook
8
- * that expands a tab citation into a context message.
7
+ * session, and serve the extension bridge WebSocket, the pre-step hook that
8
+ * expands a tab citation into a context message, the `chrome-browser` agent
9
+ * skill (when this composition exposes a skill registry), and the human-help
10
+ * channel behind `chrome_request_help` (when it exposes a question service).
9
11
  * @module @liyuera/dsh-chrome-browser
10
12
  */
11
13
  import type { Context } from '@deepseek-ai/cordis';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK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B,CAAA;AAIxC,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAA;AAQnE,uBAAuB;AACvB,eAAO,MAAM,IAAI,mBAAmB,CAAA;AAEpC;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,UAAyB,CAAA;AAE5C,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,wGAAwG;IACxG,OAAO,CAAC,EAAE,WAAW,GAAG,KAAK,CAAA;IAC7B,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8FAA8F;IAC9F,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,iFAAiF;IACjF,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,mDAAmD;AACnD,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,kBAAkB,CAYvC,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,GAAE,kBAAuB,GAAG,IAAI,CA0CzE"}
package/lib/index.js CHANGED
@@ -4,16 +4,21 @@
4
4
  * Protocol (cdp fallback): list tabs, read page content, navigate, open
5
5
  * tabs, capture screenshots, click, type, and evaluate JS — plus the
6
6
  * same-origin routes the browser half uses to list tabs, bind them per
7
- * session, and serve the extension bridge WebSocket, and the pre-step hook
8
- * that expands a tab citation into a context message.
7
+ * session, and serve the extension bridge WebSocket, the pre-step hook that
8
+ * expands a tab citation into a context message, the `chrome-browser` agent
9
+ * skill (when this composition exposes a skill registry), and the human-help
10
+ * channel behind `chrome_request_help` (when it exposes a question service).
9
11
  * @module @liyuera/dsh-chrome-browser
10
12
  */
11
13
  import z from '@deepseek-ai/schemastery';
14
+ import { ActivityTracker, withActivity } from "./activity.js";
12
15
  import { buildBackend } from "./backend.js";
13
- import { SessionBindings } from "./bindings.js";
14
16
  import { resolveChromeConfig } from "./chrome.js";
17
+ import { ConsoleLog } from "./console-log.js";
18
+ import { HelpChannel, registerHelpChannel } from "./help.js";
15
19
  import { expandTabMentions } from "./mentions.js";
16
20
  import { registerChromeRoutes } from "./routes.js";
21
+ import { registerChromeSkill } from "./skill.js";
17
22
  import { chromeToolDefinitions } from "./tools.js";
18
23
  /** Plugin identity. */
19
24
  export const name = 'chrome-browser';
@@ -49,14 +54,26 @@ export const Config = z.object({
49
54
  */
50
55
  export function apply(ctx, config = {}) {
51
56
  const resolved = resolveChromeConfig(config);
52
- const { backend, chrome } = buildBackend(resolved);
57
+ // The console buffer lives here, in the long-lived host: the extension's
58
+ // service worker is suspended by Chrome and would lose it silently.
59
+ const consoleLog = new ConsoleLog();
60
+ const { backend, chrome } = buildBackend(resolved, (tabId, message) => {
61
+ consoleLog.append(tabId, message);
62
+ });
53
63
  if (chrome !== undefined)
54
64
  chrome.reclaimOwnedLeftover();
55
- const bindings = new SessionBindings();
56
- for (const definition of chromeToolDefinitions(backend, resolved, bindings)) {
57
- ctx.tools.register(definition);
65
+ // The help channel reaches the user through the harness's question service;
66
+ // it stays unwired (and says so) when this composition has none.
67
+ const help = new HelpChannel();
68
+ // Every tool execution is recorded here so the browser half can show what the
69
+ // agent is doing without reading the session stream itself.
70
+ const activity = new ActivityTracker();
71
+ for (const definition of chromeToolDefinitions(backend, resolved, consoleLog, help)) {
72
+ ctx.tools.register(withActivity(definition, activity));
58
73
  }
59
- registerChromeRoutes(ctx, backend, bindings, config.screenshotDir ?? resolveChromeConfig(config).screenshotDir);
74
+ registerHelpChannel(ctx, help);
75
+ registerChromeRoutes(ctx, backend, config.screenshotDir ?? resolveChromeConfig(config).screenshotDir, activity);
76
+ registerChromeSkill(ctx);
60
77
  // A message citing tabs gains one context message carrying their URLs and
61
78
  // ids. Only the messages this step admits are scanned, and the context
62
79
  // message's own source keeps it out of the next scan.
@@ -67,6 +84,10 @@ export function apply(ctx, config = {}) {
67
84
  const messages = await expandTabMentions(decision.messages, () => backend.listTabs());
68
85
  return messages === undefined ? decision : { ...decision, messages };
69
86
  }, { prepend: true });
70
- ctx.effect(() => () => backend.dispose(), 'chrome-browser: backend lifecycle');
87
+ ctx.effect(() => () => {
88
+ consoleLog.releaseAll();
89
+ activity.clear();
90
+ backend.dispose();
91
+ }, 'chrome-browser: backend lifecycle');
71
92
  }
72
93
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAElD,uBAAuB;AACvB,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AAEpC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;AA4B5C,mDAAmD;AACnD,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,CAAC,C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C,GAAG,EAAE,CAAC,GAAG,EAAE;QACpB,UAAU,CAAC,UAAU,EAAE,CAAA;QACvB,QAAQ,CAAC,KAAK,EAAE,CAAA;QAChB,OAAO,CAAC,OAAO,EAAE,CAAA;IACnB,CAAC,EAAE,mCAAmC,CAAC,CAAA;AACzC,CAAC"}
@@ -0,0 +1,130 @@
1
+ /**
2
+ * UI-facing presentation for the eight `chrome_*` tools: the pending-call title,
3
+ * the completed card, and the concurrency classification the scheduler reads.
4
+ *
5
+ * This module is UI-only — the model still receives exactly the JSON `render`
6
+ * output, so a card may reformat freely without touching the model contract.
7
+ * Each presenter reads back the JSON this plugin's own `render` produced rather
8
+ * than declaring `output.presentationMeta`: that projection is persisted verbatim
9
+ * on the session log, and re-projecting values we already render losslessly would
10
+ * duplicate page text and evaluated values into every log.
11
+ * @module @liyuera/dsh-chrome-browser/presentation
12
+ */
13
+ import type { GenericCallView, GenericResultView, ToolCallKind, ToolResult } from '@deepseek-ai/dsh-tools';
14
+ /** Tab rows one card lists; a long listing stays complete in the model-facing result. */
15
+ export declare const CARD_TAB_LIMIT = 20;
16
+ /** One pending call with a semantic title. */
17
+ export declare function call(title: string, kind: ToolCallKind): GenericCallView;
18
+ /** One completed call with a semantic title and a reformatted body. */
19
+ export declare function result(title: string, text?: string): GenericResultView;
20
+ /**
21
+ * Parse the JSON object this plugin's `render` serialized.
22
+ * @param outcome - the settled tool result.
23
+ * @returns the parsed object, or undefined for an error, a multi-block result, or non-JSON text.
24
+ */
25
+ export declare function renderedJson(outcome: ToolResult): Record<string, unknown> | undefined;
26
+ /** One tab id argument as a card names it. */
27
+ export declare function tabLabel(tabId: unknown): string;
28
+ /** `chrome_tabs` pending call. */
29
+ export declare function tabsCall(): GenericCallView;
30
+ /** `chrome_tabs` completed card: the listing, capped at {@link CARD_TAB_LIMIT} rows. */
31
+ export declare function tabsResult(outcome: ToolResult): GenericResultView | undefined;
32
+ /** `chrome_read` pending call. */
33
+ export declare function readCall(args: {
34
+ tabId?: string;
35
+ }): GenericCallView;
36
+ /** `chrome_read` completed card: the page identity plus what the model received. */
37
+ export declare function readResult(outcome: ToolResult): GenericResultView | undefined;
38
+ /** `chrome_navigate` pending call. */
39
+ export declare function navigateCall(args: {
40
+ url: string;
41
+ tabId?: string;
42
+ }): GenericCallView;
43
+ /** `chrome_navigate` completed card. */
44
+ export declare function navigateResult(outcome: ToolResult): GenericResultView | undefined;
45
+ /** `chrome_open` pending call. */
46
+ export declare function openCall(args: {
47
+ url?: string;
48
+ }): GenericCallView;
49
+ /** `chrome_open` completed card. */
50
+ export declare function openResult(outcome: ToolResult): GenericResultView | undefined;
51
+ /** `chrome_screenshot` pending call. */
52
+ export declare function screenshotCall(args: {
53
+ tabId?: string;
54
+ }): GenericCallView;
55
+ /** `chrome_screenshot` completed card: the file the model was told to read. */
56
+ export declare function screenshotResult(outcome: ToolResult): GenericResultView | undefined;
57
+ /** `chrome_click` pending call. */
58
+ export declare function clickCall(args: {
59
+ selector: string;
60
+ all?: boolean;
61
+ tabId?: string;
62
+ }): GenericCallView;
63
+ /** `chrome_hover` pending call. */
64
+ export declare function hoverCall(args: {
65
+ selector: string;
66
+ tabId?: string;
67
+ }): GenericCallView;
68
+ /** `chrome_hover` completed card. */
69
+ export declare function hoverResult(outcome: ToolResult): GenericResultView | undefined;
70
+ /** `chrome_wait` pending call. */
71
+ export declare function waitCall(args: {
72
+ selector: string;
73
+ state?: string;
74
+ tabId?: string;
75
+ }): GenericCallView;
76
+ /** `chrome_wait` completed card: whether the condition held, never "how it went". */
77
+ export declare function waitResult(outcome: ToolResult): GenericResultView | undefined;
78
+ /** `chrome_press` pending call. */
79
+ export declare function pressCall(args: {
80
+ key: string;
81
+ selector?: string;
82
+ tabId?: string;
83
+ }): GenericCallView;
84
+ /** `chrome_press` completed card, naming the submit that synthetic keys make necessary. */
85
+ export declare function pressResult(outcome: ToolResult): GenericResultView | undefined;
86
+ /** `chrome_request_help` pending call. */
87
+ export declare function helpCall(args: {
88
+ reason: string;
89
+ }): GenericCallView;
90
+ /** `chrome_request_help` completed card. */
91
+ export declare function helpResult(outcome: ToolResult): GenericResultView | undefined;
92
+ /** `chrome_close` pending call. */
93
+ export declare function closeCall(args: {
94
+ tabId: string;
95
+ }): GenericCallView;
96
+ /** `chrome_close` completed card. */
97
+ export declare function closeResult(outcome: ToolResult): GenericResultView | undefined;
98
+ /** `chrome_select` pending call. */
99
+ export declare function selectCall(args: {
100
+ value: string;
101
+ selector: string;
102
+ tabId?: string;
103
+ }): GenericCallView;
104
+ /** `chrome_select` completed card. */
105
+ export declare function selectResult(outcome: ToolResult): GenericResultView | undefined;
106
+ /** `chrome_click` completed card. Surfaces the warnings that explain a click the page may have ignored. */
107
+ export declare function clickResult(outcome: ToolResult): GenericResultView | undefined;
108
+ /** `chrome_type` pending call. Never carries the typed text: it may be a credential. */
109
+ export declare function typeCall(args: {
110
+ selector: string;
111
+ text: string;
112
+ tabId?: string;
113
+ }): GenericCallView;
114
+ /** `chrome_type` completed card. The typed text stays out of the card, as in the call view. */
115
+ export declare function typeResult(outcome: ToolResult): GenericResultView | undefined;
116
+ /** `chrome_eval` pending call. */
117
+ export declare function evalCall(args: {
118
+ expression: string;
119
+ tabId?: string;
120
+ }): GenericCallView;
121
+ /** `chrome_eval` completed card: the serialized value the model received. */
122
+ export declare function evalResult(outcome: ToolResult): GenericResultView | undefined;
123
+ /** `chrome_console` pending call, titled by the lifecycle step it performs. */
124
+ export declare function consoleCall(args: {
125
+ action: string;
126
+ tabId?: string;
127
+ }): GenericCallView;
128
+ /** `chrome_console` completed card: the lifecycle result, or the entries read. */
129
+ export declare function consoleResult(outcome: ToolResult): GenericResultView | undefined;
130
+ //# sourceMappingURL=presentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../src/presentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAA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