@xopcai/xopc 0.0.454 → 0.0.455
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/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/eventEmitter2.js +40 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/index.js +56 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/shared/conout.js +16 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/terminal.js +190 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/unixTerminal.js +287 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/utils.js +49 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsConoutConnection.js +190 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsPtyAgent.js +265 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsTerminal.js +178 -0
- package/dist/_virtual/_rolldown/runtime.js +10 -2
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-BKH-qNPt.js → activity-store-DYwR1u3f.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DY6IWy0_.js → agent-avatar-dicebear-CsRBprL-.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-tnAtQOAZ.js → agent-avatar-display-DqFYHXCS.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BLQ2N_dY.js → agent-defaults-settings-panel-DOAJrMLe.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-Bfsm4GOs.js → agent-plugin-dialog-vqlN3ORH.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CDNiLv0W.js → agents-BgHlOVRV.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-DGZsm8U4.js → agents-admin-api-CKscfdvA.js} +1 -1
- package/dist/gateway/static/root/assets/{api-BhipC15e.js → api-CHM2c_Ah.js} +1 -1
- package/dist/gateway/static/root/assets/{api-Bbj5k-7e.js → api-DPNeNCmR.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-CCZ-LmVT.js → app-link-DImAfVs5.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-fwhXHKxt.js → app-management-settings-panel-Bhz6bj1C.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BHkl-vFO.js → appearance-settings-BX32aogA.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DtCWwdsK.js → apps-page-0Yo3jBsQ.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-B9xaxa7V.js → archive-plugin-Bha8obMe.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-BHMjSwcy.js → automation-api-mn8ihWJ_.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-BgAjEoNV.js → automation-result-state-COzakzak.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-D3Eon5C0.js → automation-run-list-BhtaMpTb.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-DJRg72t-.js → automation-task-card-BY_k6iWp.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DdAzXb7s.js → automations-page-Dt_Z1UTT.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-D0nNat6N.js → automations-workspace-BhHgruhH.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-CgsjdprR.js → binary-plugins-DUbrJFLU.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-r6vj6dZO.js → block-editor-DW--pXAc.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-APCGT8Yr.js → browser-settings-page-CDh6nxs9.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-0gYkjdax.js → capabilities-DKbXv8Ck.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BgBwcqvY.js → capabilities-kG175Q-7.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-B1x3TwdV.js → capabilities-page-D1wQ2sPI.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BW5jQz5R.js +8 -0
- package/dist/gateway/static/root/assets/{channels-8Y08v4Q2.js → channels-BzZp42yO.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-BRQDNNI5.js → chat-agents-api-UOdNWZ0_.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-qMGhfeQZ.js → chat-chart-block-NSy-B0NS.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-page-CSTyfO9c.js → chat-page-dY6aCCRx.js} +4 -4
- package/dist/gateway/static/root/assets/{chat-terminal-dock-0PJ9dURQ.js → chat-terminal-dock-CAaHWS7F.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-C4U_-rDo.js → command-palette-api-Dkn9bbYd.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-model-config-control-B9Q40ptH.js → composer-model-config-control-BrK8-SNz.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-ByuA8h5Z.js → composer-notifications-B-kL3qAA.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-zr1JDn3p.js → composer-payload-handoff-DBE1mvOS.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-D2F1quZR.js → computer-settings-page-C9KdEecx.js} +1 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-D_8v6Qex.js +1 -0
- package/dist/gateway/static/root/assets/{connection-usage-guide-DkDsHm_l.js → connection-usage-guide-CiVpcbds.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-1AcvESmp.js → connector-service-page-B919cKSm.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-C1OML7OO.js → connectors-api-CgsSm-Av.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-CMIY0Zj_.js → connectors-page-CEpfDCLA.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-D1eFhoMI.js → date-picker-dx284jQI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-CqplKVk6.js → date-time-picker-Dj-bhLNP.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-UmrjWSq-.js → desktop-pet-DlTuGzZ2.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-B7I1II0Z.js → desktop-pet-narrative-cBFIPXzR.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DRRDJMu6.js → desktop-pet-settings-CsmrvoxU.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-CtKJMK52.js → dev-view-store-BOxbj1ie.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-C4aSCbqo.js → device-pairing-wizard-CAqFIFRC.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-D9U9yfnb.js → directory-picker-path-field-BxEw5OrT.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-D-eGt1_L.js → discussion-annotation-sync-CyntTwIa.js} +1 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-C0ReZguU.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BTLcC8-r.js → extension-debug-page-Cd3HMUbi.js} +1 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-DiIqM2JO.js +1 -0
- package/dist/gateway/static/root/assets/{extension-marketplace-api-DLRCNlej.js → extension-marketplace-api-CK5CMKTs.js} +1 -1
- package/dist/gateway/static/root/assets/extension-message-router-Dn8JzOdR.js +8 -0
- package/dist/gateway/static/root/assets/{extension-page-CdpI-Plq.js → extension-page-CLZtAtqm.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-DUDaMvQg.js → extension-provider-CbVokTvd.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-biWCnMGr.js → extension-settings-page-BM79cwUy.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-CnBRiQo8.js → file-preview-surface-z7_HV0WN.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BV5fpBSK.js → gateway-config-swr-OGhON-s6.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-CIqLQXlm.js → gateway-realtime-B9u4uSXW.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-xB7Bq4Zs.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-DBkfCzT5.js → gateway-restart-DKAweWmg.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-DTzXUm9f.js → gateway-settings-Dc7qUbG-.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-B49N_Ngm.js → gateway-startup-retry-BaaoKBoB.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-DVpxe45P.js → global-defaults-api-BIr3ApRj.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-DvaxBrjG.js → home-page-i_PIrDCU.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-CAKYslID.js → image-generation-api-C7D2IetZ.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-C2KmQJ2H.js → imports-page-BjEdZJxZ.js} +1 -1
- package/dist/gateway/static/root/assets/index-Bj5exyow.css +1 -0
- package/dist/gateway/static/root/assets/{index-BpzvsoS1.js → index-CZI3VGGW.js} +5 -5
- package/dist/gateway/static/root/assets/{install-connector-dialog-CmNvZt8M.js → install-connector-dialog-BsiyYQhx.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-syG2KRr2.js → keyboard-shortcuts-settings-CIthQ1lp.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-DGA4EHGm.js → local-app-workbench-page-CSCIHvZV.js} +1 -1
- package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-I0O2ybpp.js → local-apps-page-EntiM0tz.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-DsPDloiq.js → local-session-drafts-XurtjR58.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-D3c8DIm-.js → locale-store-cg9cm2EL.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-u9FTZaTh.js → logs-page-rmS9VSem.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-uxRxRX-6.js → management-api-B6jVuJ6W.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BCbDfM7f.js → management-settings-DdI9gs51.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-ohhExTMC.js → markdown-view-D1zBWkfB.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-382BGqQC.js → mcp-conversation-setup-page-Bn49Ph1n.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-B5wtLz3Z.js → media-plugins-Cd6hAGDp.js} +1 -1
- package/dist/gateway/static/root/assets/messages-eQ2CYlpG.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-CoKcq0AZ.js → model-selector-CL6WT-jw.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-CtooMAQW.js → models-hub-cache-s0FMNhq9.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-DiGQtSD0.js → note-detail-panel-anM38aV6.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-DfK2KSgu.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-Cvet94d8.js → notes-api-CR75RHd0.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DwlmKweX.js → notes-page-BsZmT7Zw.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-api-BHp5dVNh.js → oauth-api-CvPnQTlH.js} +1 -1
- package/dist/gateway/static/root/assets/oauth-provider-connect-Dk1NeeqD.js +1 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-BwsK2uDe.js → page-context-capture-button-BPtX67hZ.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-ieK9IN3R.js → page-context-draft-Ckb8baxj.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-DU4NnGap.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-BZSC0BLP.js → personal-avatar-CZSnrSfc.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-CbiD8Wn7.js → personal-page-BSCNuRMT.js} +1 -1
- package/dist/gateway/static/root/assets/personal-profile-settings-DJRDcK2c.js +1 -0
- package/dist/gateway/static/root/assets/{personal-settings-panel-_cxSzWsN.js → personal-settings-panel-C6p25Noq.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-C2OWtG2B.js → phone-dependencies-card-DKkFFpqi.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-CqmafRhr.js → phone-model-connection-CRRHq4PQ.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-BwYQtl_5.js → phone-model-picker-CN_I0-46.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-CPteZZWu.js → phone-settings-page-CkdSOA7D.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-ReUEjG9m.js → phone-workspace-store-CC61pIuJ.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-BlNVtbEU.js → plugin-details-dialog-Bqz4jT53.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-BbA-g7Zq.js → preference-select-fields-DHeNbAvn.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-DcPY76PG.js → product-automation-feedback-BN2HTA9T.js} +1 -1
- package/dist/gateway/static/root/assets/{product-delivery-2Ks17_OH.js → product-delivery-BFfqdKLe.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BBJ7glAm.js → product-open-page-B-j4gpLD.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-UTOSc_ii.js → product-preview-content-EqrTk7kU.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-Q1RZqeMo.js → product-preview-modal-aurFBFq4.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-BlrtsEZK.js → project-detail-page-ibZZ_w51.js} +1 -1
- package/dist/gateway/static/root/assets/{project-understanding-B35f5MkG.js → project-understanding-HNK9lFVy.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-CBH-sHOU.js → projects-page-CugSyKl5.js} +1 -1
- package/dist/gateway/static/root/assets/providers-api-DUntOOqr.js +1 -0
- package/dist/gateway/static/root/assets/{recording-upload-P1WcsdEY.js → recording-upload-DIwP541B.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-DnVlwJ6M.js → registry-api-BTd_OgbD.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-CVEj3p0J.js → remote-access-hub-f5mIfsBF.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-B_S1dFze.js → resource-unavailable-DtQ2rfu_.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-DGmrxJSb.js → route-preload-anuckzRl.js} +2 -2
- package/dist/gateway/static/root/assets/{runtime-tools-api-970sp5zI.js → runtime-tools-api-C1iI8EPo.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-au6vZ0sL.js → runtime-tools-settings-panel-0tdI1z0g.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-XeRFtJ-Z.js → service-recommendation-list-DSIe-NRe.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CuT7EPI0.js → session-api-CQlEq0MB.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-CyZHiuWY.js → session-manager-C7RfUfqI.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-BIxDwAIX.js → sessions-page-DdS8U0RV.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DnfH22f_.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-nbkGHQ_4.js → settings-advanced-section-C6dPu5i1.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-EQHfksdV.js → settings-mode-store-BSiiowQa.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-D6RNHRHq.js → settings-page-DAc5n-mM.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-19GJ_a45.js → settings-page-header-BSMu5Zq3.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-B2WCzSel.js → settings-page-layout-B_vMffB1.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-C5i7y_pM.js → setup-interaction-page-DKXfFdNt.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-Cwp8YKdT.js → setup-status-panel-BbAZ9w77.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-DDsVTMZ-.js → share-link-dialog-ztX1WPXG.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-C1S_gWGf.js → share-preview-page-Ds2Ydfg6.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-CepTFl1f.js → shares-api-CSZqeNL4.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-Cv-tdcAN.js → shares-settings-CX3TNAmI.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-CsT-iHnl.js → skill-api-CGzAQ-MX.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-CMJTjvSo.js → skill-list-api-DfUsku-x.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-S6B7P9ur.js → skill-reload-api-Y9qSMnBd.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-BKcsJtYx.js → skills-page-DnMN50Ot.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-DhHPM5qU.js → system-settings-panel-DWNkQmme.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BHH2_Z9_.js → task-detail-page-BJok6V1K.js} +1 -1
- package/dist/gateway/static/root/assets/{task-input-card-D_2rNF31.js → task-input-card-lCMSy6YY.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-CcUWpqvC.js → terminal-panel-store-D8eZPvql.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-D9pquJiM.js → theme-store-GZQ3pTgy.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-DC8_9-Lo.js +2 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-CjNrKILr.js → tracing-settings-page-DM3-7Hlw.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-GtLO40pc.js → tunnel-api-DOGAIXRR.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-BhB5wAbq.js → understanding-activity-store-CuPfe0eQ.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-BxtpXRfV.js → understanding-refresh-store-Ihz2p9Vg.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-CZa_a6_7.js → usage-page-BA9Yrvqu.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-BtOp6W9H.js → use-autosave-CO0IPCVg.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-BTQZx8Nj.js → use-composer-attachments-CLIrD0mm.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-B7nscYS4.js → use-file-preview-expanded-dhNMHf5b.js} +3 -3
- package/dist/gateway/static/root/assets/{use-personal-profile-Cj7WGOfv.js → use-personal-profile-CVqDWBDS.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-BS1rygyV.js → use-realtime-voice-DDVVlX1R.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-DYosm4Gz.js → use-workspace-tree-CZej8mhf.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-DmmJODQ4.js → user-model-page-1eYattnk.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-8voN8dQG.js → voice-api-key-field-DpwUDAvu.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-CrZd2aqw.js → voice-config-api-GIuXoHXw.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-DcFp_fy4.js → voice-input-shortcut-events-Cc30ZcFy.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-AckvhNnP.js → voice-settings-DA3m5MT0.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DAIk5csp.js → work-discovery-overlay-yGUkk1NV.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-CJeixeWQ.js → work-discovery-page-RN6iuY-0.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-BW76VaD5.js → working-directory-picker-modal-CeXl9w6z.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-Cu2gzmVn.js → workspace-api-B1Uirhxf.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-Nos5ebMv.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-DyqI793w.js → workspace-file-preview-dialog-D0h2yJ3v.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-DTYkApy8.js → workspace-open-location-menu-DWGNOIE2.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Rytp_NWV.js → xopc-cloud-account-card-x-XT4bKF.js} +1 -1
- package/dist/gateway/static/root/index.html +91 -91
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/extension-capabilities.js +69 -4
- package/dist/packages/gateway-contract/src/local-app-delegation.js +4 -1
- package/dist/src/agent/agent-manager.js +1 -1
- package/dist/src/agent/child-agent-factory.js +24 -1
- package/dist/src/agent/commands/command-registry.d.ts +10 -0
- package/dist/src/agent/commands/command-registry.js +37 -16
- package/dist/src/agent/commands/command-transport.d.ts +19 -0
- package/dist/src/agent/commands/command-transport.js +92 -0
- package/dist/src/agent/context/project-context.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
- package/dist/src/agent/embedded/execution-tool-policy.js +16 -5
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-turn.js +74 -14
- package/dist/src/agent/embedded/runs.d.ts +2 -0
- package/dist/src/agent/embedded/runs.js +8 -1
- package/dist/src/agent/embedded/session-runner.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/child-run-monitor.d.ts +35 -0
- package/dist/src/agent/orchestration/child-run-monitor.js +104 -0
- package/dist/src/agent/orchestration/child-run-resume.d.ts +3 -0
- package/dist/src/agent/orchestration/child-run-resume.js +67 -0
- package/dist/src/agent/sandbox/native-command.d.ts +15 -0
- package/dist/src/agent/sandbox/native-command.js +65 -0
- package/dist/src/agent/service/btw-query.d.ts +1 -0
- package/dist/src/agent/service/btw-query.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +2 -2
- package/dist/src/agent/service/process-direct-streaming.js +2 -2
- package/dist/src/agent/service.js +2 -2
- package/dist/src/agent/session/interaction-policy.d.ts +21 -0
- package/dist/src/agent/session/interaction-policy.js +58 -0
- package/dist/src/agent/session/session-inspector.js +3 -2
- package/dist/src/agent/tools/create-share-tool.js +1 -1
- package/dist/src/agent/tools/exec-command.js +5 -0
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/index.js +1 -1
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/managed-job-tool.js +16 -1
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/read.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +4 -4
- package/dist/src/automations/capabilities/drafts.js +5 -1
- package/dist/src/automations/capabilities/read.js +58 -8
- package/dist/src/automations/capabilities/write.js +53 -0
- package/dist/src/automations/delivery/delivery-router.js +3 -1
- package/dist/src/automations/run-changes.d.ts +2 -0
- package/dist/src/automations/run-changes.js +18 -0
- package/dist/src/automations/service/automation-service.d.ts +2 -9
- package/dist/src/automations/service/automation-service.js +3 -2
- package/dist/src/automations/storage/automation-run-repository.d.ts +5 -0
- package/dist/src/automations/storage/automation-run-repository.js +15 -1
- package/dist/src/capabilities/runtime/dispatcher.d.ts +1 -0
- package/dist/src/capabilities/runtime/product.d.ts +2 -0
- package/dist/src/capabilities/runtime/product.js +26 -6
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
- package/dist/src/chat-commands/types.d.ts +2 -0
- package/dist/src/cli/commands/tui-runner.d.ts +1 -1
- package/dist/src/cli/commands/tui-runner.js +1 -0
- package/dist/src/cli/commands/tui.js +1 -1
- package/dist/src/config/schema.d.ts +1 -1
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/agents-admin.js +1 -1
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +107 -10
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +2 -2
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +12 -2
- package/dist/src/gateway/hono/routes/local-app-run-streams.d.ts +4 -0
- package/dist/src/gateway/hono/routes/local-app-run-streams.js +105 -0
- package/dist/src/gateway/hono/routes/sessions.js +2 -2
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/tui.js +308 -0
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.js +3 -3
- package/dist/src/gateway/service.js +8 -8
- package/dist/src/gateway/session-reset-service.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/infra/execution-authority.d.ts +12 -0
- package/dist/src/infra/execution-authority.js +27 -0
- package/dist/src/local-apps/automation-proposals.d.ts +754 -0
- package/dist/src/local-apps/automation-proposals.js +185 -0
- package/dist/src/local-apps/capabilities/automation-policy.d.ts +7 -0
- package/dist/src/local-apps/capabilities/automation-policy.js +46 -0
- package/dist/src/local-apps/capabilities/contracts.js +23 -0
- package/dist/src/local-apps/capabilities/delegate.js +21 -4
- package/dist/src/local-apps/capabilities/projections.d.ts +588 -0
- package/dist/src/local-apps/capabilities/projections.js +135 -2
- package/dist/src/local-apps/capabilities/resource-policy.js +76 -0
- package/dist/src/local-apps/capabilities/runtime.js +2 -1
- package/dist/src/local-apps/execution-authority.d.ts +13 -0
- package/dist/src/local-apps/execution-authority.js +104 -0
- package/dist/src/local-apps/p1-services.d.ts +189 -0
- package/dist/src/local-apps/p1-services.js +620 -0
- package/dist/src/local-apps/preview-sessions.d.ts +1 -1
- package/dist/src/local-apps/preview-sessions.js +2 -2
- package/dist/src/local-apps/preview-worker.js +11 -2
- package/dist/src/local-apps/service.d.ts +81 -1
- package/dist/src/local-apps/service.js +18 -1
- package/dist/src/local-apps/store.js +1 -1
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/personal-agent/request-service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/platform/contracts.d.ts +3 -3
- package/dist/src/projects/capabilities/read.js +43 -2
- package/dist/src/projects/capabilities/write.js +25 -0
- package/dist/src/projects/project-store.js +12 -1
- package/dist/src/projects/types.d.ts +1 -0
- package/dist/src/review/review-git.js +14 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/resource-scope.js +2 -2
- package/dist/src/tasks/capabilities/management.js +3 -0
- package/dist/src/tasks/capabilities/write.js +11 -2
- package/dist/src/tasks/index.js +1 -1
- package/dist/src/tui/backend-services.d.ts +14 -0
- package/dist/src/tui/backend-services.js +67 -0
- package/dist/src/tui/backends/embedded-backend.d.ts +48 -4
- package/dist/src/tui/backends/embedded-backend.js +248 -42
- package/dist/src/tui/backends/gateway-realtime-backend.d.ts +46 -2
- package/dist/src/tui/backends/gateway-realtime-backend.js +205 -62
- package/dist/src/tui/components/chat-log.d.ts +1 -0
- package/dist/src/tui/components/chat-log.js +11 -5
- package/dist/src/tui/components/scoped-models-selector.js +1 -1
- package/dist/src/tui/components/session-selector.js +1 -1
- package/dist/src/tui/components/text-viewer.d.ts +32 -0
- package/dist/src/tui/components/text-viewer.js +132 -0
- package/dist/src/tui/components/tui-bottom-bar.js +3 -0
- package/dist/src/tui/extension-host/autocomplete.js +9 -1
- package/dist/src/tui/extension-host/runtime.d.ts +1 -0
- package/dist/src/tui/extension-host/runtime.js +1 -0
- package/dist/src/tui/tui-backend.d.ts +36 -3
- package/dist/src/tui/tui-capabilities.d.ts +15 -0
- package/dist/src/tui/tui-capabilities.js +46 -0
- package/dist/src/tui/tui-capability-controls.d.ts +9 -0
- package/dist/src/tui/tui-capability-controls.js +250 -0
- package/dist/src/tui/tui-clarification.d.ts +15 -0
- package/dist/src/tui/tui-clarification.js +91 -0
- package/dist/src/tui/tui-command-formatters.d.ts +0 -4
- package/dist/src/tui/tui-command-formatters.js +3 -43
- package/dist/src/tui/tui-commands.d.ts +4 -4
- package/dist/src/tui/tui-commands.js +219 -127
- package/dist/src/tui/tui-control-commands.d.ts +12 -0
- package/dist/src/tui/tui-control-commands.js +127 -0
- package/dist/src/tui/tui-image-files.d.ts +2 -0
- package/dist/src/tui/tui-image-files.js +47 -0
- package/dist/src/tui/tui-local-shell.d.ts +6 -0
- package/dist/src/tui/tui-local-shell.js +36 -2
- package/dist/src/tui/tui-management.d.ts +114 -0
- package/dist/src/tui/tui-management.js +233 -0
- package/dist/src/tui/tui-picker-overlay.d.ts +1 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -62
- package/dist/src/tui/tui-session-actions.d.ts +1 -0
- package/dist/src/tui/tui-session-actions.js +97 -29
- package/dist/src/tui/tui-settings.js +1 -1
- package/dist/src/tui/tui-side-chat.d.ts +10 -0
- package/dist/src/tui/tui-side-chat.js +56 -0
- package/dist/src/tui/tui-terminal.d.ts +3 -0
- package/dist/src/tui/tui-terminal.js +52 -0
- package/dist/src/tui/tui-types.d.ts +4 -1
- package/dist/src/tui/tui.js +422 -211
- package/dist/src/tui/xopc-tui-keybindings.d.ts +29 -9
- package/dist/src/tui/xopc-tui-keybindings.js +27 -7
- package/dist/src/usage/recorder.js +2 -0
- package/package.json +2 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CZ78ckHR.js +0 -8
- package/dist/gateway/static/root/assets/connected-providers-grid-CgULhOBZ.js +0 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-8ONVOjPW.js +0 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-D0-OvFV2.js +0 -1
- package/dist/gateway/static/root/assets/extension-message-router-DboLTCVp.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B6T1Xzag.js +0 -1
- package/dist/gateway/static/root/assets/index-B49yIcMR.css +0 -1
- package/dist/gateway/static/root/assets/local-apps-CB-MZAaL.js +0 -1
- package/dist/gateway/static/root/assets/messages-DPLud9GK.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-Ds4M9fJJ.js +0 -1
- package/dist/gateway/static/root/assets/oauth-provider-connect-cvxtmf3C.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-Xe8CP_4a.js +0 -1
- package/dist/gateway/static/root/assets/personal-profile-settings-KvdNnaNv.js +0 -1
- package/dist/gateway/static/root/assets/providers-api-BSmKlQ8K.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cy7xeKmH.js +0 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-pVOYuH7u.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region .pnpm/node-pty@1.1.0/node_modules/node-pty/lib/eventEmitter2.js
|
|
3
|
+
var require_eventEmitter2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2019, Microsoft Corporation (MIT License).
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.EventEmitter2 = void 0;
|
|
9
|
+
exports.EventEmitter2 = function() {
|
|
10
|
+
function EventEmitter2() {
|
|
11
|
+
this._listeners = [];
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(EventEmitter2.prototype, "event", {
|
|
14
|
+
get: function() {
|
|
15
|
+
var _this = this;
|
|
16
|
+
if (!this._event) this._event = function(listener) {
|
|
17
|
+
_this._listeners.push(listener);
|
|
18
|
+
return { dispose: function() {
|
|
19
|
+
for (var i = 0; i < _this._listeners.length; i++) if (_this._listeners[i] === listener) {
|
|
20
|
+
_this._listeners.splice(i, 1);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
} };
|
|
24
|
+
};
|
|
25
|
+
return this._event;
|
|
26
|
+
},
|
|
27
|
+
enumerable: false,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
EventEmitter2.prototype.fire = function(data) {
|
|
31
|
+
var queue = [];
|
|
32
|
+
for (var i = 0; i < this._listeners.length; i++) queue.push(this._listeners[i]);
|
|
33
|
+
for (var i = 0; i < queue.length; i++) queue[i].call(void 0, data);
|
|
34
|
+
};
|
|
35
|
+
return EventEmitter2;
|
|
36
|
+
}();
|
|
37
|
+
}));
|
|
38
|
+
//#endregion
|
|
39
|
+
export default require_eventEmitter2();
|
|
40
|
+
export { require_eventEmitter2 };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_utils } from "./utils.js";
|
|
3
|
+
import { require_windowsTerminal } from "./windowsTerminal.js";
|
|
4
|
+
import { require_unixTerminal } from "./unixTerminal.js";
|
|
5
|
+
//#region .pnpm/node-pty@1.1.0/node_modules/node-pty/lib/index.js
|
|
6
|
+
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
|
|
9
|
+
* Copyright (c) 2016, Daniel Imms (MIT License).
|
|
10
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.native = exports.open = exports.createTerminal = exports.fork = exports.spawn = void 0;
|
|
14
|
+
var utils_1 = require_utils();
|
|
15
|
+
var terminalCtor;
|
|
16
|
+
if (process.platform === "win32") terminalCtor = require_windowsTerminal().WindowsTerminal;
|
|
17
|
+
else terminalCtor = require_unixTerminal().UnixTerminal;
|
|
18
|
+
/**
|
|
19
|
+
* Forks a process as a pseudoterminal.
|
|
20
|
+
* @param file The file to launch.
|
|
21
|
+
* @param args The file's arguments as argv (string[]) or in a pre-escaped
|
|
22
|
+
* CommandLine format (string). Note that the CommandLine option is only
|
|
23
|
+
* available on Windows and is expected to be escaped properly.
|
|
24
|
+
* @param options The options of the terminal.
|
|
25
|
+
* @throws When the file passed to spawn with does not exists.
|
|
26
|
+
* @see CommandLineToArgvW https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx
|
|
27
|
+
* @see Parsing C++ Comamnd-Line Arguments https://msdn.microsoft.com/en-us/library/17w5ykft.aspx
|
|
28
|
+
* @see GetCommandLine https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156.aspx
|
|
29
|
+
*/
|
|
30
|
+
function spawn(file, args, opt) {
|
|
31
|
+
return new terminalCtor(file, args, opt);
|
|
32
|
+
}
|
|
33
|
+
exports.spawn = spawn;
|
|
34
|
+
/** @deprecated */
|
|
35
|
+
function fork(file, args, opt) {
|
|
36
|
+
return new terminalCtor(file, args, opt);
|
|
37
|
+
}
|
|
38
|
+
exports.fork = fork;
|
|
39
|
+
/** @deprecated */
|
|
40
|
+
function createTerminal(file, args, opt) {
|
|
41
|
+
return new terminalCtor(file, args, opt);
|
|
42
|
+
}
|
|
43
|
+
exports.createTerminal = createTerminal;
|
|
44
|
+
function open(options) {
|
|
45
|
+
return terminalCtor.open(options);
|
|
46
|
+
}
|
|
47
|
+
exports.open = open;
|
|
48
|
+
/**
|
|
49
|
+
* Expose the native API when not Windows, note that this is not public API and
|
|
50
|
+
* could be removed at any time.
|
|
51
|
+
*/
|
|
52
|
+
exports.native = process.platform !== "win32" ? utils_1.loadNativeModule("pty").module : null;
|
|
53
|
+
}));
|
|
54
|
+
//#endregion
|
|
55
|
+
export default require_lib();
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region .pnpm/node-pty@1.1.0/node_modules/node-pty/lib/shared/conout.js
|
|
3
|
+
var require_conout = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2020, Microsoft Corporation (MIT License).
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getWorkerPipeName = void 0;
|
|
9
|
+
function getWorkerPipeName(conoutPipeName) {
|
|
10
|
+
return conoutPipeName + "-worker";
|
|
11
|
+
}
|
|
12
|
+
exports.getWorkerPipeName = getWorkerPipeName;
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_conout();
|
|
16
|
+
export { require_conout };
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_eventEmitter2 } from "./eventEmitter2.js";
|
|
3
|
+
//#region .pnpm/node-pty@1.1.0/node_modules/node-pty/lib/terminal.js
|
|
4
|
+
var require_terminal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
/**
|
|
6
|
+
* Copyright (c) 2012-2015, Christopher Jeffrey (MIT License)
|
|
7
|
+
* Copyright (c) 2016, Daniel Imms (MIT License).
|
|
8
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.Terminal = exports.DEFAULT_ROWS = exports.DEFAULT_COLS = void 0;
|
|
12
|
+
var events_1 = __require("events");
|
|
13
|
+
var eventEmitter2_1 = require_eventEmitter2();
|
|
14
|
+
exports.DEFAULT_COLS = 80;
|
|
15
|
+
exports.DEFAULT_ROWS = 24;
|
|
16
|
+
/**
|
|
17
|
+
* Default messages to indicate PAUSE/RESUME for automatic flow control.
|
|
18
|
+
* To avoid conflicts with rebound XON/XOFF control codes (such as on-my-zsh),
|
|
19
|
+
* the sequences can be customized in `IPtyForkOptions`.
|
|
20
|
+
*/
|
|
21
|
+
var FLOW_CONTROL_PAUSE = "";
|
|
22
|
+
var FLOW_CONTROL_RESUME = "";
|
|
23
|
+
exports.Terminal = function() {
|
|
24
|
+
function Terminal(opt) {
|
|
25
|
+
this._pid = 0;
|
|
26
|
+
this._fd = 0;
|
|
27
|
+
this._cols = 0;
|
|
28
|
+
this._rows = 0;
|
|
29
|
+
this._readable = false;
|
|
30
|
+
this._writable = false;
|
|
31
|
+
this._onData = new eventEmitter2_1.EventEmitter2();
|
|
32
|
+
this._onExit = new eventEmitter2_1.EventEmitter2();
|
|
33
|
+
this._internalee = new events_1.EventEmitter();
|
|
34
|
+
this.handleFlowControl = !!(opt === null || opt === void 0 ? void 0 : opt.handleFlowControl);
|
|
35
|
+
this._flowControlPause = (opt === null || opt === void 0 ? void 0 : opt.flowControlPause) || FLOW_CONTROL_PAUSE;
|
|
36
|
+
this._flowControlResume = (opt === null || opt === void 0 ? void 0 : opt.flowControlResume) || FLOW_CONTROL_RESUME;
|
|
37
|
+
if (!opt) return;
|
|
38
|
+
this._checkType("name", opt.name ? opt.name : void 0, "string");
|
|
39
|
+
this._checkType("cols", opt.cols ? opt.cols : void 0, "number");
|
|
40
|
+
this._checkType("rows", opt.rows ? opt.rows : void 0, "number");
|
|
41
|
+
this._checkType("cwd", opt.cwd ? opt.cwd : void 0, "string");
|
|
42
|
+
this._checkType("env", opt.env ? opt.env : void 0, "object");
|
|
43
|
+
this._checkType("uid", opt.uid ? opt.uid : void 0, "number");
|
|
44
|
+
this._checkType("gid", opt.gid ? opt.gid : void 0, "number");
|
|
45
|
+
this._checkType("encoding", opt.encoding ? opt.encoding : void 0, "string");
|
|
46
|
+
}
|
|
47
|
+
Object.defineProperty(Terminal.prototype, "onData", {
|
|
48
|
+
get: function() {
|
|
49
|
+
return this._onData.event;
|
|
50
|
+
},
|
|
51
|
+
enumerable: false,
|
|
52
|
+
configurable: true
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(Terminal.prototype, "onExit", {
|
|
55
|
+
get: function() {
|
|
56
|
+
return this._onExit.event;
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(Terminal.prototype, "pid", {
|
|
62
|
+
get: function() {
|
|
63
|
+
return this._pid;
|
|
64
|
+
},
|
|
65
|
+
enumerable: false,
|
|
66
|
+
configurable: true
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(Terminal.prototype, "cols", {
|
|
69
|
+
get: function() {
|
|
70
|
+
return this._cols;
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(Terminal.prototype, "rows", {
|
|
76
|
+
get: function() {
|
|
77
|
+
return this._rows;
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
Terminal.prototype.write = function(data) {
|
|
83
|
+
if (this.handleFlowControl) {
|
|
84
|
+
if (data === this._flowControlPause) {
|
|
85
|
+
this.pause();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (data === this._flowControlResume) {
|
|
89
|
+
this.resume();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
this._write(data);
|
|
94
|
+
};
|
|
95
|
+
Terminal.prototype._forwardEvents = function() {
|
|
96
|
+
var _this = this;
|
|
97
|
+
this.on("data", function(e) {
|
|
98
|
+
return _this._onData.fire(e);
|
|
99
|
+
});
|
|
100
|
+
this.on("exit", function(exitCode, signal) {
|
|
101
|
+
return _this._onExit.fire({
|
|
102
|
+
exitCode,
|
|
103
|
+
signal
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
Terminal.prototype._checkType = function(name, value, type, allowArray) {
|
|
108
|
+
if (allowArray === void 0) allowArray = false;
|
|
109
|
+
if (value === void 0) return;
|
|
110
|
+
if (allowArray) {
|
|
111
|
+
if (Array.isArray(value)) {
|
|
112
|
+
value.forEach(function(v, i) {
|
|
113
|
+
if (typeof v !== type) throw new Error(name + "[" + i + "] must be a " + type + " (not a " + typeof v[i] + ")");
|
|
114
|
+
});
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (typeof value !== type) throw new Error(name + " must be a " + type + " (not a " + typeof value + ")");
|
|
119
|
+
};
|
|
120
|
+
/** See net.Socket.end */
|
|
121
|
+
Terminal.prototype.end = function(data) {
|
|
122
|
+
this._socket.end(data);
|
|
123
|
+
};
|
|
124
|
+
/** See stream.Readable.pipe */
|
|
125
|
+
Terminal.prototype.pipe = function(dest, options) {
|
|
126
|
+
return this._socket.pipe(dest, options);
|
|
127
|
+
};
|
|
128
|
+
/** See net.Socket.pause */
|
|
129
|
+
Terminal.prototype.pause = function() {
|
|
130
|
+
return this._socket.pause();
|
|
131
|
+
};
|
|
132
|
+
/** See net.Socket.resume */
|
|
133
|
+
Terminal.prototype.resume = function() {
|
|
134
|
+
return this._socket.resume();
|
|
135
|
+
};
|
|
136
|
+
/** See net.Socket.setEncoding */
|
|
137
|
+
Terminal.prototype.setEncoding = function(encoding) {
|
|
138
|
+
if (this._socket._decoder) delete this._socket._decoder;
|
|
139
|
+
if (encoding) this._socket.setEncoding(encoding);
|
|
140
|
+
};
|
|
141
|
+
Terminal.prototype.addListener = function(eventName, listener) {
|
|
142
|
+
this.on(eventName, listener);
|
|
143
|
+
};
|
|
144
|
+
Terminal.prototype.on = function(eventName, listener) {
|
|
145
|
+
if (eventName === "close") {
|
|
146
|
+
this._internalee.on("close", listener);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this._socket.on(eventName, listener);
|
|
150
|
+
};
|
|
151
|
+
Terminal.prototype.emit = function(eventName) {
|
|
152
|
+
var args = [];
|
|
153
|
+
for (var _i = 1; _i < arguments.length; _i++) args[_i - 1] = arguments[_i];
|
|
154
|
+
if (eventName === "close") return this._internalee.emit.apply(this._internalee, arguments);
|
|
155
|
+
return this._socket.emit.apply(this._socket, arguments);
|
|
156
|
+
};
|
|
157
|
+
Terminal.prototype.listeners = function(eventName) {
|
|
158
|
+
return this._socket.listeners(eventName);
|
|
159
|
+
};
|
|
160
|
+
Terminal.prototype.removeListener = function(eventName, listener) {
|
|
161
|
+
this._socket.removeListener(eventName, listener);
|
|
162
|
+
};
|
|
163
|
+
Terminal.prototype.removeAllListeners = function(eventName) {
|
|
164
|
+
this._socket.removeAllListeners(eventName);
|
|
165
|
+
};
|
|
166
|
+
Terminal.prototype.once = function(eventName, listener) {
|
|
167
|
+
this._socket.once(eventName, listener);
|
|
168
|
+
};
|
|
169
|
+
Terminal.prototype._close = function() {
|
|
170
|
+
this._socket.readable = false;
|
|
171
|
+
this.write = function() {};
|
|
172
|
+
this.end = function() {};
|
|
173
|
+
this._writable = false;
|
|
174
|
+
this._readable = false;
|
|
175
|
+
};
|
|
176
|
+
Terminal.prototype._parseEnv = function(env) {
|
|
177
|
+
var keys = Object.keys(env || {});
|
|
178
|
+
var pairs = [];
|
|
179
|
+
for (var i = 0; i < keys.length; i++) {
|
|
180
|
+
if (keys[i] === void 0) continue;
|
|
181
|
+
pairs.push(keys[i] + "=" + env[keys[i]]);
|
|
182
|
+
}
|
|
183
|
+
return pairs;
|
|
184
|
+
};
|
|
185
|
+
return Terminal;
|
|
186
|
+
}();
|
|
187
|
+
}));
|
|
188
|
+
//#endregion
|
|
189
|
+
export default require_terminal();
|
|
190
|
+
export { require_terminal };
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_utils } from "./utils.js";
|
|
3
|
+
import { require_terminal } from "./terminal.js";
|
|
4
|
+
//#region .pnpm/node-pty@1.1.0/node_modules/node-pty/lib/unixTerminal.js
|
|
5
|
+
var require_unixTerminal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
var __extends = exports && exports.__extends || (function() {
|
|
7
|
+
var extendStatics = function(d, b) {
|
|
8
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
9
|
+
d.__proto__ = b;
|
|
10
|
+
} || function(d, b) {
|
|
11
|
+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
12
|
+
};
|
|
13
|
+
return extendStatics(d, b);
|
|
14
|
+
};
|
|
15
|
+
return function(d, b) {
|
|
16
|
+
extendStatics(d, b);
|
|
17
|
+
function __() {
|
|
18
|
+
this.constructor = d;
|
|
19
|
+
}
|
|
20
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21
|
+
};
|
|
22
|
+
})();
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.UnixTerminal = void 0;
|
|
25
|
+
/**
|
|
26
|
+
* Copyright (c) 2012-2015, Christopher Jeffrey (MIT License)
|
|
27
|
+
* Copyright (c) 2016, Daniel Imms (MIT License).
|
|
28
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
29
|
+
*/
|
|
30
|
+
var fs = __require("fs");
|
|
31
|
+
var path = __require("path");
|
|
32
|
+
var tty = __require("tty");
|
|
33
|
+
var terminal_1 = require_terminal();
|
|
34
|
+
var utils_1 = require_utils();
|
|
35
|
+
var native = utils_1.loadNativeModule("pty");
|
|
36
|
+
var pty = native.module;
|
|
37
|
+
var helperPath = native.dir + "/spawn-helper";
|
|
38
|
+
helperPath = path.resolve(__dirname, helperPath);
|
|
39
|
+
helperPath = helperPath.replace("app.asar", "app.asar.unpacked");
|
|
40
|
+
helperPath = helperPath.replace("node_modules.asar", "node_modules.asar.unpacked");
|
|
41
|
+
var DEFAULT_FILE = "sh";
|
|
42
|
+
var DEFAULT_NAME = "xterm";
|
|
43
|
+
var DESTROY_SOCKET_TIMEOUT_MS = 200;
|
|
44
|
+
exports.UnixTerminal = function(_super) {
|
|
45
|
+
__extends(UnixTerminal, _super);
|
|
46
|
+
function UnixTerminal(file, args, opt) {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
var _this = _super.call(this, opt) || this;
|
|
49
|
+
_this._boundClose = false;
|
|
50
|
+
_this._emittedClose = false;
|
|
51
|
+
if (typeof args === "string") throw new Error("args as a string is not supported on unix.");
|
|
52
|
+
args = args || [];
|
|
53
|
+
file = file || DEFAULT_FILE;
|
|
54
|
+
opt = opt || {};
|
|
55
|
+
opt.env = opt.env || process.env;
|
|
56
|
+
_this._cols = opt.cols || terminal_1.DEFAULT_COLS;
|
|
57
|
+
_this._rows = opt.rows || terminal_1.DEFAULT_ROWS;
|
|
58
|
+
var uid = (_a = opt.uid) !== null && _a !== void 0 ? _a : -1;
|
|
59
|
+
var gid = (_b = opt.gid) !== null && _b !== void 0 ? _b : -1;
|
|
60
|
+
var env = utils_1.assign({}, opt.env);
|
|
61
|
+
if (opt.env === process.env) _this._sanitizeEnv(env);
|
|
62
|
+
var cwd = opt.cwd || process.cwd();
|
|
63
|
+
env.PWD = cwd;
|
|
64
|
+
var name = opt.name || env.TERM || DEFAULT_NAME;
|
|
65
|
+
env.TERM = name;
|
|
66
|
+
var parsedEnv = _this._parseEnv(env);
|
|
67
|
+
var encoding = opt.encoding === void 0 ? "utf8" : opt.encoding;
|
|
68
|
+
var onexit = function(code, signal) {
|
|
69
|
+
if (!_this._emittedClose) {
|
|
70
|
+
if (_this._boundClose) return;
|
|
71
|
+
_this._boundClose = true;
|
|
72
|
+
var timeout_1 = setTimeout(function() {
|
|
73
|
+
timeout_1 = null;
|
|
74
|
+
_this._socket.destroy();
|
|
75
|
+
}, DESTROY_SOCKET_TIMEOUT_MS);
|
|
76
|
+
_this.once("close", function() {
|
|
77
|
+
if (timeout_1 !== null) clearTimeout(timeout_1);
|
|
78
|
+
_this.emit("exit", code, signal);
|
|
79
|
+
});
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
_this.emit("exit", code, signal);
|
|
83
|
+
};
|
|
84
|
+
var term = pty.fork(file, args, parsedEnv, cwd, _this._cols, _this._rows, uid, gid, encoding === "utf8", helperPath, onexit);
|
|
85
|
+
_this._socket = new tty.ReadStream(term.fd);
|
|
86
|
+
if (encoding !== null) _this._socket.setEncoding(encoding);
|
|
87
|
+
_this._writeStream = new CustomWriteStream(term.fd, encoding || void 0);
|
|
88
|
+
_this._socket.on("error", function(err) {
|
|
89
|
+
if (err.code) {
|
|
90
|
+
if (~err.code.indexOf("EAGAIN")) return;
|
|
91
|
+
}
|
|
92
|
+
_this._close();
|
|
93
|
+
if (!_this._emittedClose) {
|
|
94
|
+
_this._emittedClose = true;
|
|
95
|
+
_this.emit("close");
|
|
96
|
+
}
|
|
97
|
+
if (err.code) {
|
|
98
|
+
if (~err.code.indexOf("errno 5") || ~err.code.indexOf("EIO")) return;
|
|
99
|
+
}
|
|
100
|
+
if (_this.listeners("error").length < 2) throw err;
|
|
101
|
+
});
|
|
102
|
+
_this._pid = term.pid;
|
|
103
|
+
_this._fd = term.fd;
|
|
104
|
+
_this._pty = term.pty;
|
|
105
|
+
_this._file = file;
|
|
106
|
+
_this._name = name;
|
|
107
|
+
_this._readable = true;
|
|
108
|
+
_this._writable = true;
|
|
109
|
+
_this._socket.on("close", function() {
|
|
110
|
+
if (_this._emittedClose) return;
|
|
111
|
+
_this._emittedClose = true;
|
|
112
|
+
_this._close();
|
|
113
|
+
_this.emit("close");
|
|
114
|
+
});
|
|
115
|
+
_this._forwardEvents();
|
|
116
|
+
return _this;
|
|
117
|
+
}
|
|
118
|
+
Object.defineProperty(UnixTerminal.prototype, "master", {
|
|
119
|
+
get: function() {
|
|
120
|
+
return this._master;
|
|
121
|
+
},
|
|
122
|
+
enumerable: false,
|
|
123
|
+
configurable: true
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(UnixTerminal.prototype, "slave", {
|
|
126
|
+
get: function() {
|
|
127
|
+
return this._slave;
|
|
128
|
+
},
|
|
129
|
+
enumerable: false,
|
|
130
|
+
configurable: true
|
|
131
|
+
});
|
|
132
|
+
UnixTerminal.prototype._write = function(data) {
|
|
133
|
+
this._writeStream.write(data);
|
|
134
|
+
};
|
|
135
|
+
Object.defineProperty(UnixTerminal.prototype, "fd", {
|
|
136
|
+
get: function() {
|
|
137
|
+
return this._fd;
|
|
138
|
+
},
|
|
139
|
+
enumerable: false,
|
|
140
|
+
configurable: true
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(UnixTerminal.prototype, "ptsName", {
|
|
143
|
+
get: function() {
|
|
144
|
+
return this._pty;
|
|
145
|
+
},
|
|
146
|
+
enumerable: false,
|
|
147
|
+
configurable: true
|
|
148
|
+
});
|
|
149
|
+
/**
|
|
150
|
+
* openpty
|
|
151
|
+
*/
|
|
152
|
+
UnixTerminal.open = function(opt) {
|
|
153
|
+
var self = Object.create(UnixTerminal.prototype);
|
|
154
|
+
opt = opt || {};
|
|
155
|
+
if (arguments.length > 1) opt = {
|
|
156
|
+
cols: arguments[1],
|
|
157
|
+
rows: arguments[2]
|
|
158
|
+
};
|
|
159
|
+
var cols = opt.cols || terminal_1.DEFAULT_COLS;
|
|
160
|
+
var rows = opt.rows || terminal_1.DEFAULT_ROWS;
|
|
161
|
+
var encoding = opt.encoding === void 0 ? "utf8" : opt.encoding;
|
|
162
|
+
var term = pty.open(cols, rows);
|
|
163
|
+
self._master = new tty.ReadStream(term.master);
|
|
164
|
+
if (encoding !== null) self._master.setEncoding(encoding);
|
|
165
|
+
self._master.resume();
|
|
166
|
+
self._slave = new tty.ReadStream(term.slave);
|
|
167
|
+
if (encoding !== null) self._slave.setEncoding(encoding);
|
|
168
|
+
self._slave.resume();
|
|
169
|
+
self._socket = self._master;
|
|
170
|
+
self._pid = -1;
|
|
171
|
+
self._fd = term.master;
|
|
172
|
+
self._pty = term.pty;
|
|
173
|
+
self._file = process.argv[0] || "node";
|
|
174
|
+
self._name = process.env.TERM || "";
|
|
175
|
+
self._readable = true;
|
|
176
|
+
self._writable = true;
|
|
177
|
+
self._socket.on("error", function(err) {
|
|
178
|
+
self._close();
|
|
179
|
+
if (self.listeners("error").length < 2) throw err;
|
|
180
|
+
});
|
|
181
|
+
self._socket.on("close", function() {
|
|
182
|
+
self._close();
|
|
183
|
+
});
|
|
184
|
+
return self;
|
|
185
|
+
};
|
|
186
|
+
UnixTerminal.prototype.destroy = function() {
|
|
187
|
+
var _this = this;
|
|
188
|
+
this._close();
|
|
189
|
+
this._socket.once("close", function() {
|
|
190
|
+
_this.kill("SIGHUP");
|
|
191
|
+
});
|
|
192
|
+
this._socket.destroy();
|
|
193
|
+
this._writeStream.dispose();
|
|
194
|
+
};
|
|
195
|
+
UnixTerminal.prototype.kill = function(signal) {
|
|
196
|
+
try {
|
|
197
|
+
process.kill(this.pid, signal || "SIGHUP");
|
|
198
|
+
} catch (e) {}
|
|
199
|
+
};
|
|
200
|
+
Object.defineProperty(UnixTerminal.prototype, "process", {
|
|
201
|
+
/**
|
|
202
|
+
* Gets the name of the process.
|
|
203
|
+
*/
|
|
204
|
+
get: function() {
|
|
205
|
+
if (process.platform === "darwin") {
|
|
206
|
+
var title = pty.process(this._fd);
|
|
207
|
+
return title !== "kernel_task" ? title : this._file;
|
|
208
|
+
}
|
|
209
|
+
return pty.process(this._fd, this._pty) || this._file;
|
|
210
|
+
},
|
|
211
|
+
enumerable: false,
|
|
212
|
+
configurable: true
|
|
213
|
+
});
|
|
214
|
+
/**
|
|
215
|
+
* TTY
|
|
216
|
+
*/
|
|
217
|
+
UnixTerminal.prototype.resize = function(cols, rows) {
|
|
218
|
+
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) throw new Error("resizing must be done using positive cols and rows");
|
|
219
|
+
pty.resize(this._fd, cols, rows);
|
|
220
|
+
this._cols = cols;
|
|
221
|
+
this._rows = rows;
|
|
222
|
+
};
|
|
223
|
+
UnixTerminal.prototype.clear = function() {};
|
|
224
|
+
UnixTerminal.prototype._sanitizeEnv = function(env) {
|
|
225
|
+
delete env["TMUX"];
|
|
226
|
+
delete env["TMUX_PANE"];
|
|
227
|
+
delete env["STY"];
|
|
228
|
+
delete env["WINDOW"];
|
|
229
|
+
delete env["WINDOWID"];
|
|
230
|
+
delete env["TERMCAP"];
|
|
231
|
+
delete env["COLUMNS"];
|
|
232
|
+
delete env["LINES"];
|
|
233
|
+
};
|
|
234
|
+
return UnixTerminal;
|
|
235
|
+
}(terminal_1.Terminal);
|
|
236
|
+
/**
|
|
237
|
+
* A custom write stream that writes directly to a file descriptor with proper
|
|
238
|
+
* handling of backpressure and errors. This avoids some event loop exhaustion
|
|
239
|
+
* issues that can occur when using the standard APIs in Node.
|
|
240
|
+
*/
|
|
241
|
+
var CustomWriteStream = function() {
|
|
242
|
+
function CustomWriteStream(_fd, _encoding) {
|
|
243
|
+
this._fd = _fd;
|
|
244
|
+
this._encoding = _encoding;
|
|
245
|
+
this._writeQueue = [];
|
|
246
|
+
}
|
|
247
|
+
CustomWriteStream.prototype.dispose = function() {
|
|
248
|
+
clearImmediate(this._writeImmediate);
|
|
249
|
+
this._writeImmediate = void 0;
|
|
250
|
+
};
|
|
251
|
+
CustomWriteStream.prototype.write = function(data) {
|
|
252
|
+
var buffer = typeof data === "string" ? Buffer.from(data, this._encoding) : Buffer.from(data);
|
|
253
|
+
if (buffer.byteLength !== 0) {
|
|
254
|
+
this._writeQueue.push({
|
|
255
|
+
buffer,
|
|
256
|
+
offset: 0
|
|
257
|
+
});
|
|
258
|
+
if (this._writeQueue.length === 1) this._processWriteQueue();
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
CustomWriteStream.prototype._processWriteQueue = function() {
|
|
262
|
+
var _this = this;
|
|
263
|
+
this._writeImmediate = void 0;
|
|
264
|
+
if (this._writeQueue.length === 0) return;
|
|
265
|
+
var task = this._writeQueue[0];
|
|
266
|
+
fs.write(this._fd, task.buffer, task.offset, function(err, written) {
|
|
267
|
+
if (err) {
|
|
268
|
+
if ("code" in err && err.code === "EAGAIN") _this._writeImmediate = setImmediate(function() {
|
|
269
|
+
return _this._processWriteQueue();
|
|
270
|
+
});
|
|
271
|
+
else {
|
|
272
|
+
_this._writeQueue.length = 0;
|
|
273
|
+
console.error("Unhandled pty write error", err);
|
|
274
|
+
}
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
task.offset += written;
|
|
278
|
+
if (task.offset >= task.buffer.byteLength) _this._writeQueue.shift();
|
|
279
|
+
_this._processWriteQueue();
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
return CustomWriteStream;
|
|
283
|
+
}();
|
|
284
|
+
}));
|
|
285
|
+
//#endregion
|
|
286
|
+
export default require_unixTerminal();
|
|
287
|
+
export { require_unixTerminal };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region .pnpm/node-pty@1.1.0/node_modules/node-pty/lib/utils.js
|
|
3
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2017, Daniel Imms (MIT License).
|
|
6
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.loadNativeModule = exports.assign = void 0;
|
|
10
|
+
function assign(target) {
|
|
11
|
+
var sources = [];
|
|
12
|
+
for (var _i = 1; _i < arguments.length; _i++) sources[_i - 1] = arguments[_i];
|
|
13
|
+
sources.forEach(function(source) {
|
|
14
|
+
return Object.keys(source).forEach(function(key) {
|
|
15
|
+
return target[key] = source[key];
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
return target;
|
|
19
|
+
}
|
|
20
|
+
exports.assign = assign;
|
|
21
|
+
function loadNativeModule(name) {
|
|
22
|
+
var dirs = [
|
|
23
|
+
"build/Release",
|
|
24
|
+
"build/Debug",
|
|
25
|
+
"prebuilds/" + process.platform + "-" + process.arch
|
|
26
|
+
];
|
|
27
|
+
var relative = ["..", "."];
|
|
28
|
+
var lastError;
|
|
29
|
+
for (var _i = 0, dirs_1 = dirs; _i < dirs_1.length; _i++) {
|
|
30
|
+
var d = dirs_1[_i];
|
|
31
|
+
for (var _a = 0, relative_1 = relative; _a < relative_1.length; _a++) {
|
|
32
|
+
var dir = relative_1[_a] + "/" + d + "/";
|
|
33
|
+
try {
|
|
34
|
+
return {
|
|
35
|
+
dir,
|
|
36
|
+
module: __require(dir + "/" + name + ".node")
|
|
37
|
+
};
|
|
38
|
+
} catch (e) {
|
|
39
|
+
lastError = e;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
throw new Error("Failed to load native module: " + name + ".node, checked: " + dirs.join(", ") + ": " + lastError);
|
|
44
|
+
}
|
|
45
|
+
exports.loadNativeModule = loadNativeModule;
|
|
46
|
+
}));
|
|
47
|
+
//#endregion
|
|
48
|
+
export default require_utils();
|
|
49
|
+
export { require_utils };
|