agentroam-runtime-darwin-arm64 0.2.0-preview.73 → 0.2.0-preview.75
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/manifest.json +2 -3
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +8 -8
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +5 -5
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/calendar/route.js +3 -0
- package/runtime/.next/server/app/api/calendar/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +2 -2
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app-paths-manifest.json +37 -36
- package/runtime/.next/server/chunks/5303.js +1 -1
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/app/web/{error-077f54cd48d5a6c2.js → error-3cae58f0f14f0b4f.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-d5d7d1c5c74eef3c.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-7afa4cb0119e90b7.js +1 -0
- package/runtime/.next/static/chunks/{main-app-20135c1d85680f16.js → main-app-7a6902a607752446.js} +1 -1
- package/runtime/.next/static/chunks/{main-93c452d518291b1c.js → main-d8ef9def37924b01.js} +1 -1
- package/runtime/lib/device-pairing-gateway.mjs +6 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
- package/runtime/node_modules/.package-lock.json +125 -125
- package/runtime/node_modules/@agent/core/dist/index.js +86 -9
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +49 -19
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +96 -96
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +73 -71
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2h2qc9qv.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9sxfsmzx.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-zg882d22.mjs → core-ba5rrckm.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-dnsvg8nc.mjs +53 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-9je8ee1j.mjs → core-h6r54bwv.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-k67vj6j9.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-qbjntcdf.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-qj4dtgyt.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rn7tc54w.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-sstebd83.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-td7rt8zt.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-x3hc9abc.mjs → core-tf03rfab.mjs} +3 -3
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x4kwpwv9.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-y6bhrwmk.mjs +47 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-fxa8mwbm.mjs → core-ya1m7gzj.mjs} +3 -3
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +21 -21
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +25 -25
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +25 -21
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +88 -85
- package/runtime/package-lock.json +182 -158
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/{AIHubView-BQKD1oRa.js → AIHubView-BMeOfqfm.js} +1 -1
- package/runtime/webapp/dist/assets/{AgentManager-eTCpLsYc.js → AgentManager-CrN2B-tH.js} +1 -1
- package/runtime/webapp/dist/assets/{AiHubPane-LnfAKHOH.js → AiHubPane-Du6ajSsx.js} +1 -1
- package/runtime/webapp/dist/assets/App-zihaYk1L.js +179 -0
- package/runtime/webapp/dist/assets/{BrowserLivePanel-BvXuMltx.js → BrowserLivePanel-CU_X6OU2.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationCreateDialog-0xwWJVAB.js → CollaborationCreateDialog-BmgYdwe7.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationDashboard-CDuqbRZZ.js → CollaborationDashboard-mHU8iJYg.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationPage-BLv1g5Ke.js → CollaborationPage-Br5fhNce.js} +1 -1
- package/runtime/webapp/dist/assets/{FilePreview-DIsjFx4f.js → FilePreview-CevPpP6E.js} +3 -3
- package/runtime/webapp/dist/assets/{FileTree-BJe67ELr.js → FileTree-CagcHV1N.js} +1 -1
- package/runtime/webapp/dist/assets/{FileWorkspaceDrawer-PtNe21oN.js → FileWorkspaceDrawer-CWVndCXp.js} +1 -1
- package/runtime/webapp/dist/assets/{FlowStudioPane-DGv9czqf.js → FlowStudioPane-BZA-qvBj.js} +1 -1
- package/runtime/webapp/dist/assets/{LSPServerList-DZkbA5NX.js → LSPServerList-BMY6dFfG.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-DLJUT0j8.js → MCPServerList-c91QNM-g.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-B4synV6O.js → MemoryViewer-C9IfWwzW.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopPage-Db8WVCjo.js → RemoteDesktopPage-w8aL061W.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-DRhO-CVq.js → RunningSessionsIcon-B8Cr2-hp.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-C6En31sg.js → SessionDashboard-CFXXTm_4.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboardBridge--lNIU1u6.js → SessionDashboardBridge-Bx4EXtos.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-mJ5Ggwlp.js → SettingsPanel-CS4XL2sd.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-C_mt62Rc.js → SkillManager-5FZnR9My.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-D121NsSc.js → TerminalPane-CRrbd0i4.js} +1 -1
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-CSTtPfA-.js → abnfDiagram-VCTEODGH-DBioGYiE.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-pE43fNGK.js → arc-BRj_RXHL.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BlExjf1L.js → architectureDiagram-5GKGNRK7-CoCdq67U.js} +1 -1
- package/runtime/webapp/dist/assets/{arrow-right-CED95s1t.js → arrow-right-Cqqb1zqH.js} +1 -1
- package/runtime/webapp/dist/assets/{artifact-links-BWD7xpfV.js → artifact-links-73OZyi5W.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-4pzU0s_A.js → blockDiagram-I7D4REHJ-CLisIPjq.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-DBoJHf0c.js → c4Diagram-7LVT6UL2-BoLCIVW8.js} +1 -1
- package/runtime/webapp/dist/assets/channel-JGVZzkSo.js +1 -0
- package/runtime/webapp/dist/assets/{chevron-down-DuxUTH_N.js → chevron-down-DhZV290h.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-Bu1Sc-w9.js → chunk-2Q5K7J3B-CIQxwzU0.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-COwAF0w2.js → chunk-5VM5RSS4-Buiv0MCN.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-FLl8DRP2.js → chunk-F27PBJKO-XBMwIl6X.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BL8M_b-w.js → chunk-IMKFNOWR-C0NrkJOc.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-Bm0OpXaO.js → chunk-JWPE2WC7-CGON_UvB.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-Be_mjw7_.js → chunk-POPQ4Y6H-BXvOsc9g.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Dijp9l1U.js → chunk-SVP7TREG-ZD_qn-NK.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-CJDtjon2.js → chunk-TICWLB2K-DrB8f6RG.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-BLWOMtvS.js → chunk-XXDRQBXY-CYgLMn5t.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BnctJ00R.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BnctJ00R.js +1 -0
- package/runtime/webapp/dist/assets/{codeSyntax-BnmCqa8x.js → codeSyntax-DfQ5rLir.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-B0sTZDns.js → collaboration-CQhzjwS_.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-BrWLenKF.js → composer-file-routing-D9orqwzY.js} +1 -1
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-cA67vOKJ.js → cose-bilkent-JH36ORCC-CDPnTlcy.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-BPeSii-l.js → cynefin-OW5HDTMX-DDCxhkA5.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-B9f094pg.js → cynefinDiagram-5FMLGOSQ-CIJ1KBPA.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-C_xejuzH.js → dagre-GXQ25YYZ-CFX8O3IJ.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-0f77MjI_.js → diagram-S7CK7UJ4-B8UX2IBH.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-B7qqB6UY.js → diagram-UQ7AKVKN-Ce34DNrv.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-eS0I06tX.js → diagram-VSXAHHWV-CVL_erWD.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BzaPvwZL.js → diagram-VX7I27RA-DBFHI7Dk.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-C_EAUyuK.js → diagram-Z3DM3KII-Bw_QcSQY.js} +1 -1
- package/runtime/webapp/dist/assets/{download-DNa5KRtu.js → download-D3xZPWnZ.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CpSazgmq.js → ebnfDiagram-PWID7BFC-DRly04dj.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-BbAq4dnX.js → erDiagram-RLTQ6QDP-DTm817hG.js} +1 -1
- package/runtime/webapp/dist/assets/{external-link-D0ZU8y72.js → external-link-Cwu5rEgp.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-Bv8xIlsm.js → file-types-DKkhMnUV.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-FxtiM8S_.js → flowDiagram-HODETNUW-tc8ygZtG.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-vbQAmYA_.js → ganttDiagram-EL5Y4UJY-CsQFf1IN.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-CoH-vS6p.js → gitGraphDiagram-WWUBYQGX-DAIxbmPX.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-CMQPwQ1a.js → image-plus-nplydLA5.js} +1 -1
- package/runtime/webapp/dist/assets/index-B-d1Vs9E.css +1 -0
- package/runtime/webapp/dist/assets/{index-B_qrzBSm.js → index-DKm9ESDq.js} +50 -50
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BhQjKjwI.js → infoDiagram-27XIBGKW-CVcMW4UM.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Do6164Lq.js → ishikawaDiagram-5VMMS53U-zzlEtZ1l.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DU9terNG.js → journeyDiagram-3NMN7TZE-q7NuIMSl.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-PIi78bMz.js → kanban-definition-UXKFOSKX-DLYFZlKO.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-kIcBLq12.js → layout-PFWssIkE.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-DuoGw6Ne.js → linear-ZRVcojb1.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-CkN6rr8Q.js → loader-circle-DIW9tlEz.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CMSVAwDO.js → mermaid.core-C8Dl0Nah.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BqXezPt8.js → mindmap-definition-YA3MSWOX-BcbqtwVk.js} +1 -1
- package/runtime/webapp/dist/assets/{page-BJynASYd.js → page-BG97oPXr.js} +4 -4
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-CfhSiKuL.js → pegDiagram-XKGWAZYB-BQN3zQuy.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-D6dTu0HJ.js → pieDiagram-E7YTZNPT-pOgxh3os.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-B6Nk3my2.js → quadrantDiagram-AXDQQJYC-BOg7ujzG.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-9HdWlkSi.js → railroadDiagram-O6MQD6OU-CWsN3juJ.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CJ72A4ch.js → requirementDiagram-BXWQKSXE-B0yrO7Oy.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-CFOlggPt.js → rotate-ccw-O4wnfQP7.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-CV6TU7ho.js → rotate-cw-CCJtlAtB.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-B0k_-2GA.js → sankeyDiagram-P5KCCOFB-5MS_e-3E.js} +1 -1
- package/runtime/webapp/dist/assets/{send-Br8F4frT.js → send-Cdg4ZVlp.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-D-Vubzl4.js → sequenceDiagram-WJ2MYXX4-C1w8qYSu.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-B_G9IZRa.js → session-dashboard-BigU92sz.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-C_XCddHW.js → shield-check-CrjI2wPR.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-CDLZ64va.js → sizeCapture-INFHLROL-BonKTynC.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-D55B47_M.js → stateDiagram-D77RDMKH-D3mn6ZK5.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-WEfEW-mH.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-FSX6VCzY.js → swimlanes-42K2YHIH-Bn9KWChU.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-D26_Nmko.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-DGmgxtYO.js → timeline-definition-24CTP7MA-BfuhI7EF.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-Drt7yRIe.js → trash-2-BrfgMjfL.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BOD4WqhS.js → types-VnQ_cKrp.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-XbldOddh.js → vennDiagram-4TSXK5OY-CUFs5JyR.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-DrGMS-oH.js → wardleyDiagram-VM6X3IG4-C27HHz1A.js} +1 -1
- package/runtime/webapp/dist/assets/{web-Crv8v2xB.js → web-BOzkL-0Z.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DQg6oOed.js → web-CeCHmdwO.js} +1 -1
- package/runtime/webapp/dist/assets/{x-8eDWe1V2.js → x-DP1nC4qG.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-BClf-jGf.js → xychartDiagram-S5SC5T6Z-CQwRrSTf.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-CKWUyj9b.js → zoom-out-Dg7YyzcP.js} +1 -1
- package/runtime/webapp/dist/index.html +18 -3
- package/runtime/.next/static/chunks/app/web/layout-ebfc3a207c355453.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-b456468be8e8e8fa.js +0 -1
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +0 -13
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +0 -4
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +0 -128
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +0 -240
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +0 -133
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +0 -445
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +0 -479
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom//351/235/231/346/200/201/350/265/204/346/226/231/350/257/273/345/217/226/350/257/264/346/230/216.md +0 -34
- package/runtime/node_modules/@agent/messaging/dist/index.js +0 -1219
- package/runtime/node_modules/@agent/messaging/package.json +0 -7
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +0 -45
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +0 -19
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +0 -42
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +0 -17
- package/runtime/webapp/dist/assets/App-Cm4c_ukZ.js +0 -177
- package/runtime/webapp/dist/assets/channel-C029kbz3.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-DjlcT9EO.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-DjlcT9EO.js +0 -1
- package/runtime/webapp/dist/assets/index-DFMBt4EW.css +0 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DhVWnu4U.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-B677Rs5I.js +0 -8
- /package/runtime/.next/static/{fg72y0mrQ518VXPNOLU1t → xuZ1UJWVNJ-rxb5YgETmd}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{fg72y0mrQ518VXPNOLU1t → xuZ1UJWVNJ-rxb5YgETmd}/_ssgManifest.js +0 -0
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
import AppKit
|
|
3
|
-
import ApplicationServices
|
|
4
|
-
import Darwin
|
|
5
|
-
|
|
6
|
-
struct BridgeFailure: Error { let code: String; let message: String }
|
|
7
|
-
func fail(_ code: String, _ message: String) throws -> Never { throw BridgeFailure(code: code, message: message) }
|
|
8
|
-
func attr(_ element: AXUIElement, _ name: String) -> CFTypeRef? {
|
|
9
|
-
var value: CFTypeRef?
|
|
10
|
-
return AXUIElementCopyAttributeValue(element, name as CFString, &value) == .success ? value : nil
|
|
11
|
-
}
|
|
12
|
-
func text(_ element: AXUIElement, _ name: String) -> String { attr(element, name) as? String ?? "" }
|
|
13
|
-
func children(_ element: AXUIElement, _ name: String = kAXChildrenAttribute) -> [AXUIElement] {
|
|
14
|
-
attr(element, name) as? [AXUIElement] ?? []
|
|
15
|
-
}
|
|
16
|
-
func settable(_ element: AXUIElement, _ name: String) -> Bool {
|
|
17
|
-
var value = DarwinBoolean(false)
|
|
18
|
-
return AXUIElementIsAttributeSettable(element, name as CFString, &value) == .success && value.boolValue
|
|
19
|
-
}
|
|
20
|
-
func frame(_ element: AXUIElement) -> CGRect? {
|
|
21
|
-
guard let p = attr(element, kAXPositionAttribute), CFGetTypeID(p) == AXValueGetTypeID(),
|
|
22
|
-
let s = attr(element, kAXSizeAttribute), CFGetTypeID(s) == AXValueGetTypeID() else { return nil }
|
|
23
|
-
var point = CGPoint.zero; var size = CGSize.zero
|
|
24
|
-
guard AXValueGetValue(unsafeBitCast(p, to: AXValue.self), .cgPoint, &point),
|
|
25
|
-
AXValueGetValue(unsafeBitCast(s, to: AXValue.self), .cgSize, &size) else { return nil }
|
|
26
|
-
return CGRect(origin: point, size: size)
|
|
27
|
-
}
|
|
28
|
-
func flat(_ root: AXUIElement, maxDepth: Int = 20) -> [(AXUIElement, [Int])] {
|
|
29
|
-
var result: [(AXUIElement, [Int])] = []; var queue: [(AXUIElement, [Int])] = [(root, [])]; var next = 0
|
|
30
|
-
while next < queue.count && result.count < 3500 {
|
|
31
|
-
let item = queue[next]; next += 1; result.append(item)
|
|
32
|
-
if item.1.count < maxDepth { queue.append(contentsOf: children(item.0).enumerated().map { ($0.element, item.1 + [$0.offset]) }) }
|
|
33
|
-
}
|
|
34
|
-
return result
|
|
35
|
-
}
|
|
36
|
-
func snapshot(_ app: AXUIElement, compact: Bool = false) -> [[String: Any]] {
|
|
37
|
-
children(app, kAXWindowsAttribute).enumerated().map { index, window in
|
|
38
|
-
let nodes: [[String: Any]] = flat(window, maxDepth: compact ? 7 : 20).map { element, path in
|
|
39
|
-
var item: [String: Any] = ["path": path, "role": text(element, kAXRoleAttribute),
|
|
40
|
-
"title": text(element, kAXTitleAttribute), "value": text(element, kAXValueAttribute),
|
|
41
|
-
"description": text(element, kAXDescriptionAttribute), "valueSettable": settable(element, kAXValueAttribute),
|
|
42
|
-
"selectedSettable": settable(element, kAXSelectedAttribute),
|
|
43
|
-
"selected": attr(element, kAXSelectedAttribute) as? Bool ?? false,
|
|
44
|
-
"enabled": attr(element, kAXEnabledAttribute) as? Bool ?? true]
|
|
45
|
-
if let box = frame(element) { item["frame"] = [box.minX, box.minY, box.width, box.height] }
|
|
46
|
-
var actions: CFArray?
|
|
47
|
-
if AXUIElementCopyActionNames(element, &actions) == .success { item["actions"] = actions as? [String] ?? [] }
|
|
48
|
-
return item
|
|
49
|
-
}
|
|
50
|
-
return ["index": index, "title": text(window, kAXTitleAttribute), "subrole": text(window, kAXSubroleAttribute), "nodes": nodes]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
func resolve(_ root: AXUIElement, _ path: [Int]) throws -> AXUIElement {
|
|
54
|
-
var current = root
|
|
55
|
-
for index in path {
|
|
56
|
-
let values = children(current)
|
|
57
|
-
guard values.indices.contains(index) else { try fail("STALE_NODE", "Native control changed") }
|
|
58
|
-
current = values[index]
|
|
59
|
-
}
|
|
60
|
-
return current
|
|
61
|
-
}
|
|
62
|
-
func rowTitle(_ row: AXUIElement) -> String {
|
|
63
|
-
guard let box = frame(row) else { return "" }
|
|
64
|
-
return flat(row, maxDepth: 3).first { element, _ in
|
|
65
|
-
guard text(element, kAXRoleAttribute) == kAXStaticTextRole, let label = frame(element) else { return false }
|
|
66
|
-
return !text(element, kAXValueAttribute).isEmpty && label.minY < box.minY + 30 && label.minX > box.minX + 30
|
|
67
|
-
}.map { text($0.0, kAXValueAttribute) } ?? ""
|
|
68
|
-
}
|
|
69
|
-
func validateChat(_ window: AXUIElement, _ input: AXUIElement, _ request: [String: Any]) throws {
|
|
70
|
-
guard let expected = request["chatTitle"] as? String, !expected.isEmpty,
|
|
71
|
-
let path = request["headerPath"] as? [Int], (2...4).contains(path.count),
|
|
72
|
-
let inputPath = request["path"] as? [Int], Array(path.dropLast()) == Array(inputPath.prefix(path.count - 1)),
|
|
73
|
-
let inputBox = frame(input) else { try fail("RECIPIENT_UNVERIFIED", "发送前必须核对聊天标题") }
|
|
74
|
-
let header = try resolve(window, path)
|
|
75
|
-
guard [kAXTextFieldRole, kAXStaticTextRole].contains(text(header, kAXRoleAttribute)),
|
|
76
|
-
text(header, kAXValueAttribute) == expected, let box = frame(header),
|
|
77
|
-
box.minX >= inputBox.minX, box.minY < inputBox.minY else {
|
|
78
|
-
try fail("RECIPIENT_CHANGED", "聊天标题已变化,未发送")
|
|
79
|
-
}
|
|
80
|
-
let selected = flat(window, maxDepth: 5).filter { element, _ in
|
|
81
|
-
text(element, kAXRoleAttribute) == kAXRowRole && (attr(element, kAXSelectedAttribute) as? Bool ?? false)
|
|
82
|
-
&& (frame(element)?.minX ?? inputBox.minX) < inputBox.minX
|
|
83
|
-
}
|
|
84
|
-
guard selected.count == 1, rowTitle(selected[0].0) == expected else {
|
|
85
|
-
try fail("RECIPIENT_CHANGED", "所选会话与聊天标题不一致,未发送")
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
func ensureFront(_ application: NSRunningApplication, _ window: AXUIElement) throws {
|
|
89
|
-
_ = AXUIElementPerformAction(window, kAXRaiseAction as CFString)
|
|
90
|
-
application.activate(options: [.activateAllWindows])
|
|
91
|
-
let deadline = Date().addingTimeInterval(2)
|
|
92
|
-
while NSWorkspace.shared.frontmostApplication?.processIdentifier != application.processIdentifier && Date() < deadline {
|
|
93
|
-
RunLoop.current.run(until: Date().addingTimeInterval(0.05))
|
|
94
|
-
}
|
|
95
|
-
guard NSWorkspace.shared.frontmostApplication?.processIdentifier == application.processIdentifier else {
|
|
96
|
-
try fail("FOCUS_CHANGED", "WeCom could not become active")
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
func key(_ pid: pid_t, _ code: CGKeyCode, command: Bool = false) throws {
|
|
100
|
-
guard CGPreflightPostEventAccess() else { try fail("EVENT_PERMISSION_REQUIRED", "macOS event posting permission is required") }
|
|
101
|
-
guard NSWorkspace.shared.frontmostApplication?.processIdentifier == pid else { try fail("FOCUS_CHANGED", "Active application changed") }
|
|
102
|
-
guard let down = CGEvent(keyboardEventSource: nil, virtualKey: code, keyDown: true),
|
|
103
|
-
let up = CGEvent(keyboardEventSource: nil, virtualKey: code, keyDown: false) else {
|
|
104
|
-
try fail("EVENT_FAILED", "Could not construct keyboard event")
|
|
105
|
-
}
|
|
106
|
-
if command { down.flags = .maskCommand; up.flags = .maskCommand }
|
|
107
|
-
down.postToPid(pid); up.postToPid(pid)
|
|
108
|
-
RunLoop.current.run(until: Date().addingTimeInterval(0.2))
|
|
109
|
-
}
|
|
110
|
-
func click(_ element: AXUIElement, _ application: NSRunningApplication, _ window: AXUIElement) throws {
|
|
111
|
-
try ensureFront(application, window)
|
|
112
|
-
guard let box = frame(element), box.width > 0, box.height > 0 else { try fail("CONTROL_HIDDEN", "Native control is not visible") }
|
|
113
|
-
guard CGPreflightPostEventAccess() else { try fail("EVENT_PERMISSION_REQUIRED", "macOS event posting permission is required") }
|
|
114
|
-
let point = CGPoint(x: box.midX, y: box.midY)
|
|
115
|
-
guard let down = CGEvent(mouseEventSource: nil, mouseType: .leftMouseDown, mouseCursorPosition: point, mouseButton: .left),
|
|
116
|
-
let up = CGEvent(mouseEventSource: nil, mouseType: .leftMouseUp, mouseCursorPosition: point, mouseButton: .left) else {
|
|
117
|
-
try fail("EVENT_FAILED", "Could not construct mouse event")
|
|
118
|
-
}
|
|
119
|
-
down.postToPid(application.processIdentifier); up.postToPid(application.processIdentifier)
|
|
120
|
-
RunLoop.current.run(until: Date().addingTimeInterval(0.2))
|
|
121
|
-
}
|
|
122
|
-
func paste(_ value: String, _ element: AXUIElement, _ application: NSRunningApplication, _ window: AXUIElement) throws {
|
|
123
|
-
try ensureFront(application, window)
|
|
124
|
-
_ = AXUIElementSetAttributeValue(element, kAXFocusedAttribute as CFString, kCFBooleanTrue)
|
|
125
|
-
guard let focused = attr(AXUIElementCreateApplication(application.processIdentifier), kAXFocusedUIElementAttribute), CFEqual(focused, element) else {
|
|
126
|
-
try fail("INPUT_NOT_FOCUSED", "Requested input did not gain focus")
|
|
127
|
-
}
|
|
128
|
-
let board = NSPasteboard.general
|
|
129
|
-
let saved = (board.pasteboardItems ?? []).map { item -> [NSPasteboard.PasteboardType: Data] in
|
|
130
|
-
var values: [NSPasteboard.PasteboardType: Data] = [:]
|
|
131
|
-
for type in item.types { if let data = item.data(forType: type) { values[type] = data } }; return values
|
|
132
|
-
}
|
|
133
|
-
board.clearContents(); board.setString(value, forType: .string); let generation = board.changeCount
|
|
134
|
-
defer {
|
|
135
|
-
if board.changeCount == generation {
|
|
136
|
-
board.clearContents()
|
|
137
|
-
let items = saved.map { values -> NSPasteboardItem in
|
|
138
|
-
let item = NSPasteboardItem(); for (type, data) in values { item.setData(data, forType: type) }; return item
|
|
139
|
-
}
|
|
140
|
-
if !items.isEmpty { board.writeObjects(items) }
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
try key(application.processIdentifier, 9, command: true)
|
|
144
|
-
}
|
|
145
|
-
func execute(_ request: [String: Any]) throws -> [String: Any] {
|
|
146
|
-
guard AXIsProcessTrusted() else { try fail("ACCESSIBILITY_REQUIRED", "请在 macOS 无障碍权限中启用 AgentRoam 企微发送桥") }
|
|
147
|
-
guard let pid = request["pid"] as? Int32, let application = NSRunningApplication(processIdentifier: pid),
|
|
148
|
-
!application.isTerminated, application.executableURL?.path == "/Applications/企业微信.app/Contents/MacOS/企业微信" else {
|
|
149
|
-
try fail("CLIENT_MISSING", "未匹配指定的原版企微进程")
|
|
150
|
-
}
|
|
151
|
-
let app = AXUIElementCreateApplication(pid); AXUIElementSetMessagingTimeout(app, 2)
|
|
152
|
-
let operation = request["op"] as? String ?? "inspect"
|
|
153
|
-
if operation == "inspect" { return ["status": "ready", "version": 2, "pid": pid, "accessibility": true,
|
|
154
|
-
"postEvents": CGPreflightPostEventAccess(), "windows": snapshot(app, compact: request["compact"] as? Bool ?? false)] }
|
|
155
|
-
let windows = children(app, kAXWindowsAttribute)
|
|
156
|
-
guard let index = request["window"] as? Int, windows.indices.contains(index) else { try fail("WINDOW_MISSING", "Requested WeCom window is unavailable") }
|
|
157
|
-
let window = windows[index]
|
|
158
|
-
guard text(window, kAXTitleAttribute) == request["windowTitle"] as? String else { try fail("STALE_WINDOW", "WeCom window identity changed") }
|
|
159
|
-
if operation == "activate" { try ensureFront(application, window); return ["status": "ready"] }
|
|
160
|
-
if operation == "selectConversation" {
|
|
161
|
-
guard let expected = request["chatTitle"] as? String, !expected.isEmpty else { try fail("INVALID_REQUEST", "Conversation title is required") }
|
|
162
|
-
let matches = flat(window, maxDepth: 5).filter { text($0.0, kAXRoleAttribute) == kAXRowRole && rowTitle($0.0) == expected }
|
|
163
|
-
guard matches.count == 1 else { try fail("RECIPIENT_AMBIGUOUS", "未唯一匹配会话名称,请先在企微打开目标会话") }
|
|
164
|
-
try ensureFront(application, window)
|
|
165
|
-
let row = matches[0].0
|
|
166
|
-
guard rowTitle(row) == expected, settable(row, kAXSelectedAttribute),
|
|
167
|
-
AXUIElementSetAttributeValue(row, kAXSelectedAttribute as CFString, kCFBooleanTrue) == .success else {
|
|
168
|
-
try fail("SELECT_FAILED", "目标会话已变化或无法选择")
|
|
169
|
-
}
|
|
170
|
-
RunLoop.current.run(until: Date().addingTimeInterval(0.2))
|
|
171
|
-
return ["status": "ready"]
|
|
172
|
-
}
|
|
173
|
-
guard let path = request["path"] as? [Int], let role = request["role"] as? String else { try fail("INVALID_REQUEST", "A control path and role are required") }
|
|
174
|
-
let element = try resolve(window, path)
|
|
175
|
-
guard text(element, kAXRoleAttribute) == role else { try fail("STALE_NODE", "Native control role changed") }
|
|
176
|
-
if let expected = request["expectedValue"] as? String, text(element, kAXValueAttribute) != expected { try fail("STALE_NODE", "Native control content changed") }
|
|
177
|
-
switch operation {
|
|
178
|
-
case "select":
|
|
179
|
-
if let expected = request["expectedText"] as? String, rowTitle(element) != expected { try fail("STALE_NODE", "会话列表已重排") }
|
|
180
|
-
guard role == kAXRowRole, settable(element, kAXSelectedAttribute),
|
|
181
|
-
AXUIElementSetAttributeValue(element, kAXSelectedAttribute as CFString, kCFBooleanTrue) == .success else {
|
|
182
|
-
try fail("SELECT_FAILED", "Native row could not be selected")
|
|
183
|
-
}
|
|
184
|
-
case "click": try click(element, application, window)
|
|
185
|
-
case "paste":
|
|
186
|
-
guard [kAXTextAreaRole, kAXTextFieldRole].contains(role), settable(element, kAXValueAttribute),
|
|
187
|
-
let value = request["text"] as? String, value.utf8.count <= 20_000,
|
|
188
|
-
text(element, kAXValueAttribute).isEmpty else { try fail("DRAFT_PRESENT", "目标输入框已有草稿或内容无效,未覆盖") }
|
|
189
|
-
try ensureFront(application, window)
|
|
190
|
-
try validateChat(window, element, request)
|
|
191
|
-
try paste(value, element, application, window)
|
|
192
|
-
guard text(element, kAXValueAttribute) == value else { try fail("PASTE_FAILED", "正文未完整进入目标输入框,未发送") }
|
|
193
|
-
case "submit":
|
|
194
|
-
guard role == kAXTextAreaRole, let body = request["text"] as? String, !body.isEmpty,
|
|
195
|
-
text(element, kAXValueAttribute) == body, let header = request["chatTitle"] as? String, !header.isEmpty else {
|
|
196
|
-
try fail("DRAFT_CHANGED", "正文与已准备草稿不一致")
|
|
197
|
-
}
|
|
198
|
-
_ = header
|
|
199
|
-
try validateChat(window, element, request)
|
|
200
|
-
try ensureFront(application, window)
|
|
201
|
-
_ = AXUIElementSetAttributeValue(element, kAXFocusedAttribute as CFString, kCFBooleanTrue)
|
|
202
|
-
guard let focused = attr(app, kAXFocusedUIElementAttribute), CFEqual(focused, element) else { try fail("INPUT_NOT_FOCUSED", "发送输入框未获得焦点") }
|
|
203
|
-
try validateChat(window, element, request)
|
|
204
|
-
guard text(element, kAXValueAttribute) == body else { try fail("DRAFT_CHANGED", "发送前正文发生变化") }
|
|
205
|
-
try key(pid, 36)
|
|
206
|
-
return ["status": "submitted", "requiresVerification": true]
|
|
207
|
-
default: try fail("INVALID_OPERATION", "Unsupported local bridge operation")
|
|
208
|
-
}
|
|
209
|
-
RunLoop.current.run(until: Date().addingTimeInterval(0.15)); return ["status": "ready"]
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
let args = CommandLine.arguments
|
|
213
|
-
func argument(_ key: String) -> String? {
|
|
214
|
-
guard let index = args.firstIndex(of: key), index + 1 < args.count else { return nil }; return args[index + 1]
|
|
215
|
-
}
|
|
216
|
-
let application = NSApplication.shared; application.setActivationPolicy(.accessory)
|
|
217
|
-
if args.contains("--request-permission") {
|
|
218
|
-
let options = [kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String: true] as CFDictionary
|
|
219
|
-
_ = AXIsProcessTrustedWithOptions(options)
|
|
220
|
-
NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility")!)
|
|
221
|
-
exit(0)
|
|
222
|
-
}
|
|
223
|
-
var result: [String: Any]
|
|
224
|
-
do {
|
|
225
|
-
let data: Data
|
|
226
|
-
if let input = argument("--request") {
|
|
227
|
-
let attrs = try FileManager.default.attributesOfItem(atPath: input)
|
|
228
|
-
guard (attrs[.ownerAccountID] as? NSNumber)?.uint32Value == getuid(),
|
|
229
|
-
((attrs[.posixPermissions] as? NSNumber)?.intValue ?? 0) & 0o077 == 0 else { try fail("INPUT_PERMISSIONS", "Bridge input must be private to the current user") }
|
|
230
|
-
data = try Data(contentsOf: URL(fileURLWithPath: input))
|
|
231
|
-
} else { data = FileHandle.standardInput.readDataToEndOfFile() }
|
|
232
|
-
guard data.count <= 65_536, let request = try JSONSerialization.jsonObject(with: data) as? [String: Any] else { try fail("INVALID_REQUEST", "Expected a bounded JSON object") }
|
|
233
|
-
result = try execute(request)
|
|
234
|
-
} catch let error as BridgeFailure { result = ["status": "blocked", "code": error.code, "error": error.message]
|
|
235
|
-
} catch { result = ["status": "blocked", "code": "BRIDGE_ERROR", "error": error.localizedDescription] }
|
|
236
|
-
let output = try! JSONSerialization.data(withJSONObject: result, options: [.sortedKeys])
|
|
237
|
-
if let path = argument("--response") {
|
|
238
|
-
try! output.write(to: URL(fileURLWithPath: path), options: [.atomic])
|
|
239
|
-
try! FileManager.default.setAttributes([.posixPermissions: 0o600], ofItemAtPath: path)
|
|
240
|
-
} else { FileHandle.standardOutput.write(output); FileHandle.standardOutput.write(Data([10])) }
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# Codec adapted from the own-account wechat-research tools/wework_decrypt.py, reviewed 2026-11-03.
|
|
2
|
-
#!/usr/bin/env python3
|
|
3
|
-
"""Offline decryptor for WeCom 5.0.13 local SQLite databases (own account only).
|
|
4
|
-
|
|
5
|
-
Key input is the account VID encoded as 8-byte little-endian, matching the
|
|
6
|
-
recovered sqlite3_key path. Reads the original database read-only and writes a
|
|
7
|
-
new plaintext copy; never modifies the source and never touches a running app.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
import argparse
|
|
11
|
-
import ctypes
|
|
12
|
-
import hashlib
|
|
13
|
-
import json
|
|
14
|
-
import sqlite3
|
|
15
|
-
import struct
|
|
16
|
-
from pathlib import Path
|
|
17
|
-
|
|
18
|
-
PDF_PAD = bytes.fromhex(
|
|
19
|
-
"28bf4e5e4e758a4164004e56fffa01082"
|
|
20
|
-
"e2e00b6d0683e802f0ca9fe6453697a"
|
|
21
|
-
)
|
|
22
|
-
SQLITE_HEADER = b"SQLite format 3\x00"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def md5(data):
|
|
26
|
-
return hashlib.md5(data).digest()
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def rc4(key, data):
|
|
30
|
-
state = list(range(256))
|
|
31
|
-
j = 0
|
|
32
|
-
for i in range(256):
|
|
33
|
-
j = (j + state[i] + key[i % len(key)]) & 255
|
|
34
|
-
state[i], state[j] = state[j], state[i]
|
|
35
|
-
i = j = 0
|
|
36
|
-
out = bytearray()
|
|
37
|
-
for value in data:
|
|
38
|
-
i = (i + 1) & 255
|
|
39
|
-
j = (j + state[i]) & 255
|
|
40
|
-
state[i], state[j] = state[j], state[i]
|
|
41
|
-
out.append(value ^ state[(state[i] + state[j]) & 255])
|
|
42
|
-
return bytes(out)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def derive_base_key(password):
|
|
46
|
-
padded = password[:32] + PDF_PAD[:max(0, 32 - len(password))]
|
|
47
|
-
digest = md5(PDF_PAD)
|
|
48
|
-
for _ in range(50):
|
|
49
|
-
digest = md5(digest)
|
|
50
|
-
owner = padded
|
|
51
|
-
for i in range(20):
|
|
52
|
-
owner = rc4(bytes(value ^ i for value in digest), owner)
|
|
53
|
-
digest = md5(padded + owner)
|
|
54
|
-
for _ in range(50):
|
|
55
|
-
digest = md5(digest)
|
|
56
|
-
return digest
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
def page_key(base_key, page_number):
|
|
60
|
-
return md5(base_key + struct.pack("<I", page_number) + b"sAlT")
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
def page_iv(page_number):
|
|
64
|
-
state = page_number + 1
|
|
65
|
-
words = []
|
|
66
|
-
for _ in range(4):
|
|
67
|
-
quotient = state // 52774
|
|
68
|
-
state = 40692 * (state - quotient * 52774) - 3791 * quotient
|
|
69
|
-
if state < 0:
|
|
70
|
-
state += 2147483399
|
|
71
|
-
words.append(state)
|
|
72
|
-
return md5(struct.pack("<4I", *words))
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class AES:
|
|
76
|
-
def __init__(self):
|
|
77
|
-
self.lib = ctypes.CDLL("/usr/lib/system/libcommonCrypto.dylib")
|
|
78
|
-
self.lib.CCCrypt.argtypes = [
|
|
79
|
-
ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,
|
|
80
|
-
ctypes.c_void_p, ctypes.c_size_t, ctypes.c_void_p,
|
|
81
|
-
ctypes.c_void_p, ctypes.c_size_t, ctypes.c_void_p,
|
|
82
|
-
ctypes.c_size_t, ctypes.POINTER(ctypes.c_size_t),
|
|
83
|
-
]
|
|
84
|
-
self.lib.CCCrypt.restype = ctypes.c_int
|
|
85
|
-
|
|
86
|
-
def decrypt(self, data, key, iv):
|
|
87
|
-
if len(key) != 16 or len(iv) != 16 or not data or len(data) % 16:
|
|
88
|
-
raise ValueError("AES128 CBC requires 16-byte key/IV and whole blocks")
|
|
89
|
-
output = ctypes.create_string_buffer(len(data))
|
|
90
|
-
written = ctypes.c_size_t()
|
|
91
|
-
status = self.lib.CCCrypt(
|
|
92
|
-
1, 0, 0, key, len(key), iv, data, len(data),
|
|
93
|
-
output, len(data), ctypes.byref(written),
|
|
94
|
-
)
|
|
95
|
-
if status != 0 or written.value != len(data):
|
|
96
|
-
raise RuntimeError("CommonCrypto AES operation failed")
|
|
97
|
-
return output.raw[:written.value]
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
def metadata_valid(header):
|
|
101
|
-
if len(header) < 24:
|
|
102
|
-
return False
|
|
103
|
-
size = int.from_bytes(header[16:18], "big")
|
|
104
|
-
size = 65536 if size == 1 else size
|
|
105
|
-
return (
|
|
106
|
-
512 <= size <= 65536 and size & (size - 1) == 0
|
|
107
|
-
and header[18] in (1, 2) and header[19] in (1, 2)
|
|
108
|
-
and header[21:24] == bytes((64, 32, 32))
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
def decrypt_page(aes, data, base_key, page_number):
|
|
113
|
-
key = page_key(base_key, page_number)
|
|
114
|
-
iv = page_iv(page_number)
|
|
115
|
-
if page_number == 1:
|
|
116
|
-
tail = aes.decrypt(data[8:16] + data[24:], key, iv)
|
|
117
|
-
if tail[:8] != data[16:24]:
|
|
118
|
-
raise ValueError("page one metadata check failed")
|
|
119
|
-
return SQLITE_HEADER + tail
|
|
120
|
-
return aes.decrypt(data, key, iv)
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
def wal_checksum(data, s1, s2, order):
|
|
124
|
-
if len(data) % 8:
|
|
125
|
-
data = data + bytes(8 - len(data) % 8)
|
|
126
|
-
for offset in range(0, len(data), 8):
|
|
127
|
-
w1 = int.from_bytes(data[offset:offset + 4], order)
|
|
128
|
-
w2 = int.from_bytes(data[offset + 4:offset + 8], order)
|
|
129
|
-
s1 = (s1 + w1 + s2) & 0xFFFFFFFF
|
|
130
|
-
s2 = (s2 + w2 + s1) & 0xFFFFFFFF
|
|
131
|
-
return s1, s2
|
|
132
|
-
|
|
133
|
-
|