@maycombhq/atticus 0.0.0-stage → 2.0.0-beta.2
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/LICENSE +177 -0
- package/README.md +17 -2
- package/THIRD-PARTY-LICENSES.txt +2607 -0
- package/dist/bin.js +47 -0
- package/dist/chunk-23W7VWKR.js +2609 -0
- package/dist/chunk-27NKUS3X.js +4330 -0
- package/dist/chunk-2ANOROX3.js +2522 -0
- package/dist/chunk-2BF2EYJV.js +174 -0
- package/dist/chunk-2BFCZ3RK.js +315 -0
- package/dist/chunk-2DIQQJCB.js +378 -0
- package/dist/chunk-2RMYG36Q.js +1227 -0
- package/dist/chunk-2VHF7OXM.js +55 -0
- package/dist/chunk-3ALD2W2A.js +95 -0
- package/dist/chunk-3C7EYRFZ.js +41 -0
- package/dist/chunk-3G4YI4ZU.js +16 -0
- package/dist/chunk-3HI6Z55Y.js +5949 -0
- package/dist/chunk-3USYZGRF.js +324 -0
- package/dist/chunk-42EVSKME.js +37 -0
- package/dist/chunk-4AK7IBVP.js +915 -0
- package/dist/chunk-4BKGMUIK.js +53 -0
- package/dist/chunk-4BN53TG3.js +343 -0
- package/dist/chunk-4NDAAFQT.js +103 -0
- package/dist/chunk-4Q3NN7VF.js +32 -0
- package/dist/chunk-4RS5KZQD.js +25 -0
- package/dist/chunk-4SKZDI62.js +22 -0
- package/dist/chunk-4WBVUHXN.js +69 -0
- package/dist/chunk-5GDRCDQB.js +32 -0
- package/dist/chunk-5GGOLAKC.js +856 -0
- package/dist/chunk-5KLGBXG5.js +48 -0
- package/dist/chunk-5WG5YP4T.js +34 -0
- package/dist/chunk-64EQYWCA.js +180 -0
- package/dist/chunk-652QWTLZ.js +242 -0
- package/dist/chunk-65NYPGRC.js +766 -0
- package/dist/chunk-66YVAGGM.js +46 -0
- package/dist/chunk-6BNC6EQ4.js +41 -0
- package/dist/chunk-6BVONWJ7.js +50 -0
- package/dist/chunk-6D2CQ5II.js +41 -0
- package/dist/chunk-6IU67AEK.js +325 -0
- package/dist/chunk-6J5OKA4Y.js +49 -0
- package/dist/chunk-6JCPI55B.js +92 -0
- package/dist/chunk-6JUBZBMW.js +56 -0
- package/dist/chunk-6M5NK3K3.js +415 -0
- package/dist/chunk-6QSERWXH.js +53 -0
- package/dist/chunk-6TACQN3N.js +41 -0
- package/dist/chunk-76WKMA4J.js +14 -0
- package/dist/chunk-7AVHLZGD.js +45 -0
- package/dist/chunk-7EFILTCI.js +67 -0
- package/dist/chunk-7EKXJZ2Y.js +2902 -0
- package/dist/chunk-7EOBHUMC.js +133 -0
- package/dist/chunk-7FBGJFEE.js +66 -0
- package/dist/chunk-7JUKDRSZ.js +1726 -0
- package/dist/chunk-7SW2QWLU.js +212 -0
- package/dist/chunk-7WD63HU2.js +143 -0
- package/dist/chunk-7ZUIMTOU.js +108 -0
- package/dist/chunk-A3GY6SOA.js +95 -0
- package/dist/chunk-A7UPUQFY.js +2356 -0
- package/dist/chunk-AA6YULYB.js +376 -0
- package/dist/chunk-ABWHYWNI.js +101 -0
- package/dist/chunk-AIOQPLA5.js +540 -0
- package/dist/chunk-AVJDSJ2F.js +18 -0
- package/dist/chunk-B2WLAWNJ.js +374 -0
- package/dist/chunk-BKVWTZ6A.js +211 -0
- package/dist/chunk-BOHJZTEQ.js +1991 -0
- package/dist/chunk-BWZ77RQT.js +25 -0
- package/dist/chunk-C6EKFH7J.js +169 -0
- package/dist/chunk-CAQZUNOH.js +1150 -0
- package/dist/chunk-CEXSU4S6.js +1217 -0
- package/dist/chunk-CKSITVS4.js +16101 -0
- package/dist/chunk-CNUKCS2T.js +2741 -0
- package/dist/chunk-CPA6HPVR.js +3206 -0
- package/dist/chunk-CR3MTH32.js +207 -0
- package/dist/chunk-CSZ4C5N6.js +307 -0
- package/dist/chunk-D3PO4DOZ.js +261 -0
- package/dist/chunk-D46WUV3T.js +33 -0
- package/dist/chunk-DE76JROX.js +80 -0
- package/dist/chunk-DFBCSHVT.js +69 -0
- package/dist/chunk-DHPACDG7.js +104 -0
- package/dist/chunk-DKJA76CJ.js +113 -0
- package/dist/chunk-DPUYDDQG.js +164 -0
- package/dist/chunk-DPZHZQKE.js +285 -0
- package/dist/chunk-E36QOJMD.js +47 -0
- package/dist/chunk-EADP3PEN.js +450 -0
- package/dist/chunk-EBEW3XXQ.js +166 -0
- package/dist/chunk-EDS2L2LD.js +106 -0
- package/dist/chunk-EFHQ3TWP.js +637 -0
- package/dist/chunk-EPTBZ3GP.js +101 -0
- package/dist/chunk-EYWIDJFU.js +130 -0
- package/dist/chunk-F7HYOUFF.js +287 -0
- package/dist/chunk-FHH4I4ZV.js +128 -0
- package/dist/chunk-FITWGOJ2.js +131 -0
- package/dist/chunk-FQXYPF7E.js +147 -0
- package/dist/chunk-G2B4ZQGH.js +240 -0
- package/dist/chunk-GBRFVT63.js +45 -0
- package/dist/chunk-GDLULHTC.js +2919 -0
- package/dist/chunk-GLUX4EEP.js +583 -0
- package/dist/chunk-GQ4N4WKF.js +1142 -0
- package/dist/chunk-GT4I4ZWM.js +38 -0
- package/dist/chunk-HFQCFSJR.js +60 -0
- package/dist/chunk-HITVBIJS.js +1247 -0
- package/dist/chunk-HLJAXMM4.js +233 -0
- package/dist/chunk-HVUPKCGJ.js +162 -0
- package/dist/chunk-I3E7CX4H.js +155 -0
- package/dist/chunk-I4JRCD6M.js +184 -0
- package/dist/chunk-ICY36XCH.js +34 -0
- package/dist/chunk-IHMLFRVV.js +228 -0
- package/dist/chunk-IPKHE5D6.js +1963 -0
- package/dist/chunk-J4K3KVLD.js +131 -0
- package/dist/chunk-JBTK5OP2.js +55 -0
- package/dist/chunk-JCZIKA4C.js +163 -0
- package/dist/chunk-JGZCG5VM.js +189 -0
- package/dist/chunk-JIITQXFB.js +4087 -0
- package/dist/chunk-JMSCMUCA.js +271 -0
- package/dist/chunk-JZU3H6UQ.js +54 -0
- package/dist/chunk-K65BJIMT.js +49 -0
- package/dist/chunk-KEM4SDDP.js +3898 -0
- package/dist/chunk-KQDZXGNR.js +14 -0
- package/dist/chunk-L24C55VN.js +7923 -0
- package/dist/chunk-L6SGQIR3.js +471 -0
- package/dist/chunk-LR3R6Z2A.js +400 -0
- package/dist/chunk-M766ZJ6W.js +119 -0
- package/dist/chunk-MC3H7736.js +19910 -0
- package/dist/chunk-MGYZM27B.js +205 -0
- package/dist/chunk-MMOSZPWJ.js +273 -0
- package/dist/chunk-MVZVGYXH.js +1611 -0
- package/dist/chunk-N7IXEHK3.js +549 -0
- package/dist/chunk-NE2W3OO7.js +230 -0
- package/dist/chunk-NN2ZQEB4.js +38 -0
- package/dist/chunk-NXFPS2LR.js +182 -0
- package/dist/chunk-O3WI5KWW.js +31 -0
- package/dist/chunk-OLQJTJJU.js +76 -0
- package/dist/chunk-ONLS5QA5.js +102 -0
- package/dist/chunk-OT2O76OS.js +1496 -0
- package/dist/chunk-PAMPPUR6.js +4500 -0
- package/dist/chunk-PCOCACY3.js +385 -0
- package/dist/chunk-PCVDV3UZ.js +430 -0
- package/dist/chunk-PRPPGYZG.js +104 -0
- package/dist/chunk-Q4D5X7QB.js +264 -0
- package/dist/chunk-Q5AMFEWD.js +119 -0
- package/dist/chunk-QRAOANID.js +214 -0
- package/dist/chunk-QSXK2RGH.js +688 -0
- package/dist/chunk-QZSX3F7C.js +389 -0
- package/dist/chunk-R6RY4Q5T.js +51 -0
- package/dist/chunk-R6XF6UR3.js +149 -0
- package/dist/chunk-R77KLRB3.js +166 -0
- package/dist/chunk-RRTKKSLQ.js +251 -0
- package/dist/chunk-RTEYOSJY.js +29 -0
- package/dist/chunk-RUVFXE2L.js +666 -0
- package/dist/chunk-RVH5SUW5.js +69 -0
- package/dist/chunk-RZPYKDWS.js +26 -0
- package/dist/chunk-S2A7YC3Q.js +41433 -0
- package/dist/chunk-S3QNRWYR.js +25 -0
- package/dist/chunk-SJRGMG6A.js +174 -0
- package/dist/chunk-SP2I63OO.js +252 -0
- package/dist/chunk-T2UYZSCQ.js +545 -0
- package/dist/chunk-T6AIP7H5.js +3851 -0
- package/dist/chunk-T6XQL73F.js +94 -0
- package/dist/chunk-TANFV3MZ.js +531 -0
- package/dist/chunk-TDD55CJH.js +119 -0
- package/dist/chunk-TV45EUGM.js +51 -0
- package/dist/chunk-TXLH6WHQ.js +2078 -0
- package/dist/chunk-TYAID7B7.js +408 -0
- package/dist/chunk-UBBC2XSG.js +873 -0
- package/dist/chunk-UGLN7QHV.js +27 -0
- package/dist/chunk-UNM6ZOKP.js +878 -0
- package/dist/chunk-V2YTAIQO.js +1075 -0
- package/dist/chunk-VN3DP4LQ.js +43 -0
- package/dist/chunk-VOGCSYOI.js +16 -0
- package/dist/chunk-VYDBJ73M.js +32 -0
- package/dist/chunk-W3BQAZ3Q.js +34 -0
- package/dist/chunk-W5BVQF44.js +36 -0
- package/dist/chunk-WVPJSRRJ.js +52 -0
- package/dist/chunk-WY6PP6AA.js +53 -0
- package/dist/chunk-XAKWMCXI.js +285 -0
- package/dist/chunk-XPCM366L.js +70 -0
- package/dist/chunk-XPTOBS2D.js +48 -0
- package/dist/chunk-XY3P7JW7.js +3479 -0
- package/dist/chunk-XZRON6IV.js +131 -0
- package/dist/chunk-YEDDOYSC.js +27809 -0
- package/dist/chunk-YISXLPHN.js +496 -0
- package/dist/chunk-YMZ3TNYB.js +18 -0
- package/dist/chunk-YY6ZQQBP.js +203 -0
- package/dist/chunk-YYQN46FY.js +334 -0
- package/dist/chunk-Z6LF7HQN.js +22 -0
- package/dist/chunk-ZCJDOK2S.js +116 -0
- package/dist/chunk-ZDPAS56H.js +76 -0
- package/dist/chunk-ZMAINWBW.js +18 -0
- package/dist/chunk-ZMFPW66A.js +22 -0
- package/dist/chunk-ZNCEKR4J.js +296 -0
- package/dist/chunk-ZVM6AKKM.js +47 -0
- package/dist/files.json +1888 -0
- package/dist/fixtures/forge/README.md +19 -0
- package/dist/fixtures/forge/expected/discrepancies.yaml +54 -0
- package/dist/fixtures/forge/expected/inputs.yaml +38 -0
- package/dist/fixtures/forge/expected/scan.yaml +342 -0
- package/dist/fixtures/forge/inputs/diagrams/forge-context.drawio +23 -0
- package/dist/fixtures/forge/inputs/partner-specs/northwind-pay-openapi.yaml +11 -0
- package/dist/fixtures/forge/inputs/tickets/ado-stories.json +4 -0
- package/dist/fixtures/forge/inputs/tickets/closed-service-requests.json +5 -0
- package/dist/fixtures/forge/inputs/wiki/integration-patterns.md +11 -0
- package/dist/fixtures/forge/inputs/wiki/ledger-solution-spec.md +9 -0
- package/dist/fixtures/forge/inputs/wiki/snow-firewall-request.md +4 -0
- package/dist/fixtures/forge/metarepo/judgments/reaches/84af5b6af24f7ca8c23013f3.yaml +17 -0
- package/dist/fixtures/forge/metarepo/judgments/reaches/c3917555edebddce8cecb647.yaml +17 -0
- package/dist/fixtures/forge/metarepo/judgments/reaches/c5fafd6601f8ca9e34e0bbd0.yaml +17 -0
- package/dist/fixtures/forge/metarepo/org-pack/agents/architecture-critic.yaml +9 -0
- package/dist/fixtures/forge/metarepo/org-pack/agents/story-writer.yaml +10 -0
- package/dist/fixtures/forge/metarepo/org-pack/checklists/architecture.yaml +115 -0
- package/dist/fixtures/forge/metarepo/org-pack/dialects/forge.yaml +111 -0
- package/dist/fixtures/forge/metarepo/org-pack/gates.yaml +22 -0
- package/dist/fixtures/forge/metarepo/org-pack/pack.yaml +11 -0
- package/dist/fixtures/forge/metarepo/org-pack/patterns/A.EB.PUB.yaml +12 -0
- package/dist/fixtures/forge/metarepo/org-pack/patterns/D.JDBC.yaml +12 -0
- package/dist/fixtures/forge/metarepo/org-pack/patterns/S.DIR.BFF.yaml +12 -0
- package/dist/fixtures/forge/metarepo/org-pack/patterns/S.GW.SOR.yaml +13 -0
- package/dist/fixtures/forge/metarepo/org-pack/patterns/S.GW.VND.yaml +14 -0
- package/dist/fixtures/forge/metarepo/org-pack/process/change-templates/feature.md +37 -0
- package/dist/fixtures/forge/metarepo/org-pack/process/skills/add-forge-endpoint/SKILL.md +17 -0
- package/dist/fixtures/forge/metarepo/org-pack/process/snow/firewall-rule.yaml +14 -0
- package/dist/fixtures/forge/metarepo/org-pack/process/snow/gateway-route.yaml +13 -0
- package/dist/fixtures/forge/metarepo/org-pack/profiles/forge/profile.yaml +12 -0
- package/dist/fixtures/forge/metarepo/org-pack/profiles/forge/repos.manifest.yaml +44 -0
- package/dist/fixtures/forge/metarepo/org-pack/roles.yaml +14 -0
- package/dist/fixtures/forge/metarepo/org-pack/runtime.yaml +14 -0
- package/dist/fixtures/forge/metarepo/org-pack/sources.yaml +3 -0
- package/dist/fixtures/forge/repos/forge-events/topics/payments.initiated.yaml +4 -0
- package/dist/fixtures/forge/repos/forge-events/topics/transfers.completed.yaml +4 -0
- package/dist/fixtures/forge/repos/forge-gateway/proxies/ledger-v1/apiproxy/ledger-v1.xml +3 -0
- package/dist/fixtures/forge/repos/forge-gateway/proxies/ledger-v1/apiproxy/policies/SpikeArrest.xml +3 -0
- package/dist/fixtures/forge/repos/forge-gateway/proxies/ledger-v1/apiproxy/policies/VerifyOAuth.xml +4 -0
- package/dist/fixtures/forge/repos/forge-gateway/proxies/ledger-v1/apiproxy/proxies/default.xml +14 -0
- package/dist/fixtures/forge/repos/forge-gateway/proxies/ledger-v1/apiproxy/targets/ledger.xml +5 -0
- package/dist/fixtures/forge/repos/forge-infra/alerts/ledger-api.yaml +5 -0
- package/dist/fixtures/forge/repos/forge-infra/k8s/ledger-api.yaml +15 -0
- package/dist/fixtures/forge/repos/forge-infra/k8s/portal-bff.yaml +7 -0
- package/dist/fixtures/forge/repos/forge-infra/terraform/ledger-db.tf +9 -0
- package/dist/fixtures/forge/repos/forge-ledger/api/ledger-openapi.yaml +31 -0
- package/dist/fixtures/forge/repos/forge-ledger/forge.yaml +4 -0
- package/dist/fixtures/forge/repos/forge-ledger/src/main/java/forge/ledger/LedgerEndpoints.java +13 -0
- package/dist/fixtures/forge/repos/forge-ledger/src/main/java/forge/ledger/LedgerEvents.java +11 -0
- package/dist/fixtures/forge/repos/forge-ledger/src/main/java/forge/ledger/NorthwindClient.java +10 -0
- package/dist/fixtures/forge/repos/forge-ledger/src/main/resources/application.yml +3 -0
- package/dist/fixtures/forge/repos/forge-ledger/src/main/resources/db/migration/V1__create_account.sql +5 -0
- package/dist/fixtures/forge/repos/forge-ledger/src/main/resources/db/migration/V2__create_entry.sql +7 -0
- package/dist/fixtures/forge/repos/forge-portal-bff/pom.xml +1 -0
- package/dist/fixtures/forge/repos/forge-portal-bff/src/main/java/forge/portal/AuditPublisher.java +12 -0
- package/dist/fixtures/forge/repos/forge-portal-bff/src/main/java/forge/portal/BalanceController.java +16 -0
- package/dist/fixtures/forge/repos/forge-portal-bff/src/main/java/forge/portal/LedgerClient.java +13 -0
- package/dist/fixtures/forge/repos/forge-portal-bff/src/main/java/forge/portal/PaymentEvents.java +13 -0
- package/dist/fixtures/forge/repos/forge-portal-bff/src/main/resources/application.yml +8 -0
- package/dist/fixtures/forge/repos/forge-portal-ui/package.json +1 -0
- package/dist/fixtures/forge/repos/forge-portal-ui/src/api/balance.ts +5 -0
- package/dist/fixtures/forge/repos/forge-reports-job/src/main/java/forge/reports/DailyEntriesJob.java +19 -0
- package/dist/fixtures/forge/repos/forge-reports-job/src/main/resources/application.yml +3 -0
- package/dist/fixtures/forge-change/README.md +41 -0
- package/dist/fixtures/forge-change/expected/findings.yaml +301 -0
- package/dist/fixtures/forge-change/expected/stories.yaml +101 -0
- package/dist/fixtures/forge-change/judgments/personal-data/0b5f3dbf5257a22275d8c74b.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/2759a66770134c417440bf2d.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/31b1ea2f14d0737f1aca79fd.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/49afd70c08228e65ad6ca1ed.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/761cabcb8a39f5e5866d2dd6.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/adae902b90cc8ffa0c765145.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/ba11bb933105ec9493e065dd.yaml +18 -0
- package/dist/fixtures/forge-change/judgments/personal-data/bdbcd1cdac3021c68063c3e7.yaml +18 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/brief.md +35 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/change.yaml +120 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/data.md +18 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/design.md +29 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/interfaces.md +17 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/mappings.md +26 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/proposal.md +35 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/snow.md +12 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/specs/transfer-limits/spec.md +19 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/stories/s1-refuse-over-limit.md +17 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/stories/s2-show-remaining.md +16 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/stories/s3-audit-refusals.md +18 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/stories/s4-velocity-check.md +16 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/stories.md +8 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/tasks.md +12 -0
- package/dist/fixtures/forge-change/openspec/changes/add-transfer-limit/ux.md +7 -0
- package/dist/fixtures/forge-change/org-pack/agents/code-and-test-critic.yaml +13 -0
- package/dist/fixtures/forge-change/org-pack/agents/complete-critic.yaml +12 -0
- package/dist/fixtures/forge-change/org-pack/agents/safe-critic.yaml +12 -0
- package/dist/fixtures/forge-change/org-pack/agents/ship-critic.yaml +11 -0
- package/dist/fixtures/forge-change/org-pack/agents/true-critic.yaml +11 -0
- package/dist/fixtures/forge-change/org-pack/checklists/review.yaml +54 -0
- package/dist/fixtures/forge-change/org-pack/gates.yaml +25 -0
- package/dist/fixtures/forge-change/org-pack/teams/team-ledger/checklists/ledger-team.yaml +227 -0
- package/dist/fixtures/forge-change/recordings/complete-critic/2ad84f84bf39c1d5412697e69fe23034d6983ec45a00314bf0975e627589a3c5.json +12 -0
- package/dist/fixtures/forge-change/recordings/complete-critic/417c98d8e54a4387d0fd93441c49f44c2868958739070d855c1dce0c41e24db3.json +12 -0
- package/dist/fixtures/forge-change/recordings/complete-critic/50203ee22e9cb3ef047295edb6538fe7d5695e1e4b139f3c929013dc6ce47021.json +12 -0
- package/dist/fixtures/forge-change/recordings/complete-critic/89f18d67f5d9c325bf35e2a9e020f9ddb6ee13b8523315037f0905cc57c040b1.json +12 -0
- package/dist/fixtures/forge-change/recordings/complete-critic/b4097867d26ae8eadc8b9efa8cdd86897013358035f0b40086c299a59c4ba121.json +12 -0
- package/dist/fixtures/forge-change/recordings/safe-critic/302d06f49664dd67ad2e21ab9cf74c1b0f7d3f750709c6ed8eff2b70983274e2.json +12 -0
- package/dist/fixtures/forge-change/recordings/safe-critic/32f1049c9a5ab4a759543290db4644ec6e221cc45fdfdcf06193837c6a8ce0b9.json +12 -0
- package/dist/fixtures/forge-change/recordings/safe-critic/4e4a84bfc04b9f26ca4250319a879901ff7a1c081c71e46a117675fee05026b0.json +12 -0
- package/dist/fixtures/forge-change/recordings/safe-critic/604af0fcdd6df6b76208fa88305fdc15c37606c2a4d1ae816477e46ac8c2dd04.json +12 -0
- package/dist/fixtures/forge-change/recordings/safe-critic/f0bf50af11f14c50d07904f0dffe1c8c20fb0cd89770645a8824c1d30a443955.json +12 -0
- package/dist/fixtures/forge-change/recordings/ship-critic/350954b58833b2c04880c67db45a1b328b7fd541d9f0d943b63905b8875488a6.json +12 -0
- package/dist/fixtures/forge-change/recordings/ship-critic/4af95c6c96a206777cec9de1f9c2d8c55a36ddc9b8db2f81d6eb83217b835efa.json +12 -0
- package/dist/fixtures/forge-change/recordings/ship-critic/76c34522a49cf7587a4e5689a5030d384603fa780b8aba97d27815cbc829683e.json +12 -0
- package/dist/fixtures/forge-change/recordings/ship-critic/a3b2cd1ace48587e5994333db03b34c3a0f9dec4f1932f1730ddfb687f6918c8.json +12 -0
- package/dist/fixtures/forge-change/recordings/ship-critic/de288a4fa64d0fc20890f9a787080ce6eac5203b7b9b72d884df11e8cf111835.json +12 -0
- package/dist/fixtures/forge-change/recordings/story-writer/1ddb00eac2aaf91a5ec5d9dfd220116be9f75aec6546a4a3a3b050ed89af2864.json +12 -0
- package/dist/packages/assistant-kit/frameworks-kit/README.md +86 -0
- package/dist/packages/assistant-kit/frameworks-kit/checklist.md +11 -0
- package/dist/packages/assistant-kit/frameworks-kit/examples/tide-lantern.yaml +56 -0
- package/dist/packages/assistant-kit/frameworks-kit/examples/tide-platform.yaml +43 -0
- package/dist/packages/assistant-kit/frameworks-kit/prompts/write-framework-model.md +12 -0
- package/dist/packages/assistant-kit/kit/README.md +98 -0
- package/dist/packages/assistant-kit/kit/c2-reference.md +334 -0
- package/dist/packages/assistant-kit/kit/checklist.md +39 -0
- package/dist/packages/assistant-kit/kit/examples/house-http-client.yaml +102 -0
- package/dist/packages/assistant-kit/kit/examples/tide-apigee.yaml +56 -0
- package/dist/packages/assistant-kit/kit/examples/tide-apim.yaml +32 -0
- package/dist/packages/assistant-kit/kit/examples/tide-kong.yaml +44 -0
- package/dist/packages/assistant-kit/kit/prompts/write-dialect.md +34 -0
- package/dist/packages/assistant-kit/kit/worked-example.md +198 -0
- package/dist/packages/conformance/sample/README.md +4 -0
- package/dist/packages/conformance/sample/inputs/notes.md +3 -0
- package/dist/packages/conformance/sample/inputs/systems.csv +3 -0
- package/dist/packages/conformance/sample/repo/api/greeter.proto +6 -0
- package/dist/packages/conformance/sample/repo/api/openapi.yaml +10 -0
- package/dist/packages/conformance/sample/repo/api/schema.graphql +3 -0
- package/dist/packages/conformance/sample/repo/db/V1__create_greeting.sql +4 -0
- package/dist/packages/conformance/sample/repo/package.json +7 -0
- package/dist/packages/conformance/sample/repo/src/main/java/sample/HelloController.java +10 -0
- package/dist/packages/conformance/sample/repo/web/app.ts +4 -0
- package/dist/packages/evals/datasets/critic-lenses.yaml +62 -0
- package/dist/packages/evals/datasets/dialect-writer.yaml +14 -0
- package/dist/packages/evals/datasets/feature-namer.yaml +34 -0
- package/dist/packages/evals/datasets/glossary-definer.yaml +25 -0
- package/dist/packages/evals/datasets/story-writer.yaml +13 -0
- package/dist/packages/evals/datasets/template-writer.yaml +16 -0
- package/dist/packages/evals/datasets/test-writer.yaml +18 -0
- package/dist/packages/executors/reference/reference-executor.mjs +233 -0
- package/dist/packages/extractors/dialects/argocd.yaml +45 -0
- package/dist/packages/extractors/dialects/fixtures/jaxrs/accounts-service/src/main/java/forge/accounts/AccountResource.java +47 -0
- package/dist/packages/extractors/dialects/fixtures/jaxrs/accounts-service/src/main/java/forge/accounts/AuditClient.java +12 -0
- package/dist/packages/extractors/dialects/fixtures/jaxrs/accounts-service/src/main/java/forge/accounts/LedgerClient.java +17 -0
- package/dist/packages/extractors/dialects/fixtures/micronaut/statements-service/src/main/java/forge/statements/LedgerClient.java +14 -0
- package/dist/packages/extractors/dialects/fixtures/micronaut/statements-service/src/main/java/forge/statements/RatesClient.java +11 -0
- package/dist/packages/extractors/dialects/fixtures/micronaut/statements-service/src/main/java/forge/statements/StatementController.java +36 -0
- package/dist/packages/extractors/dialects/fixtures/micronaut/statements-service/src/main/resources/application.yml +7 -0
- package/dist/packages/extractors/dialects/fixtures/quarkus-reactive-messaging/fraud-service/src/main/java/forge/fraud/FraudScorer.java +27 -0
- package/dist/packages/extractors/dialects/fixtures/quarkus-reactive-messaging/fraud-service/src/main/resources/application.properties +4 -0
- package/dist/packages/extractors/dialects/fixtures/terraform-aws/forge-aws-infra/envs/prod/api.tf +38 -0
- package/dist/packages/extractors/dialects/fixtures/terraform-aws/forge-aws-infra/envs/prod/main.tf +95 -0
- package/dist/packages/extractors/dialects/fixtures/terraform-aws/forge-aws-infra/envs/prod/terraform.tfvars +1 -0
- package/dist/packages/extractors/dialects/fixtures/terraform-aws/forge-aws-infra/envs/prod/variables.tf +4 -0
- package/dist/packages/extractors/dialects/fixtures/terraform-azure/forge-azure-infra/main.tf +102 -0
- package/dist/packages/extractors/dialects/fixtures/terraform-gcp/forge-gcp-infra/main.tf +51 -0
- package/dist/packages/extractors/dialects/harness.yaml +101 -0
- package/dist/packages/extractors/dialects/jaxrs.yaml +155 -0
- package/dist/packages/extractors/dialects/micronaut.yaml +207 -0
- package/dist/packages/extractors/dialects/quarkus-reactive-messaging.yaml +158 -0
- package/dist/packages/extractors/dialects/tekton.yaml +71 -0
- package/dist/packages/extractors/dialects/terraform-aws.yaml +267 -0
- package/dist/packages/extractors/dialects/terraform-azure.yaml +212 -0
- package/dist/packages/extractors/dialects/terraform-gcp.yaml +109 -0
- package/dist/packages/extractors/grammars/README.md +11 -0
- package/dist/packages/extractors/grammars/tree-sitter-groovy.LICENSE +21 -0
- package/dist/packages/extractors/grammars/tree-sitter-groovy.wasm +0 -0
- package/dist/packages/extractors/grammars/vendored.json +11 -0
- package/dist/packages/learn/lessons/architect-diagrams-and-code.yaml +69 -0
- package/dist/packages/learn/lessons/business-analyst-story-bar.yaml +94 -0
- package/dist/packages/learn/lessons/delivery-lead-release-readiness.yaml +44 -0
- package/dist/packages/learn/lessons/designer-features-in-user-words.yaml +57 -0
- package/dist/packages/learn/lessons/developer-find-your-way.yaml +60 -0
- package/dist/packages/learn/lessons/everyone-first-hour.yaml +74 -0
- package/dist/packages/learn/lessons/platform-lead-coverage-and-defences.yaml +58 -0
- package/dist/packages/learn/lessons/product-owner-first-change.yaml +167 -0
- package/dist/packages/learn/lessons/qa-tests-and-trace.yaml +53 -0
- package/dist/packages/learn/lessons/team-lead-initiative.yaml +146 -0
- package/dist/packages/naysayer/constitution/constitution.yaml +286 -0
- package/dist/packages/naysayer/starter/review.yaml +256 -0
- package/dist/packages/sdk/npm/index.js +8892 -0
- package/dist/packages/speckit/rules/drift.yaml +78 -0
- package/dist/packages/taskrun/rules/conform.yaml +38 -0
- package/dist/packages/testgen/rules/trace.yaml +49 -0
- package/dist/packages/ui/dist/assets/elk-api-tma0MCuh.js +2 -0
- package/dist/packages/ui/dist/assets/elk-worker.min--dAJroGl.js +6401 -0
- package/dist/packages/ui/dist/assets/elk-worker.min-DdYmS5kP.js +2 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2 +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
- package/dist/packages/ui/dist/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
- package/dist/packages/ui/dist/assets/index-B54fm9FQ.js +29 -0
- package/dist/packages/ui/dist/assets/index-DD_hufQz.css +1 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- package/dist/packages/ui/dist/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-devanagari-600-normal-BtY48IV_.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-devanagari-600-normal-DhS7ScYx.woff2 +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-devanagari-700-normal-BQQOj9BB.woff2 +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-devanagari-700-normal-DBRwWuxA.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-600-normal-CXCVEoA9.woff2 +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-600-normal-Dx02qI2_.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-700-normal-BPDUZo87.woff2 +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-700-normal-e0Uj8ZlN.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-ext-600-normal-BleIgkPp.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-ext-600-normal-C9ZjJQAt.woff2 +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-ext-700-normal-BPaQ7tlD.woff +0 -0
- package/dist/packages/ui/dist/assets/rajdhani-latin-ext-700-normal-S6aYESQK.woff2 +0 -0
- package/dist/packages/ui/dist/favicon.svg +1 -0
- package/dist/packages/ui/dist/index.html +15 -0
- package/dist/third-party.json +575 -0
- package/dist/vendor/@fission-ai/openspec/bin/openspec.js +85986 -0
- package/dist/vendor/@fission-ai/openspec/package.json +82 -0
- package/dist/vendor/@fission-ai/openspec/schemas/spec-driven/schema.yaml +248 -0
- package/dist/vendor/@fission-ai/openspec/schemas/spec-driven/templates/design.md +21 -0
- package/dist/vendor/@fission-ai/openspec/schemas/spec-driven/templates/proposal.md +34 -0
- package/dist/vendor/@fission-ai/openspec/schemas/spec-driven/templates/spec.md +13 -0
- package/dist/vendor/@fission-ai/openspec/schemas/spec-driven/templates/tasks.md +11 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-c_sharp.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-go.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-java.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-javascript.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-kotlin.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-php.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-python.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-ruby.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-rust.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-scala.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-tsx.wasm +0 -0
- package/dist/vendor/tree-sitter-wasms/out/tree-sitter-typescript.wasm +0 -0
- package/dist/vendor/web-tree-sitter/tree-sitter.wasm +0 -0
- package/package.json +36 -3
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { createRequire as __atticusCreateRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __atticusFileURLToPath } from "node:url";
|
|
3
|
+
var require = __atticusCreateRequire(import.meta.url);
|
|
4
|
+
var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
5
|
+
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
|
+
import {
|
|
7
|
+
waitingQuestions
|
|
8
|
+
} from "./chunk-L6SGQIR3.js";
|
|
9
|
+
import {
|
|
10
|
+
gitUser
|
|
11
|
+
} from "./chunk-EFHQ3TWP.js";
|
|
12
|
+
import {
|
|
13
|
+
QuestionError,
|
|
14
|
+
QuestionScopeLevel,
|
|
15
|
+
QuestionState,
|
|
16
|
+
answerQuestion,
|
|
17
|
+
answerWords,
|
|
18
|
+
changesDirOf,
|
|
19
|
+
listQuestions,
|
|
20
|
+
questionsRelOf
|
|
21
|
+
} from "./chunk-S2A7YC3Q.js";
|
|
22
|
+
import "./chunk-D3PO4DOZ.js";
|
|
23
|
+
import "./chunk-TV45EUGM.js";
|
|
24
|
+
|
|
25
|
+
// packages/cli/dist/question-commands.js
|
|
26
|
+
import { stat } from "node:fs/promises";
|
|
27
|
+
import { join } from "node:path";
|
|
28
|
+
import { parseArgs } from "node:util";
|
|
29
|
+
var plural = (n, one, many = `${one}s`) => `${n} ${n === 1 ? one : many}`;
|
|
30
|
+
var sentence = (s) => /[.!?]$/.test(s.trim()) ? s.trim() : `${s.trim()}.`;
|
|
31
|
+
function scopeWords(s, short = false, change = false) {
|
|
32
|
+
const what = change ? "this change" : "this repo";
|
|
33
|
+
if (s.level === "repo")
|
|
34
|
+
return short ? what : `${what} (${s.id})`;
|
|
35
|
+
return `every repo of type ${s.id}`;
|
|
36
|
+
}
|
|
37
|
+
async function isChange(root, id) {
|
|
38
|
+
return stat(join(changesDirOf(root), id, "change.yaml")).then(() => true, () => false);
|
|
39
|
+
}
|
|
40
|
+
function questionLines(q, o = {}) {
|
|
41
|
+
const lines = [
|
|
42
|
+
`${q.id} ${q.state} ${q.repo} (asked by ${q.askedBy.command} on ${q.askedBy.at.slice(0, 10)})`,
|
|
43
|
+
` ${q.question}`,
|
|
44
|
+
...q.options.map((o2, i) => ` ${i + 1}. ${o2.label}: ${sentence(o2.means)} It would change: ${sentence(o2.changes)}`),
|
|
45
|
+
` Evidence: ${q.evidence.join(", ")}`
|
|
46
|
+
];
|
|
47
|
+
if (q.answer)
|
|
48
|
+
lines.push(` Answered by ${q.answer.by} on ${q.answer.at.slice(0, 10)}: ${answerWords(q)} (${scopeWords(q.answer.scope, true, o.change)})`);
|
|
49
|
+
else if (q.state === "open")
|
|
50
|
+
lines.push(` Proposed scope: ${scopeWords(q.scope, false, o.change)}`, ` Answer: atticus questions answer ${q.id}${q.options.length ? " --option <n>, or" : ""} --text "your own words"`);
|
|
51
|
+
return lines;
|
|
52
|
+
}
|
|
53
|
+
async function questionsFiles(root, argv, io, deps = {}) {
|
|
54
|
+
const { values, positionals } = parseArgs({
|
|
55
|
+
args: argv,
|
|
56
|
+
allowPositionals: true,
|
|
57
|
+
strict: false,
|
|
58
|
+
options: {
|
|
59
|
+
root: { type: "string" },
|
|
60
|
+
json: { type: "boolean" },
|
|
61
|
+
state: { type: "string" },
|
|
62
|
+
option: { type: "string" },
|
|
63
|
+
text: { type: "string" },
|
|
64
|
+
scope: { type: "string" },
|
|
65
|
+
type: { type: "string" },
|
|
66
|
+
by: { type: "string" }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const str = (v) => typeof v === "string" ? v : void 0;
|
|
70
|
+
const [, command, id] = positionals;
|
|
71
|
+
if (command === "list") {
|
|
72
|
+
const state = str(values.state);
|
|
73
|
+
if (state !== void 0 && !QuestionState.safeParse(state).success) {
|
|
74
|
+
io.err("--state is open, answered or retired.");
|
|
75
|
+
return 2;
|
|
76
|
+
}
|
|
77
|
+
const r = await listQuestions(root, state ? { state } : {});
|
|
78
|
+
for (const p of r.problems)
|
|
79
|
+
io.err(`${p.file} isn't a valid question: ${p.message}`);
|
|
80
|
+
const waiting = !state || state === "open" ? await waitingQuestions(root) : [];
|
|
81
|
+
if (values.json === true) {
|
|
82
|
+
io.out(JSON.stringify({ ...r, waiting }, null, 2));
|
|
83
|
+
return r.problems.length ? 1 : 0;
|
|
84
|
+
}
|
|
85
|
+
const changes = /* @__PURE__ */ new Set();
|
|
86
|
+
for (const q of r.questions)
|
|
87
|
+
if (await isChange(root, q.repo))
|
|
88
|
+
changes.add(q.repo);
|
|
89
|
+
for (const q of r.questions)
|
|
90
|
+
for (const l of questionLines(q, { change: changes.has(q.repo) }))
|
|
91
|
+
io.out(l);
|
|
92
|
+
const what = state ?? "";
|
|
93
|
+
io.out(r.questions.length ? `${plural(r.questions.length, `${what ? `${what} ` : ""}question`)}.` : `No ${what ? `${what} ` : ""}questions.`);
|
|
94
|
+
if (waiting.length) {
|
|
95
|
+
io.out(`${plural(waiting.length, "more question")} ${waiting.length === 1 ? "waits" : "wait"}, asked once the open ones are answered:`);
|
|
96
|
+
for (const w of waiting)
|
|
97
|
+
io.out(` ${w.change}, ${w.stage} stage: ${w.question}${w.evidence.length ? ` (${w.evidence.join(", ")})` : ""}`);
|
|
98
|
+
for (const rerun of [...new Set(waiting.map((w) => w.rerun))])
|
|
99
|
+
io.out(`Run the stage again after answering: ${rerun}`);
|
|
100
|
+
}
|
|
101
|
+
return r.problems.length ? 1 : 0;
|
|
102
|
+
}
|
|
103
|
+
if (command === "show") {
|
|
104
|
+
if (!id) {
|
|
105
|
+
io.err("questions show needs a question id, for example: atticus questions show q-1a2b3c4d5e6f");
|
|
106
|
+
return 2;
|
|
107
|
+
}
|
|
108
|
+
const q = (await listQuestions(root)).questions.find((x) => x.id === id);
|
|
109
|
+
if (!q) {
|
|
110
|
+
io.err(`No question ${id}: atticus questions list shows them.`);
|
|
111
|
+
return 1;
|
|
112
|
+
}
|
|
113
|
+
if (values.json === true)
|
|
114
|
+
io.out(JSON.stringify(q, null, 2));
|
|
115
|
+
else
|
|
116
|
+
for (const l of questionLines(q, { change: await isChange(root, q.repo) }))
|
|
117
|
+
io.out(l);
|
|
118
|
+
return 0;
|
|
119
|
+
}
|
|
120
|
+
if (command === "answer") {
|
|
121
|
+
if (!id) {
|
|
122
|
+
io.err("questions answer needs a question id, for example: atticus questions answer q-1a2b3c4d5e6f --option 1");
|
|
123
|
+
return 2;
|
|
124
|
+
}
|
|
125
|
+
const opt = str(values.option);
|
|
126
|
+
const text = str(values.text)?.trim() || void 0;
|
|
127
|
+
if (opt === void 0 === (text === void 0)) {
|
|
128
|
+
io.err('Answer with --option <n> or --text "your own words", one of the two.');
|
|
129
|
+
return 2;
|
|
130
|
+
}
|
|
131
|
+
const option = opt === void 0 ? void 0 : Number(opt);
|
|
132
|
+
if (option !== void 0 && (!Number.isInteger(option) || option < 1)) {
|
|
133
|
+
io.err("--option is the number of an option, counting from 1.");
|
|
134
|
+
return 2;
|
|
135
|
+
}
|
|
136
|
+
const scope = str(values.scope);
|
|
137
|
+
if (scope !== void 0 && !QuestionScopeLevel.safeParse(scope).success) {
|
|
138
|
+
io.err("--scope is repo (this repo only) or repo-type (every repo of its type).");
|
|
139
|
+
return 2;
|
|
140
|
+
}
|
|
141
|
+
try {
|
|
142
|
+
const by = str(values.by)?.trim() || (await gitUser(root)).handle;
|
|
143
|
+
const r = await answerQuestion(root, id, {
|
|
144
|
+
...option !== void 0 ? { option } : {},
|
|
145
|
+
...text !== void 0 ? { text } : {},
|
|
146
|
+
...scope ? { scope } : {},
|
|
147
|
+
...str(values.type) ? { repoType: str(values.type) } : {},
|
|
148
|
+
by,
|
|
149
|
+
at: (deps.now ?? /* @__PURE__ */ new Date()).toISOString()
|
|
150
|
+
});
|
|
151
|
+
const q = r.question;
|
|
152
|
+
io.out(`Answered ${q.id}: ${answerWords(q)} (for ${q.answer.scope.level === "repo" ? `${await isChange(root, q.repo) ? "this change" : "this repo"}, ${q.repo}` : scopeWords(q.answer.scope)}). Wrote ${questionsRelOf(root)}/${q.id}.yaml; commit it for review.`);
|
|
153
|
+
if (r.skill)
|
|
154
|
+
io.out(r.skill.written ? `Also wrote it under Answers in ${r.skill.path}; review it in the same pull request.` : `${r.skill.path} isn't there yet, so the answer is kept in the question file, with that path.`);
|
|
155
|
+
if (r.hosts)
|
|
156
|
+
io.out(r.hosts.added ? `Wrote ${r.hosts.host} under hosts for ${r.hosts.repo} in ${r.hosts.manifest}; review it in the same pull request.` : `${r.hosts.repo} already lists ${r.hosts.host} under hosts in ${r.hosts.manifest}.`);
|
|
157
|
+
io.out(`Next: ${q.rerun}`);
|
|
158
|
+
return 0;
|
|
159
|
+
} catch (e) {
|
|
160
|
+
if (!(e instanceof QuestionError))
|
|
161
|
+
throw e;
|
|
162
|
+
io.err(e.message);
|
|
163
|
+
return e.code === "bad-answer" ? 2 : 1;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
io.err(`atticus questions ${command ?? ""} isn't a command: it is questions list, show or answer (atticus questions alone lists the knowledge gaps).`);
|
|
167
|
+
io.err('Usage: atticus questions list [--state open|answered|retired] [--json], atticus questions show <id> [--json], or atticus questions answer <id> --option <n> | --text "..." [--scope repo|repo-type] [--type <repo type>]');
|
|
168
|
+
return 2;
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
questionLines,
|
|
172
|
+
questionsFiles,
|
|
173
|
+
scopeWords
|
|
174
|
+
};
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { createRequire as __atticusCreateRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __atticusFileURLToPath } from "node:url";
|
|
3
|
+
var require = __atticusCreateRequire(import.meta.url);
|
|
4
|
+
var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
5
|
+
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
|
+
import "./chunk-GLUX4EEP.js";
|
|
7
|
+
import {
|
|
8
|
+
loadCatalog
|
|
9
|
+
} from "./chunk-FITWGOJ2.js";
|
|
10
|
+
import {
|
|
11
|
+
repoFor
|
|
12
|
+
} from "./chunk-O3WI5KWW.js";
|
|
13
|
+
import "./chunk-KEM4SDDP.js";
|
|
14
|
+
import {
|
|
15
|
+
askHosts
|
|
16
|
+
} from "./chunk-RVH5SUW5.js";
|
|
17
|
+
import "./chunk-ZVM6AKKM.js";
|
|
18
|
+
import {
|
|
19
|
+
estateFlow,
|
|
20
|
+
estateStepKey,
|
|
21
|
+
fieldLineage,
|
|
22
|
+
joinEstate
|
|
23
|
+
} from "./chunk-27NKUS3X.js";
|
|
24
|
+
import "./chunk-L24C55VN.js";
|
|
25
|
+
import "./chunk-PAMPPUR6.js";
|
|
26
|
+
import "./chunk-23W7VWKR.js";
|
|
27
|
+
import "./chunk-7EKXJZ2Y.js";
|
|
28
|
+
import "./chunk-MC3H7736.js";
|
|
29
|
+
import "./chunk-T6AIP7H5.js";
|
|
30
|
+
import "./chunk-EFHQ3TWP.js";
|
|
31
|
+
import {
|
|
32
|
+
fsRepo
|
|
33
|
+
} from "./chunk-GQ4N4WKF.js";
|
|
34
|
+
import "./chunk-CNUKCS2T.js";
|
|
35
|
+
import {
|
|
36
|
+
listQuestions,
|
|
37
|
+
loadOrgPack,
|
|
38
|
+
orgPackDirOf,
|
|
39
|
+
questionId,
|
|
40
|
+
raiseQuestions,
|
|
41
|
+
readEstateJoins,
|
|
42
|
+
readRepoSpec,
|
|
43
|
+
slugify,
|
|
44
|
+
specRepos,
|
|
45
|
+
specsRelOf,
|
|
46
|
+
templateRef,
|
|
47
|
+
writeEstateJoins
|
|
48
|
+
} from "./chunk-S2A7YC3Q.js";
|
|
49
|
+
import "./chunk-D3PO4DOZ.js";
|
|
50
|
+
import "./chunk-TV45EUGM.js";
|
|
51
|
+
|
|
52
|
+
// packages/cli/dist/estate-commands.js
|
|
53
|
+
var plural = (n, one, many = `${one}s`) => `${n} ${n === 1 ? one : many}`;
|
|
54
|
+
var HOW = {
|
|
55
|
+
interface: "through the Interface",
|
|
56
|
+
endpoint: "to the entry point it names",
|
|
57
|
+
path: "by method and path"
|
|
58
|
+
};
|
|
59
|
+
var REASON = {
|
|
60
|
+
"no-target": "no target",
|
|
61
|
+
"no-flow": "no flow",
|
|
62
|
+
"no-citation": "no citation",
|
|
63
|
+
"family-mismatch": "a wrong family"
|
|
64
|
+
};
|
|
65
|
+
var ESTATE_TARGETS_STEP = "estate-targets";
|
|
66
|
+
var ESTATE_TARGETS_NONE = "None of these";
|
|
67
|
+
function estateAskDraft(a) {
|
|
68
|
+
return {
|
|
69
|
+
question: `Which component answers ${a.what}, which ${a.caller} calls?`,
|
|
70
|
+
options: [
|
|
71
|
+
...a.candidates.map((c) => ({
|
|
72
|
+
label: c,
|
|
73
|
+
means: `${c} answers ${a.what}`,
|
|
74
|
+
changes: `The call-out joins ${c}'s flow at the next atticus estate join`
|
|
75
|
+
})),
|
|
76
|
+
{
|
|
77
|
+
label: ESTATE_TARGETS_NONE,
|
|
78
|
+
means: "None of these components answers it",
|
|
79
|
+
changes: "The call-out stays unjoined, and this isn't asked again"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
evidence: a.from.evidence ? [a.from.evidence] : [],
|
|
83
|
+
scope: "repo"
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function estateAskId(a) {
|
|
87
|
+
const d = estateAskDraft(a);
|
|
88
|
+
return questionId({
|
|
89
|
+
step: ESTATE_TARGETS_STEP,
|
|
90
|
+
repo: a.from.repo,
|
|
91
|
+
question: d.question,
|
|
92
|
+
evidence: d.evidence
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async function readSpecs(root, io, templates) {
|
|
96
|
+
const out = [];
|
|
97
|
+
for (const repo of await specRepos(root)) {
|
|
98
|
+
const s = await readRepoSpec(root, repo, { cacheRoot: root });
|
|
99
|
+
for (const p of s.problems)
|
|
100
|
+
io.err(`${p.file}: ${p.message}`);
|
|
101
|
+
if (s.flows.length)
|
|
102
|
+
out.push({ repo, flows: s.flows });
|
|
103
|
+
if (templates && s.header?.template)
|
|
104
|
+
templates[repo] = s.header.template;
|
|
105
|
+
}
|
|
106
|
+
return out;
|
|
107
|
+
}
|
|
108
|
+
async function specTemplates(root, refs) {
|
|
109
|
+
const op = await loadOrgPack(orgPackDirOf(root)).catch(() => void 0);
|
|
110
|
+
const out = {};
|
|
111
|
+
for (const [repo, ref] of Object.entries(refs)) {
|
|
112
|
+
const t = op?.specTemplates.find((x) => templateRef(x) === ref);
|
|
113
|
+
if (t)
|
|
114
|
+
out[repo] = t;
|
|
115
|
+
}
|
|
116
|
+
return out;
|
|
117
|
+
}
|
|
118
|
+
async function estateJoin(root, o, io) {
|
|
119
|
+
const refs = {};
|
|
120
|
+
const specs = await readSpecs(root, io, refs);
|
|
121
|
+
if (specs.length === 0) {
|
|
122
|
+
io.err(`There are no repo specs in ${specsRelOf(root)}/ yet. Draft them first: atticus spec draft <repo>.`);
|
|
123
|
+
return 2;
|
|
124
|
+
}
|
|
125
|
+
const { records } = await loadCatalog(root, { out: () => {
|
|
126
|
+
}, err: (l) => io.err(l) });
|
|
127
|
+
const templates = await specTemplates(root, refs);
|
|
128
|
+
const clones = /* @__PURE__ */ new Map();
|
|
129
|
+
const unchecked = /* @__PURE__ */ new Set();
|
|
130
|
+
const cited = async (repo, path, line) => {
|
|
131
|
+
if (!clones.has(repo)) {
|
|
132
|
+
const r2 = await repoFor(root, repo);
|
|
133
|
+
clones.set(repo, r2 ? { dir: r2.dir, lines: /* @__PURE__ */ new Map() } : null);
|
|
134
|
+
if (!r2)
|
|
135
|
+
unchecked.add(repo);
|
|
136
|
+
}
|
|
137
|
+
const c = clones.get(repo);
|
|
138
|
+
if (!c)
|
|
139
|
+
return true;
|
|
140
|
+
if (!c.lines.has(path)) {
|
|
141
|
+
const t = await fsRepo(repo, c.dir, "0".repeat(40)).readText(path).catch(() => void 0);
|
|
142
|
+
c.lines.set(path, t === void 0 ? 0 : t.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n").length);
|
|
143
|
+
}
|
|
144
|
+
return line >= 1 && line <= c.lines.get(path);
|
|
145
|
+
};
|
|
146
|
+
const first = await joinEstate({ specs, records, cited, templates });
|
|
147
|
+
const askedBefore = new Map((await listQuestions(root, { step: ESTATE_TARGETS_STEP })).questions.map((q) => [q.id, q]));
|
|
148
|
+
const targets = {};
|
|
149
|
+
for (const a of first.asks) {
|
|
150
|
+
const q = askedBefore.get(estateAskId(a));
|
|
151
|
+
if (q?.state !== "answered" || !q.answer)
|
|
152
|
+
continue;
|
|
153
|
+
const label = q.answer.option !== void 0 ? q.options[q.answer.option - 1]?.label : q.answer.text;
|
|
154
|
+
if (label && label !== ESTATE_TARGETS_NONE)
|
|
155
|
+
targets[estateStepKey(a.from.flow, a.from.step)] = slugify(label);
|
|
156
|
+
}
|
|
157
|
+
const r = Object.keys(targets).length ? await joinEstate({ specs, records, cited, templates, targets }) : first;
|
|
158
|
+
const at = (o.now ?? /* @__PURE__ */ new Date()).toISOString();
|
|
159
|
+
const asked = [];
|
|
160
|
+
for (const a of r.asks) {
|
|
161
|
+
if (!a.from.evidence)
|
|
162
|
+
continue;
|
|
163
|
+
const before = askedBefore.get(estateAskId(a));
|
|
164
|
+
if (before) {
|
|
165
|
+
if (before.state === "open")
|
|
166
|
+
asked.push({ q: before, raised: false });
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
const raised = await raiseQuestions(root, [estateAskDraft(a)], {
|
|
170
|
+
step: ESTATE_TARGETS_STEP,
|
|
171
|
+
repo: a.from.repo,
|
|
172
|
+
command: "atticus estate join",
|
|
173
|
+
rerun: "atticus estate join",
|
|
174
|
+
at
|
|
175
|
+
});
|
|
176
|
+
const q = raised.of[0];
|
|
177
|
+
if (q?.state === "open")
|
|
178
|
+
asked.push({ q, raised: raised.raised.some((x) => x.id === q.id) });
|
|
179
|
+
}
|
|
180
|
+
const inferred = new Set(r.inferred.map((x) => estateStepKey(x.from.flow, x.from.step)));
|
|
181
|
+
const file = {
|
|
182
|
+
schemaVersion: 1,
|
|
183
|
+
joinedAt: (o.now ?? /* @__PURE__ */ new Date()).toISOString(),
|
|
184
|
+
repos: specs.map((s) => s.repo),
|
|
185
|
+
joins: r.joins,
|
|
186
|
+
unmatched: r.unmatched
|
|
187
|
+
};
|
|
188
|
+
const rel = await writeEstateJoins(root, file);
|
|
189
|
+
const hosts = await askHosts(root, records, {
|
|
190
|
+
command: "atticus estate join",
|
|
191
|
+
...o.now ? { now: o.now } : {}
|
|
192
|
+
});
|
|
193
|
+
if (o.json) {
|
|
194
|
+
io.out(JSON.stringify({
|
|
195
|
+
...file,
|
|
196
|
+
file: rel,
|
|
197
|
+
unchecked: [...unchecked].sort(),
|
|
198
|
+
inferred: r.inferred,
|
|
199
|
+
asks: r.asks,
|
|
200
|
+
questions: [...hosts.raised, ...hosts.open, ...asked.map((x) => x.q)].map((q) => q.id)
|
|
201
|
+
}, null, 2));
|
|
202
|
+
return 0;
|
|
203
|
+
}
|
|
204
|
+
const total = r.joins.length + r.unmatched.length;
|
|
205
|
+
io.out(`Joined ${r.joins.length} of ${plural(total, "call-out")} across ${plural(specs.length, "repo")} (${file.repos.join(", ")}); written to ${rel}.`);
|
|
206
|
+
for (const j of r.joins)
|
|
207
|
+
io.out(` ${j.from.flow} step ${j.from.step} \u2192 ${j.to.flow} (${HOW[j.how]}${j.interface ? ` ${j.interface}` : ""}${inferred.has(estateStepKey(j.from.flow, j.from.step)) ? ", inferred" : ""})`);
|
|
208
|
+
if (r.unmatched.length) {
|
|
209
|
+
io.out(`${plural(r.unmatched.length, "call-out")} ${r.unmatched.length === 1 ? "isn't" : "aren't"} joined:`);
|
|
210
|
+
for (const u of r.unmatched)
|
|
211
|
+
io.out(` ${u.from.flow} step ${u.from.step} (${REASON[u.reason]}): ${u.message}`);
|
|
212
|
+
}
|
|
213
|
+
if (unchecked.size)
|
|
214
|
+
io.out(`Cited lines of ${[...unchecked].sort().join(", ")} weren't checked: there is no clone of ${unchecked.size === 1 ? "it" : "them"} here.`);
|
|
215
|
+
if (r.inferred.length)
|
|
216
|
+
io.out(`${plural(r.inferred.length, "join is", "joins are")} inferred: ${r.inferred.length === 1 ? "its" : "their"} step names a target that isn't a component in the catalog (a relative call's guessed name, or none), so ${r.inferred.length === 1 ? "it" : "each"} joined the only entry point that serves its method and path, the caller's own repo first. When the repo is next read, a relative call leaves \`to\` out or names the component that serves it.`);
|
|
217
|
+
for (const { q, raised } of asked)
|
|
218
|
+
io.out(raised ? `Two or more components answer a call-out: asked ${q.id}: ${q.question} Answer it: atticus questions answer ${q.id} --option <n>, then atticus estate join.` : `Still open: ${q.question} Answer it: atticus questions answer ${q.id} --option <n>, then atticus estate join.`);
|
|
219
|
+
for (const l of hosts.lines)
|
|
220
|
+
io.out(l);
|
|
221
|
+
io.out("Next: atticus estate flow <flow-id> follows a flow across repos.");
|
|
222
|
+
return 0;
|
|
223
|
+
}
|
|
224
|
+
async function loadJoined(root, flowId, depth, io) {
|
|
225
|
+
const joins = await readEstateJoins(root);
|
|
226
|
+
if (!joins) {
|
|
227
|
+
io.err(`There is no ${specsRelOf(root)}/estate.yaml yet. Join the repos' flows first: atticus estate join.`);
|
|
228
|
+
return void 0;
|
|
229
|
+
}
|
|
230
|
+
const f = estateFlow({
|
|
231
|
+
flow: flowId,
|
|
232
|
+
specs: await readSpecs(root, io),
|
|
233
|
+
joins,
|
|
234
|
+
...depth !== void 0 ? { depth } : {}
|
|
235
|
+
});
|
|
236
|
+
if (!f)
|
|
237
|
+
io.err(`There is no flow ${flowId} in ${specsRelOf(root)}/.`);
|
|
238
|
+
return f;
|
|
239
|
+
}
|
|
240
|
+
var cite = (s) => {
|
|
241
|
+
const e = s.step.evidence[0];
|
|
242
|
+
return e?.path ? ` [${e.repo ?? s.repo}:${e.path}${e.line !== void 0 ? `:${e.line}` : ""}]` : "";
|
|
243
|
+
};
|
|
244
|
+
var list = (xs) => xs.length ? xs.join(", ") : "nothing named";
|
|
245
|
+
function render(f, indent, out) {
|
|
246
|
+
for (const s of f.steps) {
|
|
247
|
+
out.push(`${indent}${s.n} ${s.step.kind}: ${s.step.what}${cite(s)}`);
|
|
248
|
+
const c = s.call;
|
|
249
|
+
if (!c)
|
|
250
|
+
continue;
|
|
251
|
+
const pad = `${indent} `;
|
|
252
|
+
if (c.join) {
|
|
253
|
+
const callee = c.callee?.flow;
|
|
254
|
+
out.push(`${pad}\u2192 ${c.join.to.flow}${callee ? `: ${callee.name}` : ""} (${c.join.to.repo}), ${HOW[c.join.how]}${c.join.interface ? ` ${c.join.interface}` : ""}`);
|
|
255
|
+
const x = c.crossing;
|
|
256
|
+
out.push(`${pad} sends ${list(x.sends)}; the callee takes ${list(x.receives)}; returns ${list(x.returns)}`);
|
|
257
|
+
for (const m of x.objects)
|
|
258
|
+
out.push(`${pad} ${m.sent} carries the callee's ${m.fields.join(", ")}`);
|
|
259
|
+
if (x.unused.length)
|
|
260
|
+
out.push(`${pad} sent but not used by the callee: ${x.unused.join(", ")}`);
|
|
261
|
+
if (c.callee)
|
|
262
|
+
render(c.callee, pad, out);
|
|
263
|
+
else if (c.stopped === "cycle")
|
|
264
|
+
out.push(`${pad} (not followed: ${c.join.to.flow} is already on the path)`);
|
|
265
|
+
else if (c.stopped === "depth")
|
|
266
|
+
out.push(`${pad} (not followed: the depth limit; raise --depth)`);
|
|
267
|
+
} else if (c.unmatched)
|
|
268
|
+
out.push(`${pad}\u2717 not joined (${REASON[c.unmatched.reason]}): ${c.unmatched.message}`);
|
|
269
|
+
else
|
|
270
|
+
out.push(`${pad}\u2717 not joined yet: the specs changed since atticus estate join ran`);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
async function estateFlowCommand(root, flowId, o, io) {
|
|
274
|
+
const f = await loadJoined(root, flowId, o.depth, io);
|
|
275
|
+
if (!f)
|
|
276
|
+
return 2;
|
|
277
|
+
if (o.json) {
|
|
278
|
+
io.out(JSON.stringify(f, null, 2));
|
|
279
|
+
return 0;
|
|
280
|
+
}
|
|
281
|
+
const t = f.flow.trigger;
|
|
282
|
+
const e = t.evidence[0];
|
|
283
|
+
const out = [
|
|
284
|
+
`${f.flow.id}: ${f.flow.name} (${f.repo})`,
|
|
285
|
+
`Trigger (${t.kind}): ${t.what}${e?.path ? ` [${e.repo ?? f.repo}:${e.path}${e.line !== void 0 ? `:${e.line}` : ""}]` : ""}`
|
|
286
|
+
];
|
|
287
|
+
render(f, "", out);
|
|
288
|
+
for (const l of out)
|
|
289
|
+
io.out(l);
|
|
290
|
+
return 0;
|
|
291
|
+
}
|
|
292
|
+
async function estateLineage(root, flowId, field, o, io) {
|
|
293
|
+
const f = await loadJoined(root, flowId, o.depth, io);
|
|
294
|
+
if (!f)
|
|
295
|
+
return 2;
|
|
296
|
+
const l = fieldLineage(f, field);
|
|
297
|
+
if (o.json) {
|
|
298
|
+
io.out(JSON.stringify(l, null, 2));
|
|
299
|
+
return l.stored ? 0 : 1;
|
|
300
|
+
}
|
|
301
|
+
io.out(`${field} along ${flowId}:`);
|
|
302
|
+
for (const k of l.links)
|
|
303
|
+
io.out(` ${k.n} ${k.kind}, ${k.as} ${k.field}: ${k.what}${k.evidence ? ` [${k.evidence}]` : ""}`);
|
|
304
|
+
io.out(l.stored ? `${field} is stored in ${l.stored.table}.${l.stored.column}.` : `The chain breaks: ${l.breaks.message}`);
|
|
305
|
+
return l.stored ? 0 : 1;
|
|
306
|
+
}
|
|
307
|
+
export {
|
|
308
|
+
ESTATE_TARGETS_NONE,
|
|
309
|
+
ESTATE_TARGETS_STEP,
|
|
310
|
+
estateAskDraft,
|
|
311
|
+
estateAskId,
|
|
312
|
+
estateFlowCommand,
|
|
313
|
+
estateJoin,
|
|
314
|
+
estateLineage
|
|
315
|
+
};
|