dreamcontext 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -19
- package/agents/curator-auditor.md +6 -1
- package/agents/curator-worker.md +1 -1
- package/agents/dreamcontext-explore.md +10 -0
- package/agents/sleep-product.md +15 -6
- package/agents/sleep-state.md +2 -0
- package/agents/sleep-tasks.md +11 -0
- package/dist/agents/curator-auditor.md +6 -1
- package/dist/agents/curator-worker.md +1 -1
- package/dist/agents/dreamcontext-explore.md +10 -0
- package/dist/agents/sleep-product.md +15 -6
- package/dist/agents/sleep-state.md +2 -0
- package/dist/agents/sleep-tasks.md +11 -0
- package/dist/dashboard/assets/{BrainCanvas3D-BvuUW-Ij.js → BrainCanvas3D-DPHKVW49.js} +1 -1
- package/dist/dashboard/assets/{_baseUniq-BNAWiBFl.js → _baseUniq-CHd2laKt.js} +1 -1
- package/dist/dashboard/assets/{ar-SA-G6X2FPQ2-rNEb6-jN.js → ar-SA-G6X2FPQ2-CJm41yHw.js} +1 -1
- package/dist/dashboard/assets/{arc-DDLjNpXk.js → arc-DUqUK5I0.js} +1 -1
- package/dist/dashboard/assets/{architectureDiagram-Q4EWVU46-P208qO4N.js → architectureDiagram-Q4EWVU46-CRDXKDvE.js} +1 -1
- package/dist/dashboard/assets/{az-AZ-76LH7QW2-Dwql62JX.js → az-AZ-76LH7QW2-BvugTMBT.js} +1 -1
- package/dist/dashboard/assets/{bg-BG-XCXSNQG7-BgteTNp8.js → bg-BG-XCXSNQG7-CLr0Fn-e.js} +1 -1
- package/dist/dashboard/assets/{blockDiagram-DXYQGD6D-BDSceoPt.js → blockDiagram-DXYQGD6D-B8exO_lL.js} +1 -1
- package/dist/dashboard/assets/{bn-BD-2XOGV67Q-BYJ6_efF.js → bn-BD-2XOGV67Q-D0vwADrS.js} +1 -1
- package/dist/dashboard/assets/{c4Diagram-AHTNJAMY-CRbiwdrM.js → c4Diagram-AHTNJAMY-Cejeoprm.js} +1 -1
- package/dist/dashboard/assets/{ca-ES-6MX7JW3Y-CtFrXfas.js → ca-ES-6MX7JW3Y-CxqyG_0S.js} +1 -1
- package/dist/dashboard/assets/channel-44TauaoC.js +1 -0
- package/dist/dashboard/assets/{chunk-4BX2VUAB-kqN0Cg_r.js → chunk-4BX2VUAB-BKe2HbO0.js} +1 -1
- package/dist/dashboard/assets/{chunk-4TB4RGXK-CpwYPUdR.js → chunk-4TB4RGXK-BYd5xUfH.js} +1 -1
- package/dist/dashboard/assets/{chunk-55IACEB6-CQ_4M3g4.js → chunk-55IACEB6-BRmdVuF4.js} +1 -1
- package/dist/dashboard/assets/{chunk-EDXVE4YY--HdVil0f.js → chunk-EDXVE4YY-B-pwoibO.js} +1 -1
- package/dist/dashboard/assets/{chunk-FMBD7UC4-CrbfOH-q.js → chunk-FMBD7UC4-LC1eQ6Bn.js} +1 -1
- package/dist/dashboard/assets/{chunk-OYMX7WX6-BrcCZnqx.js → chunk-OYMX7WX6-w2Fbw2qj.js} +1 -1
- package/dist/dashboard/assets/{chunk-QZHKN3VN-Cby58gGN.js → chunk-QZHKN3VN-BCWG4fy9.js} +1 -1
- package/dist/dashboard/assets/{chunk-YZCP3GAM-tvOjDART.js → chunk-YZCP3GAM-CrKe7Bc4.js} +1 -1
- package/dist/dashboard/assets/classDiagram-6PBFFD2Q-DvAbYAqz.js +1 -0
- package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-DvAbYAqz.js +1 -0
- package/dist/dashboard/assets/clone-C56fm_aT.js +1 -0
- package/dist/dashboard/assets/{cose-bilkent-S5V4N54A-CuwbWQzD.js → cose-bilkent-S5V4N54A-Csw9QUYq.js} +1 -1
- package/dist/dashboard/assets/{cs-CZ-2BRQDIVT-DfVAwqqU.js → cs-CZ-2BRQDIVT-CogQs_1l.js} +1 -1
- package/dist/dashboard/assets/{da-DK-5WZEPLOC-D1QJqNxG.js → da-DK-5WZEPLOC-CLE1k6n-.js} +1 -1
- package/dist/dashboard/assets/{dagre-KV5264BT-Bbf-wMho.js → dagre-KV5264BT-CYO4L2oQ.js} +1 -1
- package/dist/dashboard/assets/{de-DE-XR44H4JA-CbCdH8Mp.js → de-DE-XR44H4JA-Cyk4pAkD.js} +1 -1
- package/dist/dashboard/assets/{diagram-5BDNPKRD-CvMJJUvv.js → diagram-5BDNPKRD-_l3m-Gzf.js} +1 -1
- package/dist/dashboard/assets/{diagram-G4DWMVQ6-BBz7ebE8.js → diagram-G4DWMVQ6-ComC4npi.js} +1 -1
- package/dist/dashboard/assets/{diagram-MMDJMWI5-U7IcL5ZQ.js → diagram-MMDJMWI5-xZ9cT0uu.js} +1 -1
- package/dist/dashboard/assets/{diagram-TYMM5635-BfTLwlSm.js → diagram-TYMM5635-Dnq3s1v5.js} +1 -1
- package/dist/dashboard/assets/{el-GR-BZB4AONW-DvGrscY6.js → el-GR-BZB4AONW-BFImbdQn.js} +1 -1
- package/dist/dashboard/assets/{erDiagram-SMLLAGMA-C1ncTn9B.js → erDiagram-SMLLAGMA-kcbabKJD.js} +1 -1
- package/dist/dashboard/assets/{es-ES-U4NZUMDT-BlawPkmw.js → es-ES-U4NZUMDT-jGtxZhYt.js} +1 -1
- package/dist/dashboard/assets/{eu-ES-A7QVB2H4-p5lXDFKY.js → eu-ES-A7QVB2H4-Bzz2d8CD.js} +1 -1
- package/dist/dashboard/assets/event-BbvoZQ5o.js +1 -0
- package/dist/dashboard/assets/{fa-IR-HGAKTJCU-DbY6Wzu9.js → fa-IR-HGAKTJCU-63k-G3tN.js} +1 -1
- package/dist/dashboard/assets/{fi-FI-Z5N7JZ37-HyRJneut.js → fi-FI-Z5N7JZ37-ezHcIK6s.js} +1 -1
- package/dist/dashboard/assets/{flowDiagram-DWJPFMVM-tySa4G4z.js → flowDiagram-DWJPFMVM-B1Uy8SMX.js} +1 -1
- package/dist/dashboard/assets/{fr-FR-RHASNOE6-C0ElnhzM.js → fr-FR-RHASNOE6-C6Pe7vKj.js} +1 -1
- package/dist/dashboard/assets/{ganttDiagram-T4ZO3ILL-BQsJPxAU.js → ganttDiagram-T4ZO3ILL-CABaaerr.js} +1 -1
- package/dist/dashboard/assets/{gitGraphDiagram-UUTBAWPF-B2jHjMzI.js → gitGraphDiagram-UUTBAWPF-CcyLIbFK.js} +1 -1
- package/dist/dashboard/assets/{gl-ES-HMX3MZ6V-D5qSPU7d.js → gl-ES-HMX3MZ6V-sdrg75Ty.js} +1 -1
- package/dist/dashboard/assets/{graph-deVQIt7H.js → graph-XfL-ygDi.js} +1 -1
- package/dist/dashboard/assets/{he-IL-6SHJWFNN-CNsRxzJL.js → he-IL-6SHJWFNN-C9y7ygPP.js} +1 -1
- package/dist/dashboard/assets/{hi-IN-IWLTKZ5I-CCLXIBWK.js → hi-IN-IWLTKZ5I-Bf7GXs-7.js} +1 -1
- package/dist/dashboard/assets/{hu-HU-A5ZG7DT2-Dq17BfYB.js → hu-HU-A5ZG7DT2-SU6SehRg.js} +1 -1
- package/dist/dashboard/assets/{id-ID-SAP4L64H-CRL19WJa.js → id-ID-SAP4L64H-DVtmANJA.js} +1 -1
- package/dist/dashboard/assets/{index-BO_pjfQA.js → index-C64a-kHY.js} +1 -1
- package/dist/dashboard/assets/index-CC4bLFLV.js +579 -0
- package/dist/dashboard/assets/index-DZ3FBso3.css +32 -0
- package/dist/dashboard/assets/{infoDiagram-42DDH7IO-DKXhFQx1.js → infoDiagram-42DDH7IO-DfBeu9Gz.js} +1 -1
- package/dist/dashboard/assets/{ishikawaDiagram-UXIWVN3A-ixuXBV9q.js → ishikawaDiagram-UXIWVN3A-CbBN1lYP.js} +1 -1
- package/dist/dashboard/assets/{it-IT-JPQ66NNP-B-3gnXYZ.js → it-IT-JPQ66NNP-BbmyFH6C.js} +1 -1
- package/dist/dashboard/assets/{ja-JP-DBVTYXUO-GCqLTdC-.js → ja-JP-DBVTYXUO-Cbhk39-5.js} +1 -1
- package/dist/dashboard/assets/{journeyDiagram-VCZTEJTY-Cda6rfE1.js → journeyDiagram-VCZTEJTY-BW4WNn5U.js} +1 -1
- package/dist/dashboard/assets/{kaa-6HZHGXH3-DUr4YiJc.js → kaa-6HZHGXH3-Cm-Swgc1.js} +1 -1
- package/dist/dashboard/assets/{kab-KAB-ZGHBKWFO-DGcoDq7_.js → kab-KAB-ZGHBKWFO-BX9BAQyv.js} +1 -1
- package/dist/dashboard/assets/{kanban-definition-6JOO6SKY-8II0TptL.js → kanban-definition-6JOO6SKY-D6dnUpyA.js} +1 -1
- package/dist/dashboard/assets/{kk-KZ-P5N5QNE5-OnQ3fZQr.js → kk-KZ-P5N5QNE5-MHpPSoz0.js} +1 -1
- package/dist/dashboard/assets/{km-KH-HSX4SM5Z-BgLH2RAX.js → km-KH-HSX4SM5Z-BU3ECFbO.js} +1 -1
- package/dist/dashboard/assets/{ko-KR-MTYHY66A-BFRlVzp3.js → ko-KR-MTYHY66A-DqT3JGwF.js} +1 -1
- package/dist/dashboard/assets/{ku-TR-6OUDTVRD-KXxCpHg7.js → ku-TR-6OUDTVRD-DN2-3fDm.js} +1 -1
- package/dist/dashboard/assets/{layout-Bk1_SQxF.js → layout-BZ4MGsUu.js} +1 -1
- package/dist/dashboard/assets/{linear-NBVeSfQr.js → linear-C0etayOa.js} +1 -1
- package/dist/dashboard/assets/{lt-LT-XHIRWOB4-zYih94tH.js → lt-LT-XHIRWOB4-DQVwHiLl.js} +1 -1
- package/dist/dashboard/assets/{lv-LV-5QDEKY6T-BfR2lGJU.js → lv-LV-5QDEKY6T-Dad8CoSF.js} +1 -1
- package/dist/dashboard/assets/{min-Czsp1-lf.js → min-Bl_tJyDg.js} +1 -1
- package/dist/dashboard/assets/{mindmap-definition-QFDTVHPH-B7iHNGK3.js → mindmap-definition-QFDTVHPH-BNw0aQbU.js} +1 -1
- package/dist/dashboard/assets/{mr-IN-CRQNXWMA-CbecgcF-.js → mr-IN-CRQNXWMA-BbxiQT_Z.js} +1 -1
- package/dist/dashboard/assets/{my-MM-5M5IBNSE-CsdHXw4v.js → my-MM-5M5IBNSE-UoAgrIPq.js} +1 -1
- package/dist/dashboard/assets/{nb-NO-T6EIAALU-r8FpCRvQ.js → nb-NO-T6EIAALU-CImkOb7l.js} +1 -1
- package/dist/dashboard/assets/{nl-NL-IS3SIHDZ-Dp3Z4P6_.js → nl-NL-IS3SIHDZ-vfeVTewJ.js} +1 -1
- package/dist/dashboard/assets/{nn-NO-6E72VCQL-CQcuUlUa.js → nn-NO-6E72VCQL-DUCB91yA.js} +1 -1
- package/dist/dashboard/assets/{oc-FR-POXYY2M6-Dz9rwf28.js → oc-FR-POXYY2M6-BkXl0YMF.js} +1 -1
- package/dist/dashboard/assets/{pa-IN-N4M65BXN-AuAonL3w.js → pa-IN-N4M65BXN-CWiVQtSk.js} +1 -1
- package/dist/dashboard/assets/{percentages-BXMCSKIN-D9EnbREi.js → percentages-BXMCSKIN-BGA-Ex2O.js} +31 -31
- package/dist/dashboard/assets/{pica---loOZLP.js → pica-B8XEUChK.js} +1 -1
- package/dist/dashboard/assets/{pieDiagram-DEJITSTG-CiDTXifX.js → pieDiagram-DEJITSTG-Dic1EjdC.js} +1 -1
- package/dist/dashboard/assets/{pl-PL-T2D74RX3-4k9qJgDf.js → pl-PL-T2D74RX3-g55_1Rbd.js} +1 -1
- package/dist/dashboard/assets/{pt-BR-5N22H2LF-DvKuT6kK.js → pt-BR-5N22H2LF-DQeCXlLm.js} +1 -1
- package/dist/dashboard/assets/{pt-PT-UZXXM6DQ-ijbr_1VI.js → pt-PT-UZXXM6DQ-CHvZqZyF.js} +1 -1
- package/dist/dashboard/assets/{quadrantDiagram-34T5L4WZ-Bu9Comci.js → quadrantDiagram-34T5L4WZ-CP7lQiIi.js} +1 -1
- package/dist/dashboard/assets/{requirementDiagram-MS252O5E-D62TW6xA.js → requirementDiagram-MS252O5E-BWtUEAf6.js} +1 -1
- package/dist/dashboard/assets/{ro-RO-JPDTUUEW-C0llzWmG.js → ro-RO-JPDTUUEW-EwDfeMZo.js} +1 -1
- package/dist/dashboard/assets/{ru-RU-B4JR7IUQ-BeSwVB2r.js → ru-RU-B4JR7IUQ-CD2Zj2l8.js} +1 -1
- package/dist/dashboard/assets/{sankeyDiagram-XADWPNL6-TlSEi12K.js → sankeyDiagram-XADWPNL6-DwvQDD5y.js} +1 -1
- package/dist/dashboard/assets/{sequenceDiagram-FGHM5R23-ScKG2Xsm.js → sequenceDiagram-FGHM5R23-BRglyRtb.js} +1 -1
- package/dist/dashboard/assets/{si-LK-N5RQ5JYF-DWeue3dw.js → si-LK-N5RQ5JYF-BY5MM9Vd.js} +1 -1
- package/dist/dashboard/assets/{sk-SK-C5VTKIMK-C2sh3w4f.js → sk-SK-C5VTKIMK-5GG4lqoV.js} +1 -1
- package/dist/dashboard/assets/{sl-SI-NN7IZMDC-CeXk9ucf.js → sl-SI-NN7IZMDC-DX6b0Bj8.js} +1 -1
- package/dist/dashboard/assets/{stateDiagram-FHFEXIEX-BB1JoyXM.js → stateDiagram-FHFEXIEX-Dl3yCEGL.js} +1 -1
- package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-Q3JaGk-b.js +1 -0
- package/dist/dashboard/assets/{subset-shared.chunk-CWvpWWsn.js → subset-shared.chunk-CmSgs0wP.js} +1 -1
- package/dist/dashboard/assets/{subset-worker.chunk-D7Ec71V-.js → subset-worker.chunk-gyKmbtyq.js} +1 -1
- package/dist/dashboard/assets/{sv-SE-XGPEYMSR-8YPrynz7.js → sv-SE-XGPEYMSR-Cf_qIZ2K.js} +1 -1
- package/dist/dashboard/assets/{ta-IN-2NMHFXQM-CmMKeEZv.js → ta-IN-2NMHFXQM-zwatd37w.js} +1 -1
- package/dist/dashboard/assets/{th-TH-HPSO5L25-BIxym374.js → th-TH-HPSO5L25-Cw3uejzD.js} +1 -1
- package/dist/dashboard/assets/{timeline-definition-GMOUNBTQ-Cx1z6jhx.js → timeline-definition-GMOUNBTQ-C7YbVDU1.js} +1 -1
- package/dist/dashboard/assets/{tr-TR-DEFEU3FU-BZUk--nT.js → tr-TR-DEFEU3FU-C15eSVKk.js} +1 -1
- package/dist/dashboard/assets/{uk-UA-QMV73CPH-DKP6R9nZ.js → uk-UA-QMV73CPH-DtjXD0R5.js} +1 -1
- package/dist/dashboard/assets/{vennDiagram-DHZGUBPP-CHrTxlSz.js → vennDiagram-DHZGUBPP-CM3qRaPy.js} +1 -1
- package/dist/dashboard/assets/{vi-VN-M7AON7JQ-D1tkx3Op.js → vi-VN-M7AON7JQ-TYc9r2ul.js} +1 -1
- package/dist/dashboard/assets/{wardley-RL74JXVD-DuzpwUu5.js → wardley-RL74JXVD-hKHpsv-V.js} +1 -1
- package/dist/dashboard/assets/{wardleyDiagram-NUSXRM2D-x03tOVd0.js → wardleyDiagram-NUSXRM2D-By2VWEm6.js} +1 -1
- package/dist/dashboard/assets/webviewWindow-BbG9Cr7f.js +1 -0
- package/dist/dashboard/assets/window-DmNpeJAL.js +1 -0
- package/dist/dashboard/assets/{xychartDiagram-5P7HB3ND-CufD9zuW.js → xychartDiagram-5P7HB3ND-B_jwEdiv.js} +1 -1
- package/dist/dashboard/assets/{zh-CN-LNUGB5OW-CpicUYEV.js → zh-CN-LNUGB5OW-BMLBhdOl.js} +1 -1
- package/dist/dashboard/assets/{zh-HK-E62DVLB3-DyNkpg-N.js → zh-HK-E62DVLB3-B3F6zPCV.js} +1 -1
- package/dist/dashboard/assets/{zh-TW-RAJ6MFWO-Cg30MEjI.js → zh-TW-RAJ6MFWO-BtvvFKFv.js} +1 -1
- package/dist/dashboard/favicon.svg +14 -9
- package/dist/dashboard/index.html +5 -4
- package/dist/dashboard/logo.png +0 -0
- package/dist/index.js +7470 -1411
- package/dist/skill-packs/goal-skill/SKILL.md +5 -0
- package/package.json +8 -2
- package/skill/SKILL.md +10 -4
- package/skill/references/cli-reference.md +10 -6
- package/skill/references/integrations.md +17 -8
- package/skill/references/knowledge-and-recall.md +8 -0
- package/skill/references/sleep.md +1 -1
- package/skill/references/tasks-and-features.md +60 -4
- package/skill-deep-research/SKILL.md +179 -0
- package/skill-packs/goal-skill/SKILL.md +5 -0
- package/dist/dashboard/assets/channel-CJWWthUO.js +0 -1
- package/dist/dashboard/assets/classDiagram-6PBFFD2Q-D8yKg5c-.js +0 -1
- package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-D8yKg5c-.js +0 -1
- package/dist/dashboard/assets/clone-DkTWs9rv.js +0 -1
- package/dist/dashboard/assets/index-CQkBs_Vm.js +0 -484
- package/dist/dashboard/assets/index-aCkhI_aO.css +0 -1
- package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-BqR3Ofhf.js +0 -1
- package/dist/dashboard/assets/webviewWindow-Dlc9MvRw.js +0 -1
- package/dist/dashboard/assets/window-D0tFurhp.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as u,i as t,t as L,R}from"./core-Cn4yfEqx.js";class W{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new c(this.width*e,this.height*e)}[u](){return{width:this.width,height:this.height}}toJSON(){return this[u]()}}class c{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new W(this.width/e,this.height/e)}[u](){return{width:this.width,height:this.height}}toJSON(){return this[u]()}}class h{constructor(e){this.size=e}toLogical(e){return this.size instanceof W?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof c?this.size:this.size.toPhysical(e)}[u](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[u]()}}class z{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new o(this.x*e,this.y*e)}[u](){return{x:this.x,y:this.y}}toJSON(){return this[u]()}}class o{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new z(this.x/e,this.y/e)}[u](){return{x:this.x,y:this.y}}toJSON(){return this[u]()}}class w{constructor(e){this.position=e}toLogical(e){return this.position instanceof z?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof o?this.position:this.position.toPhysical(e)}[u](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[u]()}}var a;(function(i){i.WINDOW_RESIZED="tauri://resize",i.WINDOW_MOVED="tauri://move",i.WINDOW_CLOSE_REQUESTED="tauri://close-requested",i.WINDOW_DESTROYED="tauri://destroyed",i.WINDOW_FOCUS="tauri://focus",i.WINDOW_BLUR="tauri://blur",i.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",i.WINDOW_THEME_CHANGED="tauri://theme-changed",i.WINDOW_CREATED="tauri://window-created",i.WINDOW_SUSPENDED="tauri://suspended",i.WINDOW_RESUMED="tauri://resumed",i.WEBVIEW_CREATED="tauri://webview-created",i.DRAG_ENTER="tauri://drag-enter",i.DRAG_OVER="tauri://drag-over",i.DRAG_DROP="tauri://drag-drop",i.DRAG_LEAVE="tauri://drag-leave"})(a||(a={}));async function N(i,e){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(i,e),await t("plugin:event|unlisten",{event:i,eventId:e})}async function C(i,e,n){var l;const s=typeof(n==null?void 0:n.target)=="string"?{kind:"AnyLabel",label:n.target}:(l=n==null?void 0:n.target)!==null&&l!==void 0?l:{kind:"Any"};return t("plugin:event|listen",{event:i,target:s,handler:L(e)}).then(_=>async()=>N(i,_))}async function P(i,e,n){return C(i,l=>{N(i,l.id),e(l)},n)}async function k(i,e){await t("plugin:event|emit",{event:i,payload:e})}async function E(i,e,n){await t("plugin:event|emit_to",{target:typeof i=="string"?{kind:"AnyLabel",label:i}:i,event:e,payload:n})}class d extends R{constructor(e){super(e)}static async new(e,n,l){return t("plugin:image|new",{rgba:y(e),width:n,height:l}).then(s=>new d(s))}static async fromBytes(e){return t("plugin:image|from_bytes",{bytes:y(e)}).then(n=>new d(n))}static async fromPath(e){return t("plugin:image|from_path",{path:e}).then(n=>new d(n))}async rgba(){return t("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return t("plugin:image|size",{rid:this.rid})}}function y(i){return i==null?null:typeof i=="string"?i:i instanceof d?i.rid:i}var p;(function(i){i[i.Critical=1]="Critical",i[i.Informational=2]="Informational"})(p||(p={}));class x{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var v;(function(i){i.None="none",i.Normal="normal",i.Indeterminate="indeterminate",i.Paused="paused",i.Error="error"})(v||(v={}));function I(){return new O(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function b(){return t("plugin:window|get_all_windows").then(i=>i.map(e=>new O(e,{skip:!0})))}const m=["tauri://created","tauri://error"];class O{constructor(e,n={}){var l;this.label=e,this.listeners=Object.create(null),n!=null&&n.skip||t("plugin:window|create",{options:{...n,parent:typeof n.parent=="string"?n.parent:(l=n.parent)===null||l===void 0?void 0:l.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static async getByLabel(e){var n;return(n=(await b()).find(l=>l.label===e))!==null&&n!==void 0?n:null}static getCurrent(){return I()}static async getAll(){return b()}static async getFocusedWindow(){for(const e of await b())if(await e.isFocused())return e;return null}async listen(e,n){return this._handleTauriEvent(e,n)?()=>{const l=this.listeners[e];l.splice(l.indexOf(n),1)}:C(e,n,{target:{kind:"Window",label:this.label}})}async once(e,n){return this._handleTauriEvent(e,n)?()=>{const l=this.listeners[e];l.splice(l.indexOf(n),1)}:P(e,n,{target:{kind:"Window",label:this.label}})}async emit(e,n){if(m.includes(e)){for(const l of this.listeners[e]||[])l({event:e,id:-1,payload:n});return}return k(e,n)}async emitTo(e,n,l){if(m.includes(n)){for(const s of this.listeners[n]||[])s({event:n,id:-1,payload:l});return}return E(e,n,l)}_handleTauriEvent(e,n){return m.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}async scaleFactor(){return t("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return t("plugin:window|inner_position",{label:this.label}).then(e=>new o(e))}async outerPosition(){return t("plugin:window|outer_position",{label:this.label}).then(e=>new o(e))}async innerSize(){return t("plugin:window|inner_size",{label:this.label}).then(e=>new c(e))}async outerSize(){return t("plugin:window|outer_size",{label:this.label}).then(e=>new c(e))}async isFullscreen(){return t("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return t("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return t("plugin:window|is_maximized",{label:this.label})}async isFocused(){return t("plugin:window|is_focused",{label:this.label})}async isDecorated(){return t("plugin:window|is_decorated",{label:this.label})}async isResizable(){return t("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return t("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return t("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return t("plugin:window|is_closable",{label:this.label})}async isVisible(){return t("plugin:window|is_visible",{label:this.label})}async title(){return t("plugin:window|title",{label:this.label})}async theme(){return t("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return t("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return t("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return t("plugin:window|scene_identifier",{label:this.label})}async center(){return t("plugin:window|center",{label:this.label})}async requestUserAttention(e){let n=null;return e&&(e===p.Critical?n={type:"Critical"}:n={type:"Informational"}),t("plugin:window|request_user_attention",{label:this.label,value:n})}async setResizable(e){return t("plugin:window|set_resizable",{label:this.label,value:e})}async setEnabled(e){return t("plugin:window|set_enabled",{label:this.label,value:e})}async isEnabled(){return t("plugin:window|is_enabled",{label:this.label})}async setMaximizable(e){return t("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return t("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return t("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return t("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return t("plugin:window|maximize",{label:this.label})}async unmaximize(){return t("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return t("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return t("plugin:window|minimize",{label:this.label})}async unminimize(){return t("plugin:window|unminimize",{label:this.label})}async show(){return t("plugin:window|show",{label:this.label})}async hide(){return t("plugin:window|hide",{label:this.label})}async close(){return t("plugin:window|close",{label:this.label})}async destroy(){return t("plugin:window|destroy",{label:this.label})}async setDecorations(e){return t("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return t("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return t("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return t("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return t("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return t("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return t("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){return t("plugin:window|set_size",{label:this.label,value:e instanceof h?e:new h(e)})}async setMinSize(e){return t("plugin:window|set_min_size",{label:this.label,value:e instanceof h?e:e?new h(e):null})}async setMaxSize(e){return t("plugin:window|set_max_size",{label:this.label,value:e instanceof h?e:e?new h(e):null})}async setSizeConstraints(e){function n(l){return l?{Logical:l}:null}return t("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:n(e==null?void 0:e.minWidth),minHeight:n(e==null?void 0:e.minHeight),maxWidth:n(e==null?void 0:e.maxWidth),maxHeight:n(e==null?void 0:e.maxHeight)}})}async setPosition(e){return t("plugin:window|set_position",{label:this.label,value:e instanceof w?e:new w(e)})}async setFullscreen(e){return t("plugin:window|set_fullscreen",{label:this.label,value:e})}async setSimpleFullscreen(e){return t("plugin:window|set_simple_fullscreen",{label:this.label,value:e})}async setFocus(){return t("plugin:window|set_focus",{label:this.label})}async setFocusable(e){return t("plugin:window|set_focusable",{label:this.label,value:e})}async setIcon(e){return t("plugin:window|set_icon",{label:this.label,value:y(e)})}async setSkipTaskbar(e){return t("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return t("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return t("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return t("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setBackgroundColor(e){return t("plugin:window|set_background_color",{color:e})}async setCursorPosition(e){return t("plugin:window|set_cursor_position",{label:this.label,value:e instanceof w?e:new w(e)})}async setIgnoreCursorEvents(e){return t("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return t("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return t("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setBadgeCount(e){return t("plugin:window|set_badge_count",{label:this.label,value:e})}async setBadgeLabel(e){return t("plugin:window|set_badge_label",{label:this.label,value:e})}async setOverlayIcon(e){return t("plugin:window|set_overlay_icon",{label:this.label,value:e?y(e):void 0})}async setProgressBar(e){return t("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return t("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async setTitleBarStyle(e){return t("plugin:window|set_title_bar_style",{label:this.label,value:e})}async setTheme(e){return t("plugin:window|set_theme",{label:this.label,value:e})}async onResized(e){return this.listen(a.WINDOW_RESIZED,n=>{n.payload=new c(n.payload),e(n)})}async onMoved(e){return this.listen(a.WINDOW_MOVED,n=>{n.payload=new o(n.payload),e(n)})}async onCloseRequested(e){return this.listen(a.WINDOW_CLOSE_REQUESTED,async n=>{const l=new x(n);await e(l),l.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){const n=await this.listen(a.DRAG_ENTER,r=>{e({...r,payload:{type:"enter",paths:r.payload.paths,position:new o(r.payload.position)}})}),l=await this.listen(a.DRAG_OVER,r=>{e({...r,payload:{type:"over",position:new o(r.payload.position)}})}),s=await this.listen(a.DRAG_DROP,r=>{e({...r,payload:{type:"drop",paths:r.payload.paths,position:new o(r.payload.position)}})}),_=await this.listen(a.DRAG_LEAVE,r=>{e({...r,payload:{type:"leave"}})});return()=>{n(),s(),l(),_()}}async onFocusChanged(e){const n=await this.listen(a.WINDOW_FOCUS,s=>{e({...s,payload:!0})}),l=await this.listen(a.WINDOW_BLUR,s=>{e({...s,payload:!1})});return()=>{n(),l()}}async onScaleChanged(e){return this.listen(a.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(a.WINDOW_THEME_CHANGED,e)}}var S;(function(i){i.Disabled="disabled",i.Throttle="throttle",i.Suspend="suspend"})(S||(S={}));var A;(function(i){i.Default="default",i.FluentOverlay="fluentOverlay"})(A||(A={}));var f;(function(i){i.AppearanceBased="appearanceBased",i.Light="light",i.Dark="dark",i.MediumLight="mediumLight",i.UltraDark="ultraDark",i.Titlebar="titlebar",i.Selection="selection",i.Menu="menu",i.Popover="popover",i.Sidebar="sidebar",i.HeaderView="headerView",i.Sheet="sheet",i.WindowBackground="windowBackground",i.HudWindow="hudWindow",i.FullScreenUI="fullScreenUI",i.Tooltip="tooltip",i.ContentBackground="contentBackground",i.UnderWindowBackground="underWindowBackground",i.UnderPageBackground="underPageBackground",i.Mica="mica",i.Blur="blur",i.Acrylic="acrylic",i.Tabbed="tabbed",i.TabbedDark="tabbedDark",i.TabbedLight="tabbedLight"})(f||(f={}));var D;(function(i){i.FollowsWindowActiveState="followsWindowActiveState",i.Active="active",i.Inactive="inactive"})(D||(D={}));function g(i){return i===null?null:{name:i.name,scaleFactor:i.scaleFactor,position:new o(i.position),size:new c(i.size),workArea:{position:new o(i.workArea.position),size:new c(i.workArea.size)}}}async function T(){return t("plugin:window|current_monitor").then(g)}async function M(){return t("plugin:window|primary_monitor").then(g)}async function B(i,e){return t("plugin:window|monitor_from_point",{x:i,y:e}).then(g)}async function F(){return t("plugin:window|available_monitors").then(i=>i.map(g))}async function U(){return t("plugin:window|cursor_position").then(i=>new o(i))}const V=Object.freeze(Object.defineProperty({__proto__:null,CloseRequestedEvent:x,get Effect(){return f},get EffectState(){return D},LogicalPosition:z,LogicalSize:W,PhysicalPosition:o,PhysicalSize:c,get ProgressBarStatus(){return v},get UserAttentionType(){return p},Window:O,availableMonitors:F,currentMonitor:T,cursorPosition:U,getAllWindows:b,getCurrentWindow:I,monitorFromPoint:B,primaryMonitor:M},Symbol.toStringTag,{value:"Module"}));export{o as P,h as S,a as T,O as W,E as a,c as b,w as c,k as e,I as g,C as l,P as o,V as w};
|