@mokuhub/mokutab-shared 2.0.1 → 2.2.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.
package/dist/index.d.mts CHANGED
@@ -29,7 +29,11 @@ declare enum NativeMessageType {
29
29
  WATCH_PROBE = "watch_probe",
30
30
  MODULES_GET = "modules_get",
31
31
  MODULES_SET = "modules_set",
32
- MODULES_STATE = "modules_state"
32
+ MODULES_STATE = "modules_state",
33
+ NS_COOKIES_READ = "ns_cookies_read",
34
+ NS_COOKIES_WRITE = "ns_cookies_write",
35
+ NS_TAB_IDENTITY = "ns_tab_identity",
36
+ NS_SESSION_PROBE = "ns_session_probe"
33
37
  }
34
38
  /** One installed module and whether it is on, as the bridge reports it. */
35
39
  interface ModuleStateEntry {
@@ -251,6 +255,16 @@ declare const CORE_TOOL_NAMES: {
251
255
  SWITCH_PROFILE: string;
252
256
  };
253
257
  };
258
+ /**
259
+ * Core tools that change nothing: not the page, not the browser, not the
260
+ * bridge's own state. Served with readOnlyHint, which lets a client run them
261
+ * side by side and repeat one after a dropped connection. A tool that can
262
+ * navigate (chrome_get_web_content with url), move a tab (chrome_screenshot),
263
+ * consume a buffer (chrome_console) or run caller code is not on the list.
264
+ */
265
+ declare const CORE_READ_ONLY_TOOL_NAMES: readonly string[];
266
+ /** Core tools whose whole job is to remove something. Served with destructiveHint. */
267
+ declare const CORE_DESTRUCTIVE_TOOL_NAMES: readonly string[];
254
268
  declare const CORE_TOOL_SCHEMAS: Tool[];
255
269
 
256
270
  /**
@@ -273,6 +287,10 @@ interface ToolModule {
273
287
  * is on.
274
288
  */
275
289
  aliases?: Readonly<Record<string, string>>;
290
+ /** Tools that change nothing: served with readOnlyHint. */
291
+ readOnlyTools?: readonly string[];
292
+ /** Tools whose whole job is to remove something: served with destructiveHint. */
293
+ destructiveTools?: readonly string[];
276
294
  }
277
295
  /** Refusal for a call to a tool whose module is switched off. Same wording on both sides. */
278
296
  declare function moduleOffMessage(module: Pick<ToolModule, 'id' | 'title'>, tool: string): string;
@@ -424,6 +442,34 @@ declare const WORKATO_INSTRUCTIONS: string;
424
442
  */
425
443
  declare const WORKATO_TOOL_ALIASES: Readonly<Record<string, string>>;
426
444
 
445
+ /**
446
+ * What kind of call each Workato tool is. Plain name lists, with no schema
447
+ * behind them, so the extension can import one without the catalogue.
448
+ */
449
+ /**
450
+ * Tools that change nothing in Workato and nothing in the page. Served with
451
+ * readOnlyHint. Absent on purpose: workato_deploy_plan (opens a draft
452
+ * deployment), workato_step_schema (apply_to writes a step),
453
+ * workato_properties (reads and writes), workato_operation_status (finishes an
454
+ * interrupted operation), workato_lcap_page_validate (its render check opens
455
+ * and closes a tab), and the tools that run caller-chosen requests, queries or
456
+ * actions.
457
+ *
458
+ * The hint is about Workato and the page. A read tool still writes the local
459
+ * file a caller names in out_file, so a client must not take the hint as
460
+ * leave to skip its own check of the arguments.
461
+ */
462
+ declare const WORKATO_READ_ONLY_TOOL_NAMES: readonly string[];
463
+ /** Tools whose whole job is to remove something. Served with destructiveHint. */
464
+ declare const WORKATO_DESTRUCTIVE_TOOL_NAMES: readonly string[];
465
+ /**
466
+ * Read-only tools that are nothing but fetches made from the page: several of
467
+ * them may run on one tab at once. The extension's per-tab queue lets these
468
+ * overlap each other and still keeps them apart from every call that drives
469
+ * the page.
470
+ */
471
+ declare const WORKATO_TAB_SHARED_TOOL_NAMES: readonly string[];
472
+
427
473
  /**
428
474
  * The id and title on their own, for code that needs no schemas (the
429
475
  * extension): its bundler keeps a whole object literal when one property is
@@ -433,6 +479,40 @@ declare const WORKATO_MODULE_ID = "workato";
433
479
  declare const WORKATO_MODULE_TITLE = "Workato";
434
480
  declare const WORKATO_MODULE: ToolModule;
435
481
 
482
+ /**
483
+ * NetSuite module tool names: the session store client (see the bridge module).
484
+ */
485
+ declare const NETSUITE_TOOL_NAMES: {
486
+ readonly NETSUITE_SESSION: {
487
+ readonly STATUS: "netsuite_session_status";
488
+ readonly ENSURE: "netsuite_session_ensure";
489
+ readonly PUBLISH: "netsuite_session_publish";
490
+ readonly LOCK: "netsuite_session_lock";
491
+ readonly UNLOCK: "netsuite_session_unlock";
492
+ };
493
+ };
494
+ /** Tools that change nothing (served with readOnlyHint). */
495
+ declare const NETSUITE_READ_ONLY_TOOL_NAMES: readonly string[];
496
+ /** Tools whose whole job is to remove something. */
497
+ declare const NETSUITE_DESTRUCTIVE_TOOL_NAMES: readonly string[];
498
+ /** The tools a browser function's tool step may call (they run in the bridge, not in the page). */
499
+ declare const NETSUITE_FN_TOOL_NAMES: readonly string[];
500
+
501
+ /**
502
+ * NetSuite module tool schemas. Every result is metadata only: names, hosts,
503
+ * states and an 8-char fingerprint, never a cookie value.
504
+ */
505
+
506
+ declare const NETSUITE_TOOL_SCHEMAS: Tool[];
507
+
508
+ /** The NetSuite part of the server instructions, sent while the module is on. */
509
+ declare const NETSUITE_INSTRUCTIONS: string;
510
+
511
+ /** The id and title on their own, for code that needs no schemas (the extension). */
512
+ declare const NETSUITE_MODULE_ID = "netsuite";
513
+ declare const NETSUITE_MODULE_TITLE = "NetSuite";
514
+ declare const NETSUITE_MODULE: ToolModule;
515
+
436
516
  /**
437
517
  * Installed modules, and the full catalogue assembled from core plus every
438
518
  * module.
@@ -622,6 +702,13 @@ declare const TOOL_NAMES: {
622
702
  WHOAMI: string;
623
703
  SESSION_CONTEXT: string;
624
704
  };
705
+ NETSUITE_SESSION: {
706
+ readonly STATUS: "netsuite_session_status";
707
+ readonly ENSURE: "netsuite_session_ensure";
708
+ readonly PUBLISH: "netsuite_session_publish";
709
+ readonly LOCK: "netsuite_session_lock";
710
+ readonly UNLOCK: "netsuite_session_unlock";
711
+ };
625
712
  };
626
713
  /**
627
714
  * Every tool schema: core first, then each module's.
@@ -688,4 +775,4 @@ declare function sanitizeText(text: string): {
688
775
  */
689
776
  declare function isSensitiveKey(key: string): boolean;
690
777
 
691
- export { CORE_TOOL_NAMES, CORE_TOOL_SCHEMAS, DEFAULT_MAX_OUTPUT_BYTES, DEFAULT_SERVER_PORT, type ElementPickerRequest, type ElementPickerResult, type ElementPickerResultItem, HOST_NAME, MODULES, type ModuleStateEntry, type ModulesStatePayload, type NativeMessage, NativeMessageType, type OutputSanitizerOptions, type PickedElement, type PickedElementPoint, type PickedElementRect, RAW_MAX_OUTPUT_BYTES, type SanitizedOutput, TOOL_NAMES, TOOL_SCHEMAS, type ToolModule, WORKATO_INSTRUCTIONS, WORKATO_MODULE, WORKATO_MODULE_ID, WORKATO_MODULE_TITLE, WORKATO_TOOL_ALIASES, WORKATO_TOOL_NAMES, WORKATO_TOOL_SCHEMAS, aliasDescription, aliasOffMessage, formatRawOutput, isSensitiveKey, moduleOfTool, moduleOffMessage, sanitizeAndLimitOutput, sanitizeText };
778
+ export { CORE_DESTRUCTIVE_TOOL_NAMES, CORE_READ_ONLY_TOOL_NAMES, CORE_TOOL_NAMES, CORE_TOOL_SCHEMAS, DEFAULT_MAX_OUTPUT_BYTES, DEFAULT_SERVER_PORT, type ElementPickerRequest, type ElementPickerResult, type ElementPickerResultItem, HOST_NAME, MODULES, type ModuleStateEntry, type ModulesStatePayload, NETSUITE_DESTRUCTIVE_TOOL_NAMES, NETSUITE_FN_TOOL_NAMES, NETSUITE_INSTRUCTIONS, NETSUITE_MODULE, NETSUITE_MODULE_ID, NETSUITE_MODULE_TITLE, NETSUITE_READ_ONLY_TOOL_NAMES, NETSUITE_TOOL_NAMES, NETSUITE_TOOL_SCHEMAS, type NativeMessage, NativeMessageType, type OutputSanitizerOptions, type PickedElement, type PickedElementPoint, type PickedElementRect, RAW_MAX_OUTPUT_BYTES, type SanitizedOutput, TOOL_NAMES, TOOL_SCHEMAS, type ToolModule, WORKATO_DESTRUCTIVE_TOOL_NAMES, WORKATO_INSTRUCTIONS, WORKATO_MODULE, WORKATO_MODULE_ID, WORKATO_MODULE_TITLE, WORKATO_READ_ONLY_TOOL_NAMES, WORKATO_TAB_SHARED_TOOL_NAMES, WORKATO_TOOL_ALIASES, WORKATO_TOOL_NAMES, WORKATO_TOOL_SCHEMAS, aliasDescription, aliasOffMessage, formatRawOutput, isSensitiveKey, moduleOfTool, moduleOffMessage, sanitizeAndLimitOutput, sanitizeText };
package/dist/index.d.ts CHANGED
@@ -29,7 +29,11 @@ declare enum NativeMessageType {
29
29
  WATCH_PROBE = "watch_probe",
30
30
  MODULES_GET = "modules_get",
31
31
  MODULES_SET = "modules_set",
32
- MODULES_STATE = "modules_state"
32
+ MODULES_STATE = "modules_state",
33
+ NS_COOKIES_READ = "ns_cookies_read",
34
+ NS_COOKIES_WRITE = "ns_cookies_write",
35
+ NS_TAB_IDENTITY = "ns_tab_identity",
36
+ NS_SESSION_PROBE = "ns_session_probe"
33
37
  }
34
38
  /** One installed module and whether it is on, as the bridge reports it. */
35
39
  interface ModuleStateEntry {
@@ -251,6 +255,16 @@ declare const CORE_TOOL_NAMES: {
251
255
  SWITCH_PROFILE: string;
252
256
  };
253
257
  };
258
+ /**
259
+ * Core tools that change nothing: not the page, not the browser, not the
260
+ * bridge's own state. Served with readOnlyHint, which lets a client run them
261
+ * side by side and repeat one after a dropped connection. A tool that can
262
+ * navigate (chrome_get_web_content with url), move a tab (chrome_screenshot),
263
+ * consume a buffer (chrome_console) or run caller code is not on the list.
264
+ */
265
+ declare const CORE_READ_ONLY_TOOL_NAMES: readonly string[];
266
+ /** Core tools whose whole job is to remove something. Served with destructiveHint. */
267
+ declare const CORE_DESTRUCTIVE_TOOL_NAMES: readonly string[];
254
268
  declare const CORE_TOOL_SCHEMAS: Tool[];
255
269
 
256
270
  /**
@@ -273,6 +287,10 @@ interface ToolModule {
273
287
  * is on.
274
288
  */
275
289
  aliases?: Readonly<Record<string, string>>;
290
+ /** Tools that change nothing: served with readOnlyHint. */
291
+ readOnlyTools?: readonly string[];
292
+ /** Tools whose whole job is to remove something: served with destructiveHint. */
293
+ destructiveTools?: readonly string[];
276
294
  }
277
295
  /** Refusal for a call to a tool whose module is switched off. Same wording on both sides. */
278
296
  declare function moduleOffMessage(module: Pick<ToolModule, 'id' | 'title'>, tool: string): string;
@@ -424,6 +442,34 @@ declare const WORKATO_INSTRUCTIONS: string;
424
442
  */
425
443
  declare const WORKATO_TOOL_ALIASES: Readonly<Record<string, string>>;
426
444
 
445
+ /**
446
+ * What kind of call each Workato tool is. Plain name lists, with no schema
447
+ * behind them, so the extension can import one without the catalogue.
448
+ */
449
+ /**
450
+ * Tools that change nothing in Workato and nothing in the page. Served with
451
+ * readOnlyHint. Absent on purpose: workato_deploy_plan (opens a draft
452
+ * deployment), workato_step_schema (apply_to writes a step),
453
+ * workato_properties (reads and writes), workato_operation_status (finishes an
454
+ * interrupted operation), workato_lcap_page_validate (its render check opens
455
+ * and closes a tab), and the tools that run caller-chosen requests, queries or
456
+ * actions.
457
+ *
458
+ * The hint is about Workato and the page. A read tool still writes the local
459
+ * file a caller names in out_file, so a client must not take the hint as
460
+ * leave to skip its own check of the arguments.
461
+ */
462
+ declare const WORKATO_READ_ONLY_TOOL_NAMES: readonly string[];
463
+ /** Tools whose whole job is to remove something. Served with destructiveHint. */
464
+ declare const WORKATO_DESTRUCTIVE_TOOL_NAMES: readonly string[];
465
+ /**
466
+ * Read-only tools that are nothing but fetches made from the page: several of
467
+ * them may run on one tab at once. The extension's per-tab queue lets these
468
+ * overlap each other and still keeps them apart from every call that drives
469
+ * the page.
470
+ */
471
+ declare const WORKATO_TAB_SHARED_TOOL_NAMES: readonly string[];
472
+
427
473
  /**
428
474
  * The id and title on their own, for code that needs no schemas (the
429
475
  * extension): its bundler keeps a whole object literal when one property is
@@ -433,6 +479,40 @@ declare const WORKATO_MODULE_ID = "workato";
433
479
  declare const WORKATO_MODULE_TITLE = "Workato";
434
480
  declare const WORKATO_MODULE: ToolModule;
435
481
 
482
+ /**
483
+ * NetSuite module tool names: the session store client (see the bridge module).
484
+ */
485
+ declare const NETSUITE_TOOL_NAMES: {
486
+ readonly NETSUITE_SESSION: {
487
+ readonly STATUS: "netsuite_session_status";
488
+ readonly ENSURE: "netsuite_session_ensure";
489
+ readonly PUBLISH: "netsuite_session_publish";
490
+ readonly LOCK: "netsuite_session_lock";
491
+ readonly UNLOCK: "netsuite_session_unlock";
492
+ };
493
+ };
494
+ /** Tools that change nothing (served with readOnlyHint). */
495
+ declare const NETSUITE_READ_ONLY_TOOL_NAMES: readonly string[];
496
+ /** Tools whose whole job is to remove something. */
497
+ declare const NETSUITE_DESTRUCTIVE_TOOL_NAMES: readonly string[];
498
+ /** The tools a browser function's tool step may call (they run in the bridge, not in the page). */
499
+ declare const NETSUITE_FN_TOOL_NAMES: readonly string[];
500
+
501
+ /**
502
+ * NetSuite module tool schemas. Every result is metadata only: names, hosts,
503
+ * states and an 8-char fingerprint, never a cookie value.
504
+ */
505
+
506
+ declare const NETSUITE_TOOL_SCHEMAS: Tool[];
507
+
508
+ /** The NetSuite part of the server instructions, sent while the module is on. */
509
+ declare const NETSUITE_INSTRUCTIONS: string;
510
+
511
+ /** The id and title on their own, for code that needs no schemas (the extension). */
512
+ declare const NETSUITE_MODULE_ID = "netsuite";
513
+ declare const NETSUITE_MODULE_TITLE = "NetSuite";
514
+ declare const NETSUITE_MODULE: ToolModule;
515
+
436
516
  /**
437
517
  * Installed modules, and the full catalogue assembled from core plus every
438
518
  * module.
@@ -622,6 +702,13 @@ declare const TOOL_NAMES: {
622
702
  WHOAMI: string;
623
703
  SESSION_CONTEXT: string;
624
704
  };
705
+ NETSUITE_SESSION: {
706
+ readonly STATUS: "netsuite_session_status";
707
+ readonly ENSURE: "netsuite_session_ensure";
708
+ readonly PUBLISH: "netsuite_session_publish";
709
+ readonly LOCK: "netsuite_session_lock";
710
+ readonly UNLOCK: "netsuite_session_unlock";
711
+ };
625
712
  };
626
713
  /**
627
714
  * Every tool schema: core first, then each module's.
@@ -688,4 +775,4 @@ declare function sanitizeText(text: string): {
688
775
  */
689
776
  declare function isSensitiveKey(key: string): boolean;
690
777
 
691
- export { CORE_TOOL_NAMES, CORE_TOOL_SCHEMAS, DEFAULT_MAX_OUTPUT_BYTES, DEFAULT_SERVER_PORT, type ElementPickerRequest, type ElementPickerResult, type ElementPickerResultItem, HOST_NAME, MODULES, type ModuleStateEntry, type ModulesStatePayload, type NativeMessage, NativeMessageType, type OutputSanitizerOptions, type PickedElement, type PickedElementPoint, type PickedElementRect, RAW_MAX_OUTPUT_BYTES, type SanitizedOutput, TOOL_NAMES, TOOL_SCHEMAS, type ToolModule, WORKATO_INSTRUCTIONS, WORKATO_MODULE, WORKATO_MODULE_ID, WORKATO_MODULE_TITLE, WORKATO_TOOL_ALIASES, WORKATO_TOOL_NAMES, WORKATO_TOOL_SCHEMAS, aliasDescription, aliasOffMessage, formatRawOutput, isSensitiveKey, moduleOfTool, moduleOffMessage, sanitizeAndLimitOutput, sanitizeText };
778
+ export { CORE_DESTRUCTIVE_TOOL_NAMES, CORE_READ_ONLY_TOOL_NAMES, CORE_TOOL_NAMES, CORE_TOOL_SCHEMAS, DEFAULT_MAX_OUTPUT_BYTES, DEFAULT_SERVER_PORT, type ElementPickerRequest, type ElementPickerResult, type ElementPickerResultItem, HOST_NAME, MODULES, type ModuleStateEntry, type ModulesStatePayload, NETSUITE_DESTRUCTIVE_TOOL_NAMES, NETSUITE_FN_TOOL_NAMES, NETSUITE_INSTRUCTIONS, NETSUITE_MODULE, NETSUITE_MODULE_ID, NETSUITE_MODULE_TITLE, NETSUITE_READ_ONLY_TOOL_NAMES, NETSUITE_TOOL_NAMES, NETSUITE_TOOL_SCHEMAS, type NativeMessage, NativeMessageType, type OutputSanitizerOptions, type PickedElement, type PickedElementPoint, type PickedElementRect, RAW_MAX_OUTPUT_BYTES, type SanitizedOutput, TOOL_NAMES, TOOL_SCHEMAS, type ToolModule, WORKATO_DESTRUCTIVE_TOOL_NAMES, WORKATO_INSTRUCTIONS, WORKATO_MODULE, WORKATO_MODULE_ID, WORKATO_MODULE_TITLE, WORKATO_READ_ONLY_TOOL_NAMES, WORKATO_TAB_SHARED_TOOL_NAMES, WORKATO_TOOL_ALIASES, WORKATO_TOOL_NAMES, WORKATO_TOOL_SCHEMAS, aliasDescription, aliasOffMessage, formatRawOutput, isSensitiveKey, moduleOfTool, moduleOffMessage, sanitizeAndLimitOutput, sanitizeText };
package/dist/index.js CHANGED
@@ -20,20 +20,34 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ CORE_DESTRUCTIVE_TOOL_NAMES: () => CORE_DESTRUCTIVE_TOOL_NAMES,
24
+ CORE_READ_ONLY_TOOL_NAMES: () => CORE_READ_ONLY_TOOL_NAMES,
23
25
  CORE_TOOL_NAMES: () => CORE_TOOL_NAMES,
24
26
  CORE_TOOL_SCHEMAS: () => CORE_TOOL_SCHEMAS,
25
27
  DEFAULT_MAX_OUTPUT_BYTES: () => DEFAULT_MAX_OUTPUT_BYTES,
26
28
  DEFAULT_SERVER_PORT: () => DEFAULT_SERVER_PORT,
27
29
  HOST_NAME: () => HOST_NAME,
28
30
  MODULES: () => MODULES,
31
+ NETSUITE_DESTRUCTIVE_TOOL_NAMES: () => NETSUITE_DESTRUCTIVE_TOOL_NAMES,
32
+ NETSUITE_FN_TOOL_NAMES: () => NETSUITE_FN_TOOL_NAMES,
33
+ NETSUITE_INSTRUCTIONS: () => NETSUITE_INSTRUCTIONS,
34
+ NETSUITE_MODULE: () => NETSUITE_MODULE,
35
+ NETSUITE_MODULE_ID: () => NETSUITE_MODULE_ID,
36
+ NETSUITE_MODULE_TITLE: () => NETSUITE_MODULE_TITLE,
37
+ NETSUITE_READ_ONLY_TOOL_NAMES: () => NETSUITE_READ_ONLY_TOOL_NAMES,
38
+ NETSUITE_TOOL_NAMES: () => NETSUITE_TOOL_NAMES,
39
+ NETSUITE_TOOL_SCHEMAS: () => NETSUITE_TOOL_SCHEMAS,
29
40
  NativeMessageType: () => NativeMessageType,
30
41
  RAW_MAX_OUTPUT_BYTES: () => RAW_MAX_OUTPUT_BYTES,
31
42
  TOOL_NAMES: () => TOOL_NAMES,
32
43
  TOOL_SCHEMAS: () => TOOL_SCHEMAS,
44
+ WORKATO_DESTRUCTIVE_TOOL_NAMES: () => WORKATO_DESTRUCTIVE_TOOL_NAMES,
33
45
  WORKATO_INSTRUCTIONS: () => WORKATO_INSTRUCTIONS,
34
46
  WORKATO_MODULE: () => WORKATO_MODULE,
35
47
  WORKATO_MODULE_ID: () => WORKATO_MODULE_ID,
36
48
  WORKATO_MODULE_TITLE: () => WORKATO_MODULE_TITLE,
49
+ WORKATO_READ_ONLY_TOOL_NAMES: () => WORKATO_READ_ONLY_TOOL_NAMES,
50
+ WORKATO_TAB_SHARED_TOOL_NAMES: () => WORKATO_TAB_SHARED_TOOL_NAMES,
37
51
  WORKATO_TOOL_ALIASES: () => WORKATO_TOOL_ALIASES,
38
52
  WORKATO_TOOL_NAMES: () => WORKATO_TOOL_NAMES,
39
53
  WORKATO_TOOL_SCHEMAS: () => WORKATO_TOOL_SCHEMAS,
@@ -80,6 +94,10 @@ var NativeMessageType = /* @__PURE__ */ ((NativeMessageType2) => {
80
94
  NativeMessageType2["MODULES_GET"] = "modules_get";
81
95
  NativeMessageType2["MODULES_SET"] = "modules_set";
82
96
  NativeMessageType2["MODULES_STATE"] = "modules_state";
97
+ NativeMessageType2["NS_COOKIES_READ"] = "ns_cookies_read";
98
+ NativeMessageType2["NS_COOKIES_WRITE"] = "ns_cookies_write";
99
+ NativeMessageType2["NS_TAB_IDENTITY"] = "ns_tab_identity";
100
+ NativeMessageType2["NS_SESSION_PROBE"] = "ns_session_probe";
83
101
  return NativeMessageType2;
84
102
  })(NativeMessageType || {});
85
103
 
@@ -151,10 +169,32 @@ var CORE_TOOL_NAMES = {
151
169
  SWITCH_PROFILE: "chrome_switch_profile"
152
170
  }
153
171
  };
172
+ var CORE_READ_ONLY_TOOL_NAMES = [
173
+ "get_windows_and_tabs",
174
+ "chrome_list_profiles",
175
+ "chrome_bridge_info",
176
+ "chrome_history",
177
+ "chrome_bookmark_search",
178
+ "chrome_snapshot",
179
+ "chrome_snapshot_wait_for",
180
+ "chrome_read_page",
181
+ "chrome_search_page",
182
+ "chrome_find_elements",
183
+ "chrome_watch_list",
184
+ "chrome_watch_events",
185
+ "chrome_fn_list",
186
+ "chrome_fn_get",
187
+ "chrome_fn_runs",
188
+ "performance_analyze_insight"
189
+ ];
190
+ var CORE_DESTRUCTIVE_TOOL_NAMES = [
191
+ "chrome_close_tabs",
192
+ "chrome_bookmark_delete"
193
+ ];
154
194
  var CORE_TOOL_SCHEMAS = [
155
195
  {
156
196
  name: CORE_TOOL_NAMES.BROWSER.GET_WINDOWS_AND_TABS,
157
- description: 'Get all currently open browser windows and tabs. Pass filter to return only tabs whose URL or title contains the substring (e.g. filter:"workato") \u2014 strongly preferred when looking for a specific app tab, so unrelated personal tabs never enter the context.',
197
+ description: 'Get all currently open browser windows and tabs. Pass filter to return only tabs whose URL or title contains the substring (e.g. filter:"workato"): strongly preferred when looking for a specific app tab, so unrelated personal tabs never enter the context. Returns {windowCount, tabCount, windows: [{windowId, tabs: [{tabId, url, title, active}]}]}.',
158
198
  inputSchema: {
159
199
  type: "object",
160
200
  properties: {
@@ -618,7 +658,7 @@ Tip: If the returned elements do not include the specific element you need, use
618
658
  },
619
659
  {
620
660
  name: CORE_TOOL_NAMES.BROWSER.LEASE_TAB,
621
- description: "Get a tab of your own for parallel work: several agents sharing one MCP server and one Chrome profile must each lease a tab and pass the returned `lease` on every browser call, instead of relying on the active tab. Opens the tab in a separate, unfocused agents window. Screenshots that need a visible tab move a hidden agents-window tab to a window of its own by themselves; own_window:true (that window up front) is still the choice for chrome_computer mouse/keyboard input, which a hidden tab drops. The bridge turns `lease` into the right profile and tabId, never activates or focuses the tab, and while this MCP session holds any lease it REFUSES tab-targeting calls that carry neither `lease` nor tabId. Calls on the same tab run one at a time. Leases end with chrome_release_tab, when the tab is closed, or after 30 minutes unused. Returns {lease, tabId, windowId, profile}.",
661
+ description: "Get a tab of your own for parallel work: several agents sharing one Chrome profile (in one MCP session or in several) must each lease a tab and pass the returned `lease` on every browser call, instead of relying on the active tab. Opens the tab in a separate, unfocused agents window. Screenshots that need a visible tab move a hidden agents-window tab to a window of its own by themselves; own_window:true (that window up front) is still the choice for chrome_computer mouse/keyboard input, which a hidden tab drops. The bridge turns `lease` into the right profile and tabId, never activates or focuses the tab, and while this MCP session holds any lease it REFUSES tab-targeting calls that carry neither `lease` nor tabId. A leased tab is off limits to every other MCP session of this bridge: a call that names it without the lease is refused (TabLeased), and a Workato call that names no tab never picks it. Whoever passes the lease uses the tab. Calls that drive a page run one at a time per tab; read-only Workato calls overlap. Leases end with chrome_release_tab, when the tab is closed, or after 30 minutes unused. Returns {lease, tabId, windowId, profile}.",
622
662
  inputSchema: {
623
663
  type: "object",
624
664
  properties: {
@@ -1887,7 +1927,7 @@ Tip: If the returned elements do not include the specific element you need, use
1887
1927
  },
1888
1928
  {
1889
1929
  name: CORE_TOOL_NAMES.BRIDGE.LIST_PROFILES,
1890
- description: 'List all currently active/connected Chrome profiles (e.g. "prod", "staging", "dev") and see which one is selected for this MCP session, if any. Also returns session_context: the profile, tab, host, workspace and environment this session is pinned to (null when nothing is pinned, in which case calls follow the bridge default profile).',
1930
+ description: `List all currently active/connected Chrome profiles (e.g. "prod", "staging", "dev") and see which one is selected for this MCP session, if any. Also returns session_context: the profile, tab, host, workspace and environment this session is pinned to (null when nothing is pinned, in which case calls follow the bridge default profile). Returns {active_profile, session_profile, session_tab_id, session_context, server_default_profile, connected_profiles, leases, routing_note}. leases holds this session's leases with their token, and the tabs other sessions leased without one (other_session: true): tabs to stay away from.`,
1891
1931
  inputSchema: {
1892
1932
  type: "object",
1893
1933
  properties: {},
@@ -2957,7 +2997,7 @@ Use workato_pull_recipe when the step is already known, and workato_recipe_step_
2957
2997
  },
2958
2998
  {
2959
2999
  name: WORKATO_TOOL_NAMES.WORKATO.LIST_FOLDERS,
2960
- description: "List the full Workato project/folder tree (GET /folders?projects_mode=true). Top-level entries are project root folders: their `id` is the folder id to use as parent_id (create/move folder) or folder_id (move recipe), and `project_id` is the owning project's id. Each node reports flow_count/active_flow_count (recipes) plus non-zero asset counts under `counts`, and nested `children`. Slim by default; totals holds account-wide asset counters. THE tool to call before creating/moving folders or recipes: it is the source of folder ids. Read-only. Requires an open Workato tab.",
3000
+ description: "List the full Workato project/folder tree (GET /folders?projects_mode=true). Top-level entries are project root folders: their `id` is the folder id to use as parent_id (create/move folder) or folder_id (move recipe), and `project_id` is the owning project's id. Each node reports flow_count/active_flow_count (recipes) plus non-zero asset counts under `counts`, and nested `children`. Slim by default; totals holds account-wide asset counters. THE tool to call before creating/moving folders or recipes: it is the source of folder ids. Returns {project_count, projects}. Read-only. Requires an open Workato tab.",
2961
3001
  inputSchema: {
2962
3002
  type: "object",
2963
3003
  properties: {
@@ -3438,7 +3478,7 @@ Use workato_pull_recipe when the step is already known, and workato_recipe_step_
3438
3478
  },
3439
3479
  {
3440
3480
  name: WORKATO_TOOL_NAMES.WORKATO.LIST_JOBS,
3441
- description: "List and SEARCH jobs for a Workato recipe. Auto-walks Workato's cursor pagination. Two searches, combinable: `query` is the SERVER one and matches a contiguous, case-insensitive substring of the job id or of a custom job-report column value ONLY (not the error text, not column labels, and never an erased job); `match` is a LOCAL scan of every job the walk sees, over id / title / error / report columns, as exact, substring or regex. Date range: started_from / started_to (ISO, or YYYY-MM-DD widened to the whole day) in `timezone` (default UTC); started_at takes only the fixed presets. Two budgets: `limit` caps matches RETURNED, `scan_budget` caps jobs SCANNED. Every response carries `coverage` (scanned, matched, erased_seen, window, complete, next_cursor, retention_boundary_reached) and a `summary` sentence: zero matches from an incomplete scan is NOT evidence of none, so resume with cursor=next_cursor. ERASED jobs (retention swept) stay listed with erased:true, title/report null and no error: unavailable, not empty. The walk stops after 3 consecutive erased jobs because that boundary is workspace-wide and everything older is erased too (stop_on_erased:false to keep going). Report columns come back with their configured labels, all of them, plus report_columns. `fields` projects the slim job. Requires an open Workato tab.",
3481
+ description: "List and SEARCH jobs for a Workato recipe. Auto-walks Workato's cursor pagination. Two searches, combinable: `query` is the SERVER one and matches a contiguous, case-insensitive substring of the job id or of a custom job-report column value ONLY (not the error text, not column labels, and never an erased job); `match` is a LOCAL scan of every job the walk sees, over id / title / error / report columns, as exact, substring or regex. Date range: started_from / started_to (ISO, or YYYY-MM-DD widened to the whole day) in `timezone` (default UTC); started_at takes only the fixed presets. Two budgets: `limit` caps matches RETURNED, `scan_budget` caps jobs SCANNED. Every response carries `coverage` (scanned, matched, erased_seen, window, complete, next_cursor, retention_boundary_reached) and a `summary` sentence: zero matches from an incomplete scan is NOT evidence of none, so resume with cursor=next_cursor. ERASED jobs (retention swept) stay listed with erased:true, title/report null and no error: unavailable, not empty. The walk stops after 3 consecutive erased jobs because that boundary is workspace-wide and everything older is erased too (stop_on_erased:false to keep going). Report columns come back with their configured labels, all of them, plus report_columns. `fields` projects the slim job. Returns {total, succeeded, failed, jobs, coverage, next_cursor, report_columns}. Requires an open Workato tab.",
3442
3482
  inputSchema: {
3443
3483
  type: "object",
3444
3484
  properties: {
@@ -4615,7 +4655,7 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
4615
4655
  },
4616
4656
  {
4617
4657
  name: WORKATO_TOOL_NAMES.WORKATO_LOOKUP.TABLES_LIST,
4618
- description: "List all Workato lookup tables visible to the signed-in user (GET /lookup_tables.json). Returns a slim shape: [{id, name, entry_count, updated_at}]. Requires an open logged-in Workato tab (uses the session pinned tab or first Workato app tab, never whatever tab is focused).",
4658
+ description: "List all Workato lookup tables visible to the signed-in user (GET /lookup_tables.json). Returns {headline, items: [{id, name, entry_count, updated_at}]}. Requires an open logged-in Workato tab (uses the session pinned tab or first Workato app tab, never whatever tab is focused).",
4619
4659
  inputSchema: {
4620
4660
  type: "object",
4621
4661
  properties: {
@@ -4872,7 +4912,7 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
4872
4912
  },
4873
4913
  {
4874
4914
  name: WORKATO_TOOL_NAMES.WORKATO_DATA_TABLE.TABLES_LIST,
4875
- description: "List Workato Data Tables in a project folder (GET /web_api/mixed_assets.json filtered to data-table assets). Data Tables are the newer relational store (distinct from the older Lookup Tables at /lookup_tables/). Returns a slim shape: [{id, name, folder_id, total_entries_count, updated_at}]. If folder_id is omitted, the tool falls back to the folder visible in the current Workato URL (best-effort). Prerequisite: the active tab must be a logged-in Workato page.",
4915
+ description: "List Workato Data Tables in a project folder (GET /web_api/mixed_assets.json filtered to data-table assets). Data Tables are the newer relational store (distinct from the older Lookup Tables at /lookup_tables/). Returns {tables: [{id, name, folder_id, total_entries_count, updated_at}], page, per_page, count, folder_id}. If folder_id is omitted, the tool falls back to the folder visible in the current Workato URL (best-effort). Prerequisite: the active tab must be a logged-in Workato page.",
4876
4916
  inputSchema: {
4877
4917
  type: "object",
4878
4918
  properties: {
@@ -5317,7 +5357,7 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
5317
5357
  },
5318
5358
  {
5319
5359
  name: WORKATO_TOOL_NAMES.WORKATO_LCAP.APPS_LIST,
5320
- description: "List the Workflow Apps (LCAP) in the current workspace: id, name, project_id, unique_id, live. Read-only. There is no endpoint that lists the PAGES in an app - page ids come from the builder URL (app.workato.com/lcap/pages/<id>) or the project's asset view. Requires an open Workato tab in the right workspace.",
5360
+ description: "List the Workflow Apps (LCAP) in the current workspace. Returns {app_count, apps: [{id, name, project_id, unique_id, live}]}. Read-only. There is no endpoint that lists the PAGES in an app - page ids come from the builder URL (app.workato.com/lcap/pages/<id>) or the project's asset view. Requires an open Workato tab in the right workspace.",
5321
5361
  inputSchema: {
5322
5362
  type: "object",
5323
5363
  properties: {
@@ -5570,6 +5610,52 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
5570
5610
  }
5571
5611
  ];
5572
5612
 
5613
+ // src/modules/workato/tool-kinds.ts
5614
+ var WORKATO_READ_ONLY_TOOL_NAMES = [
5615
+ "workato_whoami",
5616
+ "workato_session_context",
5617
+ "workato_pull_recipe",
5618
+ "workato_recipe_grep",
5619
+ "workato_recipe_status",
5620
+ "workato_recipe_version_diff",
5621
+ "workato_recipe_validate",
5622
+ "workato_recipe_callers",
5623
+ "workato_recipe_connections",
5624
+ "workato_recipe_step_search",
5625
+ "workato_job_trace",
5626
+ "workato_list_jobs",
5627
+ "workato_search_recipes",
5628
+ "workato_search_connections",
5629
+ "workato_get_connection",
5630
+ "workato_deployments_list",
5631
+ "workato_list_folders",
5632
+ "workato_adapter_meta",
5633
+ "workato_apps_list",
5634
+ "workato_pick_list",
5635
+ "workato_datapill",
5636
+ "workato_lookup_tables_list",
5637
+ "workato_lookup_table_get",
5638
+ "workato_lookup_table_row_search",
5639
+ "workato_data_tables_list",
5640
+ "workato_data_table_get",
5641
+ "workato_data_table_row_list",
5642
+ "workato_lcap_apps_list",
5643
+ "workato_lcap_page_get",
5644
+ "workato_ui_list_steps"
5645
+ ];
5646
+ var WORKATO_DESTRUCTIVE_TOOL_NAMES = [
5647
+ "workato_delete_recipe",
5648
+ "workato_delete_folder",
5649
+ "workato_lookup_table_delete",
5650
+ "workato_lookup_table_row_delete",
5651
+ "workato_data_table_delete",
5652
+ "workato_data_table_delete_column",
5653
+ "workato_data_table_row_delete",
5654
+ "workato_lcap_page_delete"
5655
+ ];
5656
+ var DOM_READERS = ["workato_ui_list_steps"];
5657
+ var WORKATO_TAB_SHARED_TOOL_NAMES = /* @__PURE__ */ WORKATO_READ_ONLY_TOOL_NAMES.filter((name) => !DOM_READERS.includes(name));
5658
+
5573
5659
  // src/modules/workato/index.ts
5574
5660
  var WORKATO_MODULE_ID = "workato";
5575
5661
  var WORKATO_MODULE_TITLE = "Workato";
@@ -5578,11 +5664,175 @@ var WORKATO_MODULE = {
5578
5664
  title: WORKATO_MODULE_TITLE,
5579
5665
  tools: WORKATO_TOOL_SCHEMAS,
5580
5666
  instructions: WORKATO_INSTRUCTIONS,
5581
- aliases: WORKATO_TOOL_ALIASES
5667
+ aliases: WORKATO_TOOL_ALIASES,
5668
+ readOnlyTools: WORKATO_READ_ONLY_TOOL_NAMES,
5669
+ destructiveTools: WORKATO_DESTRUCTIVE_TOOL_NAMES
5670
+ };
5671
+
5672
+ // src/modules/netsuite/instructions.ts
5673
+ var NETSUITE_INSTRUCTIONS = "NetSuite: login page -> netsuite_session_ensure (imported: reload); log in only on none, then netsuite_session_publish.";
5674
+
5675
+ // src/modules/netsuite/tool-names.ts
5676
+ var NETSUITE_TOOL_NAMES = {
5677
+ NETSUITE_SESSION: {
5678
+ STATUS: "netsuite_session_status",
5679
+ ENSURE: "netsuite_session_ensure",
5680
+ PUBLISH: "netsuite_session_publish",
5681
+ LOCK: "netsuite_session_lock",
5682
+ UNLOCK: "netsuite_session_unlock"
5683
+ }
5684
+ };
5685
+ var NETSUITE_READ_ONLY_TOOL_NAMES = ["netsuite_session_status"];
5686
+ var NETSUITE_DESTRUCTIVE_TOOL_NAMES = [];
5687
+ var NETSUITE_FN_TOOL_NAMES = [
5688
+ "netsuite_session_ensure",
5689
+ "netsuite_session_publish",
5690
+ "netsuite_session_lock",
5691
+ "netsuite_session_unlock"
5692
+ ];
5693
+
5694
+ // src/modules/netsuite/schemas.ts
5695
+ var T = NETSUITE_TOOL_NAMES.NETSUITE_SESSION;
5696
+ var NETSUITE_TOOL_SCHEMAS = [
5697
+ {
5698
+ name: T.STATUS,
5699
+ description: "The NetSuite sessions the shared store holds: account, user, role, state (live, dying, dead), login and expiry times, last activity, holders, lock, fp (8-char fingerprint). Metadata only. state store_unconfigured: this machine has no store token; no_store: the store is not reachable (behave as without it).",
5700
+ inputSchema: {
5701
+ type: "object",
5702
+ properties: {
5703
+ account: {
5704
+ ...{
5705
+ type: "string",
5706
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5707
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5708
+ },
5709
+ description: "Only this account."
5710
+ }
5711
+ }
5712
+ }
5713
+ },
5714
+ {
5715
+ name: T.ENSURE,
5716
+ description: "Give this Chrome profile the store's live session for an account, so it needs no login. Returns state imported (cookies set in the profile; reload the NetSuite page), partial_import (Chrome refused some cookies), already_live (the profile already has that session), none (nothing alive: log in, then netsuite_session_publish), locked_by {holder, until} (another machine is logging in), store_unconfigured or no_store (no store: behave as without it). The user is the vault item's username when vault_item is given (only an item for this account's site; the name is not echoed, user_source: vault), else the one this profile used last for the account, else the only live one. Never returns a cookie value.",
5717
+ inputSchema: {
5718
+ type: "object",
5719
+ properties: {
5720
+ account: {
5721
+ type: "string",
5722
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5723
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5724
+ },
5725
+ user: { type: "string", description: "NetSuite user email to take the session of." },
5726
+ vault_item: {
5727
+ type: "string",
5728
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5729
+ description: "Bitwarden item id: its username is the user (the item's password is never read)."
5730
+ },
5731
+ wait_for_lock: {
5732
+ type: "boolean",
5733
+ default: false,
5734
+ description: "When another machine holds the login lock, wait (polling every 3 s) until it publishes or the lock ends."
5735
+ }
5736
+ },
5737
+ required: ["account"]
5738
+ }
5739
+ },
5740
+ {
5741
+ name: T.PUBLISH,
5742
+ description: "Put this profile's live session for an account into the store, so other machines can use it. Returns published, unchanged (the store already has it), no_session (no session cookie for the account in this profile), store_unconfigured or no_store. The user and role come from an open tab of the account, else from vault_item or user.",
5743
+ inputSchema: {
5744
+ type: "object",
5745
+ properties: {
5746
+ account: {
5747
+ type: "string",
5748
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5749
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5750
+ },
5751
+ user: {
5752
+ type: "string",
5753
+ description: "NetSuite user email, when no tab of the account is open."
5754
+ },
5755
+ vault_item: {
5756
+ type: "string",
5757
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5758
+ description: "Bitwarden item id whose username is the user, when no tab is open."
5759
+ },
5760
+ login_at: {
5761
+ type: "boolean",
5762
+ default: false,
5763
+ description: "This session was just logged in (sets login_at to now)."
5764
+ }
5765
+ },
5766
+ required: ["account"]
5767
+ }
5768
+ },
5769
+ {
5770
+ name: T.LOCK,
5771
+ description: "Take the login lock for an account and user before a login, so two machines do not log in at once (each would end the other). Returns locked {until}, locked_by {holder, until}, store_unconfigured or no_store. A publish or netsuite_session_unlock releases it; it ends by itself after ttl_s.",
5772
+ inputSchema: {
5773
+ type: "object",
5774
+ properties: {
5775
+ account: {
5776
+ type: "string",
5777
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5778
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5779
+ },
5780
+ user: { type: "string", description: "NetSuite user email." },
5781
+ vault_item: {
5782
+ type: "string",
5783
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5784
+ description: "Bitwarden item id whose username is the user."
5785
+ },
5786
+ run_id: { type: "string", description: "Run id for the lock holder (shown to others)." },
5787
+ ttl_s: {
5788
+ type: "integer",
5789
+ minimum: 10,
5790
+ maximum: 120,
5791
+ default: 120,
5792
+ description: "Seconds the lock lasts."
5793
+ }
5794
+ },
5795
+ required: ["account"]
5796
+ }
5797
+ },
5798
+ {
5799
+ name: T.UNLOCK,
5800
+ description: "Release the login lock this machine and profile hold for an account and user. Returns unlocked, store_unconfigured or no_store.",
5801
+ inputSchema: {
5802
+ type: "object",
5803
+ properties: {
5804
+ account: {
5805
+ type: "string",
5806
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5807
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5808
+ },
5809
+ user: { type: "string", description: "NetSuite user email." },
5810
+ vault_item: {
5811
+ type: "string",
5812
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5813
+ description: "Bitwarden item id whose username is the user."
5814
+ },
5815
+ run_id: { type: "string", description: "The run id the lock was taken with, if any." }
5816
+ },
5817
+ required: ["account"]
5818
+ }
5819
+ }
5820
+ ];
5821
+
5822
+ // src/modules/netsuite/index.ts
5823
+ var NETSUITE_MODULE_ID = "netsuite";
5824
+ var NETSUITE_MODULE_TITLE = "NetSuite";
5825
+ var NETSUITE_MODULE = {
5826
+ id: NETSUITE_MODULE_ID,
5827
+ title: NETSUITE_MODULE_TITLE,
5828
+ tools: NETSUITE_TOOL_SCHEMAS,
5829
+ instructions: NETSUITE_INSTRUCTIONS,
5830
+ readOnlyTools: NETSUITE_READ_ONLY_TOOL_NAMES,
5831
+ destructiveTools: NETSUITE_DESTRUCTIVE_TOOL_NAMES
5582
5832
  };
5583
5833
 
5584
5834
  // src/modules/index.ts
5585
- var MODULES = [WORKATO_MODULE];
5835
+ var MODULES = [WORKATO_MODULE, NETSUITE_MODULE];
5586
5836
  var TOOL_NAMES = {
5587
5837
  BROWSER: CORE_TOOL_NAMES.BROWSER,
5588
5838
  BRIDGE: CORE_TOOL_NAMES.BRIDGE,
@@ -5592,7 +5842,8 @@ var TOOL_NAMES = {
5592
5842
  WORKATO_LCAP: WORKATO_TOOL_NAMES.WORKATO_LCAP,
5593
5843
  WORKATO_LOOKUP: WORKATO_TOOL_NAMES.WORKATO_LOOKUP,
5594
5844
  WORKATO_DATA_TABLE: WORKATO_TOOL_NAMES.WORKATO_DATA_TABLE,
5595
- WORKATO_SESSION: WORKATO_TOOL_NAMES.WORKATO_SESSION
5845
+ WORKATO_SESSION: WORKATO_TOOL_NAMES.WORKATO_SESSION,
5846
+ NETSUITE_SESSION: NETSUITE_TOOL_NAMES.NETSUITE_SESSION
5596
5847
  };
5597
5848
  var TOOL_SCHEMAS = /* @__PURE__ */ allToolSchemas();
5598
5849
  function allToolSchemas() {
@@ -5881,20 +6132,34 @@ function normalizePositiveInt(value, fallback) {
5881
6132
  }
5882
6133
  // Annotate the CommonJS export names for ESM import in node:
5883
6134
  0 && (module.exports = {
6135
+ CORE_DESTRUCTIVE_TOOL_NAMES,
6136
+ CORE_READ_ONLY_TOOL_NAMES,
5884
6137
  CORE_TOOL_NAMES,
5885
6138
  CORE_TOOL_SCHEMAS,
5886
6139
  DEFAULT_MAX_OUTPUT_BYTES,
5887
6140
  DEFAULT_SERVER_PORT,
5888
6141
  HOST_NAME,
5889
6142
  MODULES,
6143
+ NETSUITE_DESTRUCTIVE_TOOL_NAMES,
6144
+ NETSUITE_FN_TOOL_NAMES,
6145
+ NETSUITE_INSTRUCTIONS,
6146
+ NETSUITE_MODULE,
6147
+ NETSUITE_MODULE_ID,
6148
+ NETSUITE_MODULE_TITLE,
6149
+ NETSUITE_READ_ONLY_TOOL_NAMES,
6150
+ NETSUITE_TOOL_NAMES,
6151
+ NETSUITE_TOOL_SCHEMAS,
5890
6152
  NativeMessageType,
5891
6153
  RAW_MAX_OUTPUT_BYTES,
5892
6154
  TOOL_NAMES,
5893
6155
  TOOL_SCHEMAS,
6156
+ WORKATO_DESTRUCTIVE_TOOL_NAMES,
5894
6157
  WORKATO_INSTRUCTIONS,
5895
6158
  WORKATO_MODULE,
5896
6159
  WORKATO_MODULE_ID,
5897
6160
  WORKATO_MODULE_TITLE,
6161
+ WORKATO_READ_ONLY_TOOL_NAMES,
6162
+ WORKATO_TAB_SHARED_TOOL_NAMES,
5898
6163
  WORKATO_TOOL_ALIASES,
5899
6164
  WORKATO_TOOL_NAMES,
5900
6165
  WORKATO_TOOL_SCHEMAS,
package/dist/index.mjs CHANGED
@@ -30,6 +30,10 @@ var NativeMessageType = /* @__PURE__ */ ((NativeMessageType2) => {
30
30
  NativeMessageType2["MODULES_GET"] = "modules_get";
31
31
  NativeMessageType2["MODULES_SET"] = "modules_set";
32
32
  NativeMessageType2["MODULES_STATE"] = "modules_state";
33
+ NativeMessageType2["NS_COOKIES_READ"] = "ns_cookies_read";
34
+ NativeMessageType2["NS_COOKIES_WRITE"] = "ns_cookies_write";
35
+ NativeMessageType2["NS_TAB_IDENTITY"] = "ns_tab_identity";
36
+ NativeMessageType2["NS_SESSION_PROBE"] = "ns_session_probe";
33
37
  return NativeMessageType2;
34
38
  })(NativeMessageType || {});
35
39
 
@@ -101,10 +105,32 @@ var CORE_TOOL_NAMES = {
101
105
  SWITCH_PROFILE: "chrome_switch_profile"
102
106
  }
103
107
  };
108
+ var CORE_READ_ONLY_TOOL_NAMES = [
109
+ "get_windows_and_tabs",
110
+ "chrome_list_profiles",
111
+ "chrome_bridge_info",
112
+ "chrome_history",
113
+ "chrome_bookmark_search",
114
+ "chrome_snapshot",
115
+ "chrome_snapshot_wait_for",
116
+ "chrome_read_page",
117
+ "chrome_search_page",
118
+ "chrome_find_elements",
119
+ "chrome_watch_list",
120
+ "chrome_watch_events",
121
+ "chrome_fn_list",
122
+ "chrome_fn_get",
123
+ "chrome_fn_runs",
124
+ "performance_analyze_insight"
125
+ ];
126
+ var CORE_DESTRUCTIVE_TOOL_NAMES = [
127
+ "chrome_close_tabs",
128
+ "chrome_bookmark_delete"
129
+ ];
104
130
  var CORE_TOOL_SCHEMAS = [
105
131
  {
106
132
  name: CORE_TOOL_NAMES.BROWSER.GET_WINDOWS_AND_TABS,
107
- description: 'Get all currently open browser windows and tabs. Pass filter to return only tabs whose URL or title contains the substring (e.g. filter:"workato") \u2014 strongly preferred when looking for a specific app tab, so unrelated personal tabs never enter the context.',
133
+ description: 'Get all currently open browser windows and tabs. Pass filter to return only tabs whose URL or title contains the substring (e.g. filter:"workato"): strongly preferred when looking for a specific app tab, so unrelated personal tabs never enter the context. Returns {windowCount, tabCount, windows: [{windowId, tabs: [{tabId, url, title, active}]}]}.',
108
134
  inputSchema: {
109
135
  type: "object",
110
136
  properties: {
@@ -568,7 +594,7 @@ Tip: If the returned elements do not include the specific element you need, use
568
594
  },
569
595
  {
570
596
  name: CORE_TOOL_NAMES.BROWSER.LEASE_TAB,
571
- description: "Get a tab of your own for parallel work: several agents sharing one MCP server and one Chrome profile must each lease a tab and pass the returned `lease` on every browser call, instead of relying on the active tab. Opens the tab in a separate, unfocused agents window. Screenshots that need a visible tab move a hidden agents-window tab to a window of its own by themselves; own_window:true (that window up front) is still the choice for chrome_computer mouse/keyboard input, which a hidden tab drops. The bridge turns `lease` into the right profile and tabId, never activates or focuses the tab, and while this MCP session holds any lease it REFUSES tab-targeting calls that carry neither `lease` nor tabId. Calls on the same tab run one at a time. Leases end with chrome_release_tab, when the tab is closed, or after 30 minutes unused. Returns {lease, tabId, windowId, profile}.",
597
+ description: "Get a tab of your own for parallel work: several agents sharing one Chrome profile (in one MCP session or in several) must each lease a tab and pass the returned `lease` on every browser call, instead of relying on the active tab. Opens the tab in a separate, unfocused agents window. Screenshots that need a visible tab move a hidden agents-window tab to a window of its own by themselves; own_window:true (that window up front) is still the choice for chrome_computer mouse/keyboard input, which a hidden tab drops. The bridge turns `lease` into the right profile and tabId, never activates or focuses the tab, and while this MCP session holds any lease it REFUSES tab-targeting calls that carry neither `lease` nor tabId. A leased tab is off limits to every other MCP session of this bridge: a call that names it without the lease is refused (TabLeased), and a Workato call that names no tab never picks it. Whoever passes the lease uses the tab. Calls that drive a page run one at a time per tab; read-only Workato calls overlap. Leases end with chrome_release_tab, when the tab is closed, or after 30 minutes unused. Returns {lease, tabId, windowId, profile}.",
572
598
  inputSchema: {
573
599
  type: "object",
574
600
  properties: {
@@ -1837,7 +1863,7 @@ Tip: If the returned elements do not include the specific element you need, use
1837
1863
  },
1838
1864
  {
1839
1865
  name: CORE_TOOL_NAMES.BRIDGE.LIST_PROFILES,
1840
- description: 'List all currently active/connected Chrome profiles (e.g. "prod", "staging", "dev") and see which one is selected for this MCP session, if any. Also returns session_context: the profile, tab, host, workspace and environment this session is pinned to (null when nothing is pinned, in which case calls follow the bridge default profile).',
1866
+ description: `List all currently active/connected Chrome profiles (e.g. "prod", "staging", "dev") and see which one is selected for this MCP session, if any. Also returns session_context: the profile, tab, host, workspace and environment this session is pinned to (null when nothing is pinned, in which case calls follow the bridge default profile). Returns {active_profile, session_profile, session_tab_id, session_context, server_default_profile, connected_profiles, leases, routing_note}. leases holds this session's leases with their token, and the tabs other sessions leased without one (other_session: true): tabs to stay away from.`,
1841
1867
  inputSchema: {
1842
1868
  type: "object",
1843
1869
  properties: {},
@@ -2907,7 +2933,7 @@ Use workato_pull_recipe when the step is already known, and workato_recipe_step_
2907
2933
  },
2908
2934
  {
2909
2935
  name: WORKATO_TOOL_NAMES.WORKATO.LIST_FOLDERS,
2910
- description: "List the full Workato project/folder tree (GET /folders?projects_mode=true). Top-level entries are project root folders: their `id` is the folder id to use as parent_id (create/move folder) or folder_id (move recipe), and `project_id` is the owning project's id. Each node reports flow_count/active_flow_count (recipes) plus non-zero asset counts under `counts`, and nested `children`. Slim by default; totals holds account-wide asset counters. THE tool to call before creating/moving folders or recipes: it is the source of folder ids. Read-only. Requires an open Workato tab.",
2936
+ description: "List the full Workato project/folder tree (GET /folders?projects_mode=true). Top-level entries are project root folders: their `id` is the folder id to use as parent_id (create/move folder) or folder_id (move recipe), and `project_id` is the owning project's id. Each node reports flow_count/active_flow_count (recipes) plus non-zero asset counts under `counts`, and nested `children`. Slim by default; totals holds account-wide asset counters. THE tool to call before creating/moving folders or recipes: it is the source of folder ids. Returns {project_count, projects}. Read-only. Requires an open Workato tab.",
2911
2937
  inputSchema: {
2912
2938
  type: "object",
2913
2939
  properties: {
@@ -3388,7 +3414,7 @@ Use workato_pull_recipe when the step is already known, and workato_recipe_step_
3388
3414
  },
3389
3415
  {
3390
3416
  name: WORKATO_TOOL_NAMES.WORKATO.LIST_JOBS,
3391
- description: "List and SEARCH jobs for a Workato recipe. Auto-walks Workato's cursor pagination. Two searches, combinable: `query` is the SERVER one and matches a contiguous, case-insensitive substring of the job id or of a custom job-report column value ONLY (not the error text, not column labels, and never an erased job); `match` is a LOCAL scan of every job the walk sees, over id / title / error / report columns, as exact, substring or regex. Date range: started_from / started_to (ISO, or YYYY-MM-DD widened to the whole day) in `timezone` (default UTC); started_at takes only the fixed presets. Two budgets: `limit` caps matches RETURNED, `scan_budget` caps jobs SCANNED. Every response carries `coverage` (scanned, matched, erased_seen, window, complete, next_cursor, retention_boundary_reached) and a `summary` sentence: zero matches from an incomplete scan is NOT evidence of none, so resume with cursor=next_cursor. ERASED jobs (retention swept) stay listed with erased:true, title/report null and no error: unavailable, not empty. The walk stops after 3 consecutive erased jobs because that boundary is workspace-wide and everything older is erased too (stop_on_erased:false to keep going). Report columns come back with their configured labels, all of them, plus report_columns. `fields` projects the slim job. Requires an open Workato tab.",
3417
+ description: "List and SEARCH jobs for a Workato recipe. Auto-walks Workato's cursor pagination. Two searches, combinable: `query` is the SERVER one and matches a contiguous, case-insensitive substring of the job id or of a custom job-report column value ONLY (not the error text, not column labels, and never an erased job); `match` is a LOCAL scan of every job the walk sees, over id / title / error / report columns, as exact, substring or regex. Date range: started_from / started_to (ISO, or YYYY-MM-DD widened to the whole day) in `timezone` (default UTC); started_at takes only the fixed presets. Two budgets: `limit` caps matches RETURNED, `scan_budget` caps jobs SCANNED. Every response carries `coverage` (scanned, matched, erased_seen, window, complete, next_cursor, retention_boundary_reached) and a `summary` sentence: zero matches from an incomplete scan is NOT evidence of none, so resume with cursor=next_cursor. ERASED jobs (retention swept) stay listed with erased:true, title/report null and no error: unavailable, not empty. The walk stops after 3 consecutive erased jobs because that boundary is workspace-wide and everything older is erased too (stop_on_erased:false to keep going). Report columns come back with their configured labels, all of them, plus report_columns. `fields` projects the slim job. Returns {total, succeeded, failed, jobs, coverage, next_cursor, report_columns}. Requires an open Workato tab.",
3392
3418
  inputSchema: {
3393
3419
  type: "object",
3394
3420
  properties: {
@@ -4565,7 +4591,7 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
4565
4591
  },
4566
4592
  {
4567
4593
  name: WORKATO_TOOL_NAMES.WORKATO_LOOKUP.TABLES_LIST,
4568
- description: "List all Workato lookup tables visible to the signed-in user (GET /lookup_tables.json). Returns a slim shape: [{id, name, entry_count, updated_at}]. Requires an open logged-in Workato tab (uses the session pinned tab or first Workato app tab, never whatever tab is focused).",
4594
+ description: "List all Workato lookup tables visible to the signed-in user (GET /lookup_tables.json). Returns {headline, items: [{id, name, entry_count, updated_at}]}. Requires an open logged-in Workato tab (uses the session pinned tab or first Workato app tab, never whatever tab is focused).",
4569
4595
  inputSchema: {
4570
4596
  type: "object",
4571
4597
  properties: {
@@ -4822,7 +4848,7 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
4822
4848
  },
4823
4849
  {
4824
4850
  name: WORKATO_TOOL_NAMES.WORKATO_DATA_TABLE.TABLES_LIST,
4825
- description: "List Workato Data Tables in a project folder (GET /web_api/mixed_assets.json filtered to data-table assets). Data Tables are the newer relational store (distinct from the older Lookup Tables at /lookup_tables/). Returns a slim shape: [{id, name, folder_id, total_entries_count, updated_at}]. If folder_id is omitted, the tool falls back to the folder visible in the current Workato URL (best-effort). Prerequisite: the active tab must be a logged-in Workato page.",
4851
+ description: "List Workato Data Tables in a project folder (GET /web_api/mixed_assets.json filtered to data-table assets). Data Tables are the newer relational store (distinct from the older Lookup Tables at /lookup_tables/). Returns {tables: [{id, name, folder_id, total_entries_count, updated_at}], page, per_page, count, folder_id}. If folder_id is omitted, the tool falls back to the folder visible in the current Workato URL (best-effort). Prerequisite: the active tab must be a logged-in Workato page.",
4826
4852
  inputSchema: {
4827
4853
  type: "object",
4828
4854
  properties: {
@@ -5267,7 +5293,7 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
5267
5293
  },
5268
5294
  {
5269
5295
  name: WORKATO_TOOL_NAMES.WORKATO_LCAP.APPS_LIST,
5270
- description: "List the Workflow Apps (LCAP) in the current workspace: id, name, project_id, unique_id, live. Read-only. There is no endpoint that lists the PAGES in an app - page ids come from the builder URL (app.workato.com/lcap/pages/<id>) or the project's asset view. Requires an open Workato tab in the right workspace.",
5296
+ description: "List the Workflow Apps (LCAP) in the current workspace. Returns {app_count, apps: [{id, name, project_id, unique_id, live}]}. Read-only. There is no endpoint that lists the PAGES in an app - page ids come from the builder URL (app.workato.com/lcap/pages/<id>) or the project's asset view. Requires an open Workato tab in the right workspace.",
5271
5297
  inputSchema: {
5272
5298
  type: "object",
5273
5299
  properties: {
@@ -5520,6 +5546,52 @@ connection_id must be a real connection id: an adapter name (logger, workato_pub
5520
5546
  }
5521
5547
  ];
5522
5548
 
5549
+ // src/modules/workato/tool-kinds.ts
5550
+ var WORKATO_READ_ONLY_TOOL_NAMES = [
5551
+ "workato_whoami",
5552
+ "workato_session_context",
5553
+ "workato_pull_recipe",
5554
+ "workato_recipe_grep",
5555
+ "workato_recipe_status",
5556
+ "workato_recipe_version_diff",
5557
+ "workato_recipe_validate",
5558
+ "workato_recipe_callers",
5559
+ "workato_recipe_connections",
5560
+ "workato_recipe_step_search",
5561
+ "workato_job_trace",
5562
+ "workato_list_jobs",
5563
+ "workato_search_recipes",
5564
+ "workato_search_connections",
5565
+ "workato_get_connection",
5566
+ "workato_deployments_list",
5567
+ "workato_list_folders",
5568
+ "workato_adapter_meta",
5569
+ "workato_apps_list",
5570
+ "workato_pick_list",
5571
+ "workato_datapill",
5572
+ "workato_lookup_tables_list",
5573
+ "workato_lookup_table_get",
5574
+ "workato_lookup_table_row_search",
5575
+ "workato_data_tables_list",
5576
+ "workato_data_table_get",
5577
+ "workato_data_table_row_list",
5578
+ "workato_lcap_apps_list",
5579
+ "workato_lcap_page_get",
5580
+ "workato_ui_list_steps"
5581
+ ];
5582
+ var WORKATO_DESTRUCTIVE_TOOL_NAMES = [
5583
+ "workato_delete_recipe",
5584
+ "workato_delete_folder",
5585
+ "workato_lookup_table_delete",
5586
+ "workato_lookup_table_row_delete",
5587
+ "workato_data_table_delete",
5588
+ "workato_data_table_delete_column",
5589
+ "workato_data_table_row_delete",
5590
+ "workato_lcap_page_delete"
5591
+ ];
5592
+ var DOM_READERS = ["workato_ui_list_steps"];
5593
+ var WORKATO_TAB_SHARED_TOOL_NAMES = /* @__PURE__ */ WORKATO_READ_ONLY_TOOL_NAMES.filter((name) => !DOM_READERS.includes(name));
5594
+
5523
5595
  // src/modules/workato/index.ts
5524
5596
  var WORKATO_MODULE_ID = "workato";
5525
5597
  var WORKATO_MODULE_TITLE = "Workato";
@@ -5528,11 +5600,175 @@ var WORKATO_MODULE = {
5528
5600
  title: WORKATO_MODULE_TITLE,
5529
5601
  tools: WORKATO_TOOL_SCHEMAS,
5530
5602
  instructions: WORKATO_INSTRUCTIONS,
5531
- aliases: WORKATO_TOOL_ALIASES
5603
+ aliases: WORKATO_TOOL_ALIASES,
5604
+ readOnlyTools: WORKATO_READ_ONLY_TOOL_NAMES,
5605
+ destructiveTools: WORKATO_DESTRUCTIVE_TOOL_NAMES
5606
+ };
5607
+
5608
+ // src/modules/netsuite/instructions.ts
5609
+ var NETSUITE_INSTRUCTIONS = "NetSuite: login page -> netsuite_session_ensure (imported: reload); log in only on none, then netsuite_session_publish.";
5610
+
5611
+ // src/modules/netsuite/tool-names.ts
5612
+ var NETSUITE_TOOL_NAMES = {
5613
+ NETSUITE_SESSION: {
5614
+ STATUS: "netsuite_session_status",
5615
+ ENSURE: "netsuite_session_ensure",
5616
+ PUBLISH: "netsuite_session_publish",
5617
+ LOCK: "netsuite_session_lock",
5618
+ UNLOCK: "netsuite_session_unlock"
5619
+ }
5620
+ };
5621
+ var NETSUITE_READ_ONLY_TOOL_NAMES = ["netsuite_session_status"];
5622
+ var NETSUITE_DESTRUCTIVE_TOOL_NAMES = [];
5623
+ var NETSUITE_FN_TOOL_NAMES = [
5624
+ "netsuite_session_ensure",
5625
+ "netsuite_session_publish",
5626
+ "netsuite_session_lock",
5627
+ "netsuite_session_unlock"
5628
+ ];
5629
+
5630
+ // src/modules/netsuite/schemas.ts
5631
+ var T = NETSUITE_TOOL_NAMES.NETSUITE_SESSION;
5632
+ var NETSUITE_TOOL_SCHEMAS = [
5633
+ {
5634
+ name: T.STATUS,
5635
+ description: "The NetSuite sessions the shared store holds: account, user, role, state (live, dying, dead), login and expiry times, last activity, holders, lock, fp (8-char fingerprint). Metadata only. state store_unconfigured: this machine has no store token; no_store: the store is not reachable (behave as without it).",
5636
+ inputSchema: {
5637
+ type: "object",
5638
+ properties: {
5639
+ account: {
5640
+ ...{
5641
+ type: "string",
5642
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5643
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5644
+ },
5645
+ description: "Only this account."
5646
+ }
5647
+ }
5648
+ }
5649
+ },
5650
+ {
5651
+ name: T.ENSURE,
5652
+ description: "Give this Chrome profile the store's live session for an account, so it needs no login. Returns state imported (cookies set in the profile; reload the NetSuite page), partial_import (Chrome refused some cookies), already_live (the profile already has that session), none (nothing alive: log in, then netsuite_session_publish), locked_by {holder, until} (another machine is logging in), store_unconfigured or no_store (no store: behave as without it). The user is the vault item's username when vault_item is given (only an item for this account's site; the name is not echoed, user_source: vault), else the one this profile used last for the account, else the only live one. Never returns a cookie value.",
5653
+ inputSchema: {
5654
+ type: "object",
5655
+ properties: {
5656
+ account: {
5657
+ type: "string",
5658
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5659
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5660
+ },
5661
+ user: { type: "string", description: "NetSuite user email to take the session of." },
5662
+ vault_item: {
5663
+ type: "string",
5664
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5665
+ description: "Bitwarden item id: its username is the user (the item's password is never read)."
5666
+ },
5667
+ wait_for_lock: {
5668
+ type: "boolean",
5669
+ default: false,
5670
+ description: "When another machine holds the login lock, wait (polling every 3 s) until it publishes or the lock ends."
5671
+ }
5672
+ },
5673
+ required: ["account"]
5674
+ }
5675
+ },
5676
+ {
5677
+ name: T.PUBLISH,
5678
+ description: "Put this profile's live session for an account into the store, so other machines can use it. Returns published, unchanged (the store already has it), no_session (no session cookie for the account in this profile), store_unconfigured or no_store. The user and role come from an open tab of the account, else from vault_item or user.",
5679
+ inputSchema: {
5680
+ type: "object",
5681
+ properties: {
5682
+ account: {
5683
+ type: "string",
5684
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5685
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5686
+ },
5687
+ user: {
5688
+ type: "string",
5689
+ description: "NetSuite user email, when no tab of the account is open."
5690
+ },
5691
+ vault_item: {
5692
+ type: "string",
5693
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5694
+ description: "Bitwarden item id whose username is the user, when no tab is open."
5695
+ },
5696
+ login_at: {
5697
+ type: "boolean",
5698
+ default: false,
5699
+ description: "This session was just logged in (sets login_at to now)."
5700
+ }
5701
+ },
5702
+ required: ["account"]
5703
+ }
5704
+ },
5705
+ {
5706
+ name: T.LOCK,
5707
+ description: "Take the login lock for an account and user before a login, so two machines do not log in at once (each would end the other). Returns locked {until}, locked_by {holder, until}, store_unconfigured or no_store. A publish or netsuite_session_unlock releases it; it ends by itself after ttl_s.",
5708
+ inputSchema: {
5709
+ type: "object",
5710
+ properties: {
5711
+ account: {
5712
+ type: "string",
5713
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5714
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5715
+ },
5716
+ user: { type: "string", description: "NetSuite user email." },
5717
+ vault_item: {
5718
+ type: "string",
5719
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5720
+ description: "Bitwarden item id whose username is the user."
5721
+ },
5722
+ run_id: { type: "string", description: "Run id for the lock holder (shown to others)." },
5723
+ ttl_s: {
5724
+ type: "integer",
5725
+ minimum: 10,
5726
+ maximum: 120,
5727
+ default: 120,
5728
+ description: "Seconds the lock lasts."
5729
+ }
5730
+ },
5731
+ required: ["account"]
5732
+ }
5733
+ },
5734
+ {
5735
+ name: T.UNLOCK,
5736
+ description: "Release the login lock this machine and profile hold for an account and user. Returns unlocked, store_unconfigured or no_store.",
5737
+ inputSchema: {
5738
+ type: "object",
5739
+ properties: {
5740
+ account: {
5741
+ type: "string",
5742
+ pattern: "^([0-9]+|[Tt][Dd][0-9]+|[Tt][Ss][Tt][Dd][Rr][Vv][0-9]+)([_-][A-Za-z0-9]+)?$",
5743
+ description: "NetSuite account id: 1234567, 1234567_SB2, td3125712, tstdrv1234567 (any case)."
5744
+ },
5745
+ user: { type: "string", description: "NetSuite user email." },
5746
+ vault_item: {
5747
+ type: "string",
5748
+ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
5749
+ description: "Bitwarden item id whose username is the user."
5750
+ },
5751
+ run_id: { type: "string", description: "The run id the lock was taken with, if any." }
5752
+ },
5753
+ required: ["account"]
5754
+ }
5755
+ }
5756
+ ];
5757
+
5758
+ // src/modules/netsuite/index.ts
5759
+ var NETSUITE_MODULE_ID = "netsuite";
5760
+ var NETSUITE_MODULE_TITLE = "NetSuite";
5761
+ var NETSUITE_MODULE = {
5762
+ id: NETSUITE_MODULE_ID,
5763
+ title: NETSUITE_MODULE_TITLE,
5764
+ tools: NETSUITE_TOOL_SCHEMAS,
5765
+ instructions: NETSUITE_INSTRUCTIONS,
5766
+ readOnlyTools: NETSUITE_READ_ONLY_TOOL_NAMES,
5767
+ destructiveTools: NETSUITE_DESTRUCTIVE_TOOL_NAMES
5532
5768
  };
5533
5769
 
5534
5770
  // src/modules/index.ts
5535
- var MODULES = [WORKATO_MODULE];
5771
+ var MODULES = [WORKATO_MODULE, NETSUITE_MODULE];
5536
5772
  var TOOL_NAMES = {
5537
5773
  BROWSER: CORE_TOOL_NAMES.BROWSER,
5538
5774
  BRIDGE: CORE_TOOL_NAMES.BRIDGE,
@@ -5542,7 +5778,8 @@ var TOOL_NAMES = {
5542
5778
  WORKATO_LCAP: WORKATO_TOOL_NAMES.WORKATO_LCAP,
5543
5779
  WORKATO_LOOKUP: WORKATO_TOOL_NAMES.WORKATO_LOOKUP,
5544
5780
  WORKATO_DATA_TABLE: WORKATO_TOOL_NAMES.WORKATO_DATA_TABLE,
5545
- WORKATO_SESSION: WORKATO_TOOL_NAMES.WORKATO_SESSION
5781
+ WORKATO_SESSION: WORKATO_TOOL_NAMES.WORKATO_SESSION,
5782
+ NETSUITE_SESSION: NETSUITE_TOOL_NAMES.NETSUITE_SESSION
5546
5783
  };
5547
5784
  var TOOL_SCHEMAS = /* @__PURE__ */ allToolSchemas();
5548
5785
  function allToolSchemas() {
@@ -5830,20 +6067,34 @@ function normalizePositiveInt(value, fallback) {
5830
6067
  return Math.max(1, n);
5831
6068
  }
5832
6069
  export {
6070
+ CORE_DESTRUCTIVE_TOOL_NAMES,
6071
+ CORE_READ_ONLY_TOOL_NAMES,
5833
6072
  CORE_TOOL_NAMES,
5834
6073
  CORE_TOOL_SCHEMAS,
5835
6074
  DEFAULT_MAX_OUTPUT_BYTES,
5836
6075
  DEFAULT_SERVER_PORT,
5837
6076
  HOST_NAME,
5838
6077
  MODULES,
6078
+ NETSUITE_DESTRUCTIVE_TOOL_NAMES,
6079
+ NETSUITE_FN_TOOL_NAMES,
6080
+ NETSUITE_INSTRUCTIONS,
6081
+ NETSUITE_MODULE,
6082
+ NETSUITE_MODULE_ID,
6083
+ NETSUITE_MODULE_TITLE,
6084
+ NETSUITE_READ_ONLY_TOOL_NAMES,
6085
+ NETSUITE_TOOL_NAMES,
6086
+ NETSUITE_TOOL_SCHEMAS,
5839
6087
  NativeMessageType,
5840
6088
  RAW_MAX_OUTPUT_BYTES,
5841
6089
  TOOL_NAMES,
5842
6090
  TOOL_SCHEMAS,
6091
+ WORKATO_DESTRUCTIVE_TOOL_NAMES,
5843
6092
  WORKATO_INSTRUCTIONS,
5844
6093
  WORKATO_MODULE,
5845
6094
  WORKATO_MODULE_ID,
5846
6095
  WORKATO_MODULE_TITLE,
6096
+ WORKATO_READ_ONLY_TOOL_NAMES,
6097
+ WORKATO_TAB_SHARED_TOOL_NAMES,
5847
6098
  WORKATO_TOOL_ALIASES,
5848
6099
  WORKATO_TOOL_NAMES,
5849
6100
  WORKATO_TOOL_SCHEMAS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mokuhub/mokutab-shared",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "Tool schemas shared by the MokuTab bridge and Chrome extension",
5
5
  "author": "Roman Chikalenko <chikalenkor@gmail.com>",
6
6
  "license": "MIT",