@a-company/paradigm 5.10.0 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accept-orchestration-IUAWQZUN.js +18 -0
- package/dist/add-P76GEMGF.js +8 -0
- package/dist/agent-UUTYOFTH.js +33 -0
- package/dist/agent-loader-EPXURMO7.js +2 -0
- package/dist/agent-loader-PYGPX6D2.js +2 -0
- package/dist/agent-state-KSQ3S7OB.js +2 -0
- package/dist/agents-suggest-HYTFMQD3.js +10 -0
- package/dist/aggregate-W66DM3GA.js +10 -0
- package/dist/ambient-HYZR42NX.js +35 -0
- package/dist/assess-UFPYEJKP.js +9 -0
- package/dist/auto-RHJXOZFL.js +14 -0
- package/dist/beacon-5QVYV5DF.js +13 -0
- package/dist/calibration-OLJYB5HN.js +7 -0
- package/dist/check-THVGY4R5.js +14 -0
- package/dist/chunk-22ISTMKI.js +31 -0
- package/dist/chunk-2QO33NYK.js +3 -0
- package/dist/chunk-33LKBMVK.js +134 -0
- package/dist/chunk-4QADCWPU.js +7 -0
- package/dist/chunk-4TXOVRWD.js +3 -0
- package/dist/chunk-4UJ4NIEQ.js +4 -0
- package/dist/chunk-4ZGGWZ32.js +3 -0
- package/dist/chunk-5TAVYPOV.js +2 -0
- package/dist/chunk-6EX37L4Q.js +8 -0
- package/dist/chunk-AD5TAD2A.js +5 -0
- package/dist/chunk-AGVAHVUA.js +2 -0
- package/dist/chunk-AO7ZSRME.js +13 -0
- package/dist/chunk-BFD3GFRK.js +2 -0
- package/dist/chunk-D34YFK4M.js +6 -0
- package/dist/chunk-DVZWCXB6.js +2 -0
- package/dist/chunk-EKZDFEJW.js +2 -0
- package/dist/chunk-ET5XJTSX.js +2 -0
- package/dist/chunk-FYDRENK7.js +3 -0
- package/dist/chunk-HMQ5BHP2.js +743 -0
- package/dist/chunk-HXKWL3VK.js +29 -0
- package/dist/chunk-IZSBGW6E.js +2 -0
- package/dist/chunk-J32OPJEX.js +2 -0
- package/dist/chunk-JBDMCRPP.js +7 -0
- package/dist/chunk-JIXHEBGK.js +7 -0
- package/dist/chunk-JNSJVCTU.js +2 -0
- package/dist/chunk-JQKKVAAN.js +2 -0
- package/dist/chunk-KLBH26PA.js +429 -0
- package/dist/chunk-L6K5HNDL.js +24 -0
- package/dist/chunk-LKAT7IAK.js +2 -0
- package/dist/chunk-M4UMM6DC.js +5 -0
- package/dist/chunk-NKYNHSA5.js +424 -0
- package/dist/chunk-NW6OKHE6.js +5 -0
- package/dist/chunk-NXRVR37G.js +60 -0
- package/dist/chunk-ODVKPZZ4.js +2 -0
- package/dist/chunk-PUBB7LIT.js +5 -0
- package/dist/chunk-Q2J542ST.js +2 -0
- package/dist/chunk-QGZRM6ZB.js +2 -0
- package/dist/chunk-QNZEG7IT.js +13 -0
- package/dist/chunk-QT2LKB3P.js +7 -0
- package/dist/chunk-RVRARWSY.js +9 -0
- package/dist/chunk-T6IDXUUA.js +2 -0
- package/dist/chunk-TYWB5IQJ.js +3 -0
- package/dist/chunk-UIKLE3WD.js +2 -0
- package/dist/chunk-V7K6CQVX.js +111 -0
- package/dist/chunk-VCKKJDLP.js +8 -0
- package/dist/chunk-VG7FN2TU.js +4 -0
- package/dist/chunk-W5IWDW4Y.js +16 -0
- package/dist/chunk-W7C6FFMO.js +8 -0
- package/dist/chunk-WESTEMIM.js +10 -0
- package/dist/chunk-WR6D3SC6.js +5 -0
- package/dist/chunk-WS2N27RX.js +3 -0
- package/dist/chunk-XMAV5AG6.js +2 -0
- package/dist/chunk-XROULIQN.js +2 -0
- package/dist/chunk-XUFYOXOU.js +3 -0
- package/dist/chunk-Y4XFVDZC.js +3 -0
- package/dist/chunk-Y6KXTQBG.js +2 -0
- package/dist/{chunk-GTR2TBIJ.js → chunk-Z2UZUCY6.js} +237 -1047
- package/dist/chunk-Z34K6GY2.js +8 -0
- package/dist/claude-4LR3LJQZ.js +13 -0
- package/dist/claude-cli-UP6HGH7C.js +6 -0
- package/dist/claude-code-RLJ4GX77.js +11 -0
- package/dist/claude-code-teams-R37HJY3Y.js +29 -0
- package/dist/commands-LMUD5L6R.js +455 -0
- package/dist/compliance-GZ7UAOG3.js +6 -0
- package/dist/conductor-Y5IXELTL.js +4 -0
- package/dist/config-schema-HR7LDEQ6.js +2 -0
- package/dist/constellation-CG7C4WFE.js +13 -0
- package/dist/context-audit-RSSRX6XC.js +6 -0
- package/dist/cost-IDNVMAEV.js +10 -0
- package/dist/cost-PK4KIF7R.js +2 -0
- package/dist/cursor-cli-QKF7Z6M2.js +4 -0
- package/dist/cursorrules-U5O4G5T4.js +14 -0
- package/dist/decision-loader-2XPZE4EZ.js +2 -0
- package/dist/delete-P5VULXR4.js +14 -0
- package/dist/diff-RTFUKJHF.js +9 -0
- package/dist/discipline-H7LDI6NT.js +2 -0
- package/dist/dist-3ZCH25SG.js +2 -0
- package/dist/dist-KGRCLBJP-2QAPFYNF.js +39 -0
- package/dist/dist-R3RWD35F.js +2 -0
- package/dist/dist-VGFSP3XM.js +2 -0
- package/dist/dist-VXCZWVVJ.js +2 -0
- package/dist/dist-W3XCATBJ.js +2 -0
- package/dist/docs-EDQ2STFK.js +2 -0
- package/dist/docs-RXPN6CK7.js +12 -0
- package/dist/doctor-2T2QL6VM.js +2 -0
- package/dist/drift-ILZE5BFJ.js +13 -0
- package/dist/echo-UPTQUEDU.js +46 -0
- package/dist/edit-GUU3HBVW.js +9 -0
- package/dist/event-Y3VXC2RV.js +3 -0
- package/dist/explain-files-3GPZUETV.js +4 -0
- package/dist/export-CV5KCTPS.js +2 -0
- package/dist/flow-S3RQ4YPY.js +11 -0
- package/dist/global-C44FW4G2.js +13 -0
- package/dist/graduate-3BBSC27A.js +5 -0
- package/dist/graph-CNDE5TAT.js +2 -0
- package/dist/graph-server-COZR5C3Z.js +14 -0
- package/dist/habits-4J2KRYUL.js +42 -0
- package/dist/history-UW454SDP.js +12 -0
- package/dist/hooks-XH52VGOU.js +2 -0
- package/dist/index.js +15 -1039
- package/dist/init-24MAQJFM.js +2 -0
- package/dist/integrity-UYDOOJDP.js +7 -0
- package/dist/integrity-checker-DHGMZQDG.js +2 -0
- package/dist/journal-loader-GLH7XFTK.js +2 -0
- package/dist/lint-IGKE6UPS.js +26 -0
- package/dist/list-5IUGP3ZB.js +7 -0
- package/dist/list-YKIQNKGB.js +6 -0
- package/dist/lore-loader-RVQI5GXL.js +2 -0
- package/dist/lore-loader-XY5MZRR2.js +2 -0
- package/dist/lore-server-FC2GMDLT.js +14 -0
- package/dist/manual-RXSPSFLL.js +20 -0
- package/dist/mcp.js +93 -20484
- package/dist/migrate-X5OMAFAQ.js +59 -0
- package/dist/migrate-assessments-GEI5WMI2.js +4 -0
- package/dist/model-discovery-HMB3YI4L.js +2 -0
- package/dist/nomination-engine-XF7TWPAP.js +2 -0
- package/dist/notebook-PE3JSYZI.js +11 -0
- package/dist/notebook-loader-CENTDDUJ.js +2 -0
- package/dist/orchestrate-35HBQ3O3.js +8 -0
- package/dist/peers-P2KXU7ZK.js +5 -0
- package/dist/persona-STQWZH5P.js +29 -0
- package/dist/pipeline-MZUITRVN.js +4 -0
- package/dist/platform-server-2KXHGHFV.js +25 -0
- package/dist/plugin-update-checker-M7PW434O.js +2 -0
- package/dist/portal-check-3JVNLOEP.js +8 -0
- package/dist/portal-compliance-2UG4VKWH.js +2 -0
- package/dist/probe-5L5BQDGE.js +6 -0
- package/dist/project-type-SURTOIG7.js +2 -0
- package/dist/promote-NJQDZBZA.js +8 -0
- package/dist/providers-4PXMWA7V.js +8 -0
- package/dist/quiz-FE5UGAY2.js +10 -0
- package/dist/record-YXPB34MY.js +6 -0
- package/dist/reindex-PGDQSM42.js +2 -0
- package/dist/remember-MJRNTXYS.js +14 -0
- package/dist/retag-N5XF3KXP.js +6 -0
- package/dist/review-6UAH6V3R.js +11 -0
- package/dist/review-77QI6VOC.js +6 -0
- package/dist/ripple-ZGDITCGB.js +10 -0
- package/dist/roster-FLRZ5J42.js +2 -0
- package/dist/sentinel-HYAZ3CO5.js +19 -0
- package/dist/sentinel-bridge-VR357PKL.js +2 -0
- package/dist/sentinel-mcp.js +38 -3808
- package/dist/sentinel.js +1 -34
- package/dist/serve-JE6UF5P2.js +8 -0
- package/dist/serve-L52ZUTU6.js +10 -0
- package/dist/serve-OY6XYL7F.js +12 -0
- package/dist/server-2MNROHF6.js +7 -0
- package/dist/server-4YNUIK4W.js +8 -0
- package/dist/session-tracker-SKOMBDOW.js +2 -0
- package/dist/session-work-log-3MNUDEZ6.js +2 -0
- package/dist/session-work-log-J2H5OZBR.js +2 -0
- package/dist/setup-3F5IK7MO.js +31 -0
- package/dist/setup-KPIMRZ4Q.js +2 -0
- package/dist/shift-6GCNH666.js +11 -0
- package/dist/show-BOAVWZPZ.js +7 -0
- package/dist/show-PJ5LFLIL.js +5 -0
- package/dist/snapshot-L2G56RPL.js +8 -0
- package/dist/spawn-UH5RENSE.js +12 -0
- package/dist/status-77M3SDIF.js +8 -0
- package/dist/status-A37ECYNJ.js +6 -0
- package/dist/summary-ZJLQ6KHB.js +7 -0
- package/dist/sweep-HU74OPVW.js +17 -0
- package/dist/switch-CTW4PDGI.js +17 -0
- package/dist/symphony-3QMBGCZY.js +2 -0
- package/dist/symphony-QI63XL62.js +53 -0
- package/dist/symphony-loader-XACVV2E3.js +2 -0
- package/dist/symphony-peers-U4KHMKGI.js +2 -0
- package/dist/symphony-peers-X5NGWXFP.js +2 -0
- package/dist/symphony-relay-5GY5JIPT.js +3 -0
- package/dist/sync-QRDSFETO.js +2 -0
- package/dist/sync-llms-HL5PPW3M.js +15 -0
- package/dist/task-loader-NZFDTUQ5.js +2 -0
- package/dist/team-WGERKGNP.js +2 -0
- package/dist/test-BQJMS4Y2.js +111 -0
- package/dist/thread-HFXK65D4.js +41 -0
- package/dist/timeline-K3ZFKJ3R.js +6 -0
- package/dist/triage-FCWOZASE.js +18 -0
- package/dist/tutorial-UC6YQMNN.js +305 -0
- package/dist/university-content/courses/.purpose +74 -5
- package/dist/university-content/courses/para-701.json +807 -0
- package/dist/university-content/plsat/.purpose +3 -2
- package/dist/university-ui/assets/{index-BjewBB6s.js → index-CGFJczb1.js} +2 -2
- package/dist/university-ui/assets/{index-BjewBB6s.js.map → index-CGFJczb1.js.map} +1 -1
- package/dist/university-ui/index.html +1 -1
- package/dist/upgrade-B4IOLZYK.js +53 -0
- package/dist/validate-C6SMKGYD.js +9 -0
- package/dist/validate-LSCDOLBO.js +13 -0
- package/dist/validate-VZXTJHGO.js +6 -0
- package/dist/watch-LRM5XD46.js +8 -0
- package/dist/watch-PZCCUP6K.js +9 -0
- package/dist/wisdom-XZ3QKPNP.js +7 -0
- package/dist/work-log-loader-DL5GZ2BQ.js +2 -0
- package/dist/workspace-2ODL5WLY.js +2 -0
- package/package.json +1 -1
- package/platform-ui/dist/assets/AmbientSection-DqQ2mfCO.js +1 -0
- package/platform-ui/dist/assets/{CanvasSection-DwPTRdIN.js → CanvasSection-DLW0s-Bu.js} +1 -1
- package/platform-ui/dist/assets/{DocsSection-BJc_ws4I.js → DocsSection-BQ9Hi51g.js} +1 -1
- package/platform-ui/dist/assets/{GitSection-DhqBo1xc.js → GitSection-QQeUX6o3.js} +1 -1
- package/platform-ui/dist/assets/{GraphSection-D9fhVnZ0.js → GraphSection-0c9C-w7K.js} +2 -2
- package/platform-ui/dist/assets/{GraphSection-BlgXTl53.css → GraphSection-Bbs2a8sC.css} +1 -1
- package/platform-ui/dist/assets/LoreSection--t56kCj2.js +1 -0
- package/platform-ui/dist/assets/LoreSection-qnmm3o4y.css +1 -0
- package/platform-ui/dist/assets/SentinelSection-C4OoME9U.js +1 -0
- package/platform-ui/dist/assets/{SymphonySection-BRoBaUSS.js → SymphonySection-B-rvsLxq.js} +1 -1
- package/platform-ui/dist/assets/TeamSection-CBFmNEEo.js +1 -0
- package/platform-ui/dist/assets/index-Bxp0TVaf.css +1 -0
- package/platform-ui/dist/assets/index-DPpOdAtC.js +57 -0
- package/platform-ui/dist/index.html +2 -2
- package/dist/accept-orchestration-UQLM7PTQ.js +0 -189
- package/dist/add-FZRKEGH4.js +0 -81
- package/dist/agent-WERIO2XV.js +0 -523
- package/dist/agent-loader-TFIANSF4.js +0 -44
- package/dist/agent-state-S5DAWPTF.js +0 -24
- package/dist/agents-suggest-DNSYJ6IA.js +0 -83
- package/dist/aggregate-H57K7PNV.js +0 -88
- package/dist/assess-4WVXZLZQ.js +0 -68
- package/dist/auto-QFS5NHQU.js +0 -504
- package/dist/beacon-KXZXYQHX.js +0 -251
- package/dist/calibration-V46G7JTY.js +0 -135
- package/dist/check-OWAIWV23.js +0 -175
- package/dist/chunk-2IO7JAG2.js +0 -148
- package/dist/chunk-2T6BTYBN.js +0 -712
- package/dist/chunk-36TKPM5Z.js +0 -400
- package/dist/chunk-45MUDW6E.js +0 -804
- package/dist/chunk-4BLYIB7J.js +0 -5701
- package/dist/chunk-4L3UTYQX.js +0 -677
- package/dist/chunk-4NCFWYGG.js +0 -110
- package/dist/chunk-54LTTQBH.js +0 -138
- package/dist/chunk-5EWAQHFY.js +0 -269
- package/dist/chunk-5JGJACDU.js +0 -37
- package/dist/chunk-5OUOLN6M.js +0 -659
- package/dist/chunk-5VKJBNJL.js +0 -444
- package/dist/chunk-6N3JTACN.js +0 -2260
- package/dist/chunk-6QC3YGB6.js +0 -114
- package/dist/chunk-7N7GSU6K.js +0 -34
- package/dist/chunk-ABVQGRF7.js +0 -268
- package/dist/chunk-CL7JSK52.js +0 -129
- package/dist/chunk-CSD7IHSN.js +0 -152
- package/dist/chunk-EDOAWN7J.js +0 -717
- package/dist/chunk-EKGMAM62.js +0 -525
- package/dist/chunk-EZ3GOCYC.js +0 -132
- package/dist/chunk-F3BCHPYT.js +0 -143
- package/dist/chunk-FKJUBQU3.js +0 -3081
- package/dist/chunk-GT5QGC2H.js +0 -253
- package/dist/chunk-GZDFVP2N.js +0 -540
- package/dist/chunk-IRKUEJVW.js +0 -405
- package/dist/chunk-J2JEQRT3.js +0 -164
- package/dist/chunk-JASGXLK3.js +0 -679
- package/dist/chunk-KVDYJLTC.js +0 -121
- package/dist/chunk-L27I3CPZ.js +0 -357
- package/dist/chunk-LHLIAYQ3.js +0 -185
- package/dist/chunk-MCMOGQMU.js +0 -145
- package/dist/chunk-NQKQG45G.js +0 -688
- package/dist/chunk-PBHIFAL4.js +0 -259
- package/dist/chunk-PDX44BCA.js +0 -11
- package/dist/chunk-PMXRGPRQ.js +0 -305
- package/dist/chunk-RAB5IKPR.js +0 -487
- package/dist/chunk-RJE5G7WO.js +0 -590
- package/dist/chunk-RTHA3XRE.js +0 -880
- package/dist/chunk-S2HO5MLR.js +0 -621
- package/dist/chunk-S3ORKP3V.js +0 -716
- package/dist/chunk-TAIJOFOE.js +0 -124
- package/dist/chunk-TXESEO7Y.js +0 -245
- package/dist/chunk-UPLDI7CN.js +0 -1334
- package/dist/chunk-VL67H5IC.js +0 -506
- package/dist/chunk-VPPK3SY4.js +0 -1136
- package/dist/chunk-YMDLDELF.js +0 -314
- package/dist/chunk-YO6DVTL7.js +0 -99
- package/dist/chunk-YRZ5RPEB.js +0 -1561
- package/dist/chunk-ZDHLG5VP.js +0 -5676
- package/dist/chunk-ZGUAAVMA.js +0 -756
- package/dist/chunk-ZSYVKSY6.js +0 -2602
- package/dist/claude-FRRWJSTJ.js +0 -362
- package/dist/claude-cli-XJLK2X4L.js +0 -276
- package/dist/claude-code-HTBA4XRB.js +0 -126
- package/dist/claude-code-teams-T4SP24MD.js +0 -199
- package/dist/commands-5N4ILTPH.js +0 -5859
- package/dist/conductor-CQVGTEQN.js +0 -161
- package/dist/config-schema-EA4XALGG.js +0 -154
- package/dist/constellation-A26CCGQS.js +0 -225
- package/dist/context-audit-RLO3ETRP.js +0 -682
- package/dist/cost-BGM32XJU.js +0 -93
- package/dist/cost-VI46A4XL.js +0 -174
- package/dist/cursor-cli-JVEZGHWQ.js +0 -269
- package/dist/cursorrules-HLIKJJZT.js +0 -84
- package/dist/decision-loader-WWCLIQPJ.js +0 -20
- package/dist/delete-KBRPQLPC.js +0 -56
- package/dist/diff-D4X53HAC.js +0 -126
- package/dist/discipline-FA4OZXIS.js +0 -24
- package/dist/dist-34NA5RS5.js +0 -74
- package/dist/dist-5QE2BB2B-5S3T6Y3T.js +0 -6919
- package/dist/dist-77JDTVAY.js +0 -62
- package/dist/dist-OGTSAZ55.js +0 -1358
- package/dist/dist-QK4SQAK7.js +0 -64
- package/dist/dist-TA6LSC2Q.js +0 -20
- package/dist/docs-PBZB7LYP.js +0 -89
- package/dist/docs-QIYKO3BR.js +0 -155
- package/dist/doctor-ULBOHEIC.js +0 -11
- package/dist/drift-R5NRKFHI.js +0 -251
- package/dist/echo-O2LY7CC2.js +0 -248
- package/dist/edit-R2HNLMOG.js +0 -63
- package/dist/event-25OJKDCE.js +0 -31
- package/dist/export-IWVL7XLF.js +0 -38
- package/dist/flow-CRRVV3O3.js +0 -185
- package/dist/global-3NG5JXUB.js +0 -136
- package/dist/graduate-USAWGBJM.js +0 -160
- package/dist/graph-VHUMAAS6.js +0 -12
- package/dist/graph-server-YL22VBBN.js +0 -116
- package/dist/habits-OL5NGPXO.js +0 -1405
- package/dist/history-WOWC573W.js +0 -277
- package/dist/hooks-HFWSCGPV.js +0 -12
- package/dist/integrity-IHO4FZTS.js +0 -194
- package/dist/integrity-checker-PSKJA5SB.js +0 -12
- package/dist/journal-loader-5EYSBFFY.js +0 -18
- package/dist/lint-K6CJGGPH.js +0 -456
- package/dist/list-4YK7QKFF.js +0 -57
- package/dist/list-ENR7Q4CR.js +0 -56
- package/dist/lore-loader-7NO6N6FT.js +0 -26
- package/dist/lore-server-UNJY5KC3.js +0 -118
- package/dist/manual-G6FISID5.js +0 -204
- package/dist/migrate-LS45DNEV.js +0 -889
- package/dist/migrate-assessments-RGH4O6IX.js +0 -97
- package/dist/model-discovery-D2H3VBGC.js +0 -8
- package/dist/nomination-engine-RV5CNO5B.js +0 -42
- package/dist/notebook-YWIYGEHV.js +0 -155
- package/dist/orchestrate-JLILBBJE.js +0 -324
- package/dist/peers-DEOUIZM6.js +0 -82
- package/dist/persona-UHAHIVST.js +0 -390
- package/dist/pipeline-L4HCSBGN.js +0 -263
- package/dist/platform-server-H5YO3DQD.js +0 -1475
- package/dist/plugin-update-checker-KRRSGXMV.js +0 -12
- package/dist/portal-check-NPYGII2D.js +0 -42
- package/dist/portal-compliance-J7DGAPFX.js +0 -18
- package/dist/probe-MHL5HQZ2.js +0 -167
- package/dist/promote-F6ZYZZAL.js +0 -182
- package/dist/providers-GK7PB2OL.js +0 -104
- package/dist/quiz-M66SC7F7.js +0 -99
- package/dist/record-RA4WR2BO.js +0 -49
- package/dist/reindex-5LTD53ZC.js +0 -16
- package/dist/remember-HBWJ655S.js +0 -77
- package/dist/retag-3OLCVDEQ.js +0 -62
- package/dist/review-27ATYTD2.js +0 -33
- package/dist/review-57QMURZV.js +0 -334
- package/dist/ripple-JPBXP5I3.js +0 -215
- package/dist/sentinel-4XIG4STA.js +0 -63
- package/dist/sentinel-bridge-MDUXTQRL.js +0 -109
- package/dist/serve-CAH3PHE7.js +0 -33
- package/dist/serve-INL7SNBK.js +0 -36
- package/dist/serve-KBSE36PL.js +0 -49
- package/dist/server-54SKYFFY.js +0 -1647
- package/dist/server-XUOIO7E6.js +0 -338
- package/dist/session-tracker-C4BMD5WG.js +0 -13
- package/dist/session-work-log-MZ47OAPB.js +0 -20
- package/dist/setup-EDS27WUR.js +0 -25
- package/dist/setup-KO5AFC4K.js +0 -296
- package/dist/shift-D2JOHHBF.js +0 -668
- package/dist/show-5PV5KFJE.js +0 -176
- package/dist/show-NQKYX6WQ.js +0 -82
- package/dist/snapshot-BK4RBPCG.js +0 -62
- package/dist/spawn-RCHNXDHE.js +0 -196
- package/dist/status-WGIAQODY.js +0 -71
- package/dist/summary-NIRABMF5.js +0 -140
- package/dist/sweep-QMHNSIY5.js +0 -934
- package/dist/switch-6EJPZDIA.js +0 -232
- package/dist/symphony-4OCY36AI.js +0 -791
- package/dist/symphony-B75X2MME.js +0 -326
- package/dist/symphony-loader-UZGON56V.js +0 -90
- package/dist/symphony-peers-2ZQYLRNI.js +0 -34
- package/dist/symphony-peers-OL7F6M5S.js +0 -121
- package/dist/symphony-relay-UJYUXN65.js +0 -710
- package/dist/sync-VEHUH4OA.js +0 -11
- package/dist/sync-llms-YHCFIE6X.js +0 -166
- package/dist/task-loader-LDYWQSLM.js +0 -20
- package/dist/team-O5MIIFMA.js +0 -34
- package/dist/test-566CP5KC.js +0 -1017
- package/dist/thread-N754I4D5.js +0 -274
- package/dist/timeline-M3CICQFE.js +0 -112
- package/dist/triage-HHYGT3HY.js +0 -671
- package/dist/tutorial-KD22SUNO.js +0 -666
- package/dist/upgrade-H5PF32BW.js +0 -551
- package/dist/validate-CNKEKO6A.js +0 -134
- package/dist/validate-MB5ULIHS.js +0 -39
- package/dist/validate-QH3LADM6.js +0 -64
- package/dist/watch-2TKP5PVL.js +0 -199
- package/dist/watch-ZF4ML6CD.js +0 -111
- package/dist/wisdom-AATMGNFA.js +0 -319
- package/dist/work-log-loader-5L45XNYZ.js +0 -14
- package/dist/workspace-6E6OSRNU.js +0 -21
- package/platform-ui/dist/assets/AmbientSection-WtHfNedO.js +0 -1
- package/platform-ui/dist/assets/LoreSection-C3EixkjW.css +0 -1
- package/platform-ui/dist/assets/LoreSection-CwDDHrz9.js +0 -1
- package/platform-ui/dist/assets/SentinelSection-Cl7e5oZ6.js +0 -1
- package/platform-ui/dist/assets/TeamSection-CqSIMrKz.js +0 -1
- package/platform-ui/dist/assets/index-CfpZFjea.css +0 -1
- package/platform-ui/dist/assets/index-F0KL9xrN.js +0 -57
package/dist/peers-DEOUIZM6.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
forgetAllPeers,
|
|
4
|
-
loadPeers,
|
|
5
|
-
revokePeer
|
|
6
|
-
} from "./chunk-KVDYJLTC.js";
|
|
7
|
-
import "./chunk-PDX44BCA.js";
|
|
8
|
-
|
|
9
|
-
// src/commands/symphony/peers.ts
|
|
10
|
-
import chalk from "chalk";
|
|
11
|
-
async function symphonyPeersCommand(options) {
|
|
12
|
-
const peers = loadPeers();
|
|
13
|
-
if (options.json) {
|
|
14
|
-
console.log(JSON.stringify(peers, null, 2));
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
if (peers.length === 0) {
|
|
18
|
-
console.log(chalk.yellow('No trusted peers. Run "paradigm symphony serve" to accept connections.'));
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
console.log(chalk.cyan(`
|
|
22
|
-
Trusted Peers (${peers.length})
|
|
23
|
-
`));
|
|
24
|
-
console.log(chalk.gray(` ${"PEER ID".padEnd(20)} ${"ADDRESS".padEnd(22)} ${"STATUS".padEnd(10)} ${"AGENTS".padEnd(8)} LAST SEEN`));
|
|
25
|
-
console.log(chalk.gray(` ${"\u2500".repeat(20)} ${"\u2500".repeat(22)} ${"\u2500".repeat(10)} ${"\u2500".repeat(8)} ${"\u2500".repeat(20)}`));
|
|
26
|
-
for (const peer of peers) {
|
|
27
|
-
const status = peer.revoked ? chalk.red("revoked") : chalk.green("trusted");
|
|
28
|
-
const agentCount = (peer.agents || []).length.toString();
|
|
29
|
-
const lastSeen = peer.lastSeen ? formatRelativeTime(peer.lastSeen) : chalk.gray("never");
|
|
30
|
-
console.log(` ${chalk.white(peer.id.padEnd(20))} ${peer.address.padEnd(22)} ${status.padEnd(10)} ${agentCount.padEnd(8)} ${lastSeen}`);
|
|
31
|
-
if (peer.agents && peer.agents.length > 0) {
|
|
32
|
-
for (const agent of peer.agents) {
|
|
33
|
-
const agentStatus = agent.status === "awake" ? chalk.green("awake") : chalk.yellow("asleep");
|
|
34
|
-
console.log(chalk.gray(` \u2514 ${agent.id} [${agentStatus}]`));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
console.log();
|
|
39
|
-
}
|
|
40
|
-
async function symphonyPeersRevokeCommand(peerId) {
|
|
41
|
-
const success = revokePeer(peerId);
|
|
42
|
-
if (success) {
|
|
43
|
-
console.log(chalk.green(`\u2713 Revoked peer ${chalk.bold(peerId)}`));
|
|
44
|
-
console.log(chalk.gray(" Peer will be disconnected and cannot reconnect until re-paired."));
|
|
45
|
-
} else {
|
|
46
|
-
console.log(chalk.red(`Peer "${peerId}" not found.`));
|
|
47
|
-
const peers = loadPeers();
|
|
48
|
-
if (peers.length > 0) {
|
|
49
|
-
console.log(chalk.gray("\n Available peers:"));
|
|
50
|
-
for (const p of peers) {
|
|
51
|
-
console.log(chalk.gray(` ${p.id} (${p.address})`));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
async function symphonyPeersForgetCommand(options) {
|
|
57
|
-
const peers = loadPeers();
|
|
58
|
-
if (peers.length === 0) {
|
|
59
|
-
console.log(chalk.yellow("No peers to forget."));
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (!options.force) {
|
|
63
|
-
console.log(chalk.yellow(`This will remove all ${peers.length} trusted peer(s). Use --force to confirm.`));
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
const count = forgetAllPeers();
|
|
67
|
-
console.log(chalk.green(`\u2713 Forgot ${count} peer${count !== 1 ? "s" : ""}`));
|
|
68
|
-
console.log(chalk.gray(" All peer trust records deleted. Re-pairing required for remote connections."));
|
|
69
|
-
}
|
|
70
|
-
function formatRelativeTime(isoDate) {
|
|
71
|
-
const diff = Date.now() - new Date(isoDate).getTime();
|
|
72
|
-
const seconds = Math.floor(diff / 1e3);
|
|
73
|
-
if (seconds < 60) return "just now";
|
|
74
|
-
if (seconds < 3600) return `${Math.floor(seconds / 60)}m ago`;
|
|
75
|
-
if (seconds < 86400) return `${Math.floor(seconds / 3600)}h ago`;
|
|
76
|
-
return `${Math.floor(seconds / 86400)}d ago`;
|
|
77
|
-
}
|
|
78
|
-
export {
|
|
79
|
-
symphonyPeersCommand,
|
|
80
|
-
symphonyPeersForgetCommand,
|
|
81
|
-
symphonyPeersRevokeCommand
|
|
82
|
-
};
|
package/dist/persona-UHAHIVST.js
DELETED
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-PDX44BCA.js";
|
|
3
|
-
|
|
4
|
-
// src/commands/persona/index.ts
|
|
5
|
-
import * as fs from "fs";
|
|
6
|
-
import * as path from "path";
|
|
7
|
-
import chalk from "chalk";
|
|
8
|
-
import * as yaml from "js-yaml";
|
|
9
|
-
function personasDir(rootDir) {
|
|
10
|
-
return path.join(rootDir, ".paradigm", "personas");
|
|
11
|
-
}
|
|
12
|
-
function loadAllPersonas(rootDir) {
|
|
13
|
-
const dir = personasDir(rootDir);
|
|
14
|
-
if (!fs.existsSync(dir)) return [];
|
|
15
|
-
return fs.readdirSync(dir).filter((f) => f.endsWith(".persona")).sort().map((f) => {
|
|
16
|
-
try {
|
|
17
|
-
const content = fs.readFileSync(path.join(dir, f), "utf8");
|
|
18
|
-
return yaml.load(content);
|
|
19
|
-
} catch {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
}).filter((p) => p !== null && !!p.id);
|
|
23
|
-
}
|
|
24
|
-
function loadPersona(rootDir, id) {
|
|
25
|
-
const filePath = path.join(personasDir(rootDir), `${id}.persona`);
|
|
26
|
-
if (!fs.existsSync(filePath)) return null;
|
|
27
|
-
try {
|
|
28
|
-
return yaml.load(fs.readFileSync(filePath, "utf8"));
|
|
29
|
-
} catch {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function loadIndex(rootDir) {
|
|
34
|
-
const indexPath = path.join(personasDir(rootDir), "index.yaml");
|
|
35
|
-
if (!fs.existsSync(indexPath)) return null;
|
|
36
|
-
try {
|
|
37
|
-
return yaml.load(fs.readFileSync(indexPath, "utf8"));
|
|
38
|
-
} catch {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
async function personaListCommand(options) {
|
|
43
|
-
const cwd = process.cwd();
|
|
44
|
-
let personas = loadAllPersonas(cwd);
|
|
45
|
-
if (personas.length === 0) {
|
|
46
|
-
console.log(chalk.yellow("\n No personas found. Create one with paradigm_persona_create.\n"));
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (options.tag) {
|
|
50
|
-
personas = personas.filter((p) => p.tags?.includes(options.tag));
|
|
51
|
-
}
|
|
52
|
-
if (options.trigger) {
|
|
53
|
-
personas = personas.filter((p) => p.trigger.type === options.trigger);
|
|
54
|
-
}
|
|
55
|
-
if (options.gate) {
|
|
56
|
-
personas = personas.filter((p) => p.journey.some((s) => s.gates.includes(options.gate)));
|
|
57
|
-
}
|
|
58
|
-
if (options.json) {
|
|
59
|
-
console.log(JSON.stringify(personas.map((p) => ({
|
|
60
|
-
id: p.id,
|
|
61
|
-
name: p.name,
|
|
62
|
-
trigger: p.trigger.type,
|
|
63
|
-
steps: p.journey.length,
|
|
64
|
-
tags: p.tags || [],
|
|
65
|
-
gates: [...new Set(p.journey.flatMap((s) => s.gates))]
|
|
66
|
-
})), null, 2));
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
console.log(chalk.blue(`
|
|
70
|
-
Personas (${personas.length})
|
|
71
|
-
`));
|
|
72
|
-
for (const p of personas) {
|
|
73
|
-
const gates = [...new Set(p.journey.flatMap((s) => s.gates))];
|
|
74
|
-
const triggerColor = p.trigger.type === "root" ? chalk.green : chalk.cyan;
|
|
75
|
-
console.log(` ${chalk.white.bold(p.id)} \u2014 ${p.name}`);
|
|
76
|
-
console.log(` ${triggerColor(p.trigger.type)} trigger, ${p.journey.length} steps, ${gates.length} gates`);
|
|
77
|
-
if (p.tags?.length) {
|
|
78
|
-
console.log(` ${chalk.gray(p.tags.map((t) => `[${t}]`).join(" "))}`);
|
|
79
|
-
}
|
|
80
|
-
if (p.description) {
|
|
81
|
-
console.log(` ${chalk.gray(p.description)}`);
|
|
82
|
-
}
|
|
83
|
-
console.log();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async function personaShowCommand(id, options) {
|
|
87
|
-
const cwd = process.cwd();
|
|
88
|
-
const persona = loadPersona(cwd, id);
|
|
89
|
-
if (!persona) {
|
|
90
|
-
console.log(chalk.red(`Persona "${id}" not found.`));
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
if (options.json) {
|
|
94
|
-
console.log(JSON.stringify(persona, null, 2));
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
console.log(chalk.blue(`
|
|
98
|
-
Persona: ${chalk.white.bold(persona.name)}
|
|
99
|
-
`));
|
|
100
|
-
console.log(` ID: ${persona.id}`);
|
|
101
|
-
console.log(` Trigger: ${persona.trigger.type}`);
|
|
102
|
-
if (persona.trigger.spawned_by) console.log(` Spawned: by ${persona.trigger.spawned_by}`);
|
|
103
|
-
if (persona.description) console.log(` Desc: ${persona.description}`);
|
|
104
|
-
if (persona.tags?.length) console.log(` Tags: ${persona.tags.join(", ")}`);
|
|
105
|
-
if (persona.traits && Object.keys(persona.traits).length) {
|
|
106
|
-
console.log(chalk.cyan("\n Traits:"));
|
|
107
|
-
for (const [k, v] of Object.entries(persona.traits)) {
|
|
108
|
-
console.log(` ${k}: ${chalk.white(String(v))}`);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (persona.fixtures && Object.keys(persona.fixtures).length) {
|
|
112
|
-
console.log(chalk.cyan("\n Fixtures:"));
|
|
113
|
-
for (const [k, v] of Object.entries(persona.fixtures)) {
|
|
114
|
-
console.log(` ${k}: ${chalk.gray(v)}`);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
console.log(chalk.cyan(`
|
|
118
|
-
Journey (${persona.journey.length} steps):`));
|
|
119
|
-
for (let i = 0; i < persona.journey.length; i++) {
|
|
120
|
-
const step = persona.journey[i];
|
|
121
|
-
const gateStr = step.gates.map((g) => chalk.yellow(g)).join(", ");
|
|
122
|
-
console.log(` ${chalk.gray(`${i + 1}.`)} ${chalk.white(step.id)} \u2014 ${step.route}`);
|
|
123
|
-
console.log(` Gates: ${gateStr} Expect: ${step.expect.status}`);
|
|
124
|
-
if (step.flow) console.log(` Flow: ${chalk.magenta(step.flow)}`);
|
|
125
|
-
if (step.produces) console.log(` Produces: ${Object.keys(step.produces).join(", ")}`);
|
|
126
|
-
if (step.spawns?.length) console.log(` Spawns: ${step.spawns.map((s) => s.persona).join(", ")}`);
|
|
127
|
-
if (step.signals?.length) console.log(` Signals: ${step.signals.join(", ")}`);
|
|
128
|
-
}
|
|
129
|
-
console.log();
|
|
130
|
-
}
|
|
131
|
-
async function personaValidateCommand(id, options) {
|
|
132
|
-
const cwd = process.cwd();
|
|
133
|
-
const personas = id ? [loadPersona(cwd, id)].filter(Boolean) : loadAllPersonas(cwd);
|
|
134
|
-
if (personas.length === 0) {
|
|
135
|
-
console.log(chalk.yellow(id ? `Persona "${id}" not found.` : "No personas found."));
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
let portalGates = [];
|
|
139
|
-
const portalPath = path.join(cwd, "portal.yaml");
|
|
140
|
-
if (fs.existsSync(portalPath)) {
|
|
141
|
-
try {
|
|
142
|
-
const portal = yaml.load(fs.readFileSync(portalPath, "utf8"));
|
|
143
|
-
portalGates = Object.keys(portal?.gates || {}).map((g) => g.startsWith("^") ? g : `^${g}`);
|
|
144
|
-
} catch {
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
let totalErrors = 0;
|
|
148
|
-
let totalWarnings = 0;
|
|
149
|
-
const results = [];
|
|
150
|
-
for (const persona of personas) {
|
|
151
|
-
const errors = [];
|
|
152
|
-
const warnings = [];
|
|
153
|
-
if (!persona.id) errors.push("Missing required field: id");
|
|
154
|
-
if (!persona.name) errors.push("Missing required field: name");
|
|
155
|
-
if (!persona.journey || persona.journey.length === 0) errors.push("Journey must have at least 1 step");
|
|
156
|
-
const stepIds = /* @__PURE__ */ new Set();
|
|
157
|
-
for (const step of persona.journey || []) {
|
|
158
|
-
if (!step.id) errors.push("Step missing id");
|
|
159
|
-
if (stepIds.has(step.id)) errors.push(`Duplicate step id: ${step.id}`);
|
|
160
|
-
stepIds.add(step.id);
|
|
161
|
-
if (!step.route) errors.push(`Step ${step.id}: missing route`);
|
|
162
|
-
if (!step.gates || step.gates.length === 0) errors.push(`Step ${step.id}: gates[] required`);
|
|
163
|
-
if (!step.expect?.status) errors.push(`Step ${step.id}: expect.status required`);
|
|
164
|
-
if (portalGates.length > 0) {
|
|
165
|
-
for (const gate of step.gates || []) {
|
|
166
|
-
if (!portalGates.includes(gate)) {
|
|
167
|
-
warnings.push(`Step ${step.id}: gate ${gate} not in portal.yaml`);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
for (const spawn of step.spawns || []) {
|
|
172
|
-
const target = loadPersona(cwd, spawn.persona);
|
|
173
|
-
if (!target) warnings.push(`Step ${step.id}: spawns ${spawn.persona} but that persona doesn't exist`);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
totalErrors += errors.length;
|
|
177
|
-
totalWarnings += warnings.length;
|
|
178
|
-
results.push({ id: persona.id, errors, warnings });
|
|
179
|
-
}
|
|
180
|
-
if (options?.json) {
|
|
181
|
-
console.log(JSON.stringify({ results, totalErrors, totalWarnings }, null, 2));
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
console.log(chalk.blue(`
|
|
185
|
-
Persona Validation (${personas.length} persona(s))
|
|
186
|
-
`));
|
|
187
|
-
for (const r of results) {
|
|
188
|
-
if (r.errors.length === 0 && r.warnings.length === 0) {
|
|
189
|
-
console.log(` ${chalk.green("\u2713")} ${r.id}`);
|
|
190
|
-
} else {
|
|
191
|
-
if (r.errors.length > 0) {
|
|
192
|
-
console.log(` ${chalk.red("\u2717")} ${r.id} \u2014 ${r.errors.length} error(s)`);
|
|
193
|
-
for (const e of r.errors) console.log(` ${chalk.red("\u2022")} ${e}`);
|
|
194
|
-
}
|
|
195
|
-
if (r.warnings.length > 0) {
|
|
196
|
-
console.log(` ${chalk.yellow("\u26A0")} ${r.id} \u2014 ${r.warnings.length} warning(s)`);
|
|
197
|
-
for (const w of r.warnings) console.log(` ${chalk.yellow("\u2022")} ${w}`);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
console.log();
|
|
202
|
-
if (totalErrors === 0 && totalWarnings === 0) {
|
|
203
|
-
console.log(chalk.green(" All personas valid."));
|
|
204
|
-
} else {
|
|
205
|
-
console.log(` ${chalk.red(`${totalErrors} error(s)`)}, ${chalk.yellow(`${totalWarnings} warning(s)`)}`);
|
|
206
|
-
}
|
|
207
|
-
console.log();
|
|
208
|
-
}
|
|
209
|
-
async function personaCoverageCommand(options) {
|
|
210
|
-
const cwd = process.cwd();
|
|
211
|
-
const index = loadIndex(cwd);
|
|
212
|
-
if (!index) {
|
|
213
|
-
console.log(chalk.yellow("\n No persona index found. Run paradigm_reindex first.\n"));
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
if (options.json) {
|
|
217
|
-
console.log(JSON.stringify({
|
|
218
|
-
gate_coverage: index.gate_coverage || {},
|
|
219
|
-
route_coverage: index.route_coverage || {},
|
|
220
|
-
uncovered_routes: index.uncovered_routes || []
|
|
221
|
-
}, null, 2));
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
console.log(chalk.blue("\n Persona Coverage Report\n"));
|
|
225
|
-
const gateCov = index.gate_coverage || {};
|
|
226
|
-
if (Object.keys(gateCov).length > 0) {
|
|
227
|
-
console.log(chalk.cyan(" Gate Coverage:"));
|
|
228
|
-
for (const [gate, personas] of Object.entries(gateCov)) {
|
|
229
|
-
console.log(` ${chalk.yellow(gate)} \u2014 ${personas.join(", ")}`);
|
|
230
|
-
}
|
|
231
|
-
console.log();
|
|
232
|
-
}
|
|
233
|
-
const routeCov = index.route_coverage || {};
|
|
234
|
-
if (Object.keys(routeCov).length > 0) {
|
|
235
|
-
console.log(chalk.cyan(" Route Coverage:"));
|
|
236
|
-
for (const [route, personas] of Object.entries(routeCov)) {
|
|
237
|
-
console.log(` ${chalk.white(route)} \u2014 ${personas.join(", ")}`);
|
|
238
|
-
}
|
|
239
|
-
console.log();
|
|
240
|
-
}
|
|
241
|
-
const uncovered = index.uncovered_routes || [];
|
|
242
|
-
if (uncovered.length > 0) {
|
|
243
|
-
console.log(chalk.red(` Uncovered Routes (${uncovered.length}):`));
|
|
244
|
-
for (const route of uncovered) {
|
|
245
|
-
console.log(` ${chalk.red("\u2022")} ${route}`);
|
|
246
|
-
}
|
|
247
|
-
console.log();
|
|
248
|
-
} else {
|
|
249
|
-
console.log(chalk.green(" All portal.yaml routes have persona coverage."));
|
|
250
|
-
console.log();
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
async function personaRunCommand(id, options) {
|
|
254
|
-
const cwd = process.cwd();
|
|
255
|
-
const persona = loadPersona(cwd, id);
|
|
256
|
-
if (!persona) {
|
|
257
|
-
console.log(chalk.red(`Persona "${id}" not found.`));
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
if (options.dryRun) {
|
|
261
|
-
console.log(chalk.blue(`
|
|
262
|
-
Dry Run: ${persona.name}
|
|
263
|
-
`));
|
|
264
|
-
for (let i = 0; i < persona.journey.length; i++) {
|
|
265
|
-
const step = persona.journey[i];
|
|
266
|
-
console.log(` ${chalk.gray(`${i + 1}.`)} ${step.route}`);
|
|
267
|
-
console.log(` Gates: ${step.gates.join(", ")}`);
|
|
268
|
-
console.log(` Expect: ${step.expect.status}`);
|
|
269
|
-
if (step.produces) console.log(` Produces: ${Object.keys(step.produces).join(", ")}`);
|
|
270
|
-
}
|
|
271
|
-
console.log(chalk.gray("\n (dry run \u2014 no HTTP requests made)\n"));
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
console.log(chalk.blue(`
|
|
275
|
-
Running: ${persona.name} \u2192 ${options.baseUrl}
|
|
276
|
-
`));
|
|
277
|
-
const scope = {
|
|
278
|
-
fixtures: persona.fixtures || {},
|
|
279
|
-
produces: {},
|
|
280
|
-
context: persona.trigger.context || {},
|
|
281
|
-
env: process.env
|
|
282
|
-
};
|
|
283
|
-
let passed = 0;
|
|
284
|
-
let failed = 0;
|
|
285
|
-
for (const step of persona.journey) {
|
|
286
|
-
const url = `${options.baseUrl}${step.route.split(" ").pop()}`;
|
|
287
|
-
const method = step.route.split(" ")[0];
|
|
288
|
-
let payload;
|
|
289
|
-
if (step.payload) {
|
|
290
|
-
payload = JSON.stringify(step.payload).replace(/\{\{(\w+)\.(\w+)\}\}/g, (_, ns, key) => {
|
|
291
|
-
const nsObj = scope[ns];
|
|
292
|
-
return nsObj?.[key] !== void 0 ? String(nsObj[key]) : `{{${ns}.${key}}}`;
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
process.stdout.write(` ${chalk.gray(`${step.id}:`)} ${method} ${url} ... `);
|
|
296
|
-
try {
|
|
297
|
-
const headers = {
|
|
298
|
-
"Content-Type": "application/json",
|
|
299
|
-
...step.headers || {}
|
|
300
|
-
};
|
|
301
|
-
const res = await fetch(url, {
|
|
302
|
-
method,
|
|
303
|
-
headers,
|
|
304
|
-
body: payload
|
|
305
|
-
});
|
|
306
|
-
if (res.status === step.expect.status) {
|
|
307
|
-
console.log(chalk.green(`${res.status} \u2713`));
|
|
308
|
-
passed++;
|
|
309
|
-
if (step.produces) {
|
|
310
|
-
try {
|
|
311
|
-
const body = await res.json();
|
|
312
|
-
for (const [key, jsonPath] of Object.entries(step.produces)) {
|
|
313
|
-
const value = jsonPath.split(".").reduce((obj, k) => obj?.[k], body);
|
|
314
|
-
scope.produces[key] = value;
|
|
315
|
-
}
|
|
316
|
-
} catch {
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
} else {
|
|
320
|
-
console.log(chalk.red(`${res.status} \u2717 (expected ${step.expect.status})`));
|
|
321
|
-
failed++;
|
|
322
|
-
}
|
|
323
|
-
} catch (err) {
|
|
324
|
-
console.log(chalk.red(`ERROR: ${err.message}`));
|
|
325
|
-
failed++;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
console.log();
|
|
329
|
-
console.log(` ${chalk.green(`${passed} passed`)}, ${failed > 0 ? chalk.red(`${failed} failed`) : chalk.green("0 failed")}`);
|
|
330
|
-
console.log();
|
|
331
|
-
}
|
|
332
|
-
async function personaAffectedCommand(symbol, options) {
|
|
333
|
-
const cwd = process.cwd();
|
|
334
|
-
const personas = loadAllPersonas(cwd);
|
|
335
|
-
const affected = [];
|
|
336
|
-
for (const p of personas) {
|
|
337
|
-
const matchingSteps = p.journey.filter(
|
|
338
|
-
(s) => s.gates.includes(symbol) || s.flow === symbol || s.signals?.includes(symbol)
|
|
339
|
-
);
|
|
340
|
-
if (matchingSteps.length > 0) {
|
|
341
|
-
affected.push({ id: p.id, name: p.name, steps: matchingSteps.map((s) => s.id) });
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
if (options.json) {
|
|
345
|
-
console.log(JSON.stringify({ symbol, affected }, null, 2));
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
if (affected.length === 0) {
|
|
349
|
-
console.log(chalk.gray(`
|
|
350
|
-
No personas reference ${symbol}.
|
|
351
|
-
`));
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
console.log(chalk.blue(`
|
|
355
|
-
Personas affected by ${chalk.yellow(symbol)}:
|
|
356
|
-
`));
|
|
357
|
-
for (const a of affected) {
|
|
358
|
-
console.log(` ${chalk.white.bold(a.id)} \u2014 ${a.name}`);
|
|
359
|
-
console.log(` Steps: ${a.steps.join(", ")}`);
|
|
360
|
-
}
|
|
361
|
-
console.log();
|
|
362
|
-
}
|
|
363
|
-
async function personaDeleteCommand(id) {
|
|
364
|
-
const cwd = process.cwd();
|
|
365
|
-
const filePath = path.join(personasDir(cwd), `${id}.persona`);
|
|
366
|
-
if (!fs.existsSync(filePath)) {
|
|
367
|
-
console.log(chalk.red(`Persona "${id}" not found.`));
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
const allPersonas = loadAllPersonas(cwd);
|
|
371
|
-
const referencedBy = allPersonas.filter(
|
|
372
|
-
(p) => p.id !== id && p.journey.some((s) => s.spawns?.some((sp) => sp.persona === id))
|
|
373
|
-
);
|
|
374
|
-
if (referencedBy.length > 0) {
|
|
375
|
-
console.log(chalk.yellow(`
|
|
376
|
-
Warning: ${id} is spawned by: ${referencedBy.map((p) => p.id).join(", ")}`));
|
|
377
|
-
console.log(chalk.yellow(" Deleting it will break their spawn chains.\n"));
|
|
378
|
-
}
|
|
379
|
-
fs.unlinkSync(filePath);
|
|
380
|
-
console.log(chalk.green(` Deleted persona "${id}".`));
|
|
381
|
-
}
|
|
382
|
-
export {
|
|
383
|
-
personaAffectedCommand,
|
|
384
|
-
personaCoverageCommand,
|
|
385
|
-
personaDeleteCommand,
|
|
386
|
-
personaListCommand,
|
|
387
|
-
personaRunCommand,
|
|
388
|
-
personaShowCommand,
|
|
389
|
-
personaValidateCommand
|
|
390
|
-
};
|