@futdevpro/ccap 1.1.2869 → 1.1.2881
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/client-dist/{agent-instances.module-3LXXHDID.js → agent-instances.module-U742BGNW.js} +2 -2
- package/client-dist/{ca.module-MYYCM2JJ.js → ca.module-WANXRIO7.js} +2 -2
- package/client-dist/cc-usage-dashboard.component-TPMSJIGI.js +2 -0
- package/client-dist/cc-usage-dashboard.component-TPMSJIGI.js.map +7 -0
- package/client-dist/{cc.module-S6E7DTHJ.js → cc.module-JZUXUXHP.js} +2 -2
- package/client-dist/{chunk-ISWTCW7W.js → chunk-26DXMUXV.js} +2 -2
- package/client-dist/{chunk-KB7B22JR.js → chunk-2LJT2APC.js} +2 -2
- package/client-dist/{chunk-RIVVMZSH.js → chunk-435IBC6L.js} +2 -2
- package/client-dist/{chunk-Z5SR576N.js → chunk-467OMXRK.js} +2 -2
- package/client-dist/{chunk-6XORNZET.js → chunk-46N7EC7U.js} +2 -2
- package/client-dist/{chunk-YIQBC2QJ.js → chunk-4OKUKX55.js} +2 -2
- package/client-dist/{chunk-5LSG6VTE.js → chunk-4RRBZXYU.js} +2 -2
- package/client-dist/{chunk-3LN5752S.js → chunk-4TBE5I3U.js} +2 -2
- package/client-dist/{chunk-TKCU7CDK.js → chunk-6A2IM2XR.js} +2 -2
- package/client-dist/{chunk-JWWJ6DPT.js → chunk-6BQHKSUP.js} +2 -2
- package/client-dist/{chunk-OWAXNU7Q.js → chunk-6IYFOHCN.js} +2 -2
- package/client-dist/{chunk-OU3F7ZJU.js → chunk-6NWEJXDU.js} +2 -2
- package/client-dist/{chunk-OUIQTJDB.js → chunk-767Z7I55.js} +2 -2
- package/client-dist/{chunk-JNIJEGC3.js → chunk-AS2SYIJB.js} +2 -2
- package/client-dist/{chunk-VIFXYYPK.js → chunk-BHWHGLKC.js} +2 -2
- package/client-dist/{chunk-ZVHVFEBL.js → chunk-CILMMQ5V.js} +2 -2
- package/client-dist/{chunk-JRG7FXDC.js → chunk-CSHUFD2L.js} +2 -2
- package/client-dist/{chunk-KK4QAETW.js → chunk-DNHL6M7F.js} +2 -2
- package/client-dist/{chunk-5AKIWMP2.js → chunk-DUN255KX.js} +2 -2
- package/client-dist/{chunk-YOSTW7HD.js → chunk-EBSMIZTK.js} +2 -2
- package/client-dist/{chunk-TYQN5TDD.js → chunk-EY32IBWM.js} +2 -2
- package/client-dist/{chunk-TOGFLAZ7.js → chunk-FJGBPKHK.js} +2 -2
- package/client-dist/{chunk-TEY575GB.js → chunk-GDAL4G4Y.js} +2 -2
- package/client-dist/{chunk-2BU3PEIR.js → chunk-GR3CXOIX.js} +2 -2
- package/client-dist/{chunk-7WZCSUSH.js → chunk-HDCFO7OE.js} +2 -2
- package/client-dist/{chunk-2PDIEP7E.js → chunk-HFVIX2ZG.js} +2 -2
- package/client-dist/{chunk-APKFZ3NB.js → chunk-HPBX6VCV.js} +2 -2
- package/client-dist/{chunk-GQFCMJB7.js → chunk-IR4THKPA.js} +2 -2
- package/client-dist/{chunk-OX65HIMB.js → chunk-J5NYZUBP.js} +2 -2
- package/client-dist/{chunk-76SBSCFD.js → chunk-JDK64BE7.js} +2 -2
- package/client-dist/{chunk-YDSE5YMB.js → chunk-KMEGS6BP.js} +2 -2
- package/client-dist/{chunk-XNIVMROA.js → chunk-KQLKM7RB.js} +2 -2
- package/client-dist/{chunk-FQGSNRKX.js → chunk-LERWAULE.js} +2 -2
- package/client-dist/{chunk-NNKE5Y76.js → chunk-M3RL34GF.js} +2 -2
- package/client-dist/{chunk-HBQZEBLB.js → chunk-NJPSU6MN.js} +2 -2
- package/client-dist/{chunk-N7DN2GHR.js → chunk-ONEB5UF5.js} +2 -2
- package/client-dist/{chunk-ETSUU22G.js → chunk-OP2PE3KG.js} +2 -2
- package/client-dist/{chunk-ETSUU22G.js.map → chunk-OP2PE3KG.js.map} +1 -1
- package/client-dist/{chunk-R7R6POCN.js → chunk-OZGFJXOA.js} +2 -2
- package/client-dist/{chunk-DM757UXT.js → chunk-PPRG7F5A.js} +2 -2
- package/client-dist/{chunk-AP4ZGZ3Q.js → chunk-PQUBI6TC.js} +2 -2
- package/client-dist/{chunk-W3R2EMPM.js → chunk-Q6JQHJME.js} +2 -2
- package/client-dist/{chunk-QGWYDTS3.js → chunk-QDTY7SR6.js} +2 -2
- package/client-dist/{chunk-JLHB4EGI.js → chunk-RQ2HFT2L.js} +2 -2
- package/client-dist/{chunk-YZEV52S3.js → chunk-RRN36VPR.js} +2 -2
- package/client-dist/{chunk-NID5T5OA.js → chunk-S4GJTHYZ.js} +2 -2
- package/client-dist/{chunk-6UO45CXV.js → chunk-SKHAAE4A.js} +2 -2
- package/client-dist/{chunk-GB63TGH2.js → chunk-TSPROG7P.js} +2 -2
- package/client-dist/{chunk-2V7JR7SO.js → chunk-U7ZBDYGU.js} +2 -2
- package/client-dist/{chunk-WJHZKMS6.js → chunk-VQWGWQDA.js} +2 -2
- package/client-dist/{chunk-GPNYGY72.js → chunk-X7HHJQ2O.js} +2 -2
- package/client-dist/{chunk-6RS5GTKC.js → chunk-XH3SQ4UP.js} +2 -2
- package/client-dist/{chunk-SC7L2BUT.js → chunk-XHF463TC.js} +2 -2
- package/client-dist/{chunk-35NYQ66T.js → chunk-XJEATRA4.js} +2 -2
- package/client-dist/{chunk-2J4JC47Y.js → chunk-XSXQC64X.js} +2 -2
- package/client-dist/{chunk-5ZIYBSP7.js → chunk-YE57GLWU.js} +2 -2
- package/client-dist/{chunk-TTIUP6WD.js → chunk-YX6NZTP7.js} +2 -2
- package/client-dist/{consultant.module-OKAHHHIM.js → consultant.module-WL4WEIIF.js} +2 -2
- package/client-dist/{crd.module-G6Z36XAU.js → crd.module-OE3ML5C7.js} +2 -2
- package/client-dist/{dashboard.module-6RDWDPLM.js → dashboard.module-NBINBB72.js} +2 -2
- package/client-dist/{do.module-REZMQY2N.js → do.module-BLTXJC4T.js} +2 -2
- package/client-dist/{document-library.module-HNEY63TN.js → document-library.module-TXGZT2VZ.js} +2 -2
- package/client-dist/{embedding-eval.module-5T6NKDKA.js → embedding-eval.module-PYE5NL5R.js} +2 -2
- package/client-dist/{embedding-registry.module-CMPQ7NS2.js → embedding-registry.module-46PAOMQR.js} +2 -2
- package/client-dist/{err.module-CVZWIOMI.js → err.module-B743IN5O.js} +2 -2
- package/client-dist/{feedback.module-CRCF4W25.js → feedback.module-H4YSPDLF.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-7ODIDC5L.js → host-runtime-mcp.module-6SK6OZH7.js} +2 -2
- package/client-dist/index.html +2 -2
- package/client-dist/{live-dev-pipeline.module-V26BMG6N.js → live-dev-pipeline.module-MCPAY2LG.js} +2 -2
- package/client-dist/{logs.module-PLE5ABP6.js → logs.module-CJF7RLV7.js} +2 -2
- package/client-dist/{main-EBGS6D7B.js → main-NZFBSJOQ.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-ZB5IS3LQ.js → master-control-remote-poc.module-LJ5ANCQ6.js} +2 -2
- package/client-dist/{mobile-app.module-5UZRMRJ6.js → mobile-app.module-G7LAAOOP.js} +2 -2
- package/client-dist/{model-registry.module-IWCKDRUO.js → model-registry.module-WDAX2AHY.js} +2 -2
- package/client-dist/{oc.module-44GVU6IT.js → oc.module-T43BN7CJ.js} +2 -2
- package/client-dist/{orc.module-QG7H5CON.js → orc.module-R3P5Y4YW.js} +2 -2
- package/client-dist/{project-management.module-6K7Q55KX.js → project-management.module-ODMCGFYI.js} +2 -2
- package/client-dist/project-source-routed.module-M22ABRHR.js +2 -0
- package/client-dist/{scheduler.module-WIEM3UPU.js → scheduler.module-TZLVYYMO.js} +2 -2
- package/client-dist/{session.module-FMEFK7VS.js → session.module-3XGXYP4K.js} +2 -2
- package/client-dist/{set.module-2ACVRQVB.js → set.module-M3PJXM3W.js} +5 -5
- package/client-dist/{set.module-2ACVRQVB.js.map → set.module-M3PJXM3W.js.map} +3 -3
- package/client-dist/{setup.module-C6ICVZKP.js → setup.module-2U3R4YDE.js} +2 -2
- package/client-dist/styles-OJOSC7GL.css +2 -0
- package/client-dist/styles-OJOSC7GL.css.map +7 -0
- package/client-dist/{terminals.module-F5BMBKBP.js → terminals.module-ULIXEKUD.js} +2 -2
- package/client-dist/{voice-notes-poc.module-SXROQC4L.js → voice-notes-poc.module-GZGIIFPR.js} +2 -2
- package/client-dist/{wfs.module-IFEXPLHA.js → wfs.module-6B4QN7NS.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_collections/utils/account/cc-account-usage-probe.util.d.ts +85 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_collections/utils/account/cc-account-usage-probe.util.d.ts.map +1 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_collections/utils/account/cc-account-usage-probe.util.js +264 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_collections/utils/account/cc-account-usage-probe.util.js.map +1 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account-route.control-service.d.ts +18 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account-route.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account-route.control-service.js +93 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account-route.control-service.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account.controller.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account.controller.js +14 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account.controller.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account-pool.control-service.d.ts +36 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account-pool.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account-pool.control-service.js +136 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account-pool.control-service.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account.data-service.d.ts +11 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account.data-service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account.data-service.js +40 -0
- package/server/build/src/_modules/external-sessions/_modules/claude-code/_services/core/account/cc-account.data-service.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-presence.service.d.ts +4 -4
- package/server/build/src/_modules/external-sessions/_services/exs-instance-presence.service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-presence.service.js +12 -7
- package/server/build/src/_modules/external-sessions/_services/exs-instance-presence.service.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-presence.service.spec.js +17 -14
- package/server/build/src/_modules/external-sessions/_services/exs-instance-presence.service.spec.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.d.ts +6 -2
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.js +8 -4
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.js.map +1 -1
- package/server/build/src/_modules/peer-instance/_models/interfaces/pei-heartbeat-status.interface.d.ts +23 -0
- package/server/build/src/_modules/peer-instance/_models/interfaces/pei-heartbeat-status.interface.d.ts.map +1 -0
- package/server/build/src/_modules/peer-instance/_models/interfaces/pei-heartbeat-status.interface.js +3 -0
- package/server/build/src/_modules/peer-instance/_models/interfaces/pei-heartbeat-status.interface.js.map +1 -0
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat-self-healing.spec.d.ts +10 -0
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat-self-healing.spec.d.ts.map +1 -0
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat-self-healing.spec.js +81 -0
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat-self-healing.spec.js.map +1 -0
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.d.ts +49 -2
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.js +107 -6
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.js.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client-active-reconnect.spec.d.ts +8 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client-active-reconnect.spec.d.ts.map +1 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client-active-reconnect.spec.js +112 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client-active-reconnect.spec.js.map +1 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.d.ts +26 -1
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.js +60 -7
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.js.map +1 -1
- package/server/build/src/_modules/setup-config/_models/interfaces/cluster/sc-cluster-diagnostics-result.interface.d.ts +8 -0
- package/server/build/src/_modules/setup-config/_models/interfaces/cluster/sc-cluster-diagnostics-result.interface.d.ts.map +1 -1
- package/server/build/src/_modules/setup-config/_services/control-services/sc-cluster.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/setup-config/_services/control-services/sc-cluster.control-service.js +8 -2
- package/server/build/src/_modules/setup-config/_services/control-services/sc-cluster.control-service.js.map +1 -1
- package/client-dist/cc-usage-dashboard.component-BZERJBJ7.js +0 -2
- package/client-dist/cc-usage-dashboard.component-BZERJBJ7.js.map +0 -7
- package/client-dist/project-source-routed.module-72C4RPOH.js +0 -2
- package/client-dist/styles-WS3OIV37.css +0 -2
- package/client-dist/styles-WS3OIV37.css.map +0 -7
- /package/client-dist/{agent-instances.module-3LXXHDID.js.map → agent-instances.module-U742BGNW.js.map} +0 -0
- /package/client-dist/{ca.module-MYYCM2JJ.js.map → ca.module-WANXRIO7.js.map} +0 -0
- /package/client-dist/{cc.module-S6E7DTHJ.js.map → cc.module-JZUXUXHP.js.map} +0 -0
- /package/client-dist/{chunk-ISWTCW7W.js.map → chunk-26DXMUXV.js.map} +0 -0
- /package/client-dist/{chunk-KB7B22JR.js.map → chunk-2LJT2APC.js.map} +0 -0
- /package/client-dist/{chunk-RIVVMZSH.js.map → chunk-435IBC6L.js.map} +0 -0
- /package/client-dist/{chunk-Z5SR576N.js.map → chunk-467OMXRK.js.map} +0 -0
- /package/client-dist/{chunk-6XORNZET.js.map → chunk-46N7EC7U.js.map} +0 -0
- /package/client-dist/{chunk-YIQBC2QJ.js.map → chunk-4OKUKX55.js.map} +0 -0
- /package/client-dist/{chunk-5LSG6VTE.js.map → chunk-4RRBZXYU.js.map} +0 -0
- /package/client-dist/{chunk-3LN5752S.js.map → chunk-4TBE5I3U.js.map} +0 -0
- /package/client-dist/{chunk-TKCU7CDK.js.map → chunk-6A2IM2XR.js.map} +0 -0
- /package/client-dist/{chunk-JWWJ6DPT.js.map → chunk-6BQHKSUP.js.map} +0 -0
- /package/client-dist/{chunk-OWAXNU7Q.js.map → chunk-6IYFOHCN.js.map} +0 -0
- /package/client-dist/{chunk-OU3F7ZJU.js.map → chunk-6NWEJXDU.js.map} +0 -0
- /package/client-dist/{chunk-OUIQTJDB.js.map → chunk-767Z7I55.js.map} +0 -0
- /package/client-dist/{chunk-JNIJEGC3.js.map → chunk-AS2SYIJB.js.map} +0 -0
- /package/client-dist/{chunk-VIFXYYPK.js.map → chunk-BHWHGLKC.js.map} +0 -0
- /package/client-dist/{chunk-ZVHVFEBL.js.map → chunk-CILMMQ5V.js.map} +0 -0
- /package/client-dist/{chunk-JRG7FXDC.js.map → chunk-CSHUFD2L.js.map} +0 -0
- /package/client-dist/{chunk-KK4QAETW.js.map → chunk-DNHL6M7F.js.map} +0 -0
- /package/client-dist/{chunk-5AKIWMP2.js.map → chunk-DUN255KX.js.map} +0 -0
- /package/client-dist/{chunk-YOSTW7HD.js.map → chunk-EBSMIZTK.js.map} +0 -0
- /package/client-dist/{chunk-TYQN5TDD.js.map → chunk-EY32IBWM.js.map} +0 -0
- /package/client-dist/{chunk-TOGFLAZ7.js.map → chunk-FJGBPKHK.js.map} +0 -0
- /package/client-dist/{chunk-TEY575GB.js.map → chunk-GDAL4G4Y.js.map} +0 -0
- /package/client-dist/{chunk-2BU3PEIR.js.map → chunk-GR3CXOIX.js.map} +0 -0
- /package/client-dist/{chunk-7WZCSUSH.js.map → chunk-HDCFO7OE.js.map} +0 -0
- /package/client-dist/{chunk-2PDIEP7E.js.map → chunk-HFVIX2ZG.js.map} +0 -0
- /package/client-dist/{chunk-APKFZ3NB.js.map → chunk-HPBX6VCV.js.map} +0 -0
- /package/client-dist/{chunk-GQFCMJB7.js.map → chunk-IR4THKPA.js.map} +0 -0
- /package/client-dist/{chunk-OX65HIMB.js.map → chunk-J5NYZUBP.js.map} +0 -0
- /package/client-dist/{chunk-76SBSCFD.js.map → chunk-JDK64BE7.js.map} +0 -0
- /package/client-dist/{chunk-YDSE5YMB.js.map → chunk-KMEGS6BP.js.map} +0 -0
- /package/client-dist/{chunk-XNIVMROA.js.map → chunk-KQLKM7RB.js.map} +0 -0
- /package/client-dist/{chunk-FQGSNRKX.js.map → chunk-LERWAULE.js.map} +0 -0
- /package/client-dist/{chunk-NNKE5Y76.js.map → chunk-M3RL34GF.js.map} +0 -0
- /package/client-dist/{chunk-HBQZEBLB.js.map → chunk-NJPSU6MN.js.map} +0 -0
- /package/client-dist/{chunk-N7DN2GHR.js.map → chunk-ONEB5UF5.js.map} +0 -0
- /package/client-dist/{chunk-R7R6POCN.js.map → chunk-OZGFJXOA.js.map} +0 -0
- /package/client-dist/{chunk-DM757UXT.js.map → chunk-PPRG7F5A.js.map} +0 -0
- /package/client-dist/{chunk-AP4ZGZ3Q.js.map → chunk-PQUBI6TC.js.map} +0 -0
- /package/client-dist/{chunk-W3R2EMPM.js.map → chunk-Q6JQHJME.js.map} +0 -0
- /package/client-dist/{chunk-QGWYDTS3.js.map → chunk-QDTY7SR6.js.map} +0 -0
- /package/client-dist/{chunk-JLHB4EGI.js.map → chunk-RQ2HFT2L.js.map} +0 -0
- /package/client-dist/{chunk-YZEV52S3.js.map → chunk-RRN36VPR.js.map} +0 -0
- /package/client-dist/{chunk-NID5T5OA.js.map → chunk-S4GJTHYZ.js.map} +0 -0
- /package/client-dist/{chunk-6UO45CXV.js.map → chunk-SKHAAE4A.js.map} +0 -0
- /package/client-dist/{chunk-GB63TGH2.js.map → chunk-TSPROG7P.js.map} +0 -0
- /package/client-dist/{chunk-2V7JR7SO.js.map → chunk-U7ZBDYGU.js.map} +0 -0
- /package/client-dist/{chunk-WJHZKMS6.js.map → chunk-VQWGWQDA.js.map} +0 -0
- /package/client-dist/{chunk-GPNYGY72.js.map → chunk-X7HHJQ2O.js.map} +0 -0
- /package/client-dist/{chunk-6RS5GTKC.js.map → chunk-XH3SQ4UP.js.map} +0 -0
- /package/client-dist/{chunk-SC7L2BUT.js.map → chunk-XHF463TC.js.map} +0 -0
- /package/client-dist/{chunk-35NYQ66T.js.map → chunk-XJEATRA4.js.map} +0 -0
- /package/client-dist/{chunk-2J4JC47Y.js.map → chunk-XSXQC64X.js.map} +0 -0
- /package/client-dist/{chunk-5ZIYBSP7.js.map → chunk-YE57GLWU.js.map} +0 -0
- /package/client-dist/{chunk-TTIUP6WD.js.map → chunk-YX6NZTP7.js.map} +0 -0
- /package/client-dist/{consultant.module-OKAHHHIM.js.map → consultant.module-WL4WEIIF.js.map} +0 -0
- /package/client-dist/{crd.module-G6Z36XAU.js.map → crd.module-OE3ML5C7.js.map} +0 -0
- /package/client-dist/{dashboard.module-6RDWDPLM.js.map → dashboard.module-NBINBB72.js.map} +0 -0
- /package/client-dist/{do.module-REZMQY2N.js.map → do.module-BLTXJC4T.js.map} +0 -0
- /package/client-dist/{document-library.module-HNEY63TN.js.map → document-library.module-TXGZT2VZ.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-5T6NKDKA.js.map → embedding-eval.module-PYE5NL5R.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-CMPQ7NS2.js.map → embedding-registry.module-46PAOMQR.js.map} +0 -0
- /package/client-dist/{err.module-CVZWIOMI.js.map → err.module-B743IN5O.js.map} +0 -0
- /package/client-dist/{feedback.module-CRCF4W25.js.map → feedback.module-H4YSPDLF.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-7ODIDC5L.js.map → host-runtime-mcp.module-6SK6OZH7.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-V26BMG6N.js.map → live-dev-pipeline.module-MCPAY2LG.js.map} +0 -0
- /package/client-dist/{logs.module-PLE5ABP6.js.map → logs.module-CJF7RLV7.js.map} +0 -0
- /package/client-dist/{main-EBGS6D7B.js.map → main-NZFBSJOQ.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-ZB5IS3LQ.js.map → master-control-remote-poc.module-LJ5ANCQ6.js.map} +0 -0
- /package/client-dist/{mobile-app.module-5UZRMRJ6.js.map → mobile-app.module-G7LAAOOP.js.map} +0 -0
- /package/client-dist/{model-registry.module-IWCKDRUO.js.map → model-registry.module-WDAX2AHY.js.map} +0 -0
- /package/client-dist/{oc.module-44GVU6IT.js.map → oc.module-T43BN7CJ.js.map} +0 -0
- /package/client-dist/{orc.module-QG7H5CON.js.map → orc.module-R3P5Y4YW.js.map} +0 -0
- /package/client-dist/{project-management.module-6K7Q55KX.js.map → project-management.module-ODMCGFYI.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-72C4RPOH.js.map → project-source-routed.module-M22ABRHR.js.map} +0 -0
- /package/client-dist/{scheduler.module-WIEM3UPU.js.map → scheduler.module-TZLVYYMO.js.map} +0 -0
- /package/client-dist/{session.module-FMEFK7VS.js.map → session.module-3XGXYP4K.js.map} +0 -0
- /package/client-dist/{setup.module-C6ICVZKP.js.map → setup.module-2U3R4YDE.js.map} +0 -0
- /package/client-dist/{terminals.module-F5BMBKBP.js.map → terminals.module-ULIXEKUD.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-SXROQC4L.js.map → voice-notes-poc.module-GZGIIFPR.js.map} +0 -0
- /package/client-dist/{wfs.module-IFEXPLHA.js.map → wfs.module-6B4QN7NS.js.map} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as se}from"./chunk-VIFXYYPK.js";import"./chunk-JLHB4EGI.js";import"./chunk-N7DN2GHR.js";import"./chunk-TOGFLAZ7.js";import{b as Z,c as ee,f as te,i as ne,n as ie,o as oe,p as re,v as j}from"./chunk-EO4DNTT4.js";import{a as A}from"./chunk-5UPNU54P.js";import{j as ae}from"./chunk-JWWJ6DPT.js";import{I as le}from"./chunk-ETSUU22G.js";import{C,D as R,E as q,Fa as o,Ga as F,Ha as b,Ia as N,J as u,K as m,Kb as X,L as D,M as J,Ta as Y,Z as s,a as v,aa as w,b as S,d as B,da as k,ga as g,ia as I,k as x,la as h,na as K,oa as M,p as E,pa as z,qa as i,ra as n,sa as P,ua as y,ub as V,va as c,wa as p,xb as Q,y as T,z as U}from"./chunk-TBMJSIBB.js";var de=(()=>{class l{baseUrl=`${le.api.baseUrl}/workflow`;http=C(Q);listWorkflows(e){let t=[];e?.workflowType&&t.push(`type=${e.workflowType}`),e?.isTemplate!==void 0&&t.push(`isTemplate=${e.isTemplate}`);let r=t.length?`?${t.join("&")}`:"";return E(this.http.get(`${this.baseUrl}${r}`))}createWorkflow(e){return E(this.http.post(this.baseUrl,e))}getWorkflow(e){return E(this.http.get(`${this.baseUrl}/${e}`))}updateWorkflow(e){let a=e,{id:t}=a,r=B(a,["id"]);return E(this.http.put(`${this.baseUrl}/${t}`,r))}generateWorkflow(e){return E(this.http.post(`${this.baseUrl}/generate`,{description:e.description,provider:e.provider,model:e.model}))}modifyWorkflow(e){return E(this.http.post(`${this.baseUrl}/modify`,{currentWorkflow:e.currentWorkflow,modificationDescription:e.modificationDescription,provider:e.provider,model:e.model}))}deleteWorkflow(e){return E(this.http.delete(`${this.baseUrl}/${e}`))}static \u0275fac=function(t){return new(t||l)};static \u0275prov=T({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var pe=(()=>{class l{workflow_AS=C(de);listWorkflows(e){return x(this,null,function*(){return(yield this.workflow_AS.listWorkflows(e)).workflows})}createWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.createWorkflow(e)).workflow})}getWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.getWorkflow(e)).workflow})}updateWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.updateWorkflow(e)).workflow})}generateWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.generateWorkflow(e)).workflow})}modifyWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.modifyWorkflow(e)).workflow})}deleteWorkflow(e){return x(this,null,function*(){return this.workflow_AS.deleteWorkflow(e)})}static \u0275fac=function(t){return new(t||l)};static \u0275prov=T({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var L="ccap-workflowSettingsDraft",$=class{static get(){let d=A.readJson(L,null);if(typeof d!="object"||d===null)return null;let e=d,t=typeof e.generationPrompt=="string"?e.generationPrompt:"",r=typeof e.modificationPrompt=="string"?e.modificationPrompt:"",a=typeof e.selectedProvider=="string"?e.selectedProvider:"",_=typeof e.selectedModel=="string"?e.selectedModel:"",W=typeof e.isCreating=="boolean"?e.isCreating:!1,f=e.editingWorkflow&&typeof e.editingWorkflow=="object"?e.editingWorkflow:null;return{generationPrompt:t,modificationPrompt:r,selectedProvider:a,selectedModel:_,isCreating:W,editingWorkflow:f}}static save(d){A.writeJson(L,d)}static clear(){A.remove(L)}};var me=(l,d)=>d._id,H=(l,d)=>d.id;function ce(l,d){if(l&1){let e=y();i(0,"button",5),c("click",function(){u(e);let r=p();return m(r.handleCreateNew())}),o(1," + \xDAj workflow "),n()}}function _e(l,d){l&1&&(i(0,"div",6),o(1,"Bet\xF6lt\xE9s..."),n())}function fe(l,d){l&1&&(i(0,"div",7),o(1," Nincs m\xE9g workflow. Hozz l\xE9tre egyet a gombbal. "),n())}function ge(l,d){l&1&&(i(0,"span",14),o(1," sablon "),n())}function xe(l,d){l&1&&(i(0,"span",15),o(1," Built-in "),n())}function we(l,d){if(l&1){let e=y();i(0,"button",20),c("click",function(){u(e);let r=p().$implicit,a=p(3);return m(a.handleEdit(r))}),o(1," Szerkeszt\xE9s "),n(),i(2,"button",21),c("click",function(){u(e);let r=p().$implicit,a=p(3);return m(a.handleDelete(r))}),o(3," T\xF6rl\xE9s "),n()}}function he(l,d){l&1&&(i(0,"span",19),o(1," Readonly "),n())}function ke(l,d){if(l&1&&(i(0,"div",9)(1,"div",10)(2,"div",11)(3,"span",12),o(4),n(),i(5,"span",13),o(6),n(),k(7,ge,2,0,"span",14)(8,xe,2,0,"span",15),n(),i(9,"p",16),o(10),n(),i(11,"div",17),o(12),n()(),i(13,"div",18),k(14,we,4,0)(15,he,2,0,"span",19),n()()),l&2){let e=d.$implicit;s(4),F(e.name),s(2),b(" ",e.workflowType," "),s(),h(e.isTemplate?7:-1),s(),h(e.isBuiltIn?8:-1),s(2),F(e.description),s(2),b(" ",e.phases.length," f\xE1zis "),s(2),h(e.isBuiltIn?15:14)}}function Ee(l,d){if(l&1&&(i(0,"div",8),M(1,ke,16,7,"div",9,me),n()),l&2){let e=p(2);s(),z(e.workflows_$())}}function Ce(l,d){if(l&1&&k(0,_e,2,0,"div",6)(1,fe,2,0,"div",7)(2,Ee,3,0,"div",8),l&2){let e=p();h(e.isLoading_$()?0:e.workflows_$().length===0?1:2)}}function be(l,d){l&1&&(D(),i(0,"svg",27),P(1,"polyline",52),n())}function ve(l,d){l&1&&(D(),i(0,"svg",27),P(1,"rect",53)(2,"path",54),n())}function Se(l,d){if(l&1&&(i(0,"option",41),o(1),n()),l&2){let e=d.$implicit;g("value",e.provider+":"+e.modelName),s(),N(" ",e.provider," / ",e.modelName," ")}}function ye(l,d){l&1&&(i(0,"span",56),o(1,"Az LLM dolgozik a workflow-n..."),n())}function $e(l,d){if(l&1){let e=y();i(0,"div",28)(1,"div",42)(2,"span",55),o(3,"Workflow gener\xE1l\xE1s"),n(),i(4,"span",56),o(5,"\u2014 \xEDrd le egyszer\u0171en, mit szeretn\xE9l"),n()(),i(6,"textarea",57),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleGenerationPromptChange(r))}),o(7," "),n(),i(8,"div",58)(9,"div",42)(10,"label",56),o(11,"Modell:"),n(),i(12,"select",59),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleModelSelectionChange(r))}),i(13,"option",60),o(14,"Alap\xE9rtelmezett"),n(),M(15,Se,2,3,"option",41,H),n()(),i(17,"button",61),c("click",function(){u(e);let r=p(2);return m(r.handleGenerate())}),o(18),n(),k(19,ye,2,0,"span",56),n()()}if(l&2){let e=p(2);s(6),g("ngModel",e.generationPrompt_$()),s(6),g("ngModel",e.selectedProvider_$()&&e.selectedModel_$()?e.selectedProvider_$()+":"+e.selectedModel_$():""),s(3),z(e.availableModels_$()),s(2),g("disabled",e.isGenerating_$()||!e.generationPrompt_$()),s(),b(" ",e.isGenerating_$()?"Gener\xE1l\xE1s...":"Gener\xE1l\xE1s"," "),s(),h(e.isGenerating_$()?19:-1)}}function We(l,d){if(l&1&&(i(0,"option",41),o(1),n()),l&2){let e=d.$implicit;g("value",e.provider+":"+e.modelName),s(),N(" ",e.provider," / ",e.modelName," ")}}function Me(l,d){l&1&&(i(0,"span",56),o(1,"Az LLM m\xF3dos\xEDtja a workflow-t..."),n())}function ze(l,d){if(l&1){let e=y();i(0,"div",29)(1,"div",42)(2,"span",62),o(3,"Workflow m\xF3dos\xEDt\xE1s"),n(),i(4,"span",56),o(5,"\u2014 \xEDrd le, mit szeretn\xE9l v\xE1ltoztatni"),n()(),i(6,"textarea",63),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleModificationPromptChange(r))}),o(7," "),n(),i(8,"div",58)(9,"div",42)(10,"label",56),o(11,"Modell:"),n(),i(12,"select",64),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleModelSelectionChange(r))}),i(13,"option",60),o(14,"Alap\xE9rtelmezett"),n(),M(15,We,2,3,"option",41,H),n()(),i(17,"button",65),c("click",function(){u(e);let r=p(2);return m(r.handleModify())}),o(18),n(),k(19,Me,2,0,"span",56),n()()}if(l&2){let e=p(2);s(6),g("ngModel",e.modificationPrompt_$()),s(6),g("ngModel",e.selectedProvider_$()&&e.selectedModel_$()?e.selectedProvider_$()+":"+e.selectedModel_$():""),s(3),z(e.availableModels_$()),s(2),g("disabled",e.isModifying_$()||!e.modificationPrompt_$()),s(),b(" ",e.isModifying_$()?"M\xF3dos\xEDt\xE1s...":"M\xF3dos\xEDt\xE1s"," "),s(),h(e.isModifying_$()?19:-1)}}function Te(l,d){l&1&&(i(0,"div",36)(1,"div")(2,"h3",66),o(3,"Fel\xE9p\xEDt\xE9s"),n(),i(4,"p"),o(5," Egy j\xF3 workflow "),i(6,"strong",67),o(7,"f\xE1zisokra"),n(),o(8," bontja a feladatot, ahol minden f\xE1zis egyetlen, j\xF3l meghat\xE1rozott c\xE9lt k\xF6vet. A "),i(9,"strong",67),o(10,"vez\xE9rprompt"),n(),o(11," (master prompt) az eg\xE9sz workflow-ra \xE9rv\xE9nyes alapszab\xE1lyokat \xE9s kontextust tartalmazza \u2014 ez minden f\xE1zisban automatikusan megjelenik. "),n()(),i(12,"div")(13,"h3",66),o(14,"Vez\xE9rprompt (master prompt)"),n(),i(15,"ul",68)(16,"li"),o(17,"Projekt kontextus: milyen repo, milyen stack, milyen nyelven dolgozunk"),n(),i(18,"li"),o(19,"Glob\xE1lis szab\xE1lyok: k\xF3dol\xE1si konvenci\xF3k, tiltott m\u0171veletek, commit policy"),n(),i(20,"li"),o(21,'Szerepk\xF6r: milyen "szaktud\xE1s\xFA" agent hajtja v\xE9gre a workflow-t'),n(),i(22,"li"),o(23,"Ne ism\xE9telj meg f\xE1zisonk\xE9nt olyat, ami ide tartozik \u2014 a master prompt mindig jelen van"),n()()(),i(24,"div")(25,"h3",66),o(26,"F\xE1zisok tervez\xE9se"),n(),i(27,"ul",68)(28,"li")(29,"strong",67),o(30,"C\xE9l (goal):"),n(),o(31," egyetlen mondat \u2014 a f\xE1zis sikeress\xE9g\xE9nek m\xE9rc\xE9je "),n(),i(32,"li")(33,"strong",67),o(34,"F\xE1zis prompt:"),n(),o(35,' konkr\xE9t, akci\xF3-orient\xE1lt utas\xEDt\xE1s. Ker\xFCld az \xE1ltal\xE1noss\xE1gokat ("n\xE9zd \xE1t a k\xF3dot") \u2014 \xEDrd le pontosan mit kell csin\xE1lni '),n(),i(36,"li")(37,"strong",67),o(38,"Ism\xE9tl\u0151d\u0151 f\xE1zis:"),n(),o(39,' ha a f\xE1zis nem egyl\xE9p\xE9ses (pl. iterat\xEDv fejleszt\xE9s), kapcsold be az "Ism\xE9tl\u0151d\u0151" opci\xF3t \u2014 a f\xE1zis addig fut, am\xEDg PHASE_DONE jelz\xE9s nem \xE9rkezik '),n()()(),i(40,"div")(41,"h3",66),o(42,"Tipikus f\xE1zis-sorrend"),n(),i(43,"div",69)(44,"span",70),o(45,"1. T\xE1j\xE9koz\xF3d\xE1s / Clarify"),n(),i(46,"span",24),o(47,"\u2192"),n(),i(48,"span",70),o(49,"2. Tervez\xE9s / Plan"),n(),i(50,"span",24),o(51,"\u2192"),n(),i(52,"span",70),o(53,"3. Megval\xF3s\xEDt\xE1s / Dev"),n(),i(54,"span",24),o(55,"\u2192"),n(),i(56,"span",70),o(57,"4. Tesztel\xE9s / Test"),n(),i(58,"span",24),o(59,"\u2192"),n(),i(60,"span",70),o(61,"5. Review / Doc"),n()(),i(62,"p",71),o(63," Nem minden workflow-nak kell minden f\xE1zist tartalmaznia \u2014 haszn\xE1ld azt, ami relev\xE1ns. "),n()(),i(64,"div")(65,"h3",66),o(66,"Tippek"),n(),i(67,"ul",68)(68,"li"),o(69,"A "),i(70,"strong",67),o(71,"sablon (template)"),n(),o(72," workflow-kat gener\xE1l\xE1shoz is haszn\xE1ljuk \u2014 jel\xF6ld be, ha m\xE1sok sz\xE1m\xE1ra is mintak\xE9nt szolg\xE1l"),n(),i(73,"li"),o(74,"A f\xE1zis prompt-ban hivatkozhatsz f\xE1jlokra, mapp\xE1kra, specifik\xE1ci\xF3kra \u2014 min\xE9l konkr\xE9tabb, ann\xE1l jobb"),n(),i(75,"li"),o(76,"T\xF6rekedj arra, hogy egy f\xE1zis "),i(77,"strong",67),o(78,"1 felel\u0151ss\xE9gi k\xF6rrel"),n(),o(79," rendelkezzen (single responsibility)"),n(),i(80,"li"),o(81,"Ha egy f\xE1zis t\xFAl hossz\xFA lenne, bontsd kett\xE9 \u2014 ink\xE1bb legyen t\xF6bb kis f\xE1zis, mint egy nagy"),n()()()())}function De(l,d){if(l&1&&(i(0,"option",41),o(1),n()),l&2){let e=d.$implicit;g("value",e),s(),F(e)}}function Pe(l,d){if(l&1){let e=y();i(0,"div",48)(1,"div",72)(2,"span",73),o(3),n(),i(4,"button",74),c("click",function(){let r=u(e).$index,a=p(2);return m(a.handleRemovePhase(r))}),o(5," Elt\xE1vol\xEDt\xE1s "),n()(),i(6,"div",75)(7,"div")(8,"label",76),o(9,"C\xEDm"),n(),i(10,"input",77),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"title",value:r}))}),n()(),i(11,"div")(12,"label",76),o(13,"C\xE9l (goal)"),n(),i(14,"input",77),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"goal",value:r}))}),n()()(),i(15,"div",78)(16,"label",76),o(17,"F\xE1zis prompt"),n(),i(18,"textarea",79),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"phasePrompt",value:r}))}),o(19," "),n()(),i(20,"div",42)(21,"input",43),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"repeatUntilDone",value:r}))}),n(),i(22,"label",80),o(23,"Ism\xE9tl\u0151d\u0151 (am\xEDg PHASE_DONE)"),n()()()}if(l&2){let e=d.$implicit,t=d.$index;s(3),b("F\xE1zis ",t+1,""),s(7),g("ngModel",e.title),s(4),g("ngModel",e.goal),s(4),g("ngModel",e.phasePrompt),s(3),g("ngModel",e.repeatUntilDone)}}function Fe(l,d){if(l&1){let e=y();i(0,"div",4)(1,"div",22)(2,"button",23),c("click",function(){u(e);let r=p();return m(r.handleCancel())}),o(3," \u2190 Vissza "),n(),i(4,"span",24),o(5,"|"),n(),i(6,"span",25),o(7),n(),i(8,"button",26),c("click",function(){u(e);let r=p();return m(r.handleCopyMarkdown())}),k(9,be,2,0,":svg:svg",27)(10,ve,3,0,":svg:svg",27),n()(),k(11,$e,20,5,"div",28)(12,ze,20,5,"div",29),i(13,"div",30)(14,"button",31),c("click",function(){u(e);let r=p();return m(r.handleToggleBestPractices())}),D(),i(15,"svg",32),P(16,"polyline",33),n(),J(),i(17,"span",34),o(18,"Workflow tervez\xE9si \xFAtmutat\xF3"),n(),i(19,"span",35),o(20,"best practices"),n()(),k(21,Te,82,0,"div",36),n(),i(22,"div",37)(23,"div")(24,"label",38),o(25,"N\xE9v"),n(),i(26,"input",39),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("name",r))}),n()(),i(27,"div")(28,"label",38),o(29,"T\xEDpus"),n(),i(30,"select",40),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("workflowType",r))}),M(31,De,2,2,"option",41,K),n()()(),i(33,"div")(34,"label",38),o(35,"Le\xEDr\xE1s"),n(),i(36,"input",39),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("description",r))}),n()(),i(37,"div",42)(38,"input",43),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("isTemplate",r))}),n(),i(39,"label",25),o(40,"Sablon (template)"),n()(),i(41,"div")(42,"label",38),o(43,"Vez\xE9rprompt (master prompt)"),n(),i(44,"textarea",44),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("masterPrompt",r))}),o(45," "),n()(),i(46,"div")(47,"div",45)(48,"h2",46),o(49,"F\xE1zisok"),n(),i(50,"button",47),c("click",function(){u(e);let r=p();return m(r.handleAddPhase())}),o(51," + F\xE1zis "),n()(),M(52,Pe,24,5,"div",48,H),n(),i(54,"div",49)(55,"button",50),c("click",function(){u(e);let r=p();return m(r.handleSave())}),o(56),n(),i(57,"button",51),c("click",function(){u(e);let r=p();return m(r.handleCancel())}),o(58," M\xE9gse "),n()()()}if(l&2){let e,t,r,a,_,W,f=p();s(7),b(" ",f.isCreating_$()?"\xDAj workflow":"Szerkeszt\xE9s"," "),s(),I("text-neutral-500",!f.isCopied_$())("hover:text-neutral-200",!f.isCopied_$())("text-green-400",f.isCopied_$()),s(),h(f.isCopied_$()?9:10),s(2),h(f.isCreating_$()?11:-1),s(),h(f.isCreating_$()?-1:12),s(3),I("-rotate-90",!f.isBestPracticesOpen_$()),s(6),h(f.isBestPracticesOpen_$()?21:-1),s(5),g("ngModel",(e=f.editingWorkflow_$())==null?null:e.name),s(4),g("ngModel",(t=f.editingWorkflow_$())==null?null:t.workflowType),s(),z(f.workflowTypes),s(5),g("ngModel",(r=f.editingWorkflow_$())==null?null:r.description),s(2),g("ngModel",(a=f.editingWorkflow_$())==null?null:a.isTemplate),s(6),g("ngModel",(_=f.editingWorkflow_$())==null?null:_.masterPrompt),s(8),z((W=f.editingWorkflow_$())==null?null:W.phases),s(3),g("disabled",f.isLoading_$()),s(),b(" ",f.isCreating_$()?"L\xE9trehoz\xE1s":"Ment\xE9s"," ")}}function ue(l){return{id:`phase-${Date.now()}-${l}`,title:"",order:l,goal:"",phasePrompt:"",constraints:[],dod:[],repeatUntilDone:!1,subWorkflowTriggers:[]}}function Ve(){return{name:"",description:"",workflowType:"development",isTemplate:!1,masterPrompt:"",phases:[ue(0)]}}var O=(()=>{class l{workflow_DS=C(pe);globalError_CS=C(ae);modelRegistry_DS=C(se);workflows_$=w([]);editingWorkflow_$=w(null);isLoading_$=w(!1);isCreating_$=w(!1);isBestPracticesOpen_$=w(!1);generationPrompt_$=w("");modificationPrompt_$=w("");isGenerating_$=w(!1);isModifying_$=w(!1);isCopied_$=w(!1);availableModels_$=w([]);selectedProvider_$=w("");selectedModel_$=w("");workflowTypes=["development","research","testing","support","onboarding","review","poc","user-input","bug-report"];ngOnInit(){this.loadWorkflows(),this.loadAvailableModels(),this.restoreDraft()}loadWorkflows(){return x(this,null,function*(){try{this.isLoading_$.set(!0);let e=yield this.workflow_DS.listWorkflows();this.workflows_$.set(e)}catch(e){this.globalError_CS.showError(e,"workflow-settings")}finally{this.isLoading_$.set(!1)}})}handleCreateNew(){this.isCreating_$.set(!0),this.editingWorkflow_$.set(Ve()),this.persistDraft()}handleEdit(e){this.isCreating_$.set(!1),this.editingWorkflow_$.set(S(v({},e),{phases:[...e.phases]}))}handleCancel(){this.editingWorkflow_$.set(null),$.clear()}handleSave(){return x(this,null,function*(){let e=this.editingWorkflow_$();if(e)try{this.isLoading_$.set(!0),this.isCreating_$()?yield this.workflow_DS.createWorkflow({name:e.name,description:e.description,workflowType:e.workflowType,isTemplate:e.isTemplate,masterPrompt:e.masterPrompt,phases:e.phases,generationHistory:e.generationHistory}):e._id&&(yield this.workflow_DS.updateWorkflow({id:e._id,name:e.name,description:e.description,workflowType:e.workflowType,isTemplate:e.isTemplate,masterPrompt:e.masterPrompt,phases:e.phases,generationHistory:e.generationHistory})),this.editingWorkflow_$.set(null),$.clear(),yield this.loadWorkflows()}catch(t){this.globalError_CS.showError(t,"workflow-settings")}finally{this.isLoading_$.set(!1)}})}handleDelete(e){return x(this,null,function*(){if(e._id)try{this.isLoading_$.set(!0),yield this.workflow_DS.deleteWorkflow(e._id),yield this.loadWorkflows()}catch(t){this.globalError_CS.showError(t,"workflow-settings")}finally{this.isLoading_$.set(!1)}})}handleAddPhase(){let e=this.editingWorkflow_$();if(!e)return;let t=ue(e.phases.length);this.editingWorkflow_$.set(S(v({},e),{phases:[...e.phases,t]})),this.persistDraft()}handleRemovePhase(e){let t=this.editingWorkflow_$();if(!t)return;let r=t.phases.filter((a,_)=>_!==e);this.editingWorkflow_$.set(S(v({},t),{phases:r})),this.persistDraft()}handlePhaseFieldChange(e){let t=this.editingWorkflow_$();if(!t)return;let r=[...t.phases];r[e.index]=S(v({},r[e.index]),{[e.field]:e.value}),this.editingWorkflow_$.set(S(v({},t),{phases:r})),this.persistDraft()}handleGenerationPromptChange(e){this.generationPrompt_$.set(e),this.persistDraft()}handleGenerate(){return x(this,null,function*(){let e=this.generationPrompt_$().trim();if(e)try{this.isGenerating_$.set(!0);let t=this.selectedProvider_$(),r=this.selectedModel_$(),a=yield this.workflow_DS.generateWorkflow({description:e,provider:t||void 0,model:r||void 0}),_={type:"generation",prompt:e,timestamp:new Date().toISOString()};this.editingWorkflow_$.set({name:a.name??"",description:a.description??"",workflowType:a.workflowType??"development",isTemplate:a.isTemplate??!1,masterPrompt:a.masterPrompt??"",phases:Array.isArray(a.phases)?a.phases:[],generationHistory:[_]})}catch(t){this.globalError_CS.showError(t,"workflow-settings")}finally{this.isGenerating_$.set(!1)}})}handleModificationPromptChange(e){this.modificationPrompt_$.set(e),this.persistDraft()}handleModify(){return x(this,null,function*(){let e=this.modificationPrompt_$().trim(),t=this.editingWorkflow_$();if(!(!e||!t))try{this.isModifying_$.set(!0);let r=this.selectedProvider_$(),a=this.selectedModel_$(),_=yield this.workflow_DS.modifyWorkflow({currentWorkflow:t,modificationDescription:e,provider:r||void 0,model:a||void 0}),W={type:"modification",prompt:e,timestamp:new Date().toISOString()},f=t.generationHistory??[];this.editingWorkflow_$.set({_id:t._id,name:_.name??"",description:_.description??"",workflowType:_.workflowType??"development",isTemplate:_.isTemplate??!1,masterPrompt:_.masterPrompt??"",phases:Array.isArray(_.phases)?_.phases:[],generationHistory:[...f,W]}),this.persistDraft()}catch(r){this.globalError_CS.showError(r,"workflow-settings")}finally{this.isModifying_$.set(!1)}})}loadAvailableModels(){return x(this,null,function*(){try{let e=yield this.modelRegistry_DS.loadList({enabled:!0});this.availableModels_$.set(e)}catch(e){this.globalError_CS.showError(e,"workflow-settings")}})}handleModelSelectionChange(e){if(!e){this.selectedProvider_$.set(""),this.selectedModel_$.set("");return}let t=e.indexOf(":");t!==-1&&(this.selectedProvider_$.set(e.substring(0,t)),this.selectedModel_$.set(e.substring(t+1)),this.persistDraft())}handleToggleBestPractices(){this.isBestPracticesOpen_$.set(!this.isBestPracticesOpen_$())}handleFieldChange(e,t){let r=this.editingWorkflow_$();r&&(this.editingWorkflow_$.set(S(v({},r),{[e]:t})),this.persistDraft())}handleCopyMarkdown(){return x(this,null,function*(){let e=this.editingWorkflow_$();if(!e)return;let t=[];t.push(`# ${e.name||"N\xE9vtelen workflow"}`),t.push(""),e.description&&(t.push(`> ${e.description}`),t.push("")),t.push("| Mez\u0151 | \xC9rt\xE9k |"),t.push("|------|-------|"),t.push(`| T\xEDpus | ${e.workflowType} |`),t.push(`| Sablon | ${e.isTemplate?"igen":"nem"} |`),t.push(`| F\xE1zisok sz\xE1ma | ${e.phases.length} |`),t.push(""),e.masterPrompt&&(t.push("## Vez\xE9rprompt (master prompt)"),t.push(""),t.push(e.masterPrompt),t.push("")),t.push("## F\xE1zisok"),t.push("");for(let r of e.phases){if(t.push(`### ${r.order+1}. ${r.title||"N\xE9vtelen f\xE1zis"}`),t.push(""),r.goal&&(t.push(`**C\xE9l:** ${r.goal}`),t.push("")),r.phasePrompt&&(t.push("**F\xE1zis prompt:**"),t.push(""),t.push(r.phasePrompt),t.push("")),r.constraints.length){t.push("**Megk\xF6t\xE9sek:**");for(let a of r.constraints)t.push(`- ${a}`);t.push("")}if(r.dod.length){t.push("**Definition of Done:**");for(let a of r.dod)t.push(`- ${a}`);t.push("")}r.repeatUntilDone&&(t.push("*Ism\xE9tl\u0151d\u0151 f\xE1zis (am\xEDg PHASE_DONE)*"),t.push(""))}try{yield navigator.clipboard.writeText(t.join(`
|
|
1
|
+
import{a as se}from"./chunk-BHWHGLKC.js";import"./chunk-RQ2HFT2L.js";import"./chunk-ONEB5UF5.js";import"./chunk-FJGBPKHK.js";import{b as Z,c as ee,f as te,i as ne,n as ie,o as oe,p as re,v as j}from"./chunk-EO4DNTT4.js";import{a as A}from"./chunk-5UPNU54P.js";import{j as ae}from"./chunk-6BQHKSUP.js";import{I as le}from"./chunk-OP2PE3KG.js";import{C,D as R,E as q,Fa as o,Ga as F,Ha as b,Ia as N,J as u,K as m,Kb as X,L as D,M as J,Ta as Y,Z as s,a as v,aa as w,b as S,d as B,da as k,ga as g,ia as I,k as x,la as h,na as K,oa as M,p as E,pa as z,qa as i,ra as n,sa as P,ua as y,ub as V,va as c,wa as p,xb as Q,y as T,z as U}from"./chunk-TBMJSIBB.js";var de=(()=>{class l{baseUrl=`${le.api.baseUrl}/workflow`;http=C(Q);listWorkflows(e){let t=[];e?.workflowType&&t.push(`type=${e.workflowType}`),e?.isTemplate!==void 0&&t.push(`isTemplate=${e.isTemplate}`);let r=t.length?`?${t.join("&")}`:"";return E(this.http.get(`${this.baseUrl}${r}`))}createWorkflow(e){return E(this.http.post(this.baseUrl,e))}getWorkflow(e){return E(this.http.get(`${this.baseUrl}/${e}`))}updateWorkflow(e){let a=e,{id:t}=a,r=B(a,["id"]);return E(this.http.put(`${this.baseUrl}/${t}`,r))}generateWorkflow(e){return E(this.http.post(`${this.baseUrl}/generate`,{description:e.description,provider:e.provider,model:e.model}))}modifyWorkflow(e){return E(this.http.post(`${this.baseUrl}/modify`,{currentWorkflow:e.currentWorkflow,modificationDescription:e.modificationDescription,provider:e.provider,model:e.model}))}deleteWorkflow(e){return E(this.http.delete(`${this.baseUrl}/${e}`))}static \u0275fac=function(t){return new(t||l)};static \u0275prov=T({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var pe=(()=>{class l{workflow_AS=C(de);listWorkflows(e){return x(this,null,function*(){return(yield this.workflow_AS.listWorkflows(e)).workflows})}createWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.createWorkflow(e)).workflow})}getWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.getWorkflow(e)).workflow})}updateWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.updateWorkflow(e)).workflow})}generateWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.generateWorkflow(e)).workflow})}modifyWorkflow(e){return x(this,null,function*(){return(yield this.workflow_AS.modifyWorkflow(e)).workflow})}deleteWorkflow(e){return x(this,null,function*(){return this.workflow_AS.deleteWorkflow(e)})}static \u0275fac=function(t){return new(t||l)};static \u0275prov=T({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var L="ccap-workflowSettingsDraft",$=class{static get(){let d=A.readJson(L,null);if(typeof d!="object"||d===null)return null;let e=d,t=typeof e.generationPrompt=="string"?e.generationPrompt:"",r=typeof e.modificationPrompt=="string"?e.modificationPrompt:"",a=typeof e.selectedProvider=="string"?e.selectedProvider:"",_=typeof e.selectedModel=="string"?e.selectedModel:"",W=typeof e.isCreating=="boolean"?e.isCreating:!1,f=e.editingWorkflow&&typeof e.editingWorkflow=="object"?e.editingWorkflow:null;return{generationPrompt:t,modificationPrompt:r,selectedProvider:a,selectedModel:_,isCreating:W,editingWorkflow:f}}static save(d){A.writeJson(L,d)}static clear(){A.remove(L)}};var me=(l,d)=>d._id,H=(l,d)=>d.id;function ce(l,d){if(l&1){let e=y();i(0,"button",5),c("click",function(){u(e);let r=p();return m(r.handleCreateNew())}),o(1," + \xDAj workflow "),n()}}function _e(l,d){l&1&&(i(0,"div",6),o(1,"Bet\xF6lt\xE9s..."),n())}function fe(l,d){l&1&&(i(0,"div",7),o(1," Nincs m\xE9g workflow. Hozz l\xE9tre egyet a gombbal. "),n())}function ge(l,d){l&1&&(i(0,"span",14),o(1," sablon "),n())}function xe(l,d){l&1&&(i(0,"span",15),o(1," Built-in "),n())}function we(l,d){if(l&1){let e=y();i(0,"button",20),c("click",function(){u(e);let r=p().$implicit,a=p(3);return m(a.handleEdit(r))}),o(1," Szerkeszt\xE9s "),n(),i(2,"button",21),c("click",function(){u(e);let r=p().$implicit,a=p(3);return m(a.handleDelete(r))}),o(3," T\xF6rl\xE9s "),n()}}function he(l,d){l&1&&(i(0,"span",19),o(1," Readonly "),n())}function ke(l,d){if(l&1&&(i(0,"div",9)(1,"div",10)(2,"div",11)(3,"span",12),o(4),n(),i(5,"span",13),o(6),n(),k(7,ge,2,0,"span",14)(8,xe,2,0,"span",15),n(),i(9,"p",16),o(10),n(),i(11,"div",17),o(12),n()(),i(13,"div",18),k(14,we,4,0)(15,he,2,0,"span",19),n()()),l&2){let e=d.$implicit;s(4),F(e.name),s(2),b(" ",e.workflowType," "),s(),h(e.isTemplate?7:-1),s(),h(e.isBuiltIn?8:-1),s(2),F(e.description),s(2),b(" ",e.phases.length," f\xE1zis "),s(2),h(e.isBuiltIn?15:14)}}function Ee(l,d){if(l&1&&(i(0,"div",8),M(1,ke,16,7,"div",9,me),n()),l&2){let e=p(2);s(),z(e.workflows_$())}}function Ce(l,d){if(l&1&&k(0,_e,2,0,"div",6)(1,fe,2,0,"div",7)(2,Ee,3,0,"div",8),l&2){let e=p();h(e.isLoading_$()?0:e.workflows_$().length===0?1:2)}}function be(l,d){l&1&&(D(),i(0,"svg",27),P(1,"polyline",52),n())}function ve(l,d){l&1&&(D(),i(0,"svg",27),P(1,"rect",53)(2,"path",54),n())}function Se(l,d){if(l&1&&(i(0,"option",41),o(1),n()),l&2){let e=d.$implicit;g("value",e.provider+":"+e.modelName),s(),N(" ",e.provider," / ",e.modelName," ")}}function ye(l,d){l&1&&(i(0,"span",56),o(1,"Az LLM dolgozik a workflow-n..."),n())}function $e(l,d){if(l&1){let e=y();i(0,"div",28)(1,"div",42)(2,"span",55),o(3,"Workflow gener\xE1l\xE1s"),n(),i(4,"span",56),o(5,"\u2014 \xEDrd le egyszer\u0171en, mit szeretn\xE9l"),n()(),i(6,"textarea",57),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleGenerationPromptChange(r))}),o(7," "),n(),i(8,"div",58)(9,"div",42)(10,"label",56),o(11,"Modell:"),n(),i(12,"select",59),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleModelSelectionChange(r))}),i(13,"option",60),o(14,"Alap\xE9rtelmezett"),n(),M(15,Se,2,3,"option",41,H),n()(),i(17,"button",61),c("click",function(){u(e);let r=p(2);return m(r.handleGenerate())}),o(18),n(),k(19,ye,2,0,"span",56),n()()}if(l&2){let e=p(2);s(6),g("ngModel",e.generationPrompt_$()),s(6),g("ngModel",e.selectedProvider_$()&&e.selectedModel_$()?e.selectedProvider_$()+":"+e.selectedModel_$():""),s(3),z(e.availableModels_$()),s(2),g("disabled",e.isGenerating_$()||!e.generationPrompt_$()),s(),b(" ",e.isGenerating_$()?"Gener\xE1l\xE1s...":"Gener\xE1l\xE1s"," "),s(),h(e.isGenerating_$()?19:-1)}}function We(l,d){if(l&1&&(i(0,"option",41),o(1),n()),l&2){let e=d.$implicit;g("value",e.provider+":"+e.modelName),s(),N(" ",e.provider," / ",e.modelName," ")}}function Me(l,d){l&1&&(i(0,"span",56),o(1,"Az LLM m\xF3dos\xEDtja a workflow-t..."),n())}function ze(l,d){if(l&1){let e=y();i(0,"div",29)(1,"div",42)(2,"span",62),o(3,"Workflow m\xF3dos\xEDt\xE1s"),n(),i(4,"span",56),o(5,"\u2014 \xEDrd le, mit szeretn\xE9l v\xE1ltoztatni"),n()(),i(6,"textarea",63),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleModificationPromptChange(r))}),o(7," "),n(),i(8,"div",58)(9,"div",42)(10,"label",56),o(11,"Modell:"),n(),i(12,"select",64),c("ngModelChange",function(r){u(e);let a=p(2);return m(a.handleModelSelectionChange(r))}),i(13,"option",60),o(14,"Alap\xE9rtelmezett"),n(),M(15,We,2,3,"option",41,H),n()(),i(17,"button",65),c("click",function(){u(e);let r=p(2);return m(r.handleModify())}),o(18),n(),k(19,Me,2,0,"span",56),n()()}if(l&2){let e=p(2);s(6),g("ngModel",e.modificationPrompt_$()),s(6),g("ngModel",e.selectedProvider_$()&&e.selectedModel_$()?e.selectedProvider_$()+":"+e.selectedModel_$():""),s(3),z(e.availableModels_$()),s(2),g("disabled",e.isModifying_$()||!e.modificationPrompt_$()),s(),b(" ",e.isModifying_$()?"M\xF3dos\xEDt\xE1s...":"M\xF3dos\xEDt\xE1s"," "),s(),h(e.isModifying_$()?19:-1)}}function Te(l,d){l&1&&(i(0,"div",36)(1,"div")(2,"h3",66),o(3,"Fel\xE9p\xEDt\xE9s"),n(),i(4,"p"),o(5," Egy j\xF3 workflow "),i(6,"strong",67),o(7,"f\xE1zisokra"),n(),o(8," bontja a feladatot, ahol minden f\xE1zis egyetlen, j\xF3l meghat\xE1rozott c\xE9lt k\xF6vet. A "),i(9,"strong",67),o(10,"vez\xE9rprompt"),n(),o(11," (master prompt) az eg\xE9sz workflow-ra \xE9rv\xE9nyes alapszab\xE1lyokat \xE9s kontextust tartalmazza \u2014 ez minden f\xE1zisban automatikusan megjelenik. "),n()(),i(12,"div")(13,"h3",66),o(14,"Vez\xE9rprompt (master prompt)"),n(),i(15,"ul",68)(16,"li"),o(17,"Projekt kontextus: milyen repo, milyen stack, milyen nyelven dolgozunk"),n(),i(18,"li"),o(19,"Glob\xE1lis szab\xE1lyok: k\xF3dol\xE1si konvenci\xF3k, tiltott m\u0171veletek, commit policy"),n(),i(20,"li"),o(21,'Szerepk\xF6r: milyen "szaktud\xE1s\xFA" agent hajtja v\xE9gre a workflow-t'),n(),i(22,"li"),o(23,"Ne ism\xE9telj meg f\xE1zisonk\xE9nt olyat, ami ide tartozik \u2014 a master prompt mindig jelen van"),n()()(),i(24,"div")(25,"h3",66),o(26,"F\xE1zisok tervez\xE9se"),n(),i(27,"ul",68)(28,"li")(29,"strong",67),o(30,"C\xE9l (goal):"),n(),o(31," egyetlen mondat \u2014 a f\xE1zis sikeress\xE9g\xE9nek m\xE9rc\xE9je "),n(),i(32,"li")(33,"strong",67),o(34,"F\xE1zis prompt:"),n(),o(35,' konkr\xE9t, akci\xF3-orient\xE1lt utas\xEDt\xE1s. Ker\xFCld az \xE1ltal\xE1noss\xE1gokat ("n\xE9zd \xE1t a k\xF3dot") \u2014 \xEDrd le pontosan mit kell csin\xE1lni '),n(),i(36,"li")(37,"strong",67),o(38,"Ism\xE9tl\u0151d\u0151 f\xE1zis:"),n(),o(39,' ha a f\xE1zis nem egyl\xE9p\xE9ses (pl. iterat\xEDv fejleszt\xE9s), kapcsold be az "Ism\xE9tl\u0151d\u0151" opci\xF3t \u2014 a f\xE1zis addig fut, am\xEDg PHASE_DONE jelz\xE9s nem \xE9rkezik '),n()()(),i(40,"div")(41,"h3",66),o(42,"Tipikus f\xE1zis-sorrend"),n(),i(43,"div",69)(44,"span",70),o(45,"1. T\xE1j\xE9koz\xF3d\xE1s / Clarify"),n(),i(46,"span",24),o(47,"\u2192"),n(),i(48,"span",70),o(49,"2. Tervez\xE9s / Plan"),n(),i(50,"span",24),o(51,"\u2192"),n(),i(52,"span",70),o(53,"3. Megval\xF3s\xEDt\xE1s / Dev"),n(),i(54,"span",24),o(55,"\u2192"),n(),i(56,"span",70),o(57,"4. Tesztel\xE9s / Test"),n(),i(58,"span",24),o(59,"\u2192"),n(),i(60,"span",70),o(61,"5. Review / Doc"),n()(),i(62,"p",71),o(63," Nem minden workflow-nak kell minden f\xE1zist tartalmaznia \u2014 haszn\xE1ld azt, ami relev\xE1ns. "),n()(),i(64,"div")(65,"h3",66),o(66,"Tippek"),n(),i(67,"ul",68)(68,"li"),o(69,"A "),i(70,"strong",67),o(71,"sablon (template)"),n(),o(72," workflow-kat gener\xE1l\xE1shoz is haszn\xE1ljuk \u2014 jel\xF6ld be, ha m\xE1sok sz\xE1m\xE1ra is mintak\xE9nt szolg\xE1l"),n(),i(73,"li"),o(74,"A f\xE1zis prompt-ban hivatkozhatsz f\xE1jlokra, mapp\xE1kra, specifik\xE1ci\xF3kra \u2014 min\xE9l konkr\xE9tabb, ann\xE1l jobb"),n(),i(75,"li"),o(76,"T\xF6rekedj arra, hogy egy f\xE1zis "),i(77,"strong",67),o(78,"1 felel\u0151ss\xE9gi k\xF6rrel"),n(),o(79," rendelkezzen (single responsibility)"),n(),i(80,"li"),o(81,"Ha egy f\xE1zis t\xFAl hossz\xFA lenne, bontsd kett\xE9 \u2014 ink\xE1bb legyen t\xF6bb kis f\xE1zis, mint egy nagy"),n()()()())}function De(l,d){if(l&1&&(i(0,"option",41),o(1),n()),l&2){let e=d.$implicit;g("value",e),s(),F(e)}}function Pe(l,d){if(l&1){let e=y();i(0,"div",48)(1,"div",72)(2,"span",73),o(3),n(),i(4,"button",74),c("click",function(){let r=u(e).$index,a=p(2);return m(a.handleRemovePhase(r))}),o(5," Elt\xE1vol\xEDt\xE1s "),n()(),i(6,"div",75)(7,"div")(8,"label",76),o(9,"C\xEDm"),n(),i(10,"input",77),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"title",value:r}))}),n()(),i(11,"div")(12,"label",76),o(13,"C\xE9l (goal)"),n(),i(14,"input",77),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"goal",value:r}))}),n()()(),i(15,"div",78)(16,"label",76),o(17,"F\xE1zis prompt"),n(),i(18,"textarea",79),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"phasePrompt",value:r}))}),o(19," "),n()(),i(20,"div",42)(21,"input",43),c("ngModelChange",function(r){let a=u(e).$index,_=p(2);return m(_.handlePhaseFieldChange({index:a,field:"repeatUntilDone",value:r}))}),n(),i(22,"label",80),o(23,"Ism\xE9tl\u0151d\u0151 (am\xEDg PHASE_DONE)"),n()()()}if(l&2){let e=d.$implicit,t=d.$index;s(3),b("F\xE1zis ",t+1,""),s(7),g("ngModel",e.title),s(4),g("ngModel",e.goal),s(4),g("ngModel",e.phasePrompt),s(3),g("ngModel",e.repeatUntilDone)}}function Fe(l,d){if(l&1){let e=y();i(0,"div",4)(1,"div",22)(2,"button",23),c("click",function(){u(e);let r=p();return m(r.handleCancel())}),o(3," \u2190 Vissza "),n(),i(4,"span",24),o(5,"|"),n(),i(6,"span",25),o(7),n(),i(8,"button",26),c("click",function(){u(e);let r=p();return m(r.handleCopyMarkdown())}),k(9,be,2,0,":svg:svg",27)(10,ve,3,0,":svg:svg",27),n()(),k(11,$e,20,5,"div",28)(12,ze,20,5,"div",29),i(13,"div",30)(14,"button",31),c("click",function(){u(e);let r=p();return m(r.handleToggleBestPractices())}),D(),i(15,"svg",32),P(16,"polyline",33),n(),J(),i(17,"span",34),o(18,"Workflow tervez\xE9si \xFAtmutat\xF3"),n(),i(19,"span",35),o(20,"best practices"),n()(),k(21,Te,82,0,"div",36),n(),i(22,"div",37)(23,"div")(24,"label",38),o(25,"N\xE9v"),n(),i(26,"input",39),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("name",r))}),n()(),i(27,"div")(28,"label",38),o(29,"T\xEDpus"),n(),i(30,"select",40),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("workflowType",r))}),M(31,De,2,2,"option",41,K),n()()(),i(33,"div")(34,"label",38),o(35,"Le\xEDr\xE1s"),n(),i(36,"input",39),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("description",r))}),n()(),i(37,"div",42)(38,"input",43),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("isTemplate",r))}),n(),i(39,"label",25),o(40,"Sablon (template)"),n()(),i(41,"div")(42,"label",38),o(43,"Vez\xE9rprompt (master prompt)"),n(),i(44,"textarea",44),c("ngModelChange",function(r){u(e);let a=p();return m(a.handleFieldChange("masterPrompt",r))}),o(45," "),n()(),i(46,"div")(47,"div",45)(48,"h2",46),o(49,"F\xE1zisok"),n(),i(50,"button",47),c("click",function(){u(e);let r=p();return m(r.handleAddPhase())}),o(51," + F\xE1zis "),n()(),M(52,Pe,24,5,"div",48,H),n(),i(54,"div",49)(55,"button",50),c("click",function(){u(e);let r=p();return m(r.handleSave())}),o(56),n(),i(57,"button",51),c("click",function(){u(e);let r=p();return m(r.handleCancel())}),o(58," M\xE9gse "),n()()()}if(l&2){let e,t,r,a,_,W,f=p();s(7),b(" ",f.isCreating_$()?"\xDAj workflow":"Szerkeszt\xE9s"," "),s(),I("text-neutral-500",!f.isCopied_$())("hover:text-neutral-200",!f.isCopied_$())("text-green-400",f.isCopied_$()),s(),h(f.isCopied_$()?9:10),s(2),h(f.isCreating_$()?11:-1),s(),h(f.isCreating_$()?-1:12),s(3),I("-rotate-90",!f.isBestPracticesOpen_$()),s(6),h(f.isBestPracticesOpen_$()?21:-1),s(5),g("ngModel",(e=f.editingWorkflow_$())==null?null:e.name),s(4),g("ngModel",(t=f.editingWorkflow_$())==null?null:t.workflowType),s(),z(f.workflowTypes),s(5),g("ngModel",(r=f.editingWorkflow_$())==null?null:r.description),s(2),g("ngModel",(a=f.editingWorkflow_$())==null?null:a.isTemplate),s(6),g("ngModel",(_=f.editingWorkflow_$())==null?null:_.masterPrompt),s(8),z((W=f.editingWorkflow_$())==null?null:W.phases),s(3),g("disabled",f.isLoading_$()),s(),b(" ",f.isCreating_$()?"L\xE9trehoz\xE1s":"Ment\xE9s"," ")}}function ue(l){return{id:`phase-${Date.now()}-${l}`,title:"",order:l,goal:"",phasePrompt:"",constraints:[],dod:[],repeatUntilDone:!1,subWorkflowTriggers:[]}}function Ve(){return{name:"",description:"",workflowType:"development",isTemplate:!1,masterPrompt:"",phases:[ue(0)]}}var O=(()=>{class l{workflow_DS=C(pe);globalError_CS=C(ae);modelRegistry_DS=C(se);workflows_$=w([]);editingWorkflow_$=w(null);isLoading_$=w(!1);isCreating_$=w(!1);isBestPracticesOpen_$=w(!1);generationPrompt_$=w("");modificationPrompt_$=w("");isGenerating_$=w(!1);isModifying_$=w(!1);isCopied_$=w(!1);availableModels_$=w([]);selectedProvider_$=w("");selectedModel_$=w("");workflowTypes=["development","research","testing","support","onboarding","review","poc","user-input","bug-report"];ngOnInit(){this.loadWorkflows(),this.loadAvailableModels(),this.restoreDraft()}loadWorkflows(){return x(this,null,function*(){try{this.isLoading_$.set(!0);let e=yield this.workflow_DS.listWorkflows();this.workflows_$.set(e)}catch(e){this.globalError_CS.showError(e,"workflow-settings")}finally{this.isLoading_$.set(!1)}})}handleCreateNew(){this.isCreating_$.set(!0),this.editingWorkflow_$.set(Ve()),this.persistDraft()}handleEdit(e){this.isCreating_$.set(!1),this.editingWorkflow_$.set(S(v({},e),{phases:[...e.phases]}))}handleCancel(){this.editingWorkflow_$.set(null),$.clear()}handleSave(){return x(this,null,function*(){let e=this.editingWorkflow_$();if(e)try{this.isLoading_$.set(!0),this.isCreating_$()?yield this.workflow_DS.createWorkflow({name:e.name,description:e.description,workflowType:e.workflowType,isTemplate:e.isTemplate,masterPrompt:e.masterPrompt,phases:e.phases,generationHistory:e.generationHistory}):e._id&&(yield this.workflow_DS.updateWorkflow({id:e._id,name:e.name,description:e.description,workflowType:e.workflowType,isTemplate:e.isTemplate,masterPrompt:e.masterPrompt,phases:e.phases,generationHistory:e.generationHistory})),this.editingWorkflow_$.set(null),$.clear(),yield this.loadWorkflows()}catch(t){this.globalError_CS.showError(t,"workflow-settings")}finally{this.isLoading_$.set(!1)}})}handleDelete(e){return x(this,null,function*(){if(e._id)try{this.isLoading_$.set(!0),yield this.workflow_DS.deleteWorkflow(e._id),yield this.loadWorkflows()}catch(t){this.globalError_CS.showError(t,"workflow-settings")}finally{this.isLoading_$.set(!1)}})}handleAddPhase(){let e=this.editingWorkflow_$();if(!e)return;let t=ue(e.phases.length);this.editingWorkflow_$.set(S(v({},e),{phases:[...e.phases,t]})),this.persistDraft()}handleRemovePhase(e){let t=this.editingWorkflow_$();if(!t)return;let r=t.phases.filter((a,_)=>_!==e);this.editingWorkflow_$.set(S(v({},t),{phases:r})),this.persistDraft()}handlePhaseFieldChange(e){let t=this.editingWorkflow_$();if(!t)return;let r=[...t.phases];r[e.index]=S(v({},r[e.index]),{[e.field]:e.value}),this.editingWorkflow_$.set(S(v({},t),{phases:r})),this.persistDraft()}handleGenerationPromptChange(e){this.generationPrompt_$.set(e),this.persistDraft()}handleGenerate(){return x(this,null,function*(){let e=this.generationPrompt_$().trim();if(e)try{this.isGenerating_$.set(!0);let t=this.selectedProvider_$(),r=this.selectedModel_$(),a=yield this.workflow_DS.generateWorkflow({description:e,provider:t||void 0,model:r||void 0}),_={type:"generation",prompt:e,timestamp:new Date().toISOString()};this.editingWorkflow_$.set({name:a.name??"",description:a.description??"",workflowType:a.workflowType??"development",isTemplate:a.isTemplate??!1,masterPrompt:a.masterPrompt??"",phases:Array.isArray(a.phases)?a.phases:[],generationHistory:[_]})}catch(t){this.globalError_CS.showError(t,"workflow-settings")}finally{this.isGenerating_$.set(!1)}})}handleModificationPromptChange(e){this.modificationPrompt_$.set(e),this.persistDraft()}handleModify(){return x(this,null,function*(){let e=this.modificationPrompt_$().trim(),t=this.editingWorkflow_$();if(!(!e||!t))try{this.isModifying_$.set(!0);let r=this.selectedProvider_$(),a=this.selectedModel_$(),_=yield this.workflow_DS.modifyWorkflow({currentWorkflow:t,modificationDescription:e,provider:r||void 0,model:a||void 0}),W={type:"modification",prompt:e,timestamp:new Date().toISOString()},f=t.generationHistory??[];this.editingWorkflow_$.set({_id:t._id,name:_.name??"",description:_.description??"",workflowType:_.workflowType??"development",isTemplate:_.isTemplate??!1,masterPrompt:_.masterPrompt??"",phases:Array.isArray(_.phases)?_.phases:[],generationHistory:[...f,W]}),this.persistDraft()}catch(r){this.globalError_CS.showError(r,"workflow-settings")}finally{this.isModifying_$.set(!1)}})}loadAvailableModels(){return x(this,null,function*(){try{let e=yield this.modelRegistry_DS.loadList({enabled:!0});this.availableModels_$.set(e)}catch(e){this.globalError_CS.showError(e,"workflow-settings")}})}handleModelSelectionChange(e){if(!e){this.selectedProvider_$.set(""),this.selectedModel_$.set("");return}let t=e.indexOf(":");t!==-1&&(this.selectedProvider_$.set(e.substring(0,t)),this.selectedModel_$.set(e.substring(t+1)),this.persistDraft())}handleToggleBestPractices(){this.isBestPracticesOpen_$.set(!this.isBestPracticesOpen_$())}handleFieldChange(e,t){let r=this.editingWorkflow_$();r&&(this.editingWorkflow_$.set(S(v({},r),{[e]:t})),this.persistDraft())}handleCopyMarkdown(){return x(this,null,function*(){let e=this.editingWorkflow_$();if(!e)return;let t=[];t.push(`# ${e.name||"N\xE9vtelen workflow"}`),t.push(""),e.description&&(t.push(`> ${e.description}`),t.push("")),t.push("| Mez\u0151 | \xC9rt\xE9k |"),t.push("|------|-------|"),t.push(`| T\xEDpus | ${e.workflowType} |`),t.push(`| Sablon | ${e.isTemplate?"igen":"nem"} |`),t.push(`| F\xE1zisok sz\xE1ma | ${e.phases.length} |`),t.push(""),e.masterPrompt&&(t.push("## Vez\xE9rprompt (master prompt)"),t.push(""),t.push(e.masterPrompt),t.push("")),t.push("## F\xE1zisok"),t.push("");for(let r of e.phases){if(t.push(`### ${r.order+1}. ${r.title||"N\xE9vtelen f\xE1zis"}`),t.push(""),r.goal&&(t.push(`**C\xE9l:** ${r.goal}`),t.push("")),r.phasePrompt&&(t.push("**F\xE1zis prompt:**"),t.push(""),t.push(r.phasePrompt),t.push("")),r.constraints.length){t.push("**Megk\xF6t\xE9sek:**");for(let a of r.constraints)t.push(`- ${a}`);t.push("")}if(r.dod.length){t.push("**Definition of Done:**");for(let a of r.dod)t.push(`- ${a}`);t.push("")}r.repeatUntilDone&&(t.push("*Ism\xE9tl\u0151d\u0151 f\xE1zis (am\xEDg PHASE_DONE)*"),t.push(""))}try{yield navigator.clipboard.writeText(t.join(`
|
|
2
2
|
`)),this.isCopied_$.set(!0),setTimeout(()=>this.isCopied_$.set(!1),2e3)}catch{}})}persistDraft(){$.save({generationPrompt:this.generationPrompt_$(),modificationPrompt:this.modificationPrompt_$(),selectedProvider:this.selectedProvider_$(),selectedModel:this.selectedModel_$(),isCreating:this.isCreating_$(),editingWorkflow:this.editingWorkflow_$()})}restoreDraft(){let e=$.get();e&&(this.generationPrompt_$.set(e.generationPrompt),this.modificationPrompt_$.set(e.modificationPrompt),this.selectedProvider_$.set(e.selectedProvider),this.selectedModel_$.set(e.selectedModel),e.editingWorkflow&&(this.isCreating_$.set(e.isCreating),this.editingWorkflow_$.set(e.editingWorkflow)))}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=R({type:l,selectors:[["app-ccap-workflow-settings"]],standalone:!0,features:[Y],decls:7,vars:3,consts:[[1,"max-w-4xl","mx-auto","p-4","gt-xs:p-6","text-neutral-100"],[1,"flex","items-center","justify-between","mb-6"],[1,"text-2xl","font-bold"],[1,"px-4","py-2","border","border-neonDefault","text-neonDefault","rounded","hover:bg-neonDefault/10","transition-colors","text-sm"],[1,"space-y-4"],[1,"px-4","py-2","border","border-neonDefault","text-neonDefault","rounded","hover:bg-neonDefault/10","transition-colors","text-sm",3,"click"],[1,"text-neutral-500","text-sm"],[1,"rounded-lg","border","border-neutral-700","bg-ccapSurface/50","p-6","text-center","text-neutral-500"],[1,"space-y-3"],[1,"rounded-lg","border","border-neutral-700","bg-ccapSurface/50","p-4","flex","items-start","justify-between","gap-4"],[1,"flex-1","min-w-0"],[1,"flex","items-center","gap-2","mb-1"],[1,"font-semibold","text-neutral-100","truncate"],[1,"text-xs","px-2","py-0.5","rounded","bg-neutral-700","text-neutral-300"],[1,"text-xs","px-2","py-0.5","rounded","bg-neonDefault/20","text-neonDefault"],[1,"text-xs","px-2","py-0.5","rounded","bg-neonCyan/20","text-neonCyan"],[1,"text-neutral-400","text-sm","truncate"],[1,"text-neutral-500","text-xs","mt-1"],[1,"flex","gap-2","shrink-0"],[1,"px-3","py-1.5","text-xs","text-neutral-500","italic"],[1,"px-3","py-1.5","text-xs","border","border-neutral-600","rounded","hover:border-neonDefault","hover:text-neonDefault","transition-colors",3,"click"],[1,"px-3","py-1.5","text-xs","border","border-neutral-600","rounded","text-red-400","hover:border-red-400","transition-colors",3,"click"],[1,"flex","items-center","gap-2","mb-2"],[1,"text-sm","text-neutral-400","hover:text-neutral-200","transition-colors",3,"click"],[1,"text-neutral-600"],[1,"text-sm","text-neutral-300"],["title","Workflow markdown m\xE1sol\xE1sa v\xE1g\xF3lapra",1,"ml-auto","p-1.5","transition-colors","rounded","hover:bg-neutral-700/50",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-4","h-4"],[1,"rounded-lg","border","border-neonDefault/30","bg-neonDefault/5","p-4","space-y-3"],[1,"rounded-lg","border","border-amber-500/30","bg-amber-500/5","p-4","space-y-3"],[1,"rounded-lg","border","border-neutral-700","bg-neutral-800/40"],[1,"w-full","flex","items-center","gap-2","px-4","py-3","text-left","text-sm","text-neutral-300","hover:text-neutral-100","transition-colors",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3","h-3","shrink-0","transition-transform","duration-150"],["points","6 9 12 15 18 9"],[1,"font-medium"],[1,"text-xs","text-neutral-500","ml-auto"],[1,"px-4","pb-4","text-sm","text-neutral-400","space-y-4","border-t","border-neutral-700","pt-3"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-4"],[1,"block","text-xs","text-neutral-400","mb-1"],["type","text",1,"w-full","bg-neutral-800","border","border-neutral-600","rounded","px-3","py-2","text-sm","text-neutral-100","focus:border-neonDefault","outline-none",3,"ngModelChange","ngModel"],[1,"w-full","bg-neutral-800","border","border-neutral-600","rounded","px-3","py-2","text-sm","text-neutral-100","focus:border-neonDefault","outline-none",3,"ngModelChange","ngModel"],[3,"value"],[1,"flex","items-center","gap-2"],["type","checkbox",1,"accent-neonDefault",3,"ngModelChange","ngModel"],["rows","4",1,"w-full","bg-neutral-800","border","border-neutral-600","rounded","px-3","py-2","text-sm","text-neutral-100","focus:border-neonDefault","outline-none","resize-y",3,"ngModelChange","ngModel"],[1,"flex","items-center","justify-between","mb-2"],[1,"text-lg","font-semibold"],[1,"px-3","py-1","text-xs","border","border-neonDefault","text-neonDefault","rounded","hover:bg-neonDefault/10","transition-colors",3,"click"],[1,"rounded-lg","border","border-neutral-700","bg-neutral-800/50","p-4","mb-3"],[1,"flex","gap-3","pt-2"],[1,"px-5","py-2","border","border-neonDefault","text-neonDefault","rounded","hover:bg-neonDefault/10","transition-colors","text-sm",3,"click","disabled"],[1,"px-5","py-2","border","border-neutral-600","text-neutral-400","rounded","hover:border-neutral-400","transition-colors","text-sm",3,"click"],["points","20 6 9 17 4 12"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],[1,"text-sm","font-medium","text-neonDefault"],[1,"text-xs","text-neutral-500"],["rows","3","placeholder","Pl.: Szeretn\xE9k egy workflow-t, ami el\u0151sz\xF6r \xE1tn\xE9zi a k\xF3dot, azt\xE1n meg\xEDrja a teszteket, v\xE9g\xFCl review-olja az eg\xE9szet...",1,"w-full","bg-neutral-800","border","border-neutral-600","rounded","px-3","py-2","text-sm","text-neutral-100","focus:border-neonDefault","outline-none","resize-y","placeholder:text-neutral-600",3,"ngModelChange","ngModel"],[1,"flex","items-center","gap-3"],[1,"bg-neutral-800","border","border-neutral-600","rounded","px-2","py-1.5","text-xs","text-neutral-100","focus:border-neonDefault","outline-none",3,"ngModelChange","ngModel"],["value",""],[1,"px-4","py-2","border","border-neonDefault","text-neonDefault","rounded","hover:bg-neonDefault/10","transition-colors","text-sm","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","disabled"],[1,"text-sm","font-medium","text-amber-400"],["rows","3","placeholder","Pl.: Adj hozz\xE1 egy tesztel\xE9si f\xE1zist a megval\xF3s\xEDt\xE1s ut\xE1n, \xE9s tedd r\xE9szletesebb\xE9 a review f\xE1zis prompt-j\xE1t...",1,"w-full","bg-neutral-800","border","border-neutral-600","rounded","px-3","py-2","text-sm","text-neutral-100","focus:border-amber-400","outline-none","resize-y","placeholder:text-neutral-600",3,"ngModelChange","ngModel"],[1,"bg-neutral-800","border","border-neutral-600","rounded","px-2","py-1.5","text-xs","text-neutral-100","focus:border-amber-400","outline-none",3,"ngModelChange","ngModel"],[1,"px-4","py-2","border","border-amber-500","text-amber-400","rounded","hover:bg-amber-500/10","transition-colors","text-sm","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","disabled"],[1,"text-neutral-200","font-semibold","mb-1"],[1,"text-neutral-300"],[1,"list-disc","list-inside","space-y-1"],[1,"flex","flex-wrap","gap-2","text-xs"],[1,"px-2","py-1","rounded","bg-neutral-700","text-neutral-300"],[1,"mt-2","text-xs","text-neutral-500"],[1,"flex","items-center","justify-between","mb-3"],[1,"text-sm","font-medium","text-neutral-300"],[1,"text-xs","text-red-400","hover:text-red-300","transition-colors",3,"click"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-3","mb-3"],[1,"block","text-xs","text-neutral-500","mb-1"],["type","text",1,"w-full","bg-neutral-900","border","border-neutral-600","rounded","px-2","py-1.5","text-sm","text-neutral-100","focus:border-neonDefault","outline-none",3,"ngModelChange","ngModel"],[1,"mb-3"],["rows","3",1,"w-full","bg-neutral-900","border","border-neutral-600","rounded","px-2","py-1.5","text-sm","text-neutral-100","focus:border-neonDefault","outline-none","resize-y",3,"ngModelChange","ngModel"],[1,"text-xs","text-neutral-400"]],template:function(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"h1",2),o(3,"Workflow be\xE1ll\xEDt\xE1sok"),n(),k(4,ce,2,0,"button",3),n(),k(5,Ce,3,1)(6,Fe,59,20,"div",4),n()),t&2&&(s(4),h(r.editingWorkflow_$()?-1:4),s(),h(r.editingWorkflow_$()?-1:5),s(),h(r.editingWorkflow_$()?6:-1))},dependencies:[V,j,oe,re,ee,Z,ie,te,ne],encapsulation:2})}return l})();var je=[{path:"",pathMatch:"full",component:O}],mt=(()=>{class l{static \u0275fac=function(t){return new(t||l)};static \u0275mod=q({type:l});static \u0275inj=U({imports:[V,j,X.forChild(je),O]})}return l})();export{mt as WorkflowSettings_Module};
|
|
3
|
-
//# sourceMappingURL=wfs.module-
|
|
3
|
+
//# sourceMappingURL=wfs.module-6B4QN7NS.js.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/** Egyetlen window snapshot az `/api/oauth/usage` válaszából. */
|
|
2
|
+
export interface CC_AccountUsageWindowSnapshot_Interface {
|
|
3
|
+
windowType: string;
|
|
4
|
+
utilization?: number;
|
|
5
|
+
resetsAtMs?: number;
|
|
6
|
+
isExtraUsageEnabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Probe ok-result — a pool-CS innen építi az upsert-eket. */
|
|
9
|
+
export interface CC_AccountUsageProbeResult_Interface {
|
|
10
|
+
/** Az 5 window mind, hiányzók kihagyva. */
|
|
11
|
+
windows: CC_AccountUsageWindowSnapshot_Interface[];
|
|
12
|
+
/** Account email (best-effort `/api/oauth/profile`-ból, vagy null ha nem érhető el). */
|
|
13
|
+
email: string | null;
|
|
14
|
+
/** Account organization id (best-effort, vagy null). */
|
|
15
|
+
organizationId: string | null;
|
|
16
|
+
/** Detektált plan tier (`pro` | `max-5x` | `max-20x` | `team` | `enterprise` | `unknown`). */
|
|
17
|
+
planTier: string | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Diszkriminált union: `ok` (windows + profile) vagy `failed` (részletes
|
|
21
|
+
* diagnosztika). A pool-CS így a route-CS-en át a kliensnek konkrét
|
|
22
|
+
* okot ad (httpStatus, bodyHead, attemptedUrl), nem csak generikus 502.
|
|
23
|
+
*/
|
|
24
|
+
export type CC_AccountUsageProbeOutcome_Type = {
|
|
25
|
+
kind: 'ok';
|
|
26
|
+
result: CC_AccountUsageProbeResult_Interface;
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'no-token';
|
|
29
|
+
} | {
|
|
30
|
+
kind: 'http-error';
|
|
31
|
+
httpStatus: number;
|
|
32
|
+
bodyHead: string;
|
|
33
|
+
attemptedUrl: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: 'network-error';
|
|
36
|
+
message: string;
|
|
37
|
+
attemptedUrl: string;
|
|
38
|
+
};
|
|
39
|
+
export declare class CC_AccountUsageProbe_Util {
|
|
40
|
+
/**
|
|
41
|
+
* Az 5 window-typeName, amelyet az `/api/oauth/usage` válasza tartalmaz.
|
|
42
|
+
* A spec és a hivatalos Claude Code statusline gist alapján.
|
|
43
|
+
*/
|
|
44
|
+
static readonly WINDOW_TYPES: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Aktív usage-pull a credential-payload-on át. Diszkriminált union-ت ad
|
|
47
|
+
* vissza: `ok` (windows + profile) / `no-token` / `http-error` (httpStatus +
|
|
48
|
+
* bodyHead) / `network-error` (üzenet). NEM dob — a caller a kind-ból
|
|
49
|
+
* dönti el a következő lépést.
|
|
50
|
+
*/
|
|
51
|
+
static probeUsage(payload: Record<string, unknown>): Promise<CC_AccountUsageProbeOutcome_Type>;
|
|
52
|
+
/**
|
|
53
|
+
* Az általunk dobott hibaüzenetből (`HTTP <status> <text> on <url> | body: <head>`)
|
|
54
|
+
* kinyeri a `httpStatus`-t és a `bodyHead`-et, ha jelen vannak. Network-error
|
|
55
|
+
* esetén (timeout, DNS, ECONNREFUSED) nincs ilyen prefix → undefined.
|
|
56
|
+
*/
|
|
57
|
+
private static parseHttpErrorMessage;
|
|
58
|
+
/**
|
|
59
|
+
* Bearer + `anthropic-beta: oauth-2025-04-20` + `Content-Type: application/json` + 10s timeout.
|
|
60
|
+
* NEM 2xx-re részletes hibát dob (httpStatus + body-head a debug-hoz).
|
|
61
|
+
*/
|
|
62
|
+
private static fetchJson;
|
|
63
|
+
/**
|
|
64
|
+
* Claude.ai `/api/oauth/usage` válaszának 5 window-jából utilization + resets_at
|
|
65
|
+
* snapshot-okat épít. A spec szerint:
|
|
66
|
+
* - utilization: 0..100 (%) vagy 0..1 (frakció) — mi a fraction-ra normalizáljuk.
|
|
67
|
+
* - resets_at: ISO UTC string vagy unix-seconds.
|
|
68
|
+
* - extra_usage: külön shape (is_enabled + esetleg utilization null).
|
|
69
|
+
*/
|
|
70
|
+
private static parseUsageWindows;
|
|
71
|
+
/** Profile `actor.email` / `email` + `organizationId` + plan-tier kinyerés. */
|
|
72
|
+
private static parseProfile;
|
|
73
|
+
/** `claudeAiOauth.accessToken` kinyerése — null ha hiányzik. */
|
|
74
|
+
private static extractAccessToken;
|
|
75
|
+
/**
|
|
76
|
+
* Utilization normalizálás 0..1 fraction-ra. A hivatalos `/api/oauth/usage`
|
|
77
|
+
* valószínűleg 0..100 (%) értéket ad — de a Slice 3 stream-parser 0..1
|
|
78
|
+
* fraction-t perzisztál (`CC_AccountUsageState.utilization`). Egységesítés:
|
|
79
|
+
* ha >1, akkor /100. Ha 0..1, marad. Invalid → undefined.
|
|
80
|
+
*/
|
|
81
|
+
private static normalizeUtilization;
|
|
82
|
+
/** ISO UTC string vagy unix-seconds → ms. Invalid → undefined. */
|
|
83
|
+
private static normalizeResetsAt;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=cc-account-usage-probe.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cc-account-usage-probe.util.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/_modules/external-sessions/_modules/claude-code/_collections/utils/account/cc-account-usage-probe.util.ts"],"names":[],"mappings":"AAoCA,iEAAiE;AACjE,MAAM,WAAW,uCAAuC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACnD,2CAA2C;IAC3C,OAAO,EAAE,uCAAuC,EAAE,CAAC;IACnD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ule", { value: true });
|
|
3
|
+
exports.CC_AccountUsageProbe_Util = void 0;
|
|
4
|
+
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
5
|
+
/**
|
|
6
|
+
* CC Account active usage probe (REQ-CC-USAGE-DASHBOARD-001 cycle 873).
|
|
7
|
+
*
|
|
8
|
+
* Az Anthropic Claude.ai OAuth `/api/oauth/usage` endpoint hívása az account
|
|
9
|
+
* `claudeAiOauth.accessToken` Bearer-jével — visszaadja az 5 usage-window
|
|
10
|
+
* snapshot-ját és (best-effort) az account email-t. Ezzel a stream-driven
|
|
11
|
+
* (Slice 3) frissítések MELLÉ kapunk on-demand „current state" lekérést,
|
|
12
|
+
* amit a Dashboard `🔄 Refresh usage` gombja triggerel.
|
|
13
|
+
*
|
|
14
|
+
* Read-only HTTP probe: sose ír a credential-fájlba, sose módosítja a tokent.
|
|
15
|
+
*
|
|
16
|
+
* Konfigurálható base-URL: `CCAP_CLAUDE_OAUTH_BASE_URL` env (default
|
|
17
|
+
* `https://api.claude.ai`). Ha az endpoint változik vagy a szerverünk
|
|
18
|
+
* proxyzni akarja, a deployment override-olhatja.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Anthropic OAuth API base — env-overridable. A hivatalos endpoint
|
|
22
|
+
* `https://api.anthropic.com/api/oauth/usage` Bearer + `anthropic-beta:
|
|
23
|
+
* oauth-2025-04-20` header-rel (a Claude Code statusline gist + Anthropic
|
|
24
|
+
* dokumentáció megerősítése alapján).
|
|
25
|
+
*/
|
|
26
|
+
const CLAUDE_OAUTH_BASE_URL_DEFAULT = 'https://api.anthropic.com';
|
|
27
|
+
/**
|
|
28
|
+
* `anthropic-beta` header — KÖTELEZŐ az `/api/oauth/usage`-hoz (undocumented
|
|
29
|
+
* endpoint, a beta-flag nélkül 401/404). Az `oauth-2025-04-20` érték a publikus
|
|
30
|
+
* statusline-implementációkban szerepel.
|
|
31
|
+
*/
|
|
32
|
+
const ANTHROPIC_BETA_HEADER = 'oauth-2025-04-20';
|
|
33
|
+
/** Network timeout — 10s elég a `/api/oauth/usage`-ra. */
|
|
34
|
+
const PROBE_TIMEOUT_MS = 10_000;
|
|
35
|
+
class CC_AccountUsageProbe_Util {
|
|
36
|
+
/**
|
|
37
|
+
* Az 5 window-typeName, amelyet az `/api/oauth/usage` válasza tartalmaz.
|
|
38
|
+
* A spec és a hivatalos Claude Code statusline gist alapján.
|
|
39
|
+
*/
|
|
40
|
+
static WINDOW_TYPES = [
|
|
41
|
+
'five_hour',
|
|
42
|
+
'seven_day',
|
|
43
|
+
'seven_day_opus',
|
|
44
|
+
'seven_day_sonnet',
|
|
45
|
+
'extra_usage',
|
|
46
|
+
];
|
|
47
|
+
/**
|
|
48
|
+
* Aktív usage-pull a credential-payload-on át. Diszkriminált union-ت ad
|
|
49
|
+
* vissza: `ok` (windows + profile) / `no-token` / `http-error` (httpStatus +
|
|
50
|
+
* bodyHead) / `network-error` (üzenet). NEM dob — a caller a kind-ból
|
|
51
|
+
* dönti el a következő lépést.
|
|
52
|
+
*/
|
|
53
|
+
static async probeUsage(payload) {
|
|
54
|
+
const accessToken = CC_AccountUsageProbe_Util.extractAccessToken(payload);
|
|
55
|
+
if (!accessToken) {
|
|
56
|
+
fsm_dynamo_1.DyFM_Log.warn('CC_AccountUsageProbe_Util | no accessToken in credential payload — skip probe');
|
|
57
|
+
return { kind: 'no-token' };
|
|
58
|
+
}
|
|
59
|
+
const baseUrl = typeof process.env.CCAP_CLAUDE_OAUTH_BASE_URL === 'string' && process.env.CCAP_CLAUDE_OAUTH_BASE_URL !== ''
|
|
60
|
+
? process.env.CCAP_CLAUDE_OAUTH_BASE_URL
|
|
61
|
+
: CLAUDE_OAUTH_BASE_URL_DEFAULT;
|
|
62
|
+
const usageUrl = `${baseUrl}/api/oauth/usage`;
|
|
63
|
+
const profileUrl = `${baseUrl}/api/oauth/profile`;
|
|
64
|
+
// 1. Usage = kötelező. Ha 4xx/5xx vagy network → diszkriminált hiba a UI-nak.
|
|
65
|
+
let usageResult;
|
|
66
|
+
try {
|
|
67
|
+
usageResult = await CC_AccountUsageProbe_Util.fetchJson(usageUrl, accessToken);
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
const httpInfo = CC_AccountUsageProbe_Util.parseHttpErrorMessage(err);
|
|
71
|
+
fsm_dynamo_1.DyFM_Log.warn(`CC_AccountUsageProbe_Util | usage fetch failed | ${err instanceof Error ? err.message : String(err)}`);
|
|
72
|
+
if (httpInfo.httpStatus != null) {
|
|
73
|
+
return {
|
|
74
|
+
kind: 'http-error',
|
|
75
|
+
httpStatus: httpInfo.httpStatus,
|
|
76
|
+
bodyHead: httpInfo.bodyHead ?? '',
|
|
77
|
+
attemptedUrl: usageUrl,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
kind: 'network-error',
|
|
82
|
+
message: err instanceof Error ? err.message : String(err),
|
|
83
|
+
attemptedUrl: usageUrl,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
// 2. Profile = best-effort. 4xx/5xx → null, csak warn-log; ne blokkolja a usage-renderelést.
|
|
87
|
+
let profileResult = null;
|
|
88
|
+
try {
|
|
89
|
+
profileResult = await CC_AccountUsageProbe_Util.fetchJson(profileUrl, accessToken);
|
|
90
|
+
}
|
|
91
|
+
catch (err) {
|
|
92
|
+
fsm_dynamo_1.DyFM_Log.warn(`CC_AccountUsageProbe_Util | profile fetch failed (non-blocking) | ${err instanceof Error ? err.message : String(err)}`);
|
|
93
|
+
}
|
|
94
|
+
const windows = CC_AccountUsageProbe_Util.parseUsageWindows(usageResult);
|
|
95
|
+
const profileFields = CC_AccountUsageProbe_Util.parseProfile(profileResult);
|
|
96
|
+
return {
|
|
97
|
+
kind: 'ok',
|
|
98
|
+
result: {
|
|
99
|
+
windows: windows,
|
|
100
|
+
email: profileFields.email,
|
|
101
|
+
organizationId: profileFields.organizationId,
|
|
102
|
+
planTier: profileFields.planTier,
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Az általunk dobott hibaüzenetből (`HTTP <status> <text> on <url> | body: <head>`)
|
|
108
|
+
* kinyeri a `httpStatus`-t és a `bodyHead`-et, ha jelen vannak. Network-error
|
|
109
|
+
* esetén (timeout, DNS, ECONNREFUSED) nincs ilyen prefix → undefined.
|
|
110
|
+
*/
|
|
111
|
+
static parseHttpErrorMessage(err) {
|
|
112
|
+
if (!(err instanceof Error)) {
|
|
113
|
+
return {};
|
|
114
|
+
}
|
|
115
|
+
const match = err.message.match(/^HTTP (\d{3})[^|]*\| body: (.*)$/s);
|
|
116
|
+
if (match == null) {
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
return { httpStatus: Number(match[1]), bodyHead: match[2].substring(0, 400) };
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Bearer + `anthropic-beta: oauth-2025-04-20` + `Content-Type: application/json` + 10s timeout.
|
|
123
|
+
* NEM 2xx-re részletes hibát dob (httpStatus + body-head a debug-hoz).
|
|
124
|
+
*/
|
|
125
|
+
static async fetchJson(url, accessToken) {
|
|
126
|
+
const controller = new AbortController();
|
|
127
|
+
const timer = setTimeout(() => controller.abort(), PROBE_TIMEOUT_MS);
|
|
128
|
+
try {
|
|
129
|
+
const response = await fetch(url, {
|
|
130
|
+
method: 'GET',
|
|
131
|
+
headers: {
|
|
132
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
133
|
+
'anthropic-beta': ANTHROPIC_BETA_HEADER,
|
|
134
|
+
'Content-Type': 'application/json',
|
|
135
|
+
'Accept': 'application/json',
|
|
136
|
+
},
|
|
137
|
+
signal: controller.signal,
|
|
138
|
+
});
|
|
139
|
+
if (!response.ok) {
|
|
140
|
+
const bodyHead = await response.text().then((t) => t.substring(0, 400)).catch(() => '');
|
|
141
|
+
throw new Error(`HTTP ${response.status} ${response.statusText} on ${url} | body: ${bodyHead}`);
|
|
142
|
+
}
|
|
143
|
+
return await response.json();
|
|
144
|
+
}
|
|
145
|
+
finally {
|
|
146
|
+
clearTimeout(timer);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Claude.ai `/api/oauth/usage` válaszának 5 window-jából utilization + resets_at
|
|
151
|
+
* snapshot-okat épít. A spec szerint:
|
|
152
|
+
* - utilization: 0..100 (%) vagy 0..1 (frakció) — mi a fraction-ra normalizáljuk.
|
|
153
|
+
* - resets_at: ISO UTC string vagy unix-seconds.
|
|
154
|
+
* - extra_usage: külön shape (is_enabled + esetleg utilization null).
|
|
155
|
+
*/
|
|
156
|
+
static parseUsageWindows(response) {
|
|
157
|
+
if (response == null || typeof response !== 'object' || Array.isArray(response)) {
|
|
158
|
+
return [];
|
|
159
|
+
}
|
|
160
|
+
const rec = response;
|
|
161
|
+
const windows = [];
|
|
162
|
+
for (const windowType of CC_AccountUsageProbe_Util.WINDOW_TYPES) {
|
|
163
|
+
const raw = rec[windowType];
|
|
164
|
+
if (raw == null || typeof raw !== 'object') {
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
const w = raw;
|
|
168
|
+
const utilization = CC_AccountUsageProbe_Util.normalizeUtilization(w.utilization);
|
|
169
|
+
const resetsAtMs = CC_AccountUsageProbe_Util.normalizeResetsAt(w.resets_at);
|
|
170
|
+
const isExtraUsageEnabled = windowType === 'extra_usage' && typeof w.is_enabled === 'boolean'
|
|
171
|
+
? w.is_enabled
|
|
172
|
+
: undefined;
|
|
173
|
+
// Csak akkor adjuk hozzá, ha legalább egy érdemi mező megvan.
|
|
174
|
+
if (utilization == null && resetsAtMs == null && isExtraUsageEnabled == null) {
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
windows.push({
|
|
178
|
+
windowType: windowType,
|
|
179
|
+
utilization: utilization,
|
|
180
|
+
resetsAtMs: resetsAtMs,
|
|
181
|
+
isExtraUsageEnabled: isExtraUsageEnabled,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
return windows;
|
|
185
|
+
}
|
|
186
|
+
/** Profile `actor.email` / `email` + `organizationId` + plan-tier kinyerés. */
|
|
187
|
+
static parseProfile(response) {
|
|
188
|
+
if (response == null || typeof response !== 'object' || Array.isArray(response)) {
|
|
189
|
+
return { email: null, organizationId: null, planTier: null };
|
|
190
|
+
}
|
|
191
|
+
const rec = response;
|
|
192
|
+
let email = null;
|
|
193
|
+
let organizationId = null;
|
|
194
|
+
let planTier = null;
|
|
195
|
+
if (typeof rec.email === 'string' && rec.email !== '') {
|
|
196
|
+
email = rec.email;
|
|
197
|
+
}
|
|
198
|
+
else if (rec.actor != null && typeof rec.actor === 'object' && !Array.isArray(rec.actor)) {
|
|
199
|
+
const actor = rec.actor;
|
|
200
|
+
if (typeof actor.email === 'string' && actor.email !== '') {
|
|
201
|
+
email = actor.email;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (typeof rec.organization_id === 'string' && rec.organization_id !== '') {
|
|
205
|
+
organizationId = rec.organization_id;
|
|
206
|
+
}
|
|
207
|
+
else if (typeof rec.organizationId === 'string' && rec.organizationId !== '') {
|
|
208
|
+
organizationId = rec.organizationId;
|
|
209
|
+
}
|
|
210
|
+
if (typeof rec.plan === 'string' && rec.plan !== '') {
|
|
211
|
+
planTier = rec.plan;
|
|
212
|
+
}
|
|
213
|
+
else if (typeof rec.subscription_tier === 'string' && rec.subscription_tier !== '') {
|
|
214
|
+
planTier = rec.subscription_tier;
|
|
215
|
+
}
|
|
216
|
+
else if (typeof rec.tier === 'string' && rec.tier !== '') {
|
|
217
|
+
planTier = rec.tier;
|
|
218
|
+
}
|
|
219
|
+
return { email: email, organizationId: organizationId, planTier: planTier };
|
|
220
|
+
}
|
|
221
|
+
/** `claudeAiOauth.accessToken` kinyerése — null ha hiányzik. */
|
|
222
|
+
static extractAccessToken(payload) {
|
|
223
|
+
const oauth = payload.claudeAiOauth;
|
|
224
|
+
if (oauth == null || typeof oauth !== 'object' || Array.isArray(oauth)) {
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
const accessToken = oauth.accessToken;
|
|
228
|
+
if (typeof accessToken !== 'string' || accessToken === '') {
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
return accessToken;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Utilization normalizálás 0..1 fraction-ra. A hivatalos `/api/oauth/usage`
|
|
235
|
+
* valószínűleg 0..100 (%) értéket ad — de a Slice 3 stream-parser 0..1
|
|
236
|
+
* fraction-t perzisztál (`CC_AccountUsageState.utilization`). Egységesítés:
|
|
237
|
+
* ha >1, akkor /100. Ha 0..1, marad. Invalid → undefined.
|
|
238
|
+
*/
|
|
239
|
+
static normalizeUtilization(raw) {
|
|
240
|
+
if (typeof raw !== 'number' || !isFinite(raw) || raw < 0) {
|
|
241
|
+
return undefined;
|
|
242
|
+
}
|
|
243
|
+
if (raw > 1) {
|
|
244
|
+
return Math.min(1, raw / 100);
|
|
245
|
+
}
|
|
246
|
+
return raw;
|
|
247
|
+
}
|
|
248
|
+
/** ISO UTC string vagy unix-seconds → ms. Invalid → undefined. */
|
|
249
|
+
static normalizeResetsAt(raw) {
|
|
250
|
+
if (typeof raw === 'number' && isFinite(raw) && raw > 0) {
|
|
251
|
+
// Unix-seconds vagy ms (heurisztika: <2 trillió = sec, >= = ms).
|
|
252
|
+
return raw < 2_000_000_000_000 ? raw * 1000 : raw;
|
|
253
|
+
}
|
|
254
|
+
if (typeof raw === 'string' && raw !== '') {
|
|
255
|
+
const parsed = Date.parse(raw);
|
|
256
|
+
if (!isNaN(parsed) && parsed > 0) {
|
|
257
|
+
return parsed;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.CC_AccountUsageProbe_Util = CC_AccountUsageProbe_Util;
|
|
264
|
+
//# sourceMappingURL=cc-account-usage-probe.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cc-account-usage-probe.util.js","sourceRoot":"","sources":["../../../../../../../../../src/_modules/external-sessions/_modules/claude-code/_collections/utils/account/cc-account-usage-probe.util.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD;;;;;;;;;;;;;;GAcG;AAEH;;;;;GAKG;AACH,MAAM,6BAA6B,GAAW,2BAA2B,CAAC;AAE1E;;;;GAIG;AACH,MAAM,qBAAqB,GAAW,kBAAkB,CAAC;AAEzD,0DAA0D;AAC1D,MAAM,gBAAgB,GAAW,MAAM,CAAC;AAiCxC,MAAa,yBAAyB;IAEpC;;;OAGG;IACH,MAAM,CAAU,YAAY,GAAa;QACvC,WAAW;QACX,WAAW;QACX,gBAAgB;QAChB,kBAAkB;QAClB,aAAa;KACd,CAAC;IAEF;;;;;OAKG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAAgC;QACtD,MAAM,WAAW,GAAkB,yBAAyB,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACzF,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,qBAAQ,CAAC,IAAI,CAAC,+EAA+E,CAAC,CAAC;YAC/F,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;QAC9B,CAAC;QAED,MAAM,OAAO,GACX,OAAO,OAAO,CAAC,GAAG,CAAC,0BAA0B,KAAK,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,0BAA0B,KAAK,EAAE;YACzG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B;YACxC,CAAC,CAAC,6BAA6B,CAAC;QAEpC,MAAM,QAAQ,GAAW,GAAG,OAAO,kBAAkB,CAAC;QACtD,MAAM,UAAU,GAAW,GAAG,OAAO,oBAAoB,CAAC;QAE1D,8EAA8E;QAC9E,IAAI,WAAoB,CAAC;QACzB,IAAI,CAAC;YACH,WAAW,GAAG,MAAM,yBAAyB,CAAC,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACjF,CAAC;QAAC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AC;;AA5PH,8DA6PC"}
|
|
@@ -53,6 +53,24 @@ export declare class CC_AccountRoute_ControlService extends DyNTS_SingletonServi
|
|
|
53
53
|
}): Promise<{
|
|
54
54
|
items: CC_AccountUsageState[];
|
|
55
55
|
}>;
|
|
56
|
+
/**
|
|
57
|
+
* POST /cc-account/:accountKey/refresh-usage — aktív usage-pull az Anthropic
|
|
58
|
+
* `/api/oauth/usage` endpoint-jával (REQ-CC-USAGE-DASHBOARD-001 cycle 873).
|
|
59
|
+
* A pool-CS olvassa a credential-fájlt, Bearer-rel hív, az 5 window state-et
|
|
60
|
+
* upsert-eli + `cc:account-usage-update` socket emit; a profile-mezőket
|
|
61
|
+
* (email/organizationId/planTier) a CC_Account-ba updateli.
|
|
62
|
+
*
|
|
63
|
+
* Response: `{ status, windowsUpserted, email }` — a kliens UI ebből láthatja
|
|
64
|
+
* sikeres-e a pull. 404 ha az accountKey nincs DB-ben; 502 ha a probe-fail
|
|
65
|
+
* (token expired / network).
|
|
66
|
+
*/
|
|
67
|
+
handleRefreshAccountUsage(params: {
|
|
68
|
+
accountKey: string;
|
|
69
|
+
}): Promise<{
|
|
70
|
+
status: string;
|
|
71
|
+
windowsUpserted: number;
|
|
72
|
+
email: string | null;
|
|
73
|
+
}>;
|
|
56
74
|
/**
|
|
57
75
|
* GET /cc-account/instance-mapping — cross-instance aggregate (REQ-CC-USAGE-DASHBOARD-001
|
|
58
76
|
* Slice 4 cycle 855): minden CCAP instance-re melyik account-(ok)at látta legutóbb
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cc-account-route.control-service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account-route.control-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6D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IG;IACH,OAAO,CAAC,wBAAwB;CAgBjC"}
|
|
1
|
+
{"version":3,"file":"cc-account-route.control-service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_modules/external-sessions/_modules/claude-code/_routes/cc-account/cc-account-route.control-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAInG;;;;;;;;;;;GAWG;AACH,qBAAa,8BAA+B,SAAQ,sBAAsB;IAExE,iGAAiG;IACjG,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAoB;IAE/D,wFAAwF;IACxF,MAAM,CAAC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAO;IAEtD,0FAA0F;IAC1F,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAA2B;IAEvE,MAAM,CAAC,WAAW,IAAI,8BAA8B;IAIpD,OAAO,CAAC,QAAQ,CAAC,cAAc,CACe;IAE9C,2DAA2D;IACrD,kBAAkB,IAAI,OAAO,CAAC;QAAE,KAAK,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;IAK5D;;;OAGG;IACG,0BAA0B,IAAI,OAAO,CAAC;QAAE,aAAa,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAI9F,2DAA2D;IACrD,gBAAgB,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IAe3E;;;;;;;;;OASG;IACG,qBAAqB,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,oBAAoB,EAAE,CAAA;KAAE,CAAC;IASvG;;;;;;;;;;OAUG;IACG,yBAAyB,CAA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