aws-runtime-bridge 1.9.185 → 1.9.189

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 (85) hide show
  1. package/CHANGELOG.md +1767 -1640
  2. package/README.md +256 -256
  3. package/dist/adapter/AcodeSdkAdapter.js +3 -3
  4. package/dist/adapter/types.js +1 -1
  5. package/dist/browser/browser-pool.d.ts +2 -0
  6. package/dist/browser/browser-pool.js +1 -1
  7. package/dist/config.d.ts +12 -0
  8. package/dist/config.js +2 -2
  9. package/dist/index.js +1 -1
  10. package/dist/remote-desktop/win32-api.js +1 -1
  11. package/dist/routes/background-tasks.js +4 -4
  12. package/dist/routes/dashboard.js +17 -17
  13. package/dist/routes/file-browser.js +1 -1
  14. package/dist/routes/terminal.js +19 -19
  15. package/dist/services/acode-bg-manager.js +1 -1
  16. package/dist/services/auto-register.js +1 -1
  17. package/dist/services/instance-features.d.ts +9 -0
  18. package/dist/services/instance-features.js +1 -1
  19. package/dist/services/launch-manager.d.ts +33 -0
  20. package/dist/services/launch-manager.js +7 -7
  21. package/dist/services/launch-streams.d.ts +2 -0
  22. package/dist/services/launch-streams.js +4 -4
  23. package/dist/services/panel-auth.d.ts +4 -0
  24. package/dist/services/panel-auth.js +1 -1
  25. package/dist/services/plugin-handler-adapter.js +2 -2
  26. package/dist/services/port-detector.js +5 -5
  27. package/dist/services/workspace-files.d.ts +4 -0
  28. package/dist/services/workspace-files.js +1 -1
  29. package/dist/utils/dynamic-import.d.ts +31 -0
  30. package/dist/utils/dynamic-import.js +2 -0
  31. package/dist/utils/sdk-package-loader.js +1 -1
  32. package/node_modules/playwright/cli.js +0 -0
  33. package/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -0
  34. package/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -0
  35. package/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -0
  36. package/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -0
  37. package/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -0
  38. package/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -0
  39. package/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -0
  40. package/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -0
  41. package/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -0
  42. package/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -0
  43. package/node_modules/playwright-core/cli.js +0 -0
  44. package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
  45. package/node_modules/playwright-core/lib/xdg-open +0 -0
  46. package/package/acode/dist/await-complete-tool.js +3 -3
  47. package/package/acode/dist/mcpToolNames.js +1 -1
  48. package/package/acode/dist/runtime.d.ts +9 -0
  49. package/package/acode/dist/runtime.js +20 -21
  50. package/package/acode/dist/sub-agent-manager.d.ts +33 -0
  51. package/package/acode/dist/sub-agent-manager.js +9 -1
  52. package/package/acode/dist/sub-agent-tools.d.ts +4 -0
  53. package/package/acode/dist/sub-agent-tools.js +27 -12
  54. package/package/acode/dist/subagent-handback.d.ts +16 -0
  55. package/package/acode/dist/subagent-handback.js +7 -0
  56. package/package/acode/dist/tool-allocation.js +1 -1
  57. package/package/acode/package.json +38 -38
  58. package/package/aws-client-agent-mcp/dist/agent-client.d.ts +14 -5
  59. package/package/aws-client-agent-mcp/dist/agent-client.js +1 -1
  60. package/package/aws-client-agent-mcp/dist/mcp-server.d.ts +31 -1
  61. package/package/aws-client-agent-mcp/dist/mcp-server.js +16 -16
  62. package/package/aws-client-agent-mcp/dist/mcp-tools.d.ts +23 -1
  63. package/package/aws-client-agent-mcp/dist/mcp-tools.js +35 -19
  64. package/package/aws-client-agent-mcp/dist/message-buffer.d.ts +10 -0
  65. package/package/aws-client-agent-mcp/dist/message-buffer.js +1 -1
  66. package/package/aws-client-agent-mcp/dist/status-reporter.js +1 -1
  67. package/package/aws-client-agent-mcp/dist/tool-groups.js +2 -2
  68. package/package/aws-client-agent-mcp/dist/types.d.ts +84 -6
  69. package/package/aws-client-agent-mcp/package.json +53 -53
  70. package/package.json +134 -132
  71. /package/package/acode/dist/grammars/{grammars/tree-sitter-bash.wasm → tree-sitter-bash.wasm} +0 -0
  72. /package/package/acode/dist/grammars/{grammars/tree-sitter-c-sharp.wasm → tree-sitter-c-sharp.wasm} +0 -0
  73. /package/package/acode/dist/grammars/{grammars/tree-sitter-c.wasm → tree-sitter-c.wasm} +0 -0
  74. /package/package/acode/dist/grammars/{grammars/tree-sitter-cpp.wasm → tree-sitter-cpp.wasm} +0 -0
  75. /package/package/acode/dist/grammars/{grammars/tree-sitter-go.wasm → tree-sitter-go.wasm} +0 -0
  76. /package/package/acode/dist/grammars/{grammars/tree-sitter-java.wasm → tree-sitter-java.wasm} +0 -0
  77. /package/package/acode/dist/grammars/{grammars/tree-sitter-javascript.wasm → tree-sitter-javascript.wasm} +0 -0
  78. /package/package/acode/dist/grammars/{grammars/tree-sitter-jsx.wasm → tree-sitter-jsx.wasm} +0 -0
  79. /package/package/acode/dist/grammars/{grammars/tree-sitter-lua.wasm → tree-sitter-lua.wasm} +0 -0
  80. /package/package/acode/dist/grammars/{grammars/tree-sitter-php.wasm → tree-sitter-php.wasm} +0 -0
  81. /package/package/acode/dist/grammars/{grammars/tree-sitter-python.wasm → tree-sitter-python.wasm} +0 -0
  82. /package/package/acode/dist/grammars/{grammars/tree-sitter-ruby.wasm → tree-sitter-ruby.wasm} +0 -0
  83. /package/package/acode/dist/grammars/{grammars/tree-sitter-rust.wasm → tree-sitter-rust.wasm} +0 -0
  84. /package/package/acode/dist/grammars/{grammars/tree-sitter-tsx.wasm → tree-sitter-tsx.wasm} +0 -0
  85. /package/package/acode/dist/grammars/{grammars/tree-sitter-typescript.wasm → tree-sitter-typescript.wasm} +0 -0
@@ -1,4 +1,4 @@
1
- const _=6e5,g=`Block and wait for one or more sub-agents AND/OR background commands to complete.
1
+ import{formatSubagentHandback as h,formatSubagentPartialHandback as _}from"./subagent-handback.js";const b=10*6e4,f=`Block and wait for one or more sub-agents AND/OR background commands to complete.
2
2
 
3
3
  This is the unified replacement for the old await_sub_agents: it can wait for BOTH
4
4
  sub-agents (spawned via sub_agent) and background commands (started via Bash with
@@ -16,6 +16,6 @@ Guidelines:
16
16
  - Pass sub-agent IDs in 'sub_agent_ids' and/or background command task_ids in 'bg_cmd_ids'
17
17
  - At least one of the two arrays must be non-empty
18
18
  - Use timeout_ms to bound the wait (default 600000 = 10 minutes; 0 = wait forever)
19
- - After this returns, call poll_message to receive any pending messages`;function h(o){return{kind:"builtin",toolName:"await_complete",exposedName:"await_complete",concurrencyMode:"blocking",description:g,inputSchema:{type:"object",properties:{sub_agent_ids:{type:"array",items:{type:"string"},description:"Array of sub-agent IDs to wait for (from sub_agent). Empty if none."},bg_cmd_ids:{type:"array",items:{type:"string"},description:"Array of background command task_ids to wait for (from Bash wait_seconds or list_background_commands). Empty if none."},timeout_ms:{type:"number",description:"Maximum time to wait in milliseconds, applied to the whole JOIN. 0 = no timeout (wait forever). Default: 600000 (10 minutes)."}},additionalProperties:!1},async execute(n){const l=typeof n.timeout_ms=="number"?n.timeout_ms:6e5,m=n.sub_agent_ids,c=n.bg_cmd_ids,i=Array.isArray(m)?m.filter(t=>typeof t=="string"&&t.trim().length>0):[],u=Array.isArray(c)?c.filter(t=>typeof t=="string"&&t.trim().length>0):[];if(i.length===0&&u.length===0)return{title:"await_complete validation error",output:"Invalid input: provide at least one of 'sub_agent_ids' or 'bg_cmd_ids'.",metadata:{error:!0}};if(i.length>0&&!o.awaitSubAgents)return{title:"await_complete error",output:"sub_agent_ids provided but sub-agent manager is not enabled for this agent.",metadata:{error:!0}};try{let t=[];i.length>0&&o.awaitSubAgents&&(t=await o.awaitSubAgents(i,l)??[]);let a=[];u.length>0&&(a=await o.awaitBgCommands(u,l));const s=[],p=[],d=[];if(t.length>0){s.push(`=== ${t.length} sub-agent(s) ===`);for(const e of t)s.push(`[${e.status}] ${e.subId}`),e.error?(s.push("<task_error>"),s.push(e.error),s.push("</task_error>")):(s.push("<task_result>"),s.push(e.output||"(empty output)"),s.push("</task_result>")),s.push(""),p.push(e)}if(a.length>0){s.push(`=== ${a.length} background command(s) ===`);for(const e of a){if(!e){s.push("[not_found] (unknown task_id)"),s.push(""),d.push(null);continue}const r=[];e.timedOut&&r.push("timed_out"),e.aborted&&r.push("aborted"),s.push(`[${e.status}] ${e.taskId} exit=${e.exitCode??"?"}`+(r.length?` (${r.join(",")})`:"")+(e.outputFilePath?` output=${e.outputFilePath}`:"")),s.push(""),d.push(e)}}return{title:`awaited ${t.length+a.length} item(s)`,output:s.join(`
20
- `),metadata:{total:t.length+a.length,sub_agents:p,bg_cmds:d}}}catch(t){return{title:"await_complete error",output:`Failed to await: ${t instanceof Error?t.message:String(t)}`,metadata:{error:!0}}}}}}export{h as createAwaitCompleteTool};
19
+ - After this returns, call poll_message to receive any pending messages`;function k(n){return{kind:"builtin",toolName:"await_complete",exposedName:"await_complete",concurrencyMode:"blocking",description:f,inputSchema:{type:"object",properties:{sub_agent_ids:{type:"array",items:{type:"string"},description:"Array of sub-agent IDs to wait for (from sub_agent). Empty if none."},bg_cmd_ids:{type:"array",items:{type:"string"},description:"Array of background command task_ids to wait for (from Bash wait_seconds or list_background_commands). Empty if none."},timeout_ms:{type:"number",description:"Maximum time to wait in milliseconds, applied to the whole JOIN. 0 = no timeout (wait forever). Default: 600000 (10 minutes)."}},additionalProperties:!1},async execute(i){const u=typeof i.timeout_ms=="number"?i.timeout_ms:b,c=i.sub_agent_ids,p=i.bg_cmd_ids,d=Array.isArray(c)?c.filter(a=>typeof a=="string"&&a.trim().length>0):[],l=Array.isArray(p)?p.filter(a=>typeof a=="string"&&a.trim().length>0):[];if(d.length===0&&l.length===0)return{title:"await_complete validation error",output:"Invalid input: provide at least one of 'sub_agent_ids' or 'bg_cmd_ids'.",metadata:{error:!0}};if(d.length>0&&!n.awaitSubAgents)return{title:"await_complete error",output:"sub_agent_ids provided but sub-agent manager is not enabled for this agent.",metadata:{error:!0}};try{const a=Date.now()+u;let s=[];d.length>0&&n.awaitSubAgents&&(s=await n.awaitSubAgents(d,u)??[]);let r=[];l.length>0&&(r=await n.awaitBgCommands(l,u>0?Math.max(0,a-Date.now()):u));const e=[],g=[],m=[];if(s.length>0){e.push(`=== ${s.length} sub-agent(s) ===`);for(const t of s){if(e.push(`[${t.status}] ${t.subId}`),t.error&&(e.push("<task_error>"),e.push(t.error),e.push("</task_error>")),t.output){const o=t.error?"task_partial_output":"task_result";e.push(`<${o}>`),e.push(t.error?_(t.output):h(t.output)),e.push(`</${o}>`)}else t.error||(e.push("<task_result>"),e.push("(empty output)"),e.push("</task_result>"));e.push(""),g.push(t)}}if(r.length>0){e.push(`=== ${r.length} background command(s) ===`);for(const t of r){if(!t){e.push("[not_found] (unknown task_id)"),e.push(""),m.push(null);continue}const o=[];t.timedOut&&o.push("timed_out"),t.aborted&&o.push("aborted"),e.push(`[${t.status}] ${t.taskId} exit=${t.exitCode??"?"}`+(o.length?` (${o.join(",")})`:"")+(t.outputFilePath?` output=${t.outputFilePath}`:"")),e.push(""),m.push(t)}}return{title:`awaited ${s.length+r.length} item(s)`,output:e.join(`
20
+ `),metadata:{total:s.length+r.length,sub_agents:g,bg_cmds:m}}}catch(a){return{title:"await_complete error",output:`Failed to await: ${a instanceof Error?a.message:String(a)}`,metadata:{error:!0}}}}}}export{k as createAwaitCompleteTool};
21
21
 
@@ -1,2 +1,2 @@
1
- const s=new Set(["poll_message","get_message","send_private"]),i=new Set(["create_meeting"]),o=new Set(["poll_message","create_meeting"]);function t(e){const n=e.trim().toLowerCase();return n.split(/__|[./]/).filter(Boolean).at(-1)??n}function a(e){return s.has(t(e))}function c(e){return i.has(t(e))}function l(e){return o.has(t(e))}function m(e){return o.has(t(e))}export{t as getSemanticToolName,m as isMcpBatchExcludedToolName,c as isMcpBlockingToolName,l as isMcpIndefinitelyBlockingToolName,a as isMcpPollingToolName};
1
+ const s=new Set(["poll_message","get_message","send_private","get_send_status"]),a=new Set(["create_meeting"]),o=new Set(["poll_message","create_meeting"]);function t(e){const n=e.trim().toLowerCase();return n.split(/__|[./]/).filter(Boolean).at(-1)??n}function r(e){return s.has(t(e))}function c(e){return a.has(t(e))}function l(e){return o.has(t(e))}function _(e){return o.has(t(e))}export{t as getSemanticToolName,_ as isMcpBatchExcludedToolName,c as isMcpBlockingToolName,l as isMcpIndefinitelyBlockingToolName,r as isMcpPollingToolName};
2
2
 
@@ -963,6 +963,15 @@ export declare class ACodeRuntime extends EventEmitter {
963
963
 
964
964
 
965
965
 
966
+
967
+
968
+
969
+
970
+ private static buildSubAgentCompletionMessage;
971
+
972
+
973
+
974
+
966
975
  private static formatSubAgentCompletionAsPollResult;
967
976
 
968
977