@unbrained/pm-cli 2026.6.23 → 2026.6.30
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/CHANGELOG.md +120 -0
- package/CONTRIBUTING.md +30 -0
- package/README.md +16 -3
- package/dist/cli/commander-usage.js +3 -3
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/aggregate.js +8 -7
- package/dist/cli/commands/aggregate.js.map +1 -1
- package/dist/cli/commands/close.d.ts +2 -4
- package/dist/cli/commands/close.js +5 -17
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +158 -9
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/config.js +2 -2
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/context.d.ts +31 -4
- package/dist/cli/commands/context.js +33 -10
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contracts.js +48 -8
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.d.ts +1 -6
- package/dist/cli/commands/create.js +10 -155
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/describe.d.ts +15 -0
- package/dist/cli/commands/extension/describe.js +48 -2
- package/dist/cli/commands/extension/describe.js.map +1 -1
- package/dist/cli/commands/extension/doctor.js +5 -2
- package/dist/cli/commands/extension/doctor.js.map +1 -1
- package/dist/cli/commands/extension/install-sources.js +37 -7
- package/dist/cli/commands/extension/install-sources.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.d.ts +31 -8
- package/dist/cli/commands/extension/scaffold.js +1956 -182
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +22 -2
- package/dist/cli/commands/extension.js +189 -13
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/index.d.ts +3 -1
- package/dist/cli/commands/index.js +5 -3
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/item-filter-options.d.ts +63 -0
- package/dist/cli/commands/item-filter-options.js +10 -0
- package/dist/cli/commands/item-filter-options.js.map +1 -0
- package/dist/cli/commands/legacy-none-tokens.d.ts +14 -0
- package/dist/cli/commands/legacy-none-tokens.js +31 -2
- package/dist/cli/commands/legacy-none-tokens.js.map +1 -1
- package/dist/cli/commands/linked-artifacts.d.ts +7 -0
- package/dist/cli/commands/linked-artifacts.js +12 -2
- package/dist/cli/commands/linked-artifacts.js.map +1 -1
- package/dist/cli/commands/list.d.ts +16 -39
- package/dist/cli/commands/list.js +127 -118
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/next.d.ts +98 -0
- package/dist/cli/commands/next.js +304 -0
- package/dist/cli/commands/next.js.map +1 -0
- package/dist/cli/commands/profile.d.ts +208 -0
- package/dist/cli/commands/profile.js +418 -0
- package/dist/cli/commands/profile.js.map +1 -0
- package/dist/cli/commands/repeatable-metadata-parsers.js +12 -13
- package/dist/cli/commands/repeatable-metadata-parsers.js.map +1 -1
- package/dist/cli/commands/schema.d.ts +7 -0
- package/dist/cli/commands/schema.js +9 -3
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/search.d.ts +2 -39
- package/dist/cli/commands/search.js +104 -106
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/shared-unset-fields.d.ts +30 -0
- package/dist/cli/commands/shared-unset-fields.js +161 -0
- package/dist/cli/commands/shared-unset-fields.js.map +1 -0
- package/dist/cli/commands/stats.js +15 -3
- package/dist/cli/commands/stats.js.map +1 -1
- package/dist/cli/commands/test.js +9 -5
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/update.d.ts +1 -6
- package/dist/cli/commands/update.js +12 -157
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.js +20 -5
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/help-content.js +26 -2
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/help-json-payload.js +3 -3
- package/dist/cli/help-json-payload.js.map +1 -1
- package/dist/cli/main.js +27 -12
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +42 -3
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +86 -2
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-setup.js +67 -6
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +9 -1
- package/dist/cli/registration-helpers.js +34 -3
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-EJBMXUBH.js +16 -0
- package/dist/cli-bundle/chunks/{activity-H2LMOSSW.js → activity-MVSEND6D.js} +9 -11
- package/dist/cli-bundle/chunks/{aggregate-R725FC3S.js → aggregate-MOC4TR2G.js} +16 -17
- package/dist/cli-bundle/chunks/aggregate-MOC4TR2G.js.map +1 -0
- package/dist/cli-bundle/chunks/{aggregate-EGJLZQBI.js → aggregate-XJHLZQ5X.js} +15 -16
- package/dist/cli-bundle/chunks/aggregate-XJHLZQ5X.js.map +7 -0
- package/dist/cli-bundle/chunks/{append-5J345QGU.js → append-KDHT4GHI.js} +10 -12
- package/dist/cli-bundle/chunks/{append-5J345QGU.js.map → append-KDHT4GHI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{append-O5HPBMRN.js → append-LEDBAM3K.js} +8 -10
- package/dist/cli-bundle/chunks/{append-O5HPBMRN.js.map → append-LEDBAM3K.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-IB3GYLQE.js → chunk-3JWQCLR5.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-2A34E3BA.js → chunk-4TXTVZL3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-G6N5VEOK.js → chunk-4YIMPANT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7AUB5HNA.js → chunk-53ARXF2O.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-7AUB5HNA.js.map → chunk-53ARXF2O.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-5ABGFWR4.js +116 -0
- package/dist/cli-bundle/chunks/chunk-5ABGFWR4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2BFPAUAF.js → chunk-5IRVSKPS.js} +2990 -2890
- package/dist/cli-bundle/chunks/chunk-5IRVSKPS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JR2LV3M4.js → chunk-5T6WPLRO.js} +233 -190
- package/dist/cli-bundle/chunks/chunk-5T6WPLRO.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CKGNPJAG.js → chunk-6T5ZIWBS.js} +3011 -2888
- package/dist/cli-bundle/chunks/chunk-6T5ZIWBS.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-QH3PJYON.js → chunk-6YRAMXRS.js} +111 -114
- package/dist/cli-bundle/chunks/chunk-6YRAMXRS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7XGQXHFB.js → chunk-73PTKMAE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-Y4SUQQYH.js → chunk-74PUWBGN.js} +53 -54
- package/dist/cli-bundle/chunks/chunk-74PUWBGN.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-T5472OMV.js → chunk-7L6TXOOC.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-T5472OMV.js.map → chunk-7L6TXOOC.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-7M2HAZEB.js +17 -0
- package/dist/cli-bundle/chunks/chunk-7M2HAZEB.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3VY3YQO6.js → chunk-7RIJGN4R.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-G6PYHBBR.js → chunk-7WDETKGP.js} +192 -113
- package/dist/cli-bundle/chunks/chunk-7WDETKGP.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AONIHR2C.js → chunk-A3UNLXNJ.js} +40 -260
- package/dist/cli-bundle/chunks/chunk-A3UNLXNJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4KD54S3Z.js → chunk-AWN4PPH5.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-4KD54S3Z.js.map → chunk-AWN4PPH5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-FXR67XVQ.js → chunk-BN3CWK6G.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KFWBJPSG.js → chunk-BOWQWXLI.js} +12 -24
- package/dist/cli-bundle/chunks/chunk-BOWQWXLI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4BHT5VDC.js → chunk-C2KCIZKZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-O6LLO73I.js → chunk-CHRNYKNI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UELRKQQU.js → chunk-CY5IJMUM.js} +1239 -495
- package/dist/cli-bundle/chunks/chunk-CY5IJMUM.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-CZVISY5A.js +87 -0
- package/dist/cli-bundle/chunks/chunk-CZVISY5A.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-7K2XXO4I.js → chunk-D5LYZVGB.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-7K2XXO4I.js.map → chunk-D5LYZVGB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-ZQ3ZVXX2.js → chunk-D6USKAMA.js} +2 -2
- package/dist/cli-bundle/chunks/{context-BLBD3PUB.js → chunk-DJDXAU74.js} +19 -21
- package/dist/cli-bundle/chunks/chunk-DJDXAU74.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-WZQWHN4R.js → chunk-DLDCPF5X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HFFUQR73.js → chunk-DORJSBGJ.js} +35 -9
- package/dist/cli-bundle/chunks/chunk-DORJSBGJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XVF4YARA.js → chunk-DRPF274X.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-XVF4YARA.js.map → chunk-DRPF274X.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QL5RVYOA.js → chunk-DU66JUGT.js} +16 -14
- package/dist/cli-bundle/chunks/chunk-DU66JUGT.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UVC5LOR7.js → chunk-E2Q2ULMR.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-U2Z5YUSO.js → chunk-EVWYAG46.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-U2Z5YUSO.js.map → chunk-EVWYAG46.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-5VOINNKT.js → chunk-F6VH3LFC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VFAQ4LMN.js → chunk-F7G53BOA.js} +18 -11
- package/dist/cli-bundle/chunks/chunk-F7G53BOA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-Q2KNGP7C.js → chunk-FBZ5XAAF.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-Q2KNGP7C.js.map → chunk-FBZ5XAAF.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-H4IIJDE4.js → chunk-FDEVKXC4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7UGEAPRY.js → chunk-GF7EAR22.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-7UGEAPRY.js.map → chunk-GF7EAR22.js.map} +1 -1
- package/dist/cli-bundle/chunks/{context-DHLVPXN3.js → chunk-HIBK6H4S.js} +20 -22
- package/dist/cli-bundle/chunks/chunk-HIBK6H4S.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-34EONI5F.js → chunk-HUYYMTGW.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-IBMFIKVS.js +14 -0
- package/dist/cli-bundle/chunks/chunk-IBMFIKVS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BB6MDVNQ.js → chunk-IBU2LLWM.js} +8 -12
- package/dist/cli-bundle/chunks/{chunk-BB6MDVNQ.js.map → chunk-IBU2LLWM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-55ISXAQH.js → chunk-IDYCAK35.js} +53 -54
- package/dist/cli-bundle/chunks/chunk-IDYCAK35.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-M4T5DXD5.js → chunk-IF4ERU6A.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-M4T5DXD5.js.map → chunk-IF4ERU6A.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-CIIK67GW.js → chunk-IHXXUIXS.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-IZQOJR2B.js +2459 -0
- package/dist/cli-bundle/chunks/chunk-IZQOJR2B.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-SBQTAVJZ.js → chunk-JIP67N2K.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-JJ4SG243.js +119 -0
- package/dist/cli-bundle/chunks/chunk-JJ4SG243.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TQZH6OD6.js → chunk-JTRKME24.js} +11 -13
- package/dist/cli-bundle/chunks/{chunk-TQZH6OD6.js.map → chunk-JTRKME24.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-WBRKK5QR.js → chunk-JVQ7UOYC.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-WBRKK5QR.js.map → chunk-JVQ7UOYC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-KQMUV6LX.js → chunk-JZG5ADVE.js} +191 -98
- package/dist/cli-bundle/chunks/chunk-JZG5ADVE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-46G6RSB6.js → chunk-K46GQ265.js} +17 -15
- package/dist/cli-bundle/chunks/chunk-K46GQ265.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5UVVASSA.js → chunk-KGQ3W65B.js} +100 -35
- package/dist/cli-bundle/chunks/chunk-KGQ3W65B.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2T3JG6V4.js → chunk-KRASIL6M.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SR3EKWZG.js → chunk-KTMMTOIP.js} +127 -127
- package/dist/cli-bundle/chunks/chunk-KTMMTOIP.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-DT5LPYOD.js → chunk-KYDYQMNW.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-DT5LPYOD.js.map → chunk-KYDYQMNW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-IPKJ6B36.js → chunk-LBH7UYKY.js} +106 -34
- package/dist/cli-bundle/chunks/chunk-LBH7UYKY.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-P77P2ILI.js → chunk-MLHX6DN5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YUDJD3XO.js → chunk-NIBP3I7A.js} +36 -10
- package/dist/cli-bundle/chunks/chunk-NIBP3I7A.js.map +1 -0
- package/dist/cli-bundle/chunks/{schema-RBTJ2YXW.js → chunk-NO6Y6FB2.js} +144 -67
- package/dist/cli-bundle/chunks/chunk-NO6Y6FB2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2CKH2LMV.js → chunk-OB3RJV5F.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-OKQ22KTH.js +379 -0
- package/dist/cli-bundle/chunks/chunk-OKQ22KTH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FIGAZ4Y7.js → chunk-OUQ5JEFM.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NK3UPBVG.js → chunk-QE5UFCCO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MJTINN54.js → chunk-RM6MHL6A.js} +110 -113
- package/dist/cli-bundle/chunks/chunk-RM6MHL6A.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LRKKONT2.js → chunk-RPRW26NG.js} +12 -16
- package/dist/cli-bundle/chunks/{chunk-LRKKONT2.js.map → chunk-RPRW26NG.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-WM5ZVBPE.js → chunk-SJZTPVFT.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-MJTSZKK5.js → chunk-SNUK7H5J.js} +1363 -605
- package/dist/cli-bundle/chunks/chunk-SNUK7H5J.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-T7ZMQI4J.js +2435 -0
- package/dist/cli-bundle/chunks/chunk-T7ZMQI4J.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-W72GHSJE.js → chunk-TQ6E76BE.js} +11 -13
- package/dist/cli-bundle/chunks/{chunk-W72GHSJE.js.map → chunk-TQ6E76BE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-ZRK4O56R.js → chunk-UB3V5WUI.js} +225 -189
- package/dist/cli-bundle/chunks/chunk-UB3V5WUI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SKN7LC5W.js → chunk-UFKNF23C.js} +11 -23
- package/dist/cli-bundle/chunks/chunk-UFKNF23C.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VAYA4XFX.js → chunk-V3KLX7U7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GAJVRGGA.js → chunk-VD3LKZFX.js} +41 -254
- package/dist/cli-bundle/chunks/chunk-VD3LKZFX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-AD3A7ZD6.js → chunk-VMY7MZEM.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-AD3A7ZD6.js.map → chunk-VMY7MZEM.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-VZDBVEZR.js +382 -0
- package/dist/cli-bundle/chunks/chunk-VZDBVEZR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CE5P2NQR.js → chunk-WFJZDUM7.js} +19 -12
- package/dist/cli-bundle/chunks/chunk-WFJZDUM7.js.map +1 -0
- package/dist/cli-bundle/chunks/{schema-MNTAVQCY.js → chunk-WTRUDJ3R.js} +136 -66
- package/dist/cli-bundle/chunks/chunk-WTRUDJ3R.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-T72AZDBA.js → chunk-YEDFE4DC.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-T72AZDBA.js.map → chunk-YEDFE4DC.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-YJIEJRZB.js +84 -0
- package/dist/cli-bundle/chunks/chunk-YJIEJRZB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-H2IP4QLJ.js → chunk-Z55WX4IQ.js} +12 -16
- package/dist/cli-bundle/chunks/{chunk-H2IP4QLJ.js.map → chunk-Z55WX4IQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-2RDVQEWV.js → chunk-Z5BM2FKQ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-66MEDTUD.js → chunk-ZEATCVAC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NCVCO3NZ.js → chunk-ZFIEEDTJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7SV63ZHD.js → chunk-ZIE6WXJ2.js} +128 -128
- package/dist/cli-bundle/chunks/chunk-ZIE6WXJ2.js.map +1 -0
- package/dist/cli-bundle/chunks/{claim-4KHAA2RN.js → claim-6NINZYB3.js} +10 -12
- package/dist/cli-bundle/chunks/{claim-4KHAA2RN.js.map → claim-6NINZYB3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{claim-CSPJFLNH.js → claim-HMCLSLUE.js} +8 -10
- package/dist/cli-bundle/chunks/{claim-CSPJFLNH.js.map → claim-HMCLSLUE.js.map} +1 -1
- package/dist/cli-bundle/chunks/close-37KEHLYM.js +14 -0
- package/dist/cli-bundle/chunks/{close-W56IOGYG.js → close-OP3LK7Z2.js} +7 -8
- package/dist/cli-bundle/chunks/{close-many-BX5DCSVV.js → close-many-BFMP6HHK.js} +15 -17
- package/dist/cli-bundle/chunks/{close-many-BX5DCSVV.js.map → close-many-BFMP6HHK.js.map} +1 -1
- package/dist/cli-bundle/chunks/{close-many-TQU5F4E4.js → close-many-CXJBOWWY.js} +17 -19
- package/dist/cli-bundle/chunks/{close-many-TQU5F4E4.js.map → close-many-CXJBOWWY.js.map} +1 -1
- package/dist/cli-bundle/chunks/{comments-VRECH75R.js → comments-ETHABIY6.js} +9 -11
- package/dist/cli-bundle/chunks/{comments-VRECH75R.js.map → comments-ETHABIY6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{comments-U5KUC4EU.js → comments-MU2WMBUY.js} +11 -13
- package/dist/cli-bundle/chunks/{comments-U5KUC4EU.js.map → comments-MU2WMBUY.js.map} +1 -1
- package/dist/cli-bundle/chunks/{config-D3OKQO52.js → config-FIXJZEQK.js} +18 -387
- package/dist/cli-bundle/chunks/config-FIXJZEQK.js.map +7 -0
- package/dist/cli-bundle/chunks/{config-MMJA4LLK.js → config-X3ZVCUUG.js} +18 -380
- package/dist/cli-bundle/chunks/config-X3ZVCUUG.js.map +1 -0
- package/dist/cli-bundle/chunks/context-7ZEZV3BV.js +42 -0
- package/dist/cli-bundle/chunks/context-XDI4DKKT.js +46 -0
- package/dist/cli-bundle/chunks/{contracts-XGVMMPC5.js → contracts-KP4QAGVW.js} +72 -15
- package/dist/cli-bundle/chunks/contracts-KP4QAGVW.js.map +1 -0
- package/dist/cli-bundle/chunks/{contracts-C3SZCXXG.js → contracts-SMOAN5NF.js} +72 -15
- package/dist/cli-bundle/chunks/contracts-SMOAN5NF.js.map +7 -0
- package/dist/cli-bundle/chunks/{copy-HHL3K4QP.js → copy-CWM6SBY6.js} +7 -11
- package/dist/cli-bundle/chunks/{copy-HHL3K4QP.js.map → copy-CWM6SBY6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{copy-5D5DX3VK.js → copy-JJ3KOQW2.js} +9 -13
- package/dist/cli-bundle/chunks/{copy-5D5DX3VK.js.map → copy-JJ3KOQW2.js.map} +1 -1
- package/dist/cli-bundle/chunks/create-DFMNBKBS.js +28 -0
- package/dist/cli-bundle/chunks/{create-IXY43O4H.js → create-J5Q2ELZT.js} +12 -14
- package/dist/cli-bundle/chunks/{delete-IBUR3M42.js → delete-2GZLQEUQ.js} +7 -9
- package/dist/cli-bundle/chunks/{delete-IBUR3M42.js.map → delete-2GZLQEUQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{delete-QQC2FGUH.js → delete-OOQS4KVD.js} +5 -7
- package/dist/cli-bundle/chunks/{delete-QQC2FGUH.js.map → delete-OOQS4KVD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-KWKRHXIN.js → deps-IF4IGL4R.js} +6 -9
- package/dist/cli-bundle/chunks/{deps-KWKRHXIN.js.map → deps-IF4IGL4R.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-VTPO4BSE.js → deps-ZVGGCRR6.js} +8 -11
- package/dist/cli-bundle/chunks/{deps-VTPO4BSE.js.map → deps-ZVGGCRR6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-IIO3FEUO.js → docs-2TIFR62T.js} +8 -9
- package/dist/cli-bundle/chunks/{docs-IIO3FEUO.js.map → docs-2TIFR62T.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-7CHFHXLN.js → docs-NFTBCQQC.js} +10 -11
- package/dist/cli-bundle/chunks/{docs-7CHFHXLN.js.map → docs-NFTBCQQC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{eval-IO7LREOL.js → eval-2F6EH4XN.js} +12 -14
- package/dist/cli-bundle/chunks/{eval-IO7LREOL.js.map → eval-2F6EH4XN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{eval-CEYYEPSX.js → eval-PFKXQR3B.js} +10 -12
- package/dist/cli-bundle/chunks/{eval-CEYYEPSX.js.map → eval-PFKXQR3B.js.map} +1 -1
- package/dist/cli-bundle/chunks/{extension-KCPUWSY2.js → extension-3LRYX7SW.js} +11 -7
- package/dist/cli-bundle/chunks/{extension-UTTQDUYI.js → extension-GMVOIP4O.js} +11 -7
- package/dist/cli-bundle/chunks/{files-Z2HHEFGP.js → files-DF3HO6XK.js} +11 -13
- package/dist/cli-bundle/chunks/{files-Z2HHEFGP.js.map → files-DF3HO6XK.js.map} +1 -1
- package/dist/cli-bundle/chunks/{files-TPUL6KWB.js → files-T5ODMETM.js} +9 -11
- package/dist/cli-bundle/chunks/{files-TPUL6KWB.js.map → files-T5ODMETM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-YRNNH7IP.js → focus-DLXKK4AH.js} +10 -14
- package/dist/cli-bundle/chunks/{focus-YRNNH7IP.js.map → focus-DLXKK4AH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-JVJCGC2D.js → focus-MY5ARIEK.js} +8 -12
- package/dist/cli-bundle/chunks/{focus-JVJCGC2D.js.map → focus-MY5ARIEK.js.map} +1 -1
- package/dist/cli-bundle/chunks/{gc-O5GUO3SU.js → gc-FULIVYR4.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-PYVVEELM.js → gc-MDGRR2SU.js} +3 -3
- package/dist/cli-bundle/chunks/{get-X4O3HBEY.js → get-AWK324RS.js} +10 -13
- package/dist/cli-bundle/chunks/{get-X4O3HBEY.js.map → get-AWK324RS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{get-ENLTEGTX.js → get-VYPIICPC.js} +12 -15
- package/dist/cli-bundle/chunks/{get-ENLTEGTX.js.map → get-VYPIICPC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{health-5EXTY44Q.js → health-FBCVZGSX.js} +16 -17
- package/dist/cli-bundle/chunks/{health-5EXTY44Q.js.map → health-FBCVZGSX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{health-BOTB7YSU.js → health-Q66C43GN.js} +18 -19
- package/dist/cli-bundle/chunks/{health-BOTB7YSU.js.map → health-Q66C43GN.js.map} +1 -1
- package/dist/cli-bundle/chunks/history-5XUSLAJA.js +18 -0
- package/dist/cli-bundle/chunks/{history-AJTXLT6S.js → history-X4OSES6K.js} +8 -10
- package/dist/cli-bundle/chunks/{history-compact-46MRHW3I.js → history-compact-2GHT32UX.js} +13 -16
- package/dist/cli-bundle/chunks/{history-compact-46MRHW3I.js.map → history-compact-2GHT32UX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{history-compact-43OOUAWD.js → history-compact-WLCQEKXS.js} +11 -14
- package/dist/cli-bundle/chunks/{history-compact-43OOUAWD.js.map → history-compact-WLCQEKXS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{history-redact-KUUUVUFM.js → history-redact-45YW65BK.js} +9 -11
- package/dist/cli-bundle/chunks/history-redact-BVHWDXPR.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-B5PZBOPU.js → history-repair-FY75IC26.js} +13 -16
- package/dist/cli-bundle/chunks/{history-repair-B5PZBOPU.js.map → history-repair-FY75IC26.js.map} +1 -1
- package/dist/cli-bundle/chunks/{history-repair-VQTYOSRS.js → history-repair-GABSDSVD.js} +11 -14
- package/dist/cli-bundle/chunks/{history-repair-VQTYOSRS.js.map → history-repair-GABSDSVD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{init-BNLVFPRG.js → init-KO7CGIRQ.js} +11 -11
- package/dist/cli-bundle/chunks/init-TRYJELH4.js +21 -0
- package/dist/cli-bundle/chunks/{learnings-MUUU5KMC.js → learnings-3F7YLI45.js} +9 -11
- package/dist/cli-bundle/chunks/{learnings-MUUU5KMC.js.map → learnings-3F7YLI45.js.map} +1 -1
- package/dist/cli-bundle/chunks/{learnings-XSGX52S7.js → learnings-LHZT5BHW.js} +11 -13
- package/dist/cli-bundle/chunks/{learnings-XSGX52S7.js.map → learnings-LHZT5BHW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{list-32U7BSKE.js → list-ROT7JF62.js} +10 -10
- package/dist/cli-bundle/chunks/{list-ZEEOHLTQ.js → list-Y6AU5BJS.js} +10 -10
- package/dist/cli-bundle/chunks/next-66BJB4N2.js +277 -0
- package/dist/cli-bundle/chunks/next-66BJB4N2.js.map +7 -0
- package/dist/cli-bundle/chunks/next-N5MWJTBY.js +274 -0
- package/dist/cli-bundle/chunks/next-N5MWJTBY.js.map +1 -0
- package/dist/cli-bundle/chunks/{notes-OHU25L3M.js → notes-EVJZ3VAB.js} +11 -13
- package/dist/cli-bundle/chunks/{notes-OHU25L3M.js.map → notes-EVJZ3VAB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{notes-NJ45OZGF.js → notes-FW6YFLND.js} +9 -11
- package/dist/cli-bundle/chunks/{notes-NJ45OZGF.js.map → notes-FW6YFLND.js.map} +1 -1
- package/dist/cli-bundle/chunks/{plan-LWWAEV5Y.js → plan-DQ7G4EDC.js} +15 -18
- package/dist/cli-bundle/chunks/{plan-LWWAEV5Y.js.map → plan-DQ7G4EDC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{plan-KQA7CAKI.js → plan-ZHKZ7JVF.js} +17 -20
- package/dist/cli-bundle/chunks/{plan-KQA7CAKI.js.map → plan-ZHKZ7JVF.js.map} +1 -1
- package/dist/cli-bundle/chunks/profile-CHAW6SEA.js +1197 -0
- package/dist/cli-bundle/chunks/profile-CHAW6SEA.js.map +1 -0
- package/dist/cli-bundle/chunks/profile-UPZGCDOG.js +1235 -0
- package/dist/cli-bundle/chunks/profile-UPZGCDOG.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-DDCHPONM.js → register-list-query-KY6Z6WV7.js} +44 -20
- package/dist/cli-bundle/chunks/register-list-query-KY6Z6WV7.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-YNPBVIKM.js → register-list-query-Y2VRHPCL.js} +45 -21
- package/dist/cli-bundle/chunks/register-list-query-Y2VRHPCL.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-LAVKYY63.js → register-mutation-N6AYSKPM.js} +103 -37
- package/dist/cli-bundle/chunks/register-mutation-N6AYSKPM.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-7ALWDDAX.js → register-mutation-PCARIGZS.js} +104 -38
- package/dist/cli-bundle/chunks/register-mutation-PCARIGZS.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-U5JAW3WE.js → register-operations-L6CYTOIH.js} +30 -32
- package/dist/cli-bundle/chunks/{register-operations-U5JAW3WE.js.map → register-operations-L6CYTOIH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-R4VOQ6EF.js → register-operations-YAT6FUUB.js} +32 -34
- package/dist/cli-bundle/chunks/{register-operations-R4VOQ6EF.js.map → register-operations-YAT6FUUB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-KBXQDCXE.js → register-setup-MPANILQF.js} +67 -24
- package/dist/cli-bundle/chunks/register-setup-MPANILQF.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-RCRUHMSZ.js → register-setup-N7UGXYJC.js} +68 -25
- package/dist/cli-bundle/chunks/register-setup-N7UGXYJC.js.map +1 -0
- package/dist/cli-bundle/chunks/{restore-6K53WOWO.js → restore-DKMCLPI5.js} +9 -11
- package/dist/cli-bundle/chunks/restore-IRAKSWIW.js +17 -0
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-NJ5UVJFB.js → scheduling-shortcuts-3F4QUEDH.js} +14 -16
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-NJ5UVJFB.js.map → scheduling-shortcuts-3F4QUEDH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-OQVJXG3M.js → scheduling-shortcuts-BNZLQK36.js} +12 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-OQVJXG3M.js.map → scheduling-shortcuts-BNZLQK36.js.map} +1 -1
- package/dist/cli-bundle/chunks/schema-OLT6LVKH.js +75 -0
- package/dist/cli-bundle/chunks/schema-XJXKJQF5.js +71 -0
- package/dist/cli-bundle/chunks/{search-6HOIVZDU.js → search-CX5UMV4H.js} +10 -12
- package/dist/cli-bundle/chunks/{search-ZWYEMASC.js → search-KP6H7COV.js} +10 -12
- package/dist/cli-bundle/chunks/{stats-R5OAJVZK.js → stats-7XW4OEMK.js} +20 -12
- package/dist/cli-bundle/chunks/stats-7XW4OEMK.js.map +7 -0
- package/dist/cli-bundle/chunks/{stats-FS742AMA.js → stats-QZUG6MX5.js} +21 -13
- package/dist/cli-bundle/chunks/stats-QZUG6MX5.js.map +1 -0
- package/dist/cli-bundle/chunks/{telemetry-7DIGDQUO.js → telemetry-DIFPXCAT.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-FWEXSJLQ.js → telemetry-WTYFUPRL.js} +4 -4
- package/dist/cli-bundle/chunks/{test-NZF7OT2F.js → test-HU2BS7EY.js} +14 -16
- package/dist/cli-bundle/chunks/test-HU2BS7EY.js.map +1 -0
- package/dist/cli-bundle/chunks/test-QNDXZQCW.js +34 -0
- package/dist/cli-bundle/chunks/test-QNDXZQCW.js.map +7 -0
- package/dist/cli-bundle/chunks/{test-all-DPN62TX7.js → test-all-PZTBLLQ6.js} +17 -20
- package/dist/cli-bundle/chunks/{test-all-DPN62TX7.js.map → test-all-PZTBLLQ6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-all-KL7TLMJF.js → test-all-XLPI4USF.js} +19 -22
- package/dist/cli-bundle/chunks/{test-all-KL7TLMJF.js.map → test-all-XLPI4USF.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-runs-C6CFIVOS.js → test-runs-CA6K32RD.js} +6 -7
- package/dist/cli-bundle/chunks/test-runs-CA6K32RD.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-IAJDL6CA.js → test-runs-LANLLPVO.js} +5 -6
- package/dist/cli-bundle/chunks/test-runs-LANLLPVO.js.map +7 -0
- package/dist/cli-bundle/chunks/update-DJKWLBWJ.js +28 -0
- package/dist/cli-bundle/chunks/update-DJKWLBWJ.js.map +1 -0
- package/dist/cli-bundle/chunks/update-UXDLTEOZ.js +24 -0
- package/dist/cli-bundle/chunks/update-UXDLTEOZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{update-many-YEH2DQL6.js → update-many-LU3SCNK5.js} +32 -33
- package/dist/cli-bundle/chunks/{update-many-YEH2DQL6.js.map → update-many-LU3SCNK5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{update-many-MUTIOAP3.js → update-many-VW5DGF3S.js} +34 -35
- package/dist/cli-bundle/chunks/{update-many-MUTIOAP3.js.map → update-many-VW5DGF3S.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-HYJ3SWWU.js → upgrade-77FRUAXN.js} +12 -8
- package/dist/cli-bundle/chunks/{upgrade-HYJ3SWWU.js.map → upgrade-77FRUAXN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-UBNLBZNR.js → upgrade-ICXY244R.js} +10 -6
- package/dist/cli-bundle/chunks/{upgrade-UBNLBZNR.js.map → upgrade-ICXY244R.js.map} +1 -1
- package/dist/cli-bundle/chunks/{validate-6QWQVCX2.js → validate-2G566PKQ.js} +37 -28
- package/dist/cli-bundle/chunks/validate-2G566PKQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-W5V5ZGQX.js → validate-BDPVXHHH.js} +38 -29
- package/dist/cli-bundle/chunks/validate-BDPVXHHH.js.map +1 -0
- package/dist/cli-bundle/main.js +56 -38
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/core/config/positional-value.d.ts +2 -0
- package/dist/core/config/positional-value.js +2 -2
- package/dist/core/config/positional-value.js.map +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +71 -0
- package/dist/core/extensions/activation-summary-markdown.js +140 -0
- package/dist/core/extensions/activation-summary-markdown.js.map +1 -0
- package/dist/core/extensions/activation-summary.d.ts +2 -0
- package/dist/core/extensions/activation-summary.js +3 -2
- package/dist/core/extensions/activation-summary.js.map +1 -1
- package/dist/core/extensions/capability-usage.d.ts +1 -1
- package/dist/core/extensions/capability-usage.js +4 -3
- package/dist/core/extensions/capability-usage.js.map +1 -1
- package/dist/core/extensions/extension-registries.js +3 -2
- package/dist/core/extensions/extension-registries.js.map +1 -1
- package/dist/core/extensions/extension-types.d.ts +21 -1
- package/dist/core/extensions/extension-types.js +3 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +1 -2
- package/dist/core/extensions/loader.js +169 -103
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/version-compat.d.ts +107 -0
- package/dist/core/extensions/version-compat.js +130 -0
- package/dist/core/extensions/version-compat.js.map +1 -0
- package/dist/core/fs/fs-utils.js +27 -2
- package/dist/core/fs/fs-utils.js.map +1 -1
- package/dist/core/item/actionability.d.ts +57 -0
- package/dist/core/item/actionability.js +178 -0
- package/dist/core/item/actionability.js.map +1 -0
- package/dist/core/item/type-registry.js +18 -45
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/profile/profile-describe.d.ts +64 -0
- package/dist/core/profile/profile-describe.js +83 -0
- package/dist/core/profile/profile-describe.js.map +1 -0
- package/dist/core/profile/profile-lint.d.ts +53 -0
- package/dist/core/profile/profile-lint.js +422 -0
- package/dist/core/profile/profile-lint.js.map +1 -0
- package/dist/core/profile/profile-plan.d.ts +145 -0
- package/dist/core/profile/profile-plan.js +0 -0
- package/dist/core/profile/profile-plan.js.map +1 -0
- package/dist/core/profile/profile-presets.d.ts +218 -0
- package/dist/core/profile/profile-presets.js +325 -0
- package/dist/core/profile/profile-presets.js.map +1 -0
- package/dist/core/schema/fields-file.js +25 -25
- package/dist/core/schema/fields-file.js.map +1 -1
- package/dist/core/schema/item-types-file.js +3 -3
- package/dist/core/schema/item-types-file.js.map +1 -1
- package/dist/core/schema/runtime-schema.js +4 -4
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/schema/status-defs-file.js +3 -3
- package/dist/core/schema/status-defs-file.js.map +1 -1
- package/dist/core/shared/serialization.js +83 -62
- package/dist/core/shared/serialization.js.map +1 -1
- package/dist/core/store/item-store.d.ts +1 -0
- package/dist/core/store/item-store.js +16 -8
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/store/paths.js +4 -32
- package/dist/core/store/paths.js.map +1 -1
- package/dist/core/store/settings.js +14 -14
- package/dist/core/store/settings.js.map +1 -1
- package/dist/core/telemetry/observability.js +50 -54
- package/dist/core/telemetry/observability.js.map +1 -1
- package/dist/core/telemetry/runtime.js +11 -2
- package/dist/core/telemetry/runtime.js.map +1 -1
- package/dist/core/test/background-runs.js +3 -2
- package/dist/core/test/background-runs.js.map +1 -1
- package/dist/core/validate/linked-artifact-reference.d.ts +24 -0
- package/dist/core/validate/linked-artifact-reference.js +41 -0
- package/dist/core/validate/linked-artifact-reference.js.map +1 -0
- package/dist/mcp/server.js +183 -83
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-definitions.js +33 -2
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-types.d.ts +1 -0
- package/dist/sdk/cli-contracts/commander-types.js +15 -2
- package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +3 -3
- package/dist/sdk/cli-contracts/enum-contracts.js +6 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +149 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +1583 -0
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -0
- package/dist/sdk/cli-contracts/string-lists.d.ts +14 -0
- package/dist/sdk/cli-contracts/string-lists.js +20 -0
- package/dist/sdk/cli-contracts/string-lists.js.map +1 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +51 -109
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +17 -0
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +54 -5
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +74 -0
- package/dist/sdk/cli-contracts/tool-schema.js +840 -0
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -0
- package/dist/sdk/cli-contracts.d.ts +13 -193
- package/dist/sdk/cli-contracts.js +5 -2277
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/compose.d.ts +346 -4
- package/dist/sdk/compose.js +486 -15
- package/dist/sdk/compose.js.map +1 -1
- package/dist/sdk/define.d.ts +29 -14
- package/dist/sdk/define.js +21 -7
- package/dist/sdk/define.js.map +1 -1
- package/dist/sdk/index.d.ts +14 -3
- package/dist/sdk/index.js +14 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/testing.d.ts +156 -3
- package/dist/sdk/testing.js +172 -4
- package/dist/sdk/testing.js.map +1 -1
- package/docs/AGENT_GUIDE.md +2 -0
- package/docs/CLAUDE_CODE_PLUGIN.md +2 -2
- package/docs/COMMANDS.md +37 -0
- package/docs/EXTENSIONS.md +20 -20
- package/docs/RELEASING.md +6 -1
- package/docs/SDK.md +387 -20
- package/docs/TESTING.md +12 -0
- package/docs/examples/policy-restricted-extension/README.md +6 -0
- package/docs/examples/policy-restricted-extension/index.ts +40 -0
- package/docs/examples/policy-restricted-extension/manifest.json +2 -2
- package/docs/examples/starter-extension/README.md +14 -2
- package/docs/examples/starter-extension/{index.js → index.ts} +51 -6
- package/docs/examples/starter-extension/manifest.json +2 -2
- package/package.json +20 -7
- package/packages/pm-beads/extensions/beads/index.ts +3 -3
- package/packages/pm-beads/extensions/beads/manifest.json +2 -2
- package/packages/pm-beads/extensions/beads/runtime-loader.ts +19 -7
- package/packages/pm-beads/extensions/beads/runtime.ts +155 -37
- package/packages/pm-calendar/extensions/calendar/index.ts +3 -3
- package/packages/pm-calendar/extensions/calendar/manifest.json +2 -2
- package/packages/pm-calendar/extensions/calendar/runtime.ts +2 -2
- package/packages/pm-command-kit/extensions/command-kit/index.ts +1 -1
- package/packages/pm-command-kit/extensions/command-kit/manifest.json +2 -2
- package/packages/pm-governance-audit/extensions/governance-audit/index.ts +2 -2
- package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +2 -2
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.ts +1 -1
- package/packages/pm-guide-shell/extensions/guide-shell/index.ts +2 -2
- package/packages/pm-guide-shell/extensions/guide-shell/manifest.json +2 -2
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +1 -1
- package/packages/pm-kanban/README.md +97 -0
- package/packages/pm-kanban/extensions/kanban/index.ts +191 -0
- package/packages/pm-kanban/extensions/kanban/manifest.json +19 -0
- package/packages/pm-kanban/package.json +57 -0
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/index.ts +1 -1
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/manifest.json +2 -2
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.ts +2 -2
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json +2 -2
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.ts +1 -1
- package/packages/pm-search-advanced/extensions/search-advanced/index.ts +2 -2
- package/packages/pm-search-advanced/extensions/search-advanced/manifest.json +2 -2
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.ts +1 -1
- package/packages/pm-templates/extensions/templates/index.ts +2 -2
- package/packages/pm-templates/extensions/templates/manifest.json +2 -2
- package/packages/pm-templates/extensions/templates/runtime.ts +1 -1
- package/packages/pm-todos/extensions/todos/index.ts +3 -3
- package/packages/pm-todos/extensions/todos/manifest.json +2 -2
- package/packages/pm-todos/extensions/todos/runtime-loader.ts +19 -7
- package/packages/pm-todos/extensions/todos/runtime.ts +177 -43
- package/plugins/pm-claude/scripts/pm-mcp-server.mjs +2 -2
- package/plugins/pm-codex/scripts/pm-mcp-server.mjs +2 -2
- package/scripts/bundle-cli.mjs +1 -1
- package/dist/cli-bundle/chunks/activity-XUZ2AHCW.js +0 -18
- package/dist/cli-bundle/chunks/aggregate-EGJLZQBI.js.map +0 -7
- package/dist/cli-bundle/chunks/aggregate-R725FC3S.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-2BFPAUAF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-46G6RSB6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-55ISXAQH.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5UVVASSA.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7MRQ4HMK.js +0 -78
- package/dist/cli-bundle/chunks/chunk-7MRQ4HMK.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7SV63ZHD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-AONIHR2C.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-C5AOG6D2.js +0 -691
- package/dist/cli-bundle/chunks/chunk-C5AOG6D2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-CE5P2NQR.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-CKGNPJAG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-G6PYHBBR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-GAJVRGGA.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-HFFUQR73.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-IPKJ6B36.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JR2LV3M4.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KFWBJPSG.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KQMUV6LX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MJTINN54.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MJTSZKK5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MVKFOLLM.js +0 -694
- package/dist/cli-bundle/chunks/chunk-MVKFOLLM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-QH3PJYON.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-QL5RVYOA.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-S26C36QC.js +0 -83
- package/dist/cli-bundle/chunks/chunk-S26C36QC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-S2RUQSX2.js +0 -75
- package/dist/cli-bundle/chunks/chunk-S2RUQSX2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SKH7OGE5.js +0 -86
- package/dist/cli-bundle/chunks/chunk-SKH7OGE5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SKN7LC5W.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SR3EKWZG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UELRKQQU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-VFAQ4LMN.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Y4SUQQYH.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YDEXO24S.js +0 -654
- package/dist/cli-bundle/chunks/chunk-YDEXO24S.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YJ3SUEPD.js +0 -657
- package/dist/cli-bundle/chunks/chunk-YJ3SUEPD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-YUDJD3XO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZRK4O56R.js.map +0 -1
- package/dist/cli-bundle/chunks/close-A3EMKBBY.js +0 -15
- package/dist/cli-bundle/chunks/config-D3OKQO52.js.map +0 -7
- package/dist/cli-bundle/chunks/config-MMJA4LLK.js.map +0 -1
- package/dist/cli-bundle/chunks/context-BLBD3PUB.js.map +0 -7
- package/dist/cli-bundle/chunks/context-DHLVPXN3.js.map +0 -1
- package/dist/cli-bundle/chunks/contracts-C3SZCXXG.js.map +0 -7
- package/dist/cli-bundle/chunks/contracts-XGVMMPC5.js.map +0 -1
- package/dist/cli-bundle/chunks/create-QVGFYA2X.js +0 -30
- package/dist/cli-bundle/chunks/history-AK3E5Z3C.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-TWIYQV5J.js +0 -21
- package/dist/cli-bundle/chunks/init-RCRKW5PL.js +0 -21
- package/dist/cli-bundle/chunks/register-list-query-DDCHPONM.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-YNPBVIKM.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-7ALWDDAX.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-LAVKYY63.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-KBXQDCXE.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-RCRUHMSZ.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-2ZKT6UDC.js +0 -19
- package/dist/cli-bundle/chunks/schema-MNTAVQCY.js.map +0 -1
- package/dist/cli-bundle/chunks/schema-RBTJ2YXW.js.map +0 -7
- package/dist/cli-bundle/chunks/stats-FS742AMA.js.map +0 -1
- package/dist/cli-bundle/chunks/stats-R5OAJVZK.js.map +0 -7
- package/dist/cli-bundle/chunks/test-QJXLKV26.js +0 -36
- package/dist/cli-bundle/chunks/test-runs-C6CFIVOS.js.map +0 -1
- package/dist/cli-bundle/chunks/test-runs-IAJDL6CA.js.map +0 -7
- package/dist/cli-bundle/chunks/update-2XCQNOD6.js +0 -28
- package/dist/cli-bundle/chunks/update-IWUCXVH2.js +0 -24
- package/dist/cli-bundle/chunks/validate-6QWQVCX2.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-W5V5ZGQX.js.map +0 -1
- package/docs/examples/policy-restricted-extension/index.js +0 -21
- package/packages/pm-beads/extensions/beads/index.js +0 -64
- package/packages/pm-beads/extensions/beads/runtime-loader.js +0 -86
- package/packages/pm-beads/extensions/beads/runtime.js +0 -482
- package/packages/pm-calendar/extensions/calendar/index.js +0 -150
- package/packages/pm-calendar/extensions/calendar/runtime.js +0 -126
- package/packages/pm-command-kit/extensions/command-kit/index.js +0 -181
- package/packages/pm-governance-audit/extensions/governance-audit/index.js +0 -177
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.js +0 -153
- package/packages/pm-guide-shell/extensions/guide-shell/index.js +0 -98
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.js +0 -294
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/index.js +0 -18
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.js +0 -124
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.js +0 -110
- package/packages/pm-search-advanced/extensions/search-advanced/index.js +0 -258
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.js +0 -361
- package/packages/pm-templates/extensions/templates/index.js +0 -132
- package/packages/pm-templates/extensions/templates/runtime.js +0 -35
- package/packages/pm-todos/extensions/todos/index.js +0 -81
- package/packages/pm-todos/extensions/todos/runtime-loader.js +0 -86
- package/packages/pm-todos/extensions/todos/runtime.js +0 -545
- /package/dist/cli-bundle/chunks/{activity-XUZ2AHCW.js.map → activity-EJBMXUBH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-H2LMOSSW.js.map → activity-MVSEND6D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IB3GYLQE.js.map → chunk-3JWQCLR5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2A34E3BA.js.map → chunk-4TXTVZL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-G6N5VEOK.js.map → chunk-4YIMPANT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7XGQXHFB.js.map → chunk-73PTKMAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3VY3YQO6.js.map → chunk-7RIJGN4R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FXR67XVQ.js.map → chunk-BN3CWK6G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4BHT5VDC.js.map → chunk-C2KCIZKZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-O6LLO73I.js.map → chunk-CHRNYKNI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZQ3ZVXX2.js.map → chunk-D6USKAMA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WZQWHN4R.js.map → chunk-DLDCPF5X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UVC5LOR7.js.map → chunk-E2Q2ULMR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5VOINNKT.js.map → chunk-F6VH3LFC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H4IIJDE4.js.map → chunk-FDEVKXC4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-34EONI5F.js.map → chunk-HUYYMTGW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CIIK67GW.js.map → chunk-IHXXUIXS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SBQTAVJZ.js.map → chunk-JIP67N2K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2T3JG6V4.js.map → chunk-KRASIL6M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P77P2ILI.js.map → chunk-MLHX6DN5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2CKH2LMV.js.map → chunk-OB3RJV5F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FIGAZ4Y7.js.map → chunk-OUQ5JEFM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NK3UPBVG.js.map → chunk-QE5UFCCO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WM5ZVBPE.js.map → chunk-SJZTPVFT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VAYA4XFX.js.map → chunk-V3KLX7U7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2RDVQEWV.js.map → chunk-Z5BM2FKQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-66MEDTUD.js.map → chunk-ZEATCVAC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NCVCO3NZ.js.map → chunk-ZFIEEDTJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-A3EMKBBY.js.map → close-37KEHLYM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-W56IOGYG.js.map → close-OP3LK7Z2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-QVGFYA2X.js.map → context-7ZEZV3BV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-IXY43O4H.js.map → context-XDI4DKKT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-UTTQDUYI.js.map → create-DFMNBKBS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-KCPUWSY2.js.map → create-J5Q2ELZT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-AJTXLT6S.js.map → extension-3LRYX7SW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-AK3E5Z3C.js.map → extension-GMVOIP4O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-O5GUO3SU.js.map → gc-FULIVYR4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-PYVVEELM.js.map → gc-MDGRR2SU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-TWIYQV5J.js.map → history-5XUSLAJA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-KUUUVUFM.js.map → history-X4OSES6K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-BNLVFPRG.js.map → history-redact-45YW65BK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-RCRKW5PL.js.map → history-redact-BVHWDXPR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-32U7BSKE.js.map → init-KO7CGIRQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-ZEEOHLTQ.js.map → init-TRYJELH4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-6K53WOWO.js.map → list-ROT7JF62.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-2ZKT6UDC.js.map → list-Y6AU5BJS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-6HOIVZDU.js.map → restore-DKMCLPI5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-ZWYEMASC.js.map → restore-IRAKSWIW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-NZF7OT2F.js.map → schema-OLT6LVKH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-QJXLKV26.js.map → schema-XJXKJQF5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-2XCQNOD6.js.map → search-CX5UMV4H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-IWUCXVH2.js.map → search-KP6H7COV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-7DIGDQUO.js.map → telemetry-DIFPXCAT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-FWEXSJLQ.js.map → telemetry-WTYFUPRL.js.map} +0 -0
|
@@ -0,0 +1,1235 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeStatusToken
|
|
3
|
+
} from "./chunk-CZVISY5A.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveAuthor
|
|
6
|
+
} from "./chunk-WW4E2DC3.js";
|
|
7
|
+
import {
|
|
8
|
+
parseNestedSettingValue,
|
|
9
|
+
readNestedSettingValue,
|
|
10
|
+
resolveNestedSettingDescriptor,
|
|
11
|
+
writeNestedSettingValue
|
|
12
|
+
} from "./chunk-VZDBVEZR.js";
|
|
13
|
+
import {
|
|
14
|
+
TYPE_PRESET_DEFINITIONS,
|
|
15
|
+
ensureTypeFolderScaffold,
|
|
16
|
+
normalizeAddFieldInput,
|
|
17
|
+
normalizeAddStatusInput,
|
|
18
|
+
parseFieldsFile,
|
|
19
|
+
parseStatusDefsFile,
|
|
20
|
+
serializeFieldsFile,
|
|
21
|
+
serializeStatusDefsFile,
|
|
22
|
+
upsertField,
|
|
23
|
+
upsertStatusDef
|
|
24
|
+
} from "./chunk-NO6Y6FB2.js";
|
|
25
|
+
import {
|
|
26
|
+
normalizeAddTypeInput,
|
|
27
|
+
parseItemTypesFile,
|
|
28
|
+
serializeItemTypesFile,
|
|
29
|
+
upsertItemType
|
|
30
|
+
} from "./chunk-DRPF274X.js";
|
|
31
|
+
import {
|
|
32
|
+
CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS
|
|
33
|
+
} from "./chunk-6T5ZIWBS.js";
|
|
34
|
+
import {
|
|
35
|
+
acquireLock
|
|
36
|
+
} from "./chunk-LBH7UYKY.js";
|
|
37
|
+
import "./chunk-ZFIEEDTJ.js";
|
|
38
|
+
import {
|
|
39
|
+
nowIso
|
|
40
|
+
} from "./chunk-MLHX6DN5.js";
|
|
41
|
+
import {
|
|
42
|
+
BUILTIN_ITEM_TYPE_VALUES,
|
|
43
|
+
DEFAULT_RUNTIME_SCHEMA_FILE_PATHS,
|
|
44
|
+
DEFAULT_RUNTIME_STATUS_DEFINITIONS,
|
|
45
|
+
EXIT_CODE,
|
|
46
|
+
PmCliError,
|
|
47
|
+
filePathForSchemaSection,
|
|
48
|
+
getActiveExtensionRegistrations,
|
|
49
|
+
getSettingsPath,
|
|
50
|
+
normalizeRuntimeSchemaSettings,
|
|
51
|
+
pathExists,
|
|
52
|
+
readFileIfExists,
|
|
53
|
+
readSettings,
|
|
54
|
+
resolveGovernanceKnobs,
|
|
55
|
+
resolvePmRoot,
|
|
56
|
+
runActiveOnWriteHooks,
|
|
57
|
+
toErrorMessage,
|
|
58
|
+
writeFileAtomic,
|
|
59
|
+
writeSettings
|
|
60
|
+
} from "./chunk-SNUK7H5J.js";
|
|
61
|
+
|
|
62
|
+
// dist/cli/commands/profile.js
|
|
63
|
+
import path2 from "node:path";
|
|
64
|
+
|
|
65
|
+
// dist/core/profile/profile-presets.js
|
|
66
|
+
!(function() {
|
|
67
|
+
try {
|
|
68
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
69
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6353f7f8-4aed-512c-8f04-a61eef52a775");
|
|
70
|
+
} catch (e2) {
|
|
71
|
+
}
|
|
72
|
+
})();
|
|
73
|
+
var PROFILE_NAMES = ["agile", "ops", "research"];
|
|
74
|
+
var BUILTIN_PROFILES = {
|
|
75
|
+
agile: {
|
|
76
|
+
name: "agile",
|
|
77
|
+
title: "Agile delivery",
|
|
78
|
+
summary: "Story/Spike delivery with a review stage, story points, and acceptance ownership.",
|
|
79
|
+
types: TYPE_PRESET_DEFINITIONS.agile,
|
|
80
|
+
statuses: [
|
|
81
|
+
{
|
|
82
|
+
id: "review",
|
|
83
|
+
roles: ["active"],
|
|
84
|
+
aliases: ["in-review"],
|
|
85
|
+
description: "Work is implementation-complete and awaiting peer review."
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
fields: [
|
|
89
|
+
{
|
|
90
|
+
key: "story_points",
|
|
91
|
+
type: "number",
|
|
92
|
+
commands: ["create", "update", "list"],
|
|
93
|
+
description: "Relative estimation size for a story or spike.",
|
|
94
|
+
aliases: ["points"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key: "acceptance_owner",
|
|
98
|
+
type: "string",
|
|
99
|
+
commands: ["create", "update", "list"],
|
|
100
|
+
description: "Stakeholder accountable for accepting the delivered story.",
|
|
101
|
+
aliases: ["acceptor"]
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
workflows: [
|
|
105
|
+
{
|
|
106
|
+
type: "Story",
|
|
107
|
+
allowed_transitions: [
|
|
108
|
+
["open", "in_progress"],
|
|
109
|
+
["in_progress", "review"],
|
|
110
|
+
["review", "in_progress"],
|
|
111
|
+
["review", "closed"],
|
|
112
|
+
["in_progress", "blocked"],
|
|
113
|
+
["blocked", "in_progress"]
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
config: [
|
|
118
|
+
{ key: "search_provider", value: "bm25", summary: "Offline BM25 lexical search works without an embedding service." },
|
|
119
|
+
{ key: "search_max_results", value: "20", summary: "Sprint-sized result cap for quick triage." }
|
|
120
|
+
],
|
|
121
|
+
templates: [
|
|
122
|
+
{
|
|
123
|
+
name: "story",
|
|
124
|
+
options: {
|
|
125
|
+
type: "Story",
|
|
126
|
+
priority: "2",
|
|
127
|
+
tags: "story",
|
|
128
|
+
acceptanceCriteria: "Story delivers the stated user outcome with tests and docs updated.",
|
|
129
|
+
body: "## As a\n\n## I want\n\n## So that\n\n## Acceptance\n- [ ] \n"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
packages: [
|
|
134
|
+
{ spec: "templates", reason: "Reusable create templates for recurring story shapes." },
|
|
135
|
+
{ spec: "calendar", reason: "Sprint and iteration scheduling views." },
|
|
136
|
+
{ spec: "search-advanced", reason: "Richer retrieval as the backlog grows." }
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
ops: {
|
|
140
|
+
name: "ops",
|
|
141
|
+
title: "Operations",
|
|
142
|
+
summary: "Incident/Runbook response with mitigation and monitoring stages, severity, and service fields.",
|
|
143
|
+
types: TYPE_PRESET_DEFINITIONS.ops,
|
|
144
|
+
statuses: [
|
|
145
|
+
{
|
|
146
|
+
id: "mitigating",
|
|
147
|
+
roles: ["active"],
|
|
148
|
+
aliases: ["mitigation"],
|
|
149
|
+
description: "Active mitigation is underway to restore service."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "monitoring",
|
|
153
|
+
roles: ["active"],
|
|
154
|
+
aliases: ["observing"],
|
|
155
|
+
description: "Mitigation applied; monitoring for recurrence before closure."
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
fields: [
|
|
159
|
+
{
|
|
160
|
+
key: "severity",
|
|
161
|
+
type: "string",
|
|
162
|
+
commands: ["create", "update", "list"],
|
|
163
|
+
description: "Incident severity classification (e.g. sev1, sev2, sev3).",
|
|
164
|
+
aliases: ["sev"]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
key: "service",
|
|
168
|
+
type: "string",
|
|
169
|
+
commands: ["create", "update", "list"],
|
|
170
|
+
description: "Primary affected service or component."
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
workflows: [
|
|
174
|
+
{
|
|
175
|
+
type: "Incident",
|
|
176
|
+
allowed_transitions: [
|
|
177
|
+
["open", "mitigating"],
|
|
178
|
+
["mitigating", "monitoring"],
|
|
179
|
+
["monitoring", "mitigating"],
|
|
180
|
+
["monitoring", "closed"],
|
|
181
|
+
["mitigating", "blocked"],
|
|
182
|
+
["blocked", "mitigating"]
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
config: [
|
|
187
|
+
{ key: "search_provider", value: "bm25", summary: "Offline BM25 lexical search for fast incident lookup." },
|
|
188
|
+
{ key: "search_max_results", value: "25", summary: "Wider result cap to surface related incidents and runbooks." }
|
|
189
|
+
],
|
|
190
|
+
templates: [
|
|
191
|
+
{
|
|
192
|
+
name: "incident",
|
|
193
|
+
options: {
|
|
194
|
+
type: "Incident",
|
|
195
|
+
priority: "1",
|
|
196
|
+
tags: "incident",
|
|
197
|
+
acceptanceCriteria: "Service restored, root cause documented, and follow-ups filed.",
|
|
198
|
+
body: "## Impact\n\n## Timeline\n\n## Root cause\n\n## Mitigation\n\n## Follow-ups\n"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
packages: [
|
|
203
|
+
{ spec: "lifecycle-hooks", reason: "Automate transitions and notifications on incident state changes." },
|
|
204
|
+
{ spec: "governance-audit", reason: "Audit incident metadata completeness and closure quality." },
|
|
205
|
+
{ spec: "calendar", reason: "On-call and follow-up scheduling." }
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
research: {
|
|
209
|
+
name: "research",
|
|
210
|
+
title: "Research",
|
|
211
|
+
summary: "Experiment/Hypothesis investigation with an analysis stage, hypothesis, and method fields.",
|
|
212
|
+
types: TYPE_PRESET_DEFINITIONS.research,
|
|
213
|
+
statuses: [
|
|
214
|
+
{
|
|
215
|
+
id: "analyzing",
|
|
216
|
+
roles: ["active"],
|
|
217
|
+
aliases: ["analysis"],
|
|
218
|
+
description: "Data collected; analysis and synthesis in progress."
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
fields: [
|
|
222
|
+
{
|
|
223
|
+
key: "hypothesis",
|
|
224
|
+
type: "string",
|
|
225
|
+
commands: ["create", "update"],
|
|
226
|
+
description: "The testable claim the experiment evaluates."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
key: "method",
|
|
230
|
+
type: "string",
|
|
231
|
+
commands: ["create", "update", "list"],
|
|
232
|
+
description: "Experimental method or protocol used to evaluate the hypothesis.",
|
|
233
|
+
aliases: ["protocol"]
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
workflows: [
|
|
237
|
+
{
|
|
238
|
+
type: "Experiment",
|
|
239
|
+
allowed_transitions: [
|
|
240
|
+
["open", "in_progress"],
|
|
241
|
+
["in_progress", "analyzing"],
|
|
242
|
+
["analyzing", "in_progress"],
|
|
243
|
+
["analyzing", "closed"],
|
|
244
|
+
["in_progress", "blocked"],
|
|
245
|
+
["blocked", "in_progress"]
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
config: [
|
|
250
|
+
{ key: "search_provider", value: "bm25", summary: "Offline BM25 lexical search across the research corpus." },
|
|
251
|
+
{ key: "search_max_results", value: "50", summary: "Broader recall cap for literature and prior-experiment discovery." }
|
|
252
|
+
],
|
|
253
|
+
templates: [
|
|
254
|
+
{
|
|
255
|
+
name: "experiment",
|
|
256
|
+
options: {
|
|
257
|
+
type: "Experiment",
|
|
258
|
+
priority: "2",
|
|
259
|
+
tags: "experiment",
|
|
260
|
+
acceptanceCriteria: "Hypothesis is supported, rejected, or refined with recorded evidence.",
|
|
261
|
+
body: "## Hypothesis\n\n## Method\n\n## Results\n\n## Conclusion\n"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
packages: [
|
|
266
|
+
{ spec: "search-advanced", reason: "Semantic retrieval over experiments and findings." },
|
|
267
|
+
{ spec: "templates", reason: "Consistent experiment and hypothesis scaffolds." },
|
|
268
|
+
{ spec: "beads", reason: "Import structured prior work into the tracker." }
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
function normalizeProfileLookupKey(rawValue) {
|
|
273
|
+
return rawValue.trim().toLowerCase().replaceAll("-", "_");
|
|
274
|
+
}
|
|
275
|
+
function formatAvailableProfileNames(profiles) {
|
|
276
|
+
return profiles.map((entry) => entry.definition.name).join(", ");
|
|
277
|
+
}
|
|
278
|
+
function resolveProfileCatalog(contributions = []) {
|
|
279
|
+
const profiles = PROFILE_NAMES.map((name) => ({
|
|
280
|
+
definition: BUILTIN_PROFILES[name],
|
|
281
|
+
source: "builtin"
|
|
282
|
+
}));
|
|
283
|
+
const builtinKeys = new Set(PROFILE_NAMES.map((name) => normalizeProfileLookupKey(name)));
|
|
284
|
+
const seen = new Set(builtinKeys);
|
|
285
|
+
const warnings = [];
|
|
286
|
+
for (const contribution of contributions) {
|
|
287
|
+
const key = normalizeProfileLookupKey(contribution.profile.name);
|
|
288
|
+
if (builtinKeys.has(key)) {
|
|
289
|
+
warnings.push(`Extension "${contribution.name}" profile "${contribution.profile.name}" uses a name reserved by a built-in archetype and was ignored.`);
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if (seen.has(key)) {
|
|
293
|
+
warnings.push(`Profile "${contribution.profile.name}" from extension "${contribution.name}" duplicates an already-registered profile and was ignored.`);
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
seen.add(key);
|
|
297
|
+
profiles.push({ definition: contribution.profile, source: "extension", package: contribution.name });
|
|
298
|
+
}
|
|
299
|
+
return { profiles, warnings };
|
|
300
|
+
}
|
|
301
|
+
function resolveProfileEntry(rawValue, contributions = []) {
|
|
302
|
+
const { profiles, warnings } = resolveProfileCatalog(contributions);
|
|
303
|
+
if (typeof rawValue !== "string" || rawValue.trim().length === 0) {
|
|
304
|
+
throw new Error(`Profile name is required. Allowed: ${formatAvailableProfileNames(profiles)}.`);
|
|
305
|
+
}
|
|
306
|
+
const key = normalizeProfileLookupKey(rawValue);
|
|
307
|
+
const match = profiles.find((entry) => normalizeProfileLookupKey(entry.definition.name) === key);
|
|
308
|
+
if (match === void 0) {
|
|
309
|
+
throw new Error(`Invalid profile "${rawValue}". Allowed: ${formatAvailableProfileNames(profiles)}.`);
|
|
310
|
+
}
|
|
311
|
+
return { resolved: match, warnings };
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// dist/core/profile/profile-describe.js
|
|
315
|
+
!(function() {
|
|
316
|
+
try {
|
|
317
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
318
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a291c588-5fe0-5377-a302-b1c2471217bc");
|
|
319
|
+
} catch (e2) {
|
|
320
|
+
}
|
|
321
|
+
})();
|
|
322
|
+
function describeProfileComposition(profile) {
|
|
323
|
+
return {
|
|
324
|
+
types: profile.types.length,
|
|
325
|
+
statuses: profile.statuses.length,
|
|
326
|
+
fields: profile.fields.length,
|
|
327
|
+
workflows: profile.workflows.length,
|
|
328
|
+
config: profile.config.length,
|
|
329
|
+
templates: profile.templates.length,
|
|
330
|
+
packages: profile.packages.length
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function describeProjectProfile(profile) {
|
|
334
|
+
return {
|
|
335
|
+
name: profile.name,
|
|
336
|
+
title: profile.title,
|
|
337
|
+
summary: profile.summary,
|
|
338
|
+
composition: describeProfileComposition(profile),
|
|
339
|
+
types: profile.types.map((type) => lenientIdentifier(() => normalizeAddTypeInput(type).name, () => String(type.name ?? ""))),
|
|
340
|
+
statuses: profile.statuses.map((status) => lenientIdentifier(() => normalizeAddStatusInput(status).id, () => String(status.id ?? ""))),
|
|
341
|
+
fields: profile.fields.map((field) => lenientIdentifier(() => normalizeAddFieldInput(field).key, () => String(field.key ?? ""))),
|
|
342
|
+
workflows: profile.workflows.map((workflow) => workflow.type),
|
|
343
|
+
config: profile.config.map((entry) => `${entry.key}=${entry.value}`),
|
|
344
|
+
templates: profile.templates.map((template) => template.name),
|
|
345
|
+
packages: profile.packages.map((recommendation) => ({ spec: recommendation.spec, reason: recommendation.reason }))
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
function lenientIdentifier(normalize, raw) {
|
|
349
|
+
try {
|
|
350
|
+
return normalize();
|
|
351
|
+
} catch {
|
|
352
|
+
return raw();
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// dist/core/profile/profile-lint.js
|
|
357
|
+
!(function() {
|
|
358
|
+
try {
|
|
359
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
360
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "22ba01dc-013c-507c-b2f7-fbe6b71b3bc3");
|
|
361
|
+
} catch (e2) {
|
|
362
|
+
}
|
|
363
|
+
})();
|
|
364
|
+
var BUILTIN_STATUS_TOKENS = new Set(DEFAULT_RUNTIME_STATUS_DEFINITIONS.flatMap((definition) => [
|
|
365
|
+
normalizeStatusToken(definition.id),
|
|
366
|
+
...(definition.aliases ?? []).map((alias) => normalizeStatusToken(alias))
|
|
367
|
+
]).filter((token) => token.length > 0));
|
|
368
|
+
var BUILTIN_TYPE_KEYS = new Set(BUILTIN_ITEM_TYPE_VALUES.map((name) => name.toLowerCase()));
|
|
369
|
+
function lintProfileIdentity(profile, findings) {
|
|
370
|
+
if (profile.name.trim().length === 0) {
|
|
371
|
+
findings.push({
|
|
372
|
+
severity: "error",
|
|
373
|
+
code: "profile_name_empty",
|
|
374
|
+
dimension: "profile",
|
|
375
|
+
message: "Profile name must not be empty; profile resolution requires a non-blank name."
|
|
376
|
+
});
|
|
377
|
+
} else if (profile.name !== normalizeProfileLookupKey(profile.name)) {
|
|
378
|
+
findings.push({
|
|
379
|
+
severity: "warning",
|
|
380
|
+
code: "profile_name_not_normalized",
|
|
381
|
+
dimension: "profile",
|
|
382
|
+
target: profile.name,
|
|
383
|
+
message: `Profile name "${profile.name}" is not in canonical form; resolution folds it to "${normalizeProfileLookupKey(profile.name)}" (lowercase, hyphens as underscores).`
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
if (profile.title.trim().length === 0) {
|
|
387
|
+
findings.push({
|
|
388
|
+
severity: "warning",
|
|
389
|
+
code: "profile_title_empty",
|
|
390
|
+
dimension: "profile",
|
|
391
|
+
message: "Profile title is empty; list and show surfaces will render a blank title."
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
if (profile.summary.trim().length === 0) {
|
|
395
|
+
findings.push({
|
|
396
|
+
severity: "warning",
|
|
397
|
+
code: "profile_summary_empty",
|
|
398
|
+
dimension: "profile",
|
|
399
|
+
message: "Profile summary is empty; list and show surfaces will render a blank archetype description."
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function lintTypes(profile, findings) {
|
|
404
|
+
const declared = /* @__PURE__ */ new Set();
|
|
405
|
+
const seen = /* @__PURE__ */ new Set();
|
|
406
|
+
for (const [index, type] of profile.types.entries()) {
|
|
407
|
+
let name;
|
|
408
|
+
try {
|
|
409
|
+
name = normalizeAddTypeInput(type).name;
|
|
410
|
+
} catch (error) {
|
|
411
|
+
findings.push({
|
|
412
|
+
severity: "error",
|
|
413
|
+
code: "type_invalid",
|
|
414
|
+
dimension: "types",
|
|
415
|
+
target: typeof type.name === "string" ? type.name : `#${index}`,
|
|
416
|
+
message: toErrorMessage(error)
|
|
417
|
+
});
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
const key = name.toLowerCase();
|
|
421
|
+
if (seen.has(key)) {
|
|
422
|
+
findings.push({
|
|
423
|
+
severity: "error",
|
|
424
|
+
code: "type_duplicate",
|
|
425
|
+
dimension: "types",
|
|
426
|
+
target: name,
|
|
427
|
+
message: `Item type "${name}" is declared more than once; the later definition silently overwrites the earlier upsert.`
|
|
428
|
+
});
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
seen.add(key);
|
|
432
|
+
declared.add(key);
|
|
433
|
+
}
|
|
434
|
+
return declared;
|
|
435
|
+
}
|
|
436
|
+
function lintStatuses(profile, findings) {
|
|
437
|
+
const declared = /* @__PURE__ */ new Set();
|
|
438
|
+
const seen = /* @__PURE__ */ new Set();
|
|
439
|
+
for (const [index, status] of profile.statuses.entries()) {
|
|
440
|
+
let normalized;
|
|
441
|
+
try {
|
|
442
|
+
normalized = normalizeAddStatusInput(status);
|
|
443
|
+
} catch (error) {
|
|
444
|
+
findings.push({
|
|
445
|
+
severity: "error",
|
|
446
|
+
code: "status_invalid",
|
|
447
|
+
dimension: "statuses",
|
|
448
|
+
target: typeof status.id === "string" ? status.id : `#${index}`,
|
|
449
|
+
message: toErrorMessage(error)
|
|
450
|
+
});
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
if (seen.has(normalized.id)) {
|
|
454
|
+
findings.push({
|
|
455
|
+
severity: "error",
|
|
456
|
+
code: "status_duplicate",
|
|
457
|
+
dimension: "statuses",
|
|
458
|
+
target: normalized.id,
|
|
459
|
+
message: `Status "${normalized.id}" is declared more than once; the later definition silently overwrites the earlier upsert.`
|
|
460
|
+
});
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
seen.add(normalized.id);
|
|
464
|
+
declared.add(normalized.id);
|
|
465
|
+
for (const alias of normalized.aliases ?? []) {
|
|
466
|
+
declared.add(normalizeStatusToken(alias));
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
return declared;
|
|
470
|
+
}
|
|
471
|
+
function lintFields(profile, findings) {
|
|
472
|
+
const seen = /* @__PURE__ */ new Set();
|
|
473
|
+
for (const [index, field] of profile.fields.entries()) {
|
|
474
|
+
let key;
|
|
475
|
+
try {
|
|
476
|
+
key = normalizeAddFieldInput(field).key;
|
|
477
|
+
} catch (error) {
|
|
478
|
+
findings.push({
|
|
479
|
+
severity: "error",
|
|
480
|
+
code: "field_invalid",
|
|
481
|
+
dimension: "fields",
|
|
482
|
+
target: typeof field.key === "string" ? field.key : `#${index}`,
|
|
483
|
+
message: toErrorMessage(error)
|
|
484
|
+
});
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
if (seen.has(key)) {
|
|
488
|
+
findings.push({
|
|
489
|
+
severity: "error",
|
|
490
|
+
code: "field_duplicate",
|
|
491
|
+
dimension: "fields",
|
|
492
|
+
target: key,
|
|
493
|
+
message: `Field "${key}" is declared more than once; the later definition silently overwrites the earlier upsert.`
|
|
494
|
+
});
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
seen.add(key);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
function lintWorkflows(profile, declaredTypes, declaredStatuses, findings) {
|
|
501
|
+
const seenTypes = /* @__PURE__ */ new Set();
|
|
502
|
+
for (const [index, workflow] of profile.workflows.entries()) {
|
|
503
|
+
const typeKey = workflow.type.trim().toLowerCase();
|
|
504
|
+
if (typeKey.length === 0) {
|
|
505
|
+
findings.push({
|
|
506
|
+
severity: "error",
|
|
507
|
+
code: "workflow_type_empty",
|
|
508
|
+
dimension: "workflows",
|
|
509
|
+
target: `#${index}`,
|
|
510
|
+
message: "Workflow has an empty type; the workflow resolver drops entries without a type."
|
|
511
|
+
});
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
const duplicate = seenTypes.has(typeKey);
|
|
515
|
+
seenTypes.add(typeKey);
|
|
516
|
+
if (duplicate) {
|
|
517
|
+
findings.push({
|
|
518
|
+
severity: "warning",
|
|
519
|
+
code: "workflow_duplicate_type",
|
|
520
|
+
dimension: "workflows",
|
|
521
|
+
target: workflow.type,
|
|
522
|
+
message: `Workflow type "${workflow.type}" is declared more than once; the later transition set wins.`
|
|
523
|
+
});
|
|
524
|
+
} else if (!BUILTIN_TYPE_KEYS.has(typeKey) && !declaredTypes.has(typeKey)) {
|
|
525
|
+
findings.push({
|
|
526
|
+
severity: "warning",
|
|
527
|
+
code: "workflow_type_unknown",
|
|
528
|
+
dimension: "workflows",
|
|
529
|
+
target: workflow.type,
|
|
530
|
+
message: `Workflow governs type "${workflow.type}" which is neither a built-in type nor declared by this profile; it has no effect unless that type already exists.`
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
const reportedUnknownStatuses = /* @__PURE__ */ new Set();
|
|
534
|
+
for (const pair of workflow.allowed_transitions) {
|
|
535
|
+
const from = normalizeStatusToken(pair[0]);
|
|
536
|
+
const to = normalizeStatusToken(pair[1]);
|
|
537
|
+
if (from.length === 0 || to.length === 0) {
|
|
538
|
+
findings.push({
|
|
539
|
+
severity: "error",
|
|
540
|
+
code: "workflow_transition_malformed",
|
|
541
|
+
dimension: "workflows",
|
|
542
|
+
target: workflow.type,
|
|
543
|
+
message: `Workflow "${workflow.type}" has a transition with an empty status; the workflow resolver silently drops it.`
|
|
544
|
+
});
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
for (const token of [from, to]) {
|
|
548
|
+
if (BUILTIN_STATUS_TOKENS.has(token) || declaredStatuses.has(token) || reportedUnknownStatuses.has(token)) {
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
reportedUnknownStatuses.add(token);
|
|
552
|
+
findings.push({
|
|
553
|
+
severity: "warning",
|
|
554
|
+
code: "workflow_status_unknown",
|
|
555
|
+
dimension: "workflows",
|
|
556
|
+
target: token,
|
|
557
|
+
message: `Workflow "${workflow.type}" references status "${token}" which is neither a built-in status nor declared by this profile; transitions to or from it are unreachable.`
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function lintConfig(profile, findings) {
|
|
564
|
+
const seen = /* @__PURE__ */ new Set();
|
|
565
|
+
for (const entry of profile.config) {
|
|
566
|
+
const descriptor = resolveNestedSettingDescriptor(entry.key);
|
|
567
|
+
if (descriptor === void 0) {
|
|
568
|
+
findings.push({
|
|
569
|
+
severity: "error",
|
|
570
|
+
code: "config_key_unknown",
|
|
571
|
+
dimension: "config",
|
|
572
|
+
target: entry.key,
|
|
573
|
+
message: `Config knob "${entry.key}" is not a recognized setting; apply rejects it with a usage error.`
|
|
574
|
+
});
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
if (seen.has(descriptor.key)) {
|
|
578
|
+
findings.push({
|
|
579
|
+
severity: "error",
|
|
580
|
+
code: "config_duplicate",
|
|
581
|
+
dimension: "config",
|
|
582
|
+
target: descriptor.key,
|
|
583
|
+
message: `Config knob "${descriptor.key}" is set more than once; the later value silently overwrites the earlier one.`
|
|
584
|
+
});
|
|
585
|
+
} else {
|
|
586
|
+
seen.add(descriptor.key);
|
|
587
|
+
}
|
|
588
|
+
const parsed = parseNestedSettingValue(descriptor, entry.value);
|
|
589
|
+
if (!parsed.ok) {
|
|
590
|
+
findings.push({
|
|
591
|
+
severity: "error",
|
|
592
|
+
code: "config_value_invalid",
|
|
593
|
+
dimension: "config",
|
|
594
|
+
target: entry.key,
|
|
595
|
+
message: parsed.error.message
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
function lintTemplates(profile, declaredTypes, findings) {
|
|
601
|
+
for (const template of profile.templates) {
|
|
602
|
+
const typeOption = template.options.type;
|
|
603
|
+
if (typeof typeOption !== "string" || typeOption.trim().length === 0) {
|
|
604
|
+
continue;
|
|
605
|
+
}
|
|
606
|
+
const typeKey = typeOption.trim().toLowerCase();
|
|
607
|
+
if (!BUILTIN_TYPE_KEYS.has(typeKey) && !declaredTypes.has(typeKey)) {
|
|
608
|
+
findings.push({
|
|
609
|
+
severity: "warning",
|
|
610
|
+
code: "template_type_unknown",
|
|
611
|
+
dimension: "templates",
|
|
612
|
+
target: template.name,
|
|
613
|
+
message: `Template "${template.name}" creates type "${typeOption}" which is neither a built-in type nor declared by this profile.`
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function lintPackages(profile, findings) {
|
|
619
|
+
for (const [index, recommendation] of profile.packages.entries()) {
|
|
620
|
+
if (recommendation.spec.trim().length === 0) {
|
|
621
|
+
findings.push({
|
|
622
|
+
severity: "warning",
|
|
623
|
+
code: "package_spec_empty",
|
|
624
|
+
dimension: "packages",
|
|
625
|
+
target: `#${index}`,
|
|
626
|
+
message: "Package recommendation has an empty spec; it cannot be surfaced as an install hint."
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
function lintProjectProfile(profile) {
|
|
632
|
+
const findings = [];
|
|
633
|
+
lintProfileIdentity(profile, findings);
|
|
634
|
+
const declaredTypes = lintTypes(profile, findings);
|
|
635
|
+
const declaredStatuses = lintStatuses(profile, findings);
|
|
636
|
+
lintFields(profile, findings);
|
|
637
|
+
lintWorkflows(profile, declaredTypes, declaredStatuses, findings);
|
|
638
|
+
lintConfig(profile, findings);
|
|
639
|
+
lintTemplates(profile, declaredTypes, findings);
|
|
640
|
+
lintPackages(profile, findings);
|
|
641
|
+
const errorCount = findings.filter((finding) => finding.severity === "error").length;
|
|
642
|
+
const warningCount = findings.length - errorCount;
|
|
643
|
+
return {
|
|
644
|
+
profile: profile.name,
|
|
645
|
+
ok: errorCount === 0,
|
|
646
|
+
findings,
|
|
647
|
+
errorCount,
|
|
648
|
+
warningCount
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// dist/core/profile/profile-plan.js
|
|
653
|
+
!(function() {
|
|
654
|
+
try {
|
|
655
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
656
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4435194d-79d2-5bb2-ae11-3959340e495b");
|
|
657
|
+
} catch (e2) {
|
|
658
|
+
}
|
|
659
|
+
})();
|
|
660
|
+
function planSchemaComponent(initialFile, inputs, keyOf, serialize, upsert) {
|
|
661
|
+
let file = initialFile;
|
|
662
|
+
const changes = [];
|
|
663
|
+
for (const input of inputs) {
|
|
664
|
+
const before = serialize(file);
|
|
665
|
+
const result = upsert(file, input);
|
|
666
|
+
const after = serialize(result.file);
|
|
667
|
+
file = result.file;
|
|
668
|
+
const status = before === after ? "unchanged" : result.replaced ? "update" : "add";
|
|
669
|
+
changes.push({ key: keyOf(input), status });
|
|
670
|
+
}
|
|
671
|
+
return { file, changes, changed: changes.some((change) => change.status !== "unchanged") };
|
|
672
|
+
}
|
|
673
|
+
function canonicalTransitions(transitions) {
|
|
674
|
+
return JSON.stringify(transitions.map((pair) => pair.join("\0")).sort());
|
|
675
|
+
}
|
|
676
|
+
function planWorkflows(current, desired) {
|
|
677
|
+
const result = current.map((entry) => ({ ...entry }));
|
|
678
|
+
const changes = [];
|
|
679
|
+
for (const workflow of desired) {
|
|
680
|
+
const index = result.findIndex((entry) => entry.type === workflow.type);
|
|
681
|
+
const next = { type: workflow.type, allowed_transitions: workflow.allowed_transitions };
|
|
682
|
+
if (index < 0) {
|
|
683
|
+
result.push(next);
|
|
684
|
+
changes.push({ type: workflow.type, status: "add" });
|
|
685
|
+
} else if (canonicalTransitions(result[index].allowed_transitions) === canonicalTransitions(workflow.allowed_transitions)) {
|
|
686
|
+
changes.push({ type: workflow.type, status: "unchanged" });
|
|
687
|
+
} else {
|
|
688
|
+
result[index] = next;
|
|
689
|
+
changes.push({ type: workflow.type, status: "update" });
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return { changes, result, changed: changes.some((change) => change.status !== "unchanged") };
|
|
693
|
+
}
|
|
694
|
+
function planConfig(profile, settings) {
|
|
695
|
+
const changes = [];
|
|
696
|
+
for (const entry of profile.config) {
|
|
697
|
+
const descriptor = resolveNestedSettingDescriptor(entry.key);
|
|
698
|
+
if (descriptor === void 0) {
|
|
699
|
+
throw new Error(`Profile "${profile.name}" references unknown config key "${entry.key}".`);
|
|
700
|
+
}
|
|
701
|
+
const parsed = parseNestedSettingValue(descriptor, entry.value);
|
|
702
|
+
if (!parsed.ok) {
|
|
703
|
+
throw new Error(`Profile "${profile.name}" config ${entry.key}: ${parsed.error.message}`);
|
|
704
|
+
}
|
|
705
|
+
const current = readNestedSettingValue(settings, descriptor);
|
|
706
|
+
const status = current === null ? "add" : current === parsed.parsed.value ? "unchanged" : "update";
|
|
707
|
+
changes.push({ key: descriptor.key, path: descriptor.path, value: parsed.parsed.value, status });
|
|
708
|
+
}
|
|
709
|
+
return { changes, changed: changes.some((change) => change.status !== "unchanged") };
|
|
710
|
+
}
|
|
711
|
+
function canonicalTemplateOptions(options) {
|
|
712
|
+
const sorted = Object.entries(options).sort(([left], [right]) => left.localeCompare(right));
|
|
713
|
+
return JSON.stringify(sorted);
|
|
714
|
+
}
|
|
715
|
+
function planTemplates(profile, existing) {
|
|
716
|
+
const changes = [];
|
|
717
|
+
for (const template of profile.templates) {
|
|
718
|
+
const current = existing.get(template.name);
|
|
719
|
+
let status;
|
|
720
|
+
if (current === void 0) {
|
|
721
|
+
status = "add";
|
|
722
|
+
} else if (canonicalTemplateOptions(current) === canonicalTemplateOptions(template.options)) {
|
|
723
|
+
status = "unchanged";
|
|
724
|
+
} else {
|
|
725
|
+
status = "update";
|
|
726
|
+
}
|
|
727
|
+
changes.push({ name: template.name, options: template.options, status });
|
|
728
|
+
}
|
|
729
|
+
return { changes, changed: changes.some((change) => change.status !== "unchanged") };
|
|
730
|
+
}
|
|
731
|
+
function planProfileApplication(profile, current) {
|
|
732
|
+
const types = planSchemaComponent(parseItemTypesFile(current.typesRaw), profile.types, (input) => normalizeAddTypeInput(input).name, serializeItemTypesFile, (file, input) => upsertItemType(file, normalizeAddTypeInput(input)));
|
|
733
|
+
const statuses = planSchemaComponent(parseStatusDefsFile(current.statusesRaw), profile.statuses, (input) => normalizeAddStatusInput(input).id, serializeStatusDefsFile, (file, input) => upsertStatusDef(file, normalizeAddStatusInput(input)));
|
|
734
|
+
const fields = planSchemaComponent(parseFieldsFile(current.fieldsRaw), profile.fields, (input) => normalizeAddFieldInput(input).key, serializeFieldsFile, (file, input) => upsertField(file, normalizeAddFieldInput(input)));
|
|
735
|
+
const workflows = planWorkflows(current.workflows, profile.workflows);
|
|
736
|
+
const config = planConfig(profile, current.settings);
|
|
737
|
+
const templates = planTemplates(profile, current.templates);
|
|
738
|
+
const packages = profile.packages.map((recommendation) => ({
|
|
739
|
+
spec: recommendation.spec,
|
|
740
|
+
reason: recommendation.reason,
|
|
741
|
+
status: current.installedPackages.has(recommendation.spec) ? "installed" : "recommended"
|
|
742
|
+
}));
|
|
743
|
+
const changed = types.changed || statuses.changed || fields.changed || workflows.changed || config.changed || templates.changed;
|
|
744
|
+
return {
|
|
745
|
+
profile: { name: profile.name, title: profile.title, summary: profile.summary },
|
|
746
|
+
types,
|
|
747
|
+
statuses,
|
|
748
|
+
fields,
|
|
749
|
+
workflows,
|
|
750
|
+
config,
|
|
751
|
+
templates,
|
|
752
|
+
packages,
|
|
753
|
+
changed
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
// dist/cli/commands/templates.js
|
|
758
|
+
import fs from "node:fs/promises";
|
|
759
|
+
import path from "node:path";
|
|
760
|
+
!(function() {
|
|
761
|
+
try {
|
|
762
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
763
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4ac1eb25-6b3f-549e-b7f5-6b4c53071b9a");
|
|
764
|
+
} catch (e2) {
|
|
765
|
+
}
|
|
766
|
+
})();
|
|
767
|
+
var TEMPLATE_DIRECTORY_NAME = "templates";
|
|
768
|
+
var TEMPLATE_FILE_EXTENSION = ".json";
|
|
769
|
+
var TEMPLATE_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/;
|
|
770
|
+
var TEMPLATE_OPTION_REPEATABLE_KEYS = CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS.map((entry) => entry.target);
|
|
771
|
+
var TEMPLATE_OPTION_REPEATABLE_KEY_SET = new Set(TEMPLATE_OPTION_REPEATABLE_KEYS);
|
|
772
|
+
function normalizeTemplateName(rawName) {
|
|
773
|
+
const name = rawName.trim();
|
|
774
|
+
if (!TEMPLATE_NAME_PATTERN.test(name)) {
|
|
775
|
+
throw new PmCliError(`Invalid template name "${rawName}". Expected 1-64 characters matching [A-Za-z0-9][A-Za-z0-9._-]*.`, EXIT_CODE.USAGE);
|
|
776
|
+
}
|
|
777
|
+
return name;
|
|
778
|
+
}
|
|
779
|
+
function templatesDirectory(pmRoot) {
|
|
780
|
+
return path.join(pmRoot, TEMPLATE_DIRECTORY_NAME);
|
|
781
|
+
}
|
|
782
|
+
function templatePath(pmRoot, normalizedName) {
|
|
783
|
+
return path.join(templatesDirectory(pmRoot), `${normalizedName}${TEMPLATE_FILE_EXTENSION}`);
|
|
784
|
+
}
|
|
785
|
+
async function ensureTrackerInitialized(pmRoot) {
|
|
786
|
+
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
787
|
+
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
function sortTemplateOptions(options) {
|
|
791
|
+
return Object.fromEntries(Object.entries(options).sort(([left], [right]) => left.localeCompare(right)));
|
|
792
|
+
}
|
|
793
|
+
function extractTemplateOptions(rawOptions) {
|
|
794
|
+
const next = {};
|
|
795
|
+
for (const [key, value] of Object.entries(rawOptions)) {
|
|
796
|
+
if (value === void 0) {
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
if (TEMPLATE_OPTION_REPEATABLE_KEY_SET.has(key)) {
|
|
800
|
+
if (typeof value === "string") {
|
|
801
|
+
next[key] = [value];
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
if (!Array.isArray(value)) {
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
807
|
+
const values = value.filter((entry) => typeof entry === "string");
|
|
808
|
+
if (values.length > 0) {
|
|
809
|
+
next[key] = values;
|
|
810
|
+
}
|
|
811
|
+
continue;
|
|
812
|
+
}
|
|
813
|
+
if (typeof value === "string") {
|
|
814
|
+
next[key] = value;
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
if (Array.isArray(value) && value.every((entry) => typeof entry === "string")) {
|
|
818
|
+
next[key] = [...value];
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
return sortTemplateOptions(next);
|
|
822
|
+
}
|
|
823
|
+
function parseStoredTemplateOptions(rawOptions, templateName) {
|
|
824
|
+
if (typeof rawOptions !== "object" || rawOptions === null || Array.isArray(rawOptions)) {
|
|
825
|
+
throw new PmCliError(`Template "${templateName}" has invalid options payload.`, EXIT_CODE.GENERIC_FAILURE);
|
|
826
|
+
}
|
|
827
|
+
const optionsRecord = rawOptions;
|
|
828
|
+
const normalized = {};
|
|
829
|
+
for (const [key, value] of Object.entries(optionsRecord)) {
|
|
830
|
+
const normalizedKey = key.trim();
|
|
831
|
+
if (normalizedKey.length === 0) {
|
|
832
|
+
throw new PmCliError(`Template "${templateName}" contains an empty option key.`, EXIT_CODE.GENERIC_FAILURE);
|
|
833
|
+
}
|
|
834
|
+
if (typeof value === "string") {
|
|
835
|
+
normalized[normalizedKey] = value;
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
if (Array.isArray(value) && value.every((entry) => typeof entry === "string")) {
|
|
839
|
+
normalized[normalizedKey] = [...value];
|
|
840
|
+
continue;
|
|
841
|
+
}
|
|
842
|
+
throw new PmCliError(`Template "${templateName}" contains invalid value for option "${normalizedKey}".`, EXIT_CODE.GENERIC_FAILURE);
|
|
843
|
+
}
|
|
844
|
+
return sortTemplateOptions(normalized);
|
|
845
|
+
}
|
|
846
|
+
function parseStoredTemplateDocument(raw, normalizedName) {
|
|
847
|
+
let parsed;
|
|
848
|
+
try {
|
|
849
|
+
parsed = JSON.parse(raw);
|
|
850
|
+
} catch {
|
|
851
|
+
throw new PmCliError(`Template "${normalizedName}" contains invalid JSON.`, EXIT_CODE.GENERIC_FAILURE);
|
|
852
|
+
}
|
|
853
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
854
|
+
throw new PmCliError(`Template "${normalizedName}" has invalid document shape.`, EXIT_CODE.GENERIC_FAILURE);
|
|
855
|
+
}
|
|
856
|
+
const record = parsed;
|
|
857
|
+
const options = parseStoredTemplateOptions(record.options, normalizedName);
|
|
858
|
+
const now = nowIso();
|
|
859
|
+
return {
|
|
860
|
+
name: typeof record.name === "string" && record.name.trim().length > 0 ? record.name.trim() : normalizedName,
|
|
861
|
+
created_at: typeof record.created_at === "string" ? record.created_at : now,
|
|
862
|
+
updated_at: typeof record.updated_at === "string" ? record.updated_at : now,
|
|
863
|
+
options
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
async function readStoredTemplateDocument(pmRoot, normalizedName) {
|
|
867
|
+
const raw = await readFileIfExists(templatePath(pmRoot, normalizedName));
|
|
868
|
+
if (raw === null) {
|
|
869
|
+
throw new PmCliError(`Template "${normalizedName}" not found`, EXIT_CODE.NOT_FOUND);
|
|
870
|
+
}
|
|
871
|
+
return parseStoredTemplateDocument(raw, normalizedName);
|
|
872
|
+
}
|
|
873
|
+
async function runTemplatesSave(rawTemplateName, options, global2) {
|
|
874
|
+
const pmRoot = resolvePmRoot(process.cwd(), global2.path);
|
|
875
|
+
await ensureTrackerInitialized(pmRoot);
|
|
876
|
+
const normalizedName = normalizeTemplateName(rawTemplateName);
|
|
877
|
+
const nextOptions = extractTemplateOptions(options);
|
|
878
|
+
if (Object.keys(nextOptions).length === 0) {
|
|
879
|
+
throw new PmCliError("templates save requires at least one create option flag", EXIT_CODE.USAGE);
|
|
880
|
+
}
|
|
881
|
+
const now = nowIso();
|
|
882
|
+
const storedPath = templatePath(pmRoot, normalizedName);
|
|
883
|
+
let createdAt = now;
|
|
884
|
+
if (await pathExists(storedPath)) {
|
|
885
|
+
const existing = await readStoredTemplateDocument(pmRoot, normalizedName);
|
|
886
|
+
createdAt = existing.created_at;
|
|
887
|
+
}
|
|
888
|
+
const document = {
|
|
889
|
+
name: normalizedName,
|
|
890
|
+
created_at: createdAt,
|
|
891
|
+
updated_at: now,
|
|
892
|
+
options: nextOptions
|
|
893
|
+
};
|
|
894
|
+
await fs.mkdir(templatesDirectory(pmRoot), { recursive: true });
|
|
895
|
+
await writeFileAtomic(storedPath, `${JSON.stringify(document, null, 2)}
|
|
896
|
+
`);
|
|
897
|
+
return {
|
|
898
|
+
name: document.name,
|
|
899
|
+
created_at: document.created_at,
|
|
900
|
+
updated_at: document.updated_at,
|
|
901
|
+
path: storedPath,
|
|
902
|
+
options: document.options
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
// dist/cli/commands/profile.js
|
|
907
|
+
!(function() {
|
|
908
|
+
try {
|
|
909
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
910
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "89de9b29-6e60-5063-976c-36c91604d476");
|
|
911
|
+
} catch (e2) {
|
|
912
|
+
}
|
|
913
|
+
})();
|
|
914
|
+
var PROFILE_SUBCOMMANDS = ["list", "show", "apply", "lint"];
|
|
915
|
+
var PROFILE_TYPES_LOCK_ID = "schema-types";
|
|
916
|
+
var PROFILE_STATUSES_LOCK_ID = "schema-statuses";
|
|
917
|
+
var PROFILE_FIELDS_LOCK_ID = "schema-fields";
|
|
918
|
+
function collectExtensionProfileContributions() {
|
|
919
|
+
const registrations = getActiveExtensionRegistrations();
|
|
920
|
+
if (registrations === null) {
|
|
921
|
+
return [];
|
|
922
|
+
}
|
|
923
|
+
return registrations.profiles.map((entry) => ({ name: entry.name, profile: entry.profile }));
|
|
924
|
+
}
|
|
925
|
+
function runProfileList() {
|
|
926
|
+
const { profiles, warnings } = resolveProfileCatalog(collectExtensionProfileContributions());
|
|
927
|
+
return {
|
|
928
|
+
action: "list",
|
|
929
|
+
profiles: profiles.map((resolved) => ({
|
|
930
|
+
name: resolved.definition.name,
|
|
931
|
+
title: resolved.definition.title,
|
|
932
|
+
summary: resolved.definition.summary,
|
|
933
|
+
source: resolved.source,
|
|
934
|
+
...resolved.package !== void 0 ? { package: resolved.package } : {},
|
|
935
|
+
composition: describeProfileComposition(resolved.definition)
|
|
936
|
+
})),
|
|
937
|
+
warnings,
|
|
938
|
+
generated_at: nowIso()
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
function runProfileShow(name) {
|
|
942
|
+
let entry;
|
|
943
|
+
try {
|
|
944
|
+
entry = resolveProfileEntry(name, collectExtensionProfileContributions());
|
|
945
|
+
} catch (error) {
|
|
946
|
+
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
947
|
+
}
|
|
948
|
+
const { resolved } = entry;
|
|
949
|
+
return {
|
|
950
|
+
action: "show",
|
|
951
|
+
...describeProjectProfile(resolved.definition),
|
|
952
|
+
source: resolved.source,
|
|
953
|
+
...resolved.package !== void 0 ? { package: resolved.package } : {},
|
|
954
|
+
warnings: entry.warnings,
|
|
955
|
+
generated_at: nowIso()
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
function runProfileLint(name) {
|
|
959
|
+
let entry;
|
|
960
|
+
try {
|
|
961
|
+
entry = resolveProfileEntry(name, collectExtensionProfileContributions());
|
|
962
|
+
} catch (error) {
|
|
963
|
+
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
964
|
+
}
|
|
965
|
+
const { resolved } = entry;
|
|
966
|
+
const report = lintProjectProfile(resolved.definition);
|
|
967
|
+
return {
|
|
968
|
+
action: "lint",
|
|
969
|
+
name: resolved.definition.name,
|
|
970
|
+
title: resolved.definition.title,
|
|
971
|
+
source: resolved.source,
|
|
972
|
+
...resolved.package !== void 0 ? { package: resolved.package } : {},
|
|
973
|
+
ok: report.ok,
|
|
974
|
+
error_count: report.errorCount,
|
|
975
|
+
warning_count: report.warningCount,
|
|
976
|
+
findings: report.findings,
|
|
977
|
+
warnings: entry.warnings,
|
|
978
|
+
generated_at: nowIso()
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
function templateFilePath(pmRoot, name) {
|
|
982
|
+
return path2.join(pmRoot, "templates", `${name}.json`);
|
|
983
|
+
}
|
|
984
|
+
async function readStoredTemplateOptions(pmRoot, name) {
|
|
985
|
+
const raw = await readFileIfExists(templateFilePath(pmRoot, name));
|
|
986
|
+
if (raw === null) {
|
|
987
|
+
return void 0;
|
|
988
|
+
}
|
|
989
|
+
try {
|
|
990
|
+
const parsed = JSON.parse(raw);
|
|
991
|
+
if (parsed !== null && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
992
|
+
const options = parsed.options;
|
|
993
|
+
if (options !== null && typeof options === "object" && !Array.isArray(options)) {
|
|
994
|
+
return options;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
} catch {
|
|
998
|
+
}
|
|
999
|
+
return void 0;
|
|
1000
|
+
}
|
|
1001
|
+
async function loadProfileCurrentState(pmRoot, schema, settings, profile) {
|
|
1002
|
+
const templates = /* @__PURE__ */ new Map();
|
|
1003
|
+
for (const template of profile.templates) {
|
|
1004
|
+
const stored = await readStoredTemplateOptions(pmRoot, template.name);
|
|
1005
|
+
if (stored !== void 0) {
|
|
1006
|
+
templates.set(template.name, stored);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
return {
|
|
1010
|
+
typesRaw: await readFileIfExists(filePathForSchemaSection(pmRoot, schema.files.types, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.types)),
|
|
1011
|
+
statusesRaw: await readFileIfExists(filePathForSchemaSection(pmRoot, schema.files.statuses, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.statuses)),
|
|
1012
|
+
fieldsRaw: await readFileIfExists(filePathForSchemaSection(pmRoot, schema.files.fields, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.fields)),
|
|
1013
|
+
workflows: settings.schema.type_workflows ?? [],
|
|
1014
|
+
settings,
|
|
1015
|
+
templates,
|
|
1016
|
+
// Package recommendations are advisory: apply never installs and never
|
|
1017
|
+
// inspects install state, so every recommendation surfaces as "recommended".
|
|
1018
|
+
// The planner still supports an install-state set for SDK consumers that want
|
|
1019
|
+
// richer reporting.
|
|
1020
|
+
installedPackages: /* @__PURE__ */ new Set()
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
function dimensionFrom(changes) {
|
|
1024
|
+
const added = [];
|
|
1025
|
+
const updated = [];
|
|
1026
|
+
const unchanged = [];
|
|
1027
|
+
for (const change of changes) {
|
|
1028
|
+
(change.status === "add" ? added : change.status === "update" ? updated : unchanged).push(change.key);
|
|
1029
|
+
}
|
|
1030
|
+
return { added, updated, unchanged };
|
|
1031
|
+
}
|
|
1032
|
+
function buildApplyResult(profile, plan, applied, dryRun, warnings) {
|
|
1033
|
+
return {
|
|
1034
|
+
action: "apply",
|
|
1035
|
+
name: profile.name,
|
|
1036
|
+
title: profile.title,
|
|
1037
|
+
applied,
|
|
1038
|
+
dry_run: dryRun,
|
|
1039
|
+
changed: plan.changed,
|
|
1040
|
+
types: dimensionFrom(plan.types.changes),
|
|
1041
|
+
statuses: dimensionFrom(plan.statuses.changes),
|
|
1042
|
+
fields: dimensionFrom(plan.fields.changes),
|
|
1043
|
+
workflows: dimensionFrom(plan.workflows.changes.map((change) => ({ key: change.type, status: change.status }))),
|
|
1044
|
+
config: dimensionFrom(plan.config.changes),
|
|
1045
|
+
templates: dimensionFrom(plan.templates.changes.map((change) => ({ key: change.name, status: change.status }))),
|
|
1046
|
+
packages: plan.packages,
|
|
1047
|
+
warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),
|
|
1048
|
+
generated_at: nowIso()
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
async function runProfileApply(name, options, global2) {
|
|
1052
|
+
const pmRoot = resolvePmRoot(process.cwd(), global2.path);
|
|
1053
|
+
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
1054
|
+
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
1055
|
+
}
|
|
1056
|
+
let profile;
|
|
1057
|
+
const mergeWarnings = [];
|
|
1058
|
+
try {
|
|
1059
|
+
const entry = resolveProfileEntry(name, collectExtensionProfileContributions());
|
|
1060
|
+
profile = entry.resolved.definition;
|
|
1061
|
+
mergeWarnings.push(...entry.warnings);
|
|
1062
|
+
} catch (error) {
|
|
1063
|
+
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
1064
|
+
}
|
|
1065
|
+
const dryRun = options.dryRun === true;
|
|
1066
|
+
const settings = await readSettings(pmRoot);
|
|
1067
|
+
const schema = normalizeRuntimeSchemaSettings(settings.schema);
|
|
1068
|
+
if (dryRun) {
|
|
1069
|
+
const state = await loadProfileCurrentState(pmRoot, schema, settings, profile);
|
|
1070
|
+
const plan2 = planProfile(profile, state);
|
|
1071
|
+
return buildApplyResult(profile, plan2, false, true, [...mergeWarnings]);
|
|
1072
|
+
}
|
|
1073
|
+
const author = resolveAuthor(options.author, settings.author_default);
|
|
1074
|
+
const governance = resolveGovernanceKnobs(settings);
|
|
1075
|
+
const force = Boolean(options.force);
|
|
1076
|
+
const warnings = [...mergeWarnings];
|
|
1077
|
+
const releasers = [];
|
|
1078
|
+
const acquire = async (lockId) => {
|
|
1079
|
+
releasers.push(await acquireLock(pmRoot, lockId, settings.locks.ttl_seconds, author, force, governance.force_required_for_stale_lock));
|
|
1080
|
+
};
|
|
1081
|
+
let plan;
|
|
1082
|
+
try {
|
|
1083
|
+
await acquire(PROFILE_TYPES_LOCK_ID);
|
|
1084
|
+
await acquire(PROFILE_STATUSES_LOCK_ID);
|
|
1085
|
+
await acquire(PROFILE_FIELDS_LOCK_ID);
|
|
1086
|
+
const state = await loadProfileCurrentState(pmRoot, schema, settings, profile);
|
|
1087
|
+
plan = planProfile(profile, state);
|
|
1088
|
+
if (plan.types.changed) {
|
|
1089
|
+
const typesPath = filePathForSchemaSection(pmRoot, schema.files.types, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.types);
|
|
1090
|
+
await writeFileAtomic(typesPath, serializeItemTypesFile(plan.types.file));
|
|
1091
|
+
const stagedNames = new Set(profile.types.map((type) => normalizeAddTypeInput(type).name));
|
|
1092
|
+
const stagedDefinitions = plan.types.file.definitions.filter((definition) => stagedNames.has(definition.name));
|
|
1093
|
+
await ensureTypeFolderScaffold(pmRoot, stagedDefinitions, warnings, "profile:apply-type-folder");
|
|
1094
|
+
warnings.push(...await runActiveOnWriteHooks({ path: typesPath, scope: "project", op: "profile:apply-types" }));
|
|
1095
|
+
}
|
|
1096
|
+
if (plan.statuses.changed) {
|
|
1097
|
+
const statusesPath = filePathForSchemaSection(pmRoot, schema.files.statuses, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.statuses);
|
|
1098
|
+
await writeFileAtomic(statusesPath, serializeStatusDefsFile(plan.statuses.file));
|
|
1099
|
+
warnings.push(...await runActiveOnWriteHooks({ path: statusesPath, scope: "project", op: "profile:apply-statuses" }));
|
|
1100
|
+
}
|
|
1101
|
+
if (plan.fields.changed) {
|
|
1102
|
+
const fieldsPath = filePathForSchemaSection(pmRoot, schema.files.fields, DEFAULT_RUNTIME_SCHEMA_FILE_PATHS.fields);
|
|
1103
|
+
await writeFileAtomic(fieldsPath, serializeFieldsFile(plan.fields.file));
|
|
1104
|
+
warnings.push(...await runActiveOnWriteHooks({ path: fieldsPath, scope: "project", op: "profile:apply-fields" }));
|
|
1105
|
+
}
|
|
1106
|
+
if (plan.config.changed || plan.workflows.changed) {
|
|
1107
|
+
for (const change of plan.config.changes) {
|
|
1108
|
+
if (change.status === "unchanged") {
|
|
1109
|
+
continue;
|
|
1110
|
+
}
|
|
1111
|
+
const descriptor = resolveNestedSettingDescriptor(change.key);
|
|
1112
|
+
if (descriptor !== void 0) {
|
|
1113
|
+
writeNestedSettingValue(settings, descriptor, change.value);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
settings.schema.type_workflows = plan.workflows.result;
|
|
1117
|
+
await writeSettings(pmRoot, settings, "profile:apply-config");
|
|
1118
|
+
}
|
|
1119
|
+
for (const change of plan.templates.changes) {
|
|
1120
|
+
if (change.status === "unchanged") {
|
|
1121
|
+
continue;
|
|
1122
|
+
}
|
|
1123
|
+
await runTemplatesSave(change.name, { ...change.options }, global2);
|
|
1124
|
+
}
|
|
1125
|
+
} finally {
|
|
1126
|
+
for (const release of releasers.reverse()) {
|
|
1127
|
+
try {
|
|
1128
|
+
await release();
|
|
1129
|
+
} catch {
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
return buildApplyResult(profile, plan, plan.changed, false, warnings);
|
|
1134
|
+
}
|
|
1135
|
+
function planProfile(profile, state) {
|
|
1136
|
+
try {
|
|
1137
|
+
return planProfileApplication(profile, state);
|
|
1138
|
+
} catch (error) {
|
|
1139
|
+
throw new PmCliError(error instanceof Error ? error.message : String(error), EXIT_CODE.USAGE);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
function formatDimensionLine(label, dimension) {
|
|
1143
|
+
const segments = [];
|
|
1144
|
+
if (dimension.added.length > 0) {
|
|
1145
|
+
segments.push(`+${dimension.added.join(", ")}`);
|
|
1146
|
+
}
|
|
1147
|
+
if (dimension.updated.length > 0) {
|
|
1148
|
+
segments.push(`~${dimension.updated.join(", ")}`);
|
|
1149
|
+
}
|
|
1150
|
+
if (segments.length === 0) {
|
|
1151
|
+
return void 0;
|
|
1152
|
+
}
|
|
1153
|
+
return ` ${label}: ${segments.join(" ")}`;
|
|
1154
|
+
}
|
|
1155
|
+
function formatProfileListHuman(result) {
|
|
1156
|
+
const lines = ["Project profiles:"];
|
|
1157
|
+
for (const profile of result.profiles) {
|
|
1158
|
+
const origin = profile.source === "extension" ? ` [${profile.package ?? "extension"}]` : "";
|
|
1159
|
+
lines.push(` ${profile.name} \u2014 ${profile.title}: ${profile.summary}${origin}`);
|
|
1160
|
+
}
|
|
1161
|
+
for (const warning of result.warnings) {
|
|
1162
|
+
lines.push(` warning: ${warning}`);
|
|
1163
|
+
}
|
|
1164
|
+
return lines.join("\n");
|
|
1165
|
+
}
|
|
1166
|
+
function formatProfileShowHuman(result) {
|
|
1167
|
+
const origin = result.source === "extension" ? ` [${result.package ?? "extension"}]` : "";
|
|
1168
|
+
const lines = [`${result.name} \u2014 ${result.title}${origin}`, result.summary, ""];
|
|
1169
|
+
lines.push(`types: ${result.types.join(", ") || "(none)"}`);
|
|
1170
|
+
lines.push(`statuses: ${result.statuses.join(", ") || "(none)"}`);
|
|
1171
|
+
lines.push(`fields: ${result.fields.join(", ") || "(none)"}`);
|
|
1172
|
+
lines.push(`workflows: ${result.workflows.join(", ") || "(none)"}`);
|
|
1173
|
+
lines.push(`config: ${result.config.join(", ") || "(none)"}`);
|
|
1174
|
+
lines.push(`templates: ${result.templates.join(", ") || "(none)"}`);
|
|
1175
|
+
lines.push(`packages: ${result.packages.map((pkg) => pkg.spec).join(", ") || "(none)"}`);
|
|
1176
|
+
for (const warning of result.warnings) {
|
|
1177
|
+
lines.push(`warning: ${warning}`);
|
|
1178
|
+
}
|
|
1179
|
+
return lines.join("\n");
|
|
1180
|
+
}
|
|
1181
|
+
function formatProfileLintHuman(result) {
|
|
1182
|
+
const origin = result.source === "extension" ? ` [${result.package ?? "extension"}]` : "";
|
|
1183
|
+
const totalWarningCount = result.warning_count + result.warnings.length;
|
|
1184
|
+
const verdict = result.ok ? `Profile ${result.name}${origin}: ok (${totalWarningCount} warning${totalWarningCount === 1 ? "" : "s"})` : `Profile ${result.name}${origin}: ${result.error_count} error${result.error_count === 1 ? "" : "s"}, ${totalWarningCount} warning${totalWarningCount === 1 ? "" : "s"}`;
|
|
1185
|
+
const lines = [verdict];
|
|
1186
|
+
for (const finding of result.findings) {
|
|
1187
|
+
const target = finding.target !== void 0 ? ` (${finding.target})` : "";
|
|
1188
|
+
lines.push(` ${finding.severity} [${finding.code}] ${finding.dimension}${target}: ${finding.message}`);
|
|
1189
|
+
}
|
|
1190
|
+
for (const warning of result.warnings) {
|
|
1191
|
+
lines.push(` warning: ${warning}`);
|
|
1192
|
+
}
|
|
1193
|
+
return lines.join("\n");
|
|
1194
|
+
}
|
|
1195
|
+
function formatProfileApplyHuman(result) {
|
|
1196
|
+
const mode = result.dry_run ? "dry-run" : result.applied ? "applied" : "no changes";
|
|
1197
|
+
const lines = [`Profile ${result.name} (${mode})`];
|
|
1198
|
+
if (!result.changed) {
|
|
1199
|
+
lines.push(" already up to date");
|
|
1200
|
+
} else {
|
|
1201
|
+
for (const [label, dimension] of [
|
|
1202
|
+
["types", result.types],
|
|
1203
|
+
["statuses", result.statuses],
|
|
1204
|
+
["fields", result.fields],
|
|
1205
|
+
["workflows", result.workflows],
|
|
1206
|
+
["config", result.config],
|
|
1207
|
+
["templates", result.templates]
|
|
1208
|
+
]) {
|
|
1209
|
+
const line = formatDimensionLine(label, dimension);
|
|
1210
|
+
if (line !== void 0) {
|
|
1211
|
+
lines.push(line);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
const recommended = result.packages.filter((pkg) => pkg.status === "recommended");
|
|
1216
|
+
if (recommended.length > 0) {
|
|
1217
|
+
lines.push(` recommended packages: ${recommended.map((pkg) => pkg.spec).join(", ")}`);
|
|
1218
|
+
}
|
|
1219
|
+
for (const warning of result.warnings) {
|
|
1220
|
+
lines.push(` warning: ${warning}`);
|
|
1221
|
+
}
|
|
1222
|
+
return lines.join("\n");
|
|
1223
|
+
}
|
|
1224
|
+
export {
|
|
1225
|
+
PROFILE_SUBCOMMANDS,
|
|
1226
|
+
formatProfileApplyHuman,
|
|
1227
|
+
formatProfileLintHuman,
|
|
1228
|
+
formatProfileListHuman,
|
|
1229
|
+
formatProfileShowHuman,
|
|
1230
|
+
runProfileApply,
|
|
1231
|
+
runProfileLint,
|
|
1232
|
+
runProfileList,
|
|
1233
|
+
runProfileShow
|
|
1234
|
+
};
|
|
1235
|
+
//# sourceMappingURL=profile-UPZGCDOG.js.map
|