@agimon-ai/po-computer-use 0.0.0-alpha.204 → 0.0.0-alpha.206

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.
@@ -1649,10 +1649,26 @@ var route_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoutedCont
1649
1649
  var computer_use_server_default$1 = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)((context) => context.root.commands.find((command) => command.name === "computer-use"), { cardinality: "optional" });
1650
1650
  //#endregion
1651
1651
  //#region src/extensions/workspaces/sessions/(backend)/hook/before-agent-start.server.ts
1652
- var before_agent_start_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)((context) => context.root.hooks?.find((hook) => hook.event === "before_agent_start"), { cardinality: "optional" });
1652
+ var before_agent_start_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)((0, _agimon_ai_po_core_extensionFile.defineHook)((context) => {
1653
+ const hook = context.root.hooks?.find((hook) => hook.event === "before_agent_start");
1654
+ if (hook === void 0) return void 0;
1655
+ return {
1656
+ ...hook,
1657
+ name: "inject-computer-use-guidance",
1658
+ description: "In computer-use mode with an available enabled desktop and approval capability, append active-control or narrow-grant request guidance."
1659
+ };
1660
+ }), { cardinality: "optional" });
1653
1661
  //#endregion
1654
1662
  //#region src/extensions/workspaces/sessions/(backend)/hook/session-shutdown.server.ts
1655
- var session_shutdown_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)((context) => context.root.hooks?.find((hook) => hook.event === "session_shutdown"), { cardinality: "optional" });
1663
+ var session_shutdown_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)((0, _agimon_ai_po_core_extensionFile.defineHook)((context) => {
1664
+ const hook = context.root.hooks?.find((hook) => hook.event === "session_shutdown");
1665
+ if (hook === void 0) return void 0;
1666
+ return {
1667
+ ...hook,
1668
+ name: "stop-computer-use-session",
1669
+ description: "In computer-use mode, stop the session activity and stop the desktop client unless it is inactive or failed."
1670
+ };
1671
+ }), { cardinality: "optional" });
1656
1672
  //#endregion
1657
1673
  //#region src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-computer-use.server.ts
1658
1674
  var codemode_how_to_computer_use_server_default = (0, _agimon_ai_po_core_extensionFile.defineResource)({