cf 1.0.0-beta.1 → 1.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/README.md +11 -0
- package/dist/_meta/commands.json +9993 -10535
- package/dist/_meta/hand-written-commands.json +515 -0
- package/dist/_meta/schemas.json +6429 -7062
- package/dist/{abuse-reports-Dd6kJM7r.mjs → abuse-reports-JcwSaW-c.mjs} +11 -11
- package/dist/access-B3TvAe5h.mjs +27 -0
- package/dist/{account-CZ9SPVdz.mjs → account-CLsfIk5j.mjs} +5 -5
- package/dist/{account-tags-DAf-hq1m.mjs → account-tags-BJdDiyDi.mjs} +4 -4
- package/dist/{accounts-BDIKjiG2.mjs → accounts-6eXqIqSW.mjs} +59 -59
- package/dist/{acm-D-q1FVWJ.mjs → acm-ChNLnPqM.mjs} +3 -3
- package/dist/{addressing-0w2U1NEy.mjs → addressing-z8ei_TCh.mjs} +49 -49
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-Un0usAVF.mjs} +15 -15
- package/dist/{ai-ARwLeQ1O.mjs → ai-Bj8kgDf7.mjs} +14 -14
- package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-FR6QuDK_.mjs} +1 -1
- package/dist/{ai-gateway-DNY4FPF2.mjs → ai-gateway-DrQhTvKf.mjs} +68 -68
- package/dist/{ai-search-B5l4IDSR.mjs → ai-search-BvMeOKK6.mjs} +37 -37
- package/dist/{ai-security-C7_IGDDl.mjs → ai-security-BHvDKoM1.mjs} +1 -1
- package/dist/{alerting-B6m1Rhf4.mjs → alerting-DmRZCAjg.mjs} +26 -26
- package/dist/{analytics-nnzFBB_7.mjs → analytics-DqidJ4qc.mjs} +9 -9
- package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-I7N0I6yP.mjs} +2 -2
- package/dist/{api-security-B9IozS2a.mjs → api-security-BMNhdDyR.mjs} +61 -61
- package/dist/{argo-C_QcqR6P.mjs → argo-U5TIBcub.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-DDFNpYBz.mjs → artifacts-Byw1W73U.mjs} +20 -20
- package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-C6zyFeKM.mjs} +2 -2
- package/dist/auth-B5p3SIhO.mjs +8 -0
- package/dist/auth-CosaKfuk.mjs +2 -0
- package/dist/autoconfig-DED3bWob.mjs +511 -0
- package/dist/banner-Xk4xBN8U.mjs +2 -0
- package/dist/{billing-DU2X-q-x.mjs → billing-BS1raRJt.mjs} +10 -10
- package/dist/{bot-management-BHAAoZOh.mjs → bot-management-Cn6xfGzJ.mjs} +1 -1
- package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-DtWOPNfw.mjs} +5 -5
- package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-BcEQ66bT.mjs} +13 -13
- package/dist/browser-extension-D_siSsD9.mjs +2 -0
- package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-RZ7ZPRop.mjs} +23 -23
- package/dist/build-DG8NfVjJ.mjs +2 -0
- package/dist/build-kgS7iKwi.mjs +2 -0
- package/dist/{builds-CO0MmSd3.mjs → builds-AOCMH4CE.mjs} +31 -31
- package/dist/{cache-XxusQxXe.mjs → cache-D_EBxDff.mjs} +1 -1
- package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-B6rtjuaT.mjs} +1 -1
- package/dist/cf--3tGe71B.mjs +18 -0
- package/dist/chunk-M77HNR46-BqG3fjQz.mjs +2 -0
- package/dist/chunk-RV27PEH3-C8_6bMgi.mjs +97 -0
- package/dist/chunk-U6NEESU5-CAnOLcsu.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D3H84qpM.mjs +2 -0
- package/dist/cli-Ct980dyx.mjs +3 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates-uBOjGcgo.mjs +13 -0
- package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-Bm7JwGaG.mjs} +1 -1
- package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-69M2Dx8h.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-Ba5LySkU.mjs} +1 -1
- package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-Xn2mlAPv.mjs} +214 -214
- package/dist/command-B7SzqjQM.mjs +2 -0
- package/dist/command-BLHcNQ8m.mjs +2 -0
- package/dist/{command-RiZ_LYcm.mjs → command-BxQbIQWT.mjs} +1 -1
- package/dist/command-C0SMCHZp.mjs +2 -0
- package/dist/command-CE8k5TuK.mjs +2 -0
- package/dist/command-CPiCDUth.mjs +2 -0
- package/dist/command-Cb0pS8T5.mjs +2 -0
- package/dist/command-Cz_bKDWf.mjs +2 -0
- package/dist/command-DCpX9Cem.mjs +2 -0
- package/dist/command-DEC5PwJo.mjs +2 -0
- package/dist/command-DHjsstFb.mjs +2 -0
- package/dist/command-MTUsmZU5.mjs +2 -0
- package/dist/command-Sb9lOxWT.mjs +2 -0
- package/dist/command-sQ8yswii.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-DZDltM9V.mjs} +3 -3
- package/dist/{config-B4vIa0zp.mjs → config-DcppJ5D2.mjs} +1 -1
- package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-DTy6laab.mjs} +3 -3
- package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-CJqGGvFJ.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-BPxhPhr6.mjs} +3 -3
- package/dist/{connectors-BhvAP5fb.mjs → connectors-CdfCcZuA.mjs} +7 -7
- package/dist/{containers-Cq1gtnq6.mjs → containers-C7z53QcY.mjs} +86 -86
- package/dist/{containers-Bl3EY-cy.mjs → containers-VMqcxH5a.mjs} +17 -17
- package/dist/{content-scan-BYGe9fFj.mjs → content-scan-BirgZrmr.mjs} +1 -1
- package/dist/context-Dzzbc9RK.mjs +7 -0
- package/dist/{cps-BWMDWeVq.mjs → cps-DzFm3zKp.mjs} +1 -1
- package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-D2_OO5-1.mjs} +1 -1
- package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-B7wQkFVl.mjs} +1 -1
- package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-BKcCfbH8.mjs} +4 -4
- package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-CXoOxir4.mjs} +5 -5
- package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CNYfnCOd.mjs} +6 -6
- package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-BlLM7a4L.mjs} +5 -5
- package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-BcWoypet.mjs} +10 -10
- package/dist/{d1-C1GK7DsW.mjs → d1-CvrHsqYY.mjs} +14 -14
- package/dist/{data-security-DDhPnX8Z.mjs → data-security-BxzLSdGk.mjs} +33 -33
- package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-9_Hl-5v-.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-CCGgla7X.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D04Xvm0m.mjs → deploy-BlXYtvTd.mjs} +1 -1
- package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-DTXVZ2QJ.mjs} +1 -1
- package/dist/dev-reqdKM28.mjs +4 -0
- package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-BxHs1EJB.mjs} +7 -7
- package/dist/dialog-ClHoC_cG.mjs +2 -0
- package/dist/dist-CmyJy57B.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-Cpb7_h4N.mjs} +35 -35
- package/dist/dist-cGGV-p_F.mjs +366 -0
- package/dist/{dls-BsnURYja.mjs → dls-D7GXW-N3.mjs} +8 -8
- package/dist/{dns-B_nTXhuM.mjs → dns-B0mdWJO5.mjs} +63 -63
- package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-BG0bzuL3.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BO5KJUwL.mjs +2 -0
- package/dist/dry-run-BmzTxDtZ.mjs +2 -0
- package/dist/{durable-objects-8U8DpF9q.mjs → durable-objects-DW0CsJzR.mjs} +4 -4
- package/dist/{email-auth-CzjtGH6g.mjs → email-auth-Ls-7Yijm.mjs} +1 -1
- package/dist/{email-routing-B92fty1-.mjs → email-routing-DVaFhg-3.mjs} +24 -24
- package/dist/{email-security-keTqF0nJ.mjs → email-security-vnwkqlgp.mjs} +77 -79
- package/dist/{email-sending-B7f95epu.mjs → email-sending-CbMUicJz.mjs} +23 -23
- package/dist/error-sanitization-TV6O0aCD.mjs +2 -0
- package/dist/error-sanitization-cyGBhW1Z.mjs +2 -0
- package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-2EkDoJg8.mjs} +4 -4
- package/dist/firewall-BK4QYqRe.mjs +36 -0
- package/dist/{flagship-CjC3dF7L.mjs → flagship--lHQ0H3n.mjs} +13 -13
- package/dist/{fraud-DU_YCLC5.mjs → fraud-CaoRrQ8W.mjs} +1 -1
- package/dist/generate-CrKNH6ms.mjs +3 -0
- package/dist/generate-Djb5Af37.mjs +2 -0
- package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-DDzLPmk5.mjs} +1 -1
- package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-Q2uXvt4m.mjs} +1 -1
- package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-CsaYnis6.mjs} +1 -1
- package/dist/{hyperdrive-DPWyiXpj.mjs → hyperdrive-DDr6sAkw.mjs} +9 -9
- package/dist/{iam-CtX9NPCy.mjs → iam-CmzocepZ.mjs} +24 -24
- package/dist/{images-CuWFOsGw.mjs → images-Ux0Phsbi.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-Nx4RRgfT.mjs +39 -0
- package/dist/{intel-BeGV3VXt.mjs → intel-bgS4g7nx.mjs} +38 -38
- package/dist/interactive-B_dcVghB.mjs +2 -0
- package/dist/interactive-D80kbTap.mjs +32 -0
- package/dist/{ips-d6aoKAI4.mjs → ips-BDiolgWF.mjs} +1 -1
- package/dist/keyless-certificates-C_TwTMql.mjs +13 -0
- package/dist/{keys-Fyf3vWcA.mjs → keys-Cr8AqQDY.mjs} +2 -2
- package/dist/{kv-CA4J7cCq.mjs → kv-DmAQCqXl.mjs} +10 -10
- package/dist/lazy-command-B_bwSa2F.mjs +2 -0
- package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-De7ph4VA.mjs} +1 -1
- package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-DXt4ndF4.mjs} +39 -39
- package/dist/local-CFd107fr.mjs +2 -0
- package/dist/{local-B6b2OIBW.mjs → local-OKXweFsd.mjs} +1 -1
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-tTYpniPS.mjs} +1 -1
- package/dist/login-BurQ63Ws.mjs +5 -0
- package/dist/login-CmlHvH5k.mjs +2 -0
- package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-CQ60P96J.mjs} +3 -3
- package/dist/{logos-BWBVGwU6.mjs → logos-u7UwT8MH.mjs} +3 -3
- package/dist/{logpush-CZKR8DHO.mjs → logpush-IoIe8e80.mjs} +23 -23
- package/dist/{logs-CiDyrqEu.mjs → logs-ih5tyXEE.mjs} +16 -16
- package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-CWNFnjcY.mjs} +34 -34
- package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-ClfZleF8.mjs} +17 -17
- package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-D69pkEVW.mjs} +139 -139
- package/dist/{managed-defense-SYreve4W.mjs → managed-defense-BHdmL0vx.mjs} +9 -9
- package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-DbCR4LUg.mjs} +1 -1
- package/dist/{matches-qf7GReyu.mjs → matches-Cou6RVkh.mjs} +3 -3
- package/dist/{mcp-DYSk5_gc.mjs → mcp-CQYfM19s.mjs} +15 -15
- package/dist/{mesh-DdY07OYt.mjs → mesh-CXqaAFS4.mjs} +12 -12
- package/dist/migrate-CXMbQPyC.mjs +2 -0
- package/dist/mtls-certificates-DNeId8xS.mjs +13 -0
- package/dist/{network-DpaZ5LJL.mjs → network-B7V3JbU7.mjs} +24 -24
- package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-BNon8iUs.mjs} +17 -17
- package/dist/oauth-CeXh-ACI.mjs +9 -0
- package/dist/{oauth-nsTDJ0dF.mjs → oauth-DM8q-TYg.mjs} +1 -1
- package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-gGmWIWHl.mjs} +7 -7
- package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-DSEu331u.mjs} +1 -1
- package/dist/{observability-smcOFbC1.mjs → observability-_VJhfwM1.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-DobJT1Mj.mjs +4 -0
- package/dist/{organization-Dyf_0mq4.mjs → organization-DW4EpwGl.mjs} +1 -1
- package/dist/{organizations-D7zGPLVm.mjs → organizations-DE1g2wVq.mjs} +1 -1
- package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-D3ULDV__.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-BLropaz7.mjs} +1 -1
- package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-C87TG2i_.mjs} +5 -5
- package/dist/output-CZt-berV.mjs +2 -0
- package/dist/{page-rules-CLzba_nr.mjs → page-rules-tlb9P-7V.mjs} +1 -1
- package/dist/{pages-pah6dZBJ.mjs → pages-CjPErYik.mjs} +24 -24
- package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-C50wI-Iz.mjs} +32 -32
- package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-DHHIvynU.mjs} +3 -3
- package/dist/{pipelines-lps71uoA.mjs → pipelines-Y2icOwuf.mjs} +20 -20
- package/dist/precursor-DeyurJSC.mjs +4 -0
- package/dist/previews-Dj_LcGRd.mjs +4 -0
- package/dist/progress-C9dWgc3J.mjs +2 -0
- package/dist/prompt-Mh69ni1N.mjs +3 -0
- package/dist/{queries-EJYlFw8m.mjs → queries-DyUJefwL.mjs} +4 -4
- package/dist/{queues-CozKGaA4.mjs → queues-CdNe4tGY.mjs} +29 -35
- package/dist/{r2-Chn_JQUM.mjs → r2-C0W2J4sT.mjs} +52 -52
- package/dist/{r2-data-catalog-Bfn3AWzn.mjs → r2-data-catalog-D_zDlmVD.mjs} +16 -16
- package/dist/{radar-NmpdyMo5.mjs → radar-CSguicKC.mjs} +1 -1
- package/dist/raw-fetch-1ygCOcT_.mjs +2 -0
- package/dist/{realtime-iWTz8WbH.mjs → realtime-CvWs5pi3.mjs} +78 -78
- package/dist/{registrar-Cza1L8i_.mjs → registrar-DQUxn0FK.mjs} +8 -8
- package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-Q7ZEmg2x.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-4Sw95M5_.mjs} +1 -1
- package/dist/{reporting-gvXX2MxY.mjs → reporting-DJShxeDv.mjs} +7 -7
- package/dist/request-headers-DFBBErJg.mjs +2 -0
- package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-DD8HlG61.mjs} +2 -2
- package/dist/resolve-BVxXAYG7.mjs +2 -0
- package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-J46JMWQP.mjs} +14 -14
- package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-DLZJLIqy.mjs} +2 -2
- package/dist/{rules-_QDaG3U5.mjs → rules-D068LfBR.mjs} +8 -8
- package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-Cz6P7Oje.mjs} +17 -17
- package/dist/{rum-ChPyfpM2.mjs → rum-C6GQC2vI.mjs} +14 -14
- package/dist/run-C_qUgBTs.mjs +2 -0
- package/dist/run-DK1d9BJz.mjs +2 -0
- package/dist/schema-VZPw_2CY.mjs +2 -0
- package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-BmY0Nzp0.mjs} +2 -2
- package/dist/{scim-BjiswXbC.mjs → scim-DMTp_Zhc.mjs} +10 -10
- package/dist/{sdk-CsWOex96.mjs → sdk-BuF3fTHr.mjs} +2 -2
- package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-C2epk0sQ.mjs} +11 -11
- package/dist/{security-center-DP4GC1cG.mjs → security-center-DwMdQ02Y.mjs} +15 -15
- package/dist/{security-txt-CaR5Idmz.mjs → security-txt-CORQfMul.mjs} +1 -1
- package/dist/session-BEXskZi2.mjs +2 -0
- package/dist/shared--lvrXmXY.mjs +2 -0
- package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-BZ0xjy_6.mjs} +1 -1
- package/dist/{snippets-r-Mre0cE.mjs → snippets-LSkJGDOc.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-Da3HnlmB.mjs +10 -0
- package/dist/{spectrum-BhjCVFZk.mjs → spectrum-zU8_GFTV.mjs} +1 -1
- package/dist/{speed-CPgypY7n.mjs → speed-4XbFmeYM.mjs} +1 -1
- package/dist/src-BLLpnbzC.mjs +109 -0
- package/dist/{ssl-DsMrXyqK.mjs → ssl-DiCsMY_a.mjs} +4 -4
- package/dist/startup-profile-6fCkD04r.mjs +17 -0
- package/dist/startup-profile-Cw-_akjQ.mjs +2 -0
- package/dist/state-CcktNox9.mjs +2 -0
- package/dist/{state-BxCejn42.mjs → state-DiHwKWTy.mjs} +1 -1
- package/dist/{stream-L2NmGPby.mjs → stream-BG3NUAVE.mjs} +45 -45
- package/dist/{submit-KN0Ul5fV.mjs → submit-CKSaSFS1.mjs} +2 -2
- package/dist/{tags-CZMFKGdP.mjs → tags-uT9Mi-bX.mjs} +2 -2
- package/dist/telemetry-C0k8vfbq.mjs +2 -0
- package/dist/telemetry-Dh-8kdfY.mjs +5 -0
- package/dist/{telemetry-CSj_ezpk.mjs → telemetry-IrDBqbQW.mjs} +1 -1
- package/dist/{tenant-Cu4P-foo.mjs → tenant--UrYFHM0.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-8Z4TVJtr.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-DNGD0l7I.mjs +2 -0
- package/dist/{tunnels-C-mMZy4v.mjs → tunnels-5lGSXYpl.mjs} +15 -15
- package/dist/turnstile-CT3AkMPV.mjs +33 -0
- package/dist/ui-D1hhIDIs.mjs +5 -0
- package/dist/update-check-BYJnL8J8.mjs +2 -0
- package/dist/update-check-DFoSm5GT.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-7ikewAnp.mjs → url-info-DvpNcNl8.mjs} +2 -2
- package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-C9URZnpq.mjs} +1 -1
- package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-CIwK3wB5.mjs} +8 -8
- package/dist/{user-BFq8UM1s.mjs → user-DGA7cqdf.mjs} +1 -1
- package/dist/{values-DnBYV1ZD.mjs → values-BzS0b25w.mjs} +2 -2
- package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-DtDjl2fJ.mjs} +15 -15
- package/dist/version-B47pK_PZ.mjs +2 -0
- package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-CjTh4F3B.mjs} +25 -25
- package/dist/{web-assets-CCSSW_JH.mjs → web-assets-4l1B5V9b.mjs} +1 -1
- package/dist/{web3-bbT1REPc.mjs → web3-C0Z4AJjC.mjs} +1 -1
- package/dist/{workers-CXuyjZB8.mjs → workers-CNBv6GxE.mjs} +20 -20
- package/dist/{workers-builds-TRF3K416.mjs → workers-builds-DYGeoxmX.mjs} +7 -7
- package/dist/{workers-for-platforms-B57iKiSN.mjs → workers-for-platforms-CSw0K8Nl.mjs} +11 -11
- package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-DJ7Couct.mjs} +6 -6
- package/dist/{workflows-CKdPlIkK.mjs → workflows-Dm03QT8U.mjs} +20 -20
- package/dist/{zaraz-BXFlEWSx.mjs → zaraz-DJbWUUe3.mjs} +1 -1
- package/dist/zero-trust-DiMY-pN5.mjs +685 -0
- package/dist/{zone-DHmrotGW.mjs → zone-BWjBv1yy.mjs} +1 -1
- package/dist/{zones-C0eKBTqG.mjs → zones-zGqcQvcY.mjs} +1 -1
- package/dist/zt-Bt4Q6iM1.mjs +110 -0
- package/package.json +13 -11
- package/dist/access-C_2rEi0H.mjs +0 -27
- package/dist/auth-DJhSjNNL.mjs +0 -8
- package/dist/auth-sAorfdWU.mjs +0 -2
- package/dist/browser-extension-C48pKh3t.mjs +0 -15
- package/dist/build-1a8CiNIT.mjs +0 -2
- package/dist/build-Ca_drQY2.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-CgaIc3zN.mjs +0 -13
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-CsZFRm3P.mjs +0 -2
- package/dist/command-DBz8QiFk.mjs +0 -2
- package/dist/dev-CVD3BVUG.mjs +0 -4
- package/dist/dialog--iw0F2s-.mjs +0 -2
- package/dist/dist-CUUGKvjh.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
- package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
- package/dist/firewall-67qoXiqD.mjs +0 -56
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CLW108XX.mjs +0 -5
- package/dist/login-xgRjiyJa.mjs +0 -2
- package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
- package/dist/oauth-Dzk6Gy-6.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/precursor-DTTYLDEa.mjs +0 -4
- package/dist/previews-B89cUmpr.mjs +0 -4
- package/dist/progress-D_mL-Kcy.mjs +0 -2
- package/dist/prompt-sL_yMZbI.mjs +0 -3
- package/dist/raw-fetch-lSVttVJF.mjs +0 -2
- package/dist/request-headers-POBKmu93.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-DtN51G2A.mjs +0 -2
- package/dist/run-oACgYK8I.mjs +0 -2
- package/dist/schema-DZSSJaY0.mjs +0 -2
- package/dist/shared-W9uoX1-W.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-BWEuIO-w.mjs +0 -523
- package/dist/src-Hw-TlVAO.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-DAf9gLyH.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-39JL9tMt.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-BKQBD4MQ.mjs +0 -2
- package/dist/update-check-CE9XB6gf.mjs +0 -2
- package/dist/version-Bh3b9vTa.mjs +0 -2
- package/dist/zero-trust-M08mBsYd.mjs +0 -795
- /package/dist/{Page-C-JHZnIy.mjs → Page-BchtVjAO.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-BpPZBRMr.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-Uy0Cmv1w.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CpcO2ExU.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-B6tm-8uL.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-oguk5Zyj.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-B6zuxkr0.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-D3e278L_.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-a01OfPf9.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-Bw9qmxMx.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CDm_xzKt.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BXGqY1Wi.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-AhGZD3a3.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-D_w5Gw20.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-qPFfBMrn.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-BZzFam-Q.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-BPA8nSPM.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-De0UlXYN.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ziDz9frX.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-83D2DCCG.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-Dhol31Kn.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-DoOPs6Vd.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CxpGEnJb.mjs} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-OKXweFsd.mjs";import{a as t,t as n}from"./context-Dzzbc9RK.mjs";import{r}from"./auth-B5p3SIhO.mjs";import{t as i}from"./output-CZt-berV.mjs";import{t as a}from"./dry-run-BmzTxDtZ.mjs";import{t as o}from"./progress-C9dWgc3J.mjs";import{t as s}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as c,r as l,t as u}from"./body-parser-BpPZBRMr.mjs";import{n as d}from"./input-validation-D3e278L_.mjs";import{a as f,n as p}from"./prompt-Mh69ni1N.mjs";import{t as m}from"./cli-types-B6tm-8uL.mjs";function h(e){return e.usage(`$0 agent-memory create-namespace
|
|
3
3
|
|
|
4
|
-
Creates a new memory namespace owned by the account.`).option(`name`,{type:`string`,description:`Namespace name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create-namespace`,describe:`Create a namespace`,builder:h,handler:async l=>s({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Creates a new memory namespace owned by the account.`).option(`name`,{type:`string`,description:`Namespace name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create-namespace`,describe:`Create a namespace`,builder:h,handler:async l=>s({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.agentMemory.createNamespace({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Namespace name.`));let m=u({name:d(l.name,`name`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.createNamespace({...m,account_id:p})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 agent-memory delete-memory <memory-id>
|
|
5
5
|
|
|
6
|
-
Deletes a memory by ID. Removes the memory and any source messages linked to it. Returns the deleted memory.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const v={command:`delete-memory <memory-id>`,describe:`Delete a memory`,builder:_,handler:async c=>s({command:`agent-memory delete-memory`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-memory`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Deletes a memory by ID. Removes the memory and any source messages linked to it. Returns the deleted memory.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const v={command:`delete-memory <memory-id>`,describe:`Delete a memory`,builder:_,handler:async c=>s({command:`agent-memory delete-memory`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-memory`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}/profiles/${c[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(c[`profile-name`]))}/memories/${c[`memory-id`]==null?`<memory-id>`:encodeURIComponent(String(c[`memory-id`]))}`,pathParams:{"namespace-name":String(c[`namespace-name`]??``),"profile-name":String(c[`profile-name`]??``),"memory-id":String(c[`memory-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes the memory and any source messages linked to it.`})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}i(await o(`Deleting`,async()=>s.agentMemory.deleteMemory({account_id:l,namespace_name:c[`namespace-name`],profile_name:c[`profile-name`],memory_id:c[`memory-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 agent-memory delete-namespace <namespace-name>
|
|
8
8
|
|
|
9
|
-
Deletes a namespace.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete-namespace <namespace-name>`,describe:`Delete a namespace`,builder:y,handler:async c=>s({command:`agent-memory delete-namespace`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-namespace`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
9
|
+
Deletes a namespace.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete-namespace <namespace-name>`,describe:`Delete a namespace`,builder:y,handler:async c=>s({command:`agent-memory delete-namespace`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-namespace`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}`,pathParams:{"namespace-name":String(c[`namespace-name`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes the namespace along with all memory profiles, memories, and sessions it contains.`})){process.stderr.write(`Aborted.
|
|
10
10
|
`);return}i(await o(`Deleting`,async()=>s.agentMemory.deleteNamespace({account_id:l,namespace_name:c[`namespace-name`]})),{successLabel:`Deleted`})})};function x(e){return e.usage(`$0 agent-memory delete-profile <profile-name>
|
|
11
11
|
|
|
12
|
-
Marks a profile for deletion.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const S={command:`delete-profile <profile-name>`,describe:`Delete a profile`,builder:x,handler:async c=>s({command:`agent-memory delete-profile`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-profile`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
12
|
+
Marks a profile for deletion.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const S={command:`delete-profile <profile-name>`,describe:`Delete a profile`,builder:x,handler:async c=>s({command:`agent-memory delete-profile`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-profile`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}/profiles/${c[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(c[`profile-name`]))}`,pathParams:{"namespace-name":String(c[`namespace-name`]??``),"profile-name":String(c[`profile-name`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes the profile along with all of its memories and messages.`})){process.stderr.write(`Aborted.
|
|
13
13
|
`);return}i(await o(`Deleting`,async()=>s.agentMemory.deleteProfile({account_id:l,namespace_name:c[`namespace-name`],profile_name:c[`profile-name`]})),{successLabel:`Deleted`})})};function C(e){return e.usage(`$0 agent-memory delete-session <session-id>
|
|
14
14
|
|
|
15
|
-
Marks all memories and messages in a profile that are tagged with the given session ID for deletion.`).positional(`session-id`,{type:`string`,description:`Session identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const w={command:`delete-session <session-id>`,describe:`Delete a session`,builder:C,handler:async c=>s({command:`agent-memory delete-session`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-session`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
15
|
+
Marks all memories and messages in a profile that are tagged with the given session ID for deletion.`).positional(`session-id`,{type:`string`,description:`Session identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const w={command:`delete-session <session-id>`,describe:`Delete a session`,builder:C,handler:async c=>s({command:`agent-memory delete-session`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory delete-session`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}/profiles/${c[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(c[`profile-name`]))}/sessions/${c[`session-id`]==null?`<session-id>`:encodeURIComponent(String(c[`session-id`]))}`,pathParams:{"namespace-name":String(c[`namespace-name`]??``),"profile-name":String(c[`profile-name`]??``),"session-id":String(c[`session-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes all memories and messages tagged with this session ID.`})){process.stderr.write(`Aborted.
|
|
16
16
|
`);return}i(await o(`Deleting`,async()=>s.agentMemory.deleteSession({account_id:l,namespace_name:c[`namespace-name`],profile_name:c[`profile-name`],session_id:c[`session-id`]})),{successLabel:`Deleted`})})};function T(e){return e.usage(`$0 agent-memory get-memory <memory-id>
|
|
17
17
|
|
|
18
|
-
Retrieves a memory by ID.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get-memory <memory-id>`,describe:`Get a memory`,builder:T,handler:async c=>s({command:`agent-memory get-memory`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory get-memory`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
18
|
+
Retrieves a memory by ID.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get-memory <memory-id>`,describe:`Get a memory`,builder:T,handler:async c=>s({command:`agent-memory get-memory`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory get-memory`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}/profiles/${c[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(c[`profile-name`]))}/memories/${c[`memory-id`]==null?`<memory-id>`:encodeURIComponent(String(c[`memory-id`]))}`,pathParams:{"namespace-name":String(c[`namespace-name`]??``),"profile-name":String(c[`profile-name`]??``),"memory-id":String(c[`memory-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.agentMemory.getMemory({account_id:l,namespace_name:c[`namespace-name`],profile_name:c[`profile-name`],memory_id:c[`memory-id`]})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 agent-memory get-namespace <namespace-name>
|
|
19
19
|
|
|
20
|
-
Gets a namespace by name.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get-namespace <namespace-name>`,describe:`Get a namespace`,builder:D,handler:async c=>s({command:`agent-memory get-namespace`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory get-namespace`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
20
|
+
Gets a namespace by name.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get-namespace <namespace-name>`,describe:`Get a namespace`,builder:D,handler:async c=>s({command:`agent-memory get-namespace`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf agent-memory get-namespace`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}`,pathParams:{"namespace-name":String(c[`namespace-name`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.agentMemory.getNamespace({account_id:l,namespace_name:c[`namespace-name`]})),{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 agent-memory ingest <profile-name>
|
|
21
21
|
|
|
22
|
-
Processes a conversation and extracts structured memories from it. Agent Memory identifies facts, events, instructions, and tasks automatically.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`messages`,{type:`string`,description:`Conversation messages to extract memories from. Provide as a JSON array of objects or @path/to/file.json.`}).option(`session-id`,{type:`string`,description:`Session identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const A={command:`ingest <profile-name>`,describe:`Ingest messages`,builder:k,handler:async f=>s({command:`agent-memory ingest`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf agent-memory ingest`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
22
|
+
Processes a conversation and extracts structured memories from it. Agent Memory identifies facts, events, instructions, and tasks automatically.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`messages`,{type:`string`,description:`Conversation messages to extract memories from. Provide as a JSON array of objects or @path/to/file.json.`}).option(`session-id`,{type:`string`,description:`Session identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const A={command:`ingest <profile-name>`,describe:`Ingest messages`,builder:k,handler:async f=>s({command:`agent-memory ingest`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf agent-memory ingest`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${f[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(f[`namespace-name`]))}/profiles/${f[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(f[`profile-name`]))}/ingest`,pathParams:{"namespace-name":String(f[`namespace-name`]??``),"profile-name":String(f[`profile-name`]??``)},bodyKind:`json`,body:f.body===void 0?u({messages:l(f.messages,`messages`),sessionId:d(f[`session-id`],`session-id`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.agentMemory.ingest({...e,account_id:p,namespace_name:f[`namespace-name`],profile_name:f[`profile-name`]})),{successLabel:`Created`});return}if(f.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);let m=u({messages:l(f.messages,`messages`),sessionId:d(f[`session-id`],`session-id`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.ingest({...m,account_id:p,namespace_name:f[`namespace-name`],profile_name:f[`profile-name`]})),{successLabel:`Created`})})};function j(e){return e.usage(`$0 agent-memory list-memories <profile-name>
|
|
23
23
|
|
|
24
|
-
List memories stored in a profile.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Continuation cursor for paginated results.`}).option(`session-id`,{type:`string`,description:`Session identifier for filtering.`}).option(`type`,{type:`string`,description:`Memory type for filtering.`,choices:[`fact`,`event`,`instruction`,`task`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list-memories <profile-name>`,describe:`List memories`,builder:m(j),handler:async c=>s({command:`agent-memory list-memories`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],cursor:c.cursor,session_id:c[`session-id`],type:c.type};if(c.dryRun){a({command:`cf agent-memory list-memories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
24
|
+
List memories stored in a profile.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Continuation cursor for paginated results.`}).option(`session-id`,{type:`string`,description:`Session identifier for filtering.`}).option(`type`,{type:`string`,description:`Memory type for filtering.`,choices:[`fact`,`event`,`instruction`,`task`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list-memories <profile-name>`,describe:`List memories`,builder:m(j),handler:async c=>s({command:`agent-memory list-memories`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],cursor:c.cursor,session_id:c[`session-id`],type:c.type};if(c.dryRun){a({command:`cf agent-memory list-memories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}/profiles/${c[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(c[`profile-name`]))}/memories`,pathParams:{"namespace-name":String(c[`namespace-name`]??``),"profile-name":String(c[`profile-name`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.agentMemory.listMemories({account_id:u,namespace_name:c[`namespace-name`],profile_name:c[`profile-name`],...s})),{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 agent-memory list-namespaces
|
|
25
25
|
|
|
26
|
-
Lists all namespaces for the given account. Results are paginated.`).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`order`,{type:`string`,description:`Field to order the results by.`,choices:[`id`,`name`]}).option(`direction`,{type:`string`,description:`Direction to sort the results in.`,choices:[`asc`,`desc`]}).option(`cursor`,{type:`string`,description:`Pagination cursor returned by a previous list response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`list-namespaces`,describe:`List namespaces`,builder:m(N),handler:async c=>s({command:`agent-memory list-namespaces`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],order:c.order,direction:c.direction,cursor:c.cursor};if(c.dryRun){a({command:`cf agent-memory list-namespaces`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
26
|
+
Lists all namespaces for the given account. Results are paginated.`).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`order`,{type:`string`,description:`Field to order the results by.`,choices:[`id`,`name`]}).option(`direction`,{type:`string`,description:`Direction to sort the results in.`,choices:[`asc`,`desc`]}).option(`cursor`,{type:`string`,description:`Pagination cursor returned by a previous list response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`list-namespaces`,describe:`List namespaces`,builder:m(N),handler:async c=>s({command:`agent-memory list-namespaces`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],order:c.order,direction:c.direction,cursor:c.cursor};if(c.dryRun){a({command:`cf agent-memory list-namespaces`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.agentMemory.listNamespaces({account_id:u,...s})),{successLabel:`Loaded`})})};function F(e){return e.usage(`$0 agent-memory list-profiles <namespace-name>
|
|
27
27
|
|
|
28
|
-
Lists the profiles of a namespace, ordered by name. A profile appears once it has been used.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque continuation cursor returned by a previous list response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list-profiles <namespace-name>`,describe:`List profiles`,builder:F,handler:async c=>s({command:`agent-memory list-profiles`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],cursor:c.cursor};if(c.dryRun){a({command:`cf agent-memory list-profiles`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
28
|
+
Lists the profiles of a namespace, ordered by name. A profile appears once it has been used.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque continuation cursor returned by a previous list response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list-profiles <namespace-name>`,describe:`List profiles`,builder:F,handler:async c=>s({command:`agent-memory list-profiles`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],cursor:c.cursor};if(c.dryRun){a({command:`cf agent-memory list-profiles`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${c[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(c[`namespace-name`]))}/profiles`,pathParams:{"namespace-name":String(c[`namespace-name`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.agentMemory.listProfiles({account_id:u,namespace_name:c[`namespace-name`],...s})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 agent-memory recall <profile-name>
|
|
29
29
|
|
|
30
|
-
Retrieves memories relevant to the query and returns a synthesized answer.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`query`,{type:`string`,description:`Natural-language query to match against stored memories.`}).option(`reference-date`,{type:`string`,description:`Temporal anchor for relative date references in the query.`}).option(`response-length`,{type:`string`,description:`Verbosity of the synthesized answer. Defaults to 'medium'.`,choices:[`short`,`medium`,`long`]}).option(`thinking-level`,{type:`string`,description:`Recall intensity / search depth. Defaults to 'low'.`,choices:[`low`,`medium`,`high`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const R={command:`recall <profile-name>`,describe:`Recall memories`,builder:L,handler:async l=>s({command:`agent-memory recall`,classification:{safeFlags:[`response-length`,`thinking-level`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory recall`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
30
|
+
Retrieves memories relevant to the query and returns a synthesized answer.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`query`,{type:`string`,description:`Natural-language query to match against stored memories.`}).option(`reference-date`,{type:`string`,description:`Temporal anchor for relative date references in the query.`}).option(`response-length`,{type:`string`,description:`Verbosity of the synthesized answer. Defaults to 'medium'.`,choices:[`short`,`medium`,`long`]}).option(`thinking-level`,{type:`string`,description:`Recall intensity / search depth. Defaults to 'low'.`,choices:[`low`,`medium`,`high`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const R={command:`recall <profile-name>`,describe:`Recall memories`,builder:L,handler:async l=>s({command:`agent-memory recall`,classification:{safeFlags:[`response-length`,`thinking-level`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory recall`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${l[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(l[`namespace-name`]))}/profiles/${l[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(l[`profile-name`]))}/recall`,pathParams:{"namespace-name":String(l[`namespace-name`]??``),"profile-name":String(l[`profile-name`]??``)},bodyKind:`json`,body:l.body===void 0?u({query:d(l.query,`query`,`text`),referenceDate:d(l[`reference-date`],`reference-date`,`text`),responseLength:d(l[`response-length`],`response-length`,`text`),thinkingLevel:d(l[`thinking-level`],`thinking-level`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.agentMemory.recall({...e,account_id:p,namespace_name:l[`namespace-name`],profile_name:l[`profile-name`]})),{successLabel:`Created`});return}l.query===void 0&&(l.query=await f(`query`,`Natural-language query to match against stored memories.`));let m=u({query:d(l.query,`query`,`text`),referenceDate:d(l[`reference-date`],`reference-date`,`text`),responseLength:d(l[`response-length`],`response-length`,`text`),thinkingLevel:d(l[`thinking-level`],`thinking-level`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.recall({...m,account_id:p,namespace_name:l[`namespace-name`],profile_name:l[`profile-name`]})),{successLabel:`Created`})})};function z(e){return e.usage(`$0 agent-memory remember <profile-name>
|
|
31
31
|
|
|
32
|
-
Stores a single memory explicitly.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`content`,{type:`string`,description:`Raw memory content to store.`}).option(`session-id`,{type:`string`,description:`Session identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const B={command:`remember <profile-name>`,describe:`Remember a memory`,builder:z,handler:async l=>s({command:`agent-memory remember`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory remember`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
32
|
+
Stores a single memory explicitly.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`content`,{type:`string`,description:`Raw memory content to store.`}).option(`session-id`,{type:`string`,description:`Session identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const B={command:`remember <profile-name>`,describe:`Remember a memory`,builder:z,handler:async l=>s({command:`agent-memory remember`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory remember`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${l[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(l[`namespace-name`]))}/profiles/${l[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(l[`profile-name`]))}/remember`,pathParams:{"namespace-name":String(l[`namespace-name`]??``),"profile-name":String(l[`profile-name`]??``)},bodyKind:`json`,body:l.body===void 0?u({content:d(l.content,`content`,`text`),sessionId:d(l[`session-id`],`session-id`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.agentMemory.remember({...e,account_id:p,namespace_name:l[`namespace-name`],profile_name:l[`profile-name`]})),{successLabel:`Created`});return}l.content===void 0&&(l.content=await f(`content`,`Raw memory content to store.`));let m=u({content:d(l.content,`content`,`text`),sessionId:d(l[`session-id`],`session-id`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.remember({...m,account_id:p,namespace_name:l[`namespace-name`],profile_name:l[`profile-name`]})),{successLabel:`Created`})})};function V(e){return e.usage(`$0 agent-memory summary <profile-name>
|
|
33
33
|
|
|
34
|
-
Generates a paste-ready prompt block summarizing everything stored in a memory profile.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`Session identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const H={command:`summary <profile-name>`,describe:`Get a profile summary`,builder:V,handler:async l=>s({command:`agent-memory summary`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory summary`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
34
|
+
Generates a paste-ready prompt block summarizing everything stored in a memory profile.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`Session identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const H={command:`summary <profile-name>`,describe:`Get a profile summary`,builder:V,handler:async l=>s({command:`agent-memory summary`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory summary`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces/${l[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(l[`namespace-name`]))}/profiles/${l[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(l[`profile-name`]))}/summary`,pathParams:{"namespace-name":String(l[`namespace-name`]??``),"profile-name":String(l[`profile-name`]??``)},bodyKind:`json`,body:l.body===void 0?u({sessionId:d(l[`session-id`],`session-id`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.agentMemory.summary({...e,account_id:f,namespace_name:l[`namespace-name`],profile_name:l[`profile-name`]})),{successLabel:`Created`});return}let p=u({sessionId:d(l[`session-id`],`session-id`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.summary({...p,account_id:f,namespace_name:l[`namespace-name`],profile_name:l[`profile-name`]})),{successLabel:`Created`})})},U={command:`agent-memory`,describe:`agent-memory`,builder:e=>e.command(g).command(v).command(b).command(S).command(w).command(E).command(O).command(A).command(M).command(P).command(I).command(R).command(B).command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{U as default};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import{n as t,t as n}from"./local-OKXweFsd.mjs";import{a as r,t as i}from"./context-Dzzbc9RK.mjs";import{a,o,r as s}from"./auth-B5p3SIhO.mjs";import{t as c}from"./output-CZt-berV.mjs";import{t as l}from"./dry-run-BmzTxDtZ.mjs";import{t as u}from"./progress-C9dWgc3J.mjs";import{n as d,t as f}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as p,t as m}from"./body-parser-BpPZBRMr.mjs";import{n as h,t as g}from"./input-validation-D3e278L_.mjs";import{a as _,i as v,n as y}from"./prompt-Mh69ni1N.mjs";import{t as b}from"./cli-types-B6tm-8uL.mjs";import{n as x}from"./raw-fetch-1ygCOcT_.mjs";import{_ as S,c as C,d as w,f as T,g as ee,h as E,i as D,l as O,m as k,n as A,o as j,p as M,r as N,s as P,t as F}from"./schema-flags-BmY0Nzp0.mjs";const I=`ai-model-schema`;async function L(e,t,n,r){let i=ee(I,[t,e]);if(i)return{ok:!0,schema:i};let a;try{let i=await n();if(r===void 0)a=await i.ai.getModelSchema({account_id:t,model:e});else{let n=r-Date.now();if(n<=0)return{ok:!1,reason:`the request timed out`};a=await i.ai.getModelSchema({account_id:t,model:e},{timeoutInSeconds:n/1e3,maxRetries:0})}}catch(e){return{ok:!1,reason:k(e)}}let o=E(a,`input`);return o?(S(I,[t,e],o),{ok:!0,schema:o}):{ok:!1,reason:`the API returned no input schema`}}const R="Run `cf ai models list` to see the models you can run.",z=[`model-name`,`modelName`];let B;function V(e){return B=e,e.positional(`model-name`,{type:`string`,description:`Model ID, e.g. @cf/meta/llama-3.1-8b-instruct`}).option(`body`,{type:`string`,description:`Raw JSON request body, or @path to a JSON file`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).strictOptions(!1).help(!1).option(`help`,{type:`boolean`,alias:`h`,description:`Show help, including this model's input flags`}).epilogue(`Input flags depend on the model: run \`cf ai run <model> --help\`.\n${R}`)}async function H(n){n.local&&console.log(`${t}\n`),B?.showHelp(`log`);let r=n[`model-name`];if(!r||n.local)return;let i=Date.now()+M,a=await o(i);if(!a){console.log(`\n${e.muted(`Set \`CLOUDFLARE_ACCOUNT_ID\` or sign in with \`cf auth login\` to see the input flags for ${r}.`)}`);return}let c=await L(r,a,()=>s(n),i);console.log(c.ok?`\n${j(C(c.schema),`Input flags for ${r}`)}`:`\n${e.muted(`Could not load the input flags for ${r}: ${c.reason}.`)}`)}var U=d({command:`run [model-name]`,describe:"Run inference on a Workers AI model. Input flags are model-specific — see `cf ai run <model> --help`",builder:V,handler:async e=>{if(e.help){await H(e);return}if(e.local)throw Error(t);let n=e[`model-name`];if(!n)throw Error(`A model is required: cf ai run <model>. ${R}`);let o=e.dryRun?await r()??`<account-id>`:await i(),d=n.split(`/`).map(encodeURIComponent).join(`/`),f;if(e.body!==void 0){if(O(e,z).length>0)throw Error(`--body cannot be combined with model input flags. Pass one or the other.`);f=p(e.body)}else{let t=await L(n,o,()=>s(e));if(!t.ok)throw Error(`Could not load the input schema for ${n}: ${t.reason}.\nPass the request body directly instead: cf ai run ${n} --body '{…}'`);let r=C(t.schema),i=O(e,[...z,...A(r)]);if(i.length>0)throw Error(`${i.map(e=>`Unknown flag --${e}`).join(`
|
|
3
3
|
`)}\n\nRun \`cf ai run ${n} --help\` for this model's input flags.`);let a=new Set;for(;;){let t=D(r,e).find(e=>!a.has(e.name)&&(e.choices!==void 0||e.type===`string`));if(!t)break;a.add(t.name),t.choices?e[t.name]=await v(t.name,P(t),t.choices,t.choiceLabels):e[t.name]=await _(t.name,P(t))}let c=N(t.schema),l=F(r,e,{reserved:z}),u=l.errors.length===0?c?w(t.schema,l.body):T(t.schema,l.body):l.errors;if(u.length>0)throw Error(`${u.join(`
|
|
4
4
|
`)}\n\nRun \`cf ai run ${n} --help\` for this model's input flags.`);f=l.body}if(e.dryRun){l({command:`cf ai run`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${o}/ai/run/${d}`,pathParams:{"model-name":n},bodyKind:`json`,body:f});return}let m=await s(e);e.accountId=o;let h=await u(`Running`,async()=>a(m,`POST`,`/accounts/${o}/ai/run/${d}`,{body:f,preserveNonJsonBytes:!0}));if(Buffer.isBuffer(h)){x(h);return}c(h,{successLabel:`Ran`})}},{command:`ai run`,recordArgs:!1});function W(e){return e.usage(`$0 ai authors list
|
|
5
5
|
|
|
6
|
-
Searches Workers AI models by author or organization name.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`list`,describe:`Author Search`,builder:W,handler:async e=>f({command:`ai authors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai authors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Searches Workers AI models by author or organization name.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`list`,describe:`Author Search`,builder:W,handler:async e=>f({command:`ai authors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai authors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/authors/search`,pathParams:{},bodyKind:`none`});return}let t=await s(e),a=e.local?n:await i();e.accountId=a,c(await u(`Loading`,async()=>t.ai.authors.list({account_id:a})),{successLabel:`Loaded`})})},K={command:`authors`,describe:`Operations for authors`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function q(e){return e.usage(`$0 ai finetunes assets create <finetune-id>
|
|
7
7
|
|
|
8
|
-
Uploads training data assets for a Workers AI fine-tuning job.`).positional(`finetune-id`,{type:`string`,description:`Finetune ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Finetune asset file upload.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`file-name`,{type:`string`,description:`Name of the file (adapter_config.json or adapter_model.safetensors).`})}const J={command:`create <finetune-id>`,describe:`Upload a Finetune Asset`,builder:q,handler:async e=>f({command:`ai finetunes assets create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes assets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
8
|
+
Uploads training data assets for a Workers AI fine-tuning job.`).positional(`finetune-id`,{type:`string`,description:`Finetune ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Finetune asset file upload.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`file-name`,{type:`string`,description:`Name of the file (adapter_config.json or adapter_model.safetensors).`})}const J={command:`create <finetune-id>`,describe:`Upload a Finetune Asset`,builder:q,handler:async e=>f({command:`ai finetunes assets create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes assets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/finetunes/${e[`finetune-id`]==null?`<finetune-id>`:encodeURIComponent(String(e[`finetune-id`]))}/finetune-assets`,pathParams:{"finetune-id":String(e[`finetune-id`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,"file-name":e[`file-name`]}});return}let t=await s(e),o=e.local?n:await i();if(e.accountId=o,e.file!==void 0||e.body!==void 0||e[`file-name`]!==void 0){let n=new FormData;if(e.file){let t=g(e.file);n.append(`file`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&n.append(`file`,e.body);e[`file-name`]!==void 0&&n.append(`file_name`,String(h(e[`file-name`],`file-name`,`text`)??``)),c(await u(`Creating`,async()=>a(t,`POST`,`/accounts/${o}/ai/finetunes/${encodeURIComponent(String(e[`finetune-id`]))}/finetune-assets`,{body:n})),{successLabel:`Created`});return}if(e.body){let n=h(e.body,`body`,`binary`);c(await u(`Creating`,async()=>a(t,`POST`,`/accounts/${o}/ai/finetunes/${encodeURIComponent(String(e[`finetune-id`]))}/finetune-assets`,{body:n,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function Y(e){return e.usage(`$0 ai finetunes assets download <file-name>
|
|
9
9
|
|
|
10
|
-
Returns a pre-signed R2 URL for downloading a finetune asset file.`).positional(`file-name`,{type:`string`,description:`File name`,demandOption:!0}).option(`finetune-id`,{type:`string`,description:`Finetune ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`download <file-name>`,describe:`Download a Finetune Asset`,builder:Y,handler:async e=>f({command:`ai finetunes assets download`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes assets download`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
10
|
+
Returns a pre-signed R2 URL for downloading a finetune asset file.`).positional(`file-name`,{type:`string`,description:`File name`,demandOption:!0}).option(`finetune-id`,{type:`string`,description:`Finetune ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`download <file-name>`,describe:`Download a Finetune Asset`,builder:Y,handler:async e=>f({command:`ai finetunes assets download`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes assets download`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/finetunes/${e[`finetune-id`]==null?`<finetune-id>`:encodeURIComponent(String(e[`finetune-id`]))}/finetune-assets/${e[`file-name`]==null?`<file-name>`:encodeURIComponent(String(e[`file-name`]))}`,pathParams:{"finetune-id":String(e[`finetune-id`]??``),"file-name":String(e[`file-name`]??``)},bodyKind:`none`});return}let t=await s(e),a=e.local?n:await i();e.accountId=a,c(await u(`Loading`,async()=>t.ai.finetunes.assets.download({account_id:a,finetune_id:e[`finetune-id`],file_name:e[`file-name`]})),{successLabel:`Loaded`})})},X={command:`assets`,describe:`Operations for finetunes.assets`,builder:e=>e.command(J).command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 ai finetunes create
|
|
11
11
|
|
|
12
|
-
Creates a new fine-tuning job for a Workers AI model using custom training data.`).option(`description`,{type:`string`,description:`The description field`}).option(`model`,{type:`string`,description:`The model field`}).option(`name`,{type:`string`,description:`The name field`}).option(`public`,{type:`boolean`,description:`The public field`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`create`,describe:`Create a new Finetune`,builder:Z,handler:async e=>f({command:`ai finetunes create`,classification:{safeFlags:[`public`,`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
12
|
+
Creates a new fine-tuning job for a Workers AI model using custom training data.`).option(`description`,{type:`string`,description:`The description field`}).option(`model`,{type:`string`,description:`The model field`}).option(`name`,{type:`string`,description:`The name field`}).option(`public`,{type:`boolean`,description:`The public field`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`create`,describe:`Create a new Finetune`,builder:Z,handler:async e=>f({command:`ai finetunes create`,classification:{safeFlags:[`public`,`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/finetunes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({description:h(e.description,`description`,`text`),model:h(e.model,`model`,`text`),name:h(e.name,`name`,`text`),public:e.public}):p(e.body)});return}let t=await s(e),a=e.local?n:await i();if(e.accountId=a,e.body){let n=p(e.body);c(await u(`Creating`,async()=>t.ai.finetunes.create({...n,account_id:a})),{successLabel:`Created`});return}e.model===void 0&&(e.model=await _(`model`,`The model field`)),e.name===void 0&&(e.name=await _(`name`,`The name field`));let o=m({description:h(e.description,`description`,`text`),model:h(e.model,`model`,`text`),name:h(e.name,`name`,`text`),public:e.public});c(await u(`Creating`,async()=>t.ai.finetunes.create({...o,account_id:a})),{successLabel:`Created`})})};function ne(e){return e.usage(`$0 ai finetunes delete <finetune-id>
|
|
13
13
|
|
|
14
|
-
Delete a finetune. Any in-flight requests referencing the lora will fail after the files are deleted.`).positional(`finetune-id`,{type:`string`,description:`Finetune ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const re={command:`delete <finetune-id>`,describe:`Delete a Finetune`,builder:ne,handler:async e=>f({command:`ai finetunes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
14
|
+
Delete a finetune. Any in-flight requests referencing the lora will fail after the files are deleted.`).positional(`finetune-id`,{type:`string`,description:`Finetune ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const re={command:`delete <finetune-id>`,describe:`Delete a Finetune`,builder:ne,handler:async e=>f({command:`ai finetunes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/finetunes/${e[`finetune-id`]==null?`<finetune-id>`:encodeURIComponent(String(e[`finetune-id`]))}`,pathParams:{"finetune-id":String(e[`finetune-id`]??``)},bodyKind:`none`});return}let t=await s(e),a=e.local?n:await i();if(e.accountId=a,!await y({force:!!e.force})){process.stderr.write(`Aborted.
|
|
15
15
|
`);return}c(await u(`Deleting`,async()=>t.ai.finetunes.delete({account_id:a,finetune_id:e[`finetune-id`]})),{successLabel:`Deleted`})})};function ie(e){return e.usage(`$0 ai finetunes list
|
|
16
16
|
|
|
17
|
-
Lists all fine-tuning jobs created by the account, including status and metrics.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List Finetunes`,builder:ie,handler:async e=>f({command:`ai finetunes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Lists all fine-tuning jobs created by the account, including status and metrics.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List Finetunes`,builder:ie,handler:async e=>f({command:`ai finetunes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai finetunes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/finetunes`,pathParams:{},bodyKind:`none`});return}let t=await s(e),a=e.local?n:await i();e.accountId=a,c(await u(`Loading`,async()=>t.ai.finetunes.list({account_id:a})),{successLabel:`Loaded`})})};function oe(e){return e.usage(`$0 ai finetunes public list
|
|
18
18
|
|
|
19
|
-
Lists publicly available fine-tuned models that can be used with Workers AI.`).option(`limit`,{type:`number`,description:`Pagination Limit.`}).option(`offset`,{type:`number`,description:`Pagination Offset.`}).option(`order-by`,{type:`string`,description:`Order By Column Name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`list`,describe:`List Public Finetunes`,builder:oe,handler:async e=>f({command:`ai finetunes public list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={limit:e.limit,offset:e.offset,orderBy:e[`order-by`]};if(e.dryRun){l({command:`cf ai finetunes public list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
19
|
+
Lists publicly available fine-tuned models that can be used with Workers AI.`).option(`limit`,{type:`number`,description:`Pagination Limit.`}).option(`offset`,{type:`number`,description:`Pagination Offset.`}).option(`order-by`,{type:`string`,description:`Order By Column Name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`list`,describe:`List Public Finetunes`,builder:oe,handler:async e=>f({command:`ai finetunes public list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={limit:e.limit,offset:e.offset,orderBy:e[`order-by`]};if(e.dryRun){l({command:`cf ai finetunes public list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/finetunes/public`,pathParams:{},query:t,bodyKind:`none`});return}let a=await s(e),o=e.local?n:await i();e.accountId=o,c(await u(`Loading`,async()=>a.ai.finetunes.public.list({account_id:o,...t})),{successLabel:`Loaded`})})},ce={command:`public`,describe:`Operations for finetunes.public`,builder:e=>e.command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},le={command:`finetunes`,describe:`Operations for finetunes`,builder:e=>e.command(Q).command(re).command(ae).command(X).command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ue(e){return e.usage(`$0 ai get-model-schema
|
|
20
20
|
|
|
21
|
-
Retrieves the input and output JSON schema definition for a Workers AI model.`).option(`model`,{type:`string`,description:`Model Name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get-model-schema`,describe:`Get Model Schema`,builder:ue,handler:async e=>f({command:`ai get-model-schema`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={model:e.model};if(e.dryRun){l({command:`cf ai get-model-schema`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
21
|
+
Retrieves the input and output JSON schema definition for a Workers AI model.`).option(`model`,{type:`string`,description:`Model Name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get-model-schema`,describe:`Get Model Schema`,builder:ue,handler:async e=>f({command:`ai get-model-schema`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={model:e.model};if(e.dryRun){l({command:`cf ai get-model-schema`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/models/schema`,pathParams:{},query:t,bodyKind:`none`});return}let a=await s(e),o=e.local?n:await i();e.accountId=o,c(await u(`Loading`,async()=>a.ai.getModelSchema({account_id:o,...t})),{successLabel:`Loaded`})})};function fe(e){return e.usage(`$0 ai listMarkdownSupportedFormats
|
|
22
22
|
|
|
23
|
-
Lists all file formats supported for conversion to Markdown.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`listMarkdownSupportedFormats`,describe:`Get all converted formats supported`,builder:fe,handler:async e=>f({command:`ai listMarkdownSupportedFormats`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai listMarkdownSupportedFormats`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
23
|
+
Lists all file formats supported for conversion to Markdown.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`listMarkdownSupportedFormats`,describe:`Get all converted formats supported`,builder:fe,handler:async e=>f({command:`ai listMarkdownSupportedFormats`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai listMarkdownSupportedFormats`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/tomarkdown/supported`,pathParams:{},bodyKind:`none`});return}let t=await s(e),a=e.local?n:await i();e.accountId=a,c(await u(`Loading`,async()=>t.ai.listMarkdownSupportedFormats({account_id:a})),{successLabel:`Loaded`})})};function $(e){return e.usage(`$0 ai models list
|
|
24
24
|
|
|
25
|
-
Searches Workers AI models by name or description.`).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`task`,{type:`string`,description:`Filter by Task Name.`}).option(`author`,{type:`string`,description:`Filter by Author.`}).option(`source`,{type:`number`,description:`Filter by Source Id.`}).option(`hide-experimental`,{type:`boolean`,description:`Filter to hide experimental models.`}).option(`search`,{type:`string`,description:`Search.`}).option(`include-deprecated`,{type:`boolean`,description:`If true, include models for up to three months after their deprecation date. Defaults to false.`}).option(`format`,{type:`string`,description:`If set, return models in the requested marketplace format instead of the default response.`,choices:[`openrouter`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`Model Search`,builder:b($),handler:async e=>f({command:`ai models list`,classification:{safeFlags:[`hide-experimental`,`include-deprecated`,`format`,`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page:e.page,task:e.task,author:e.author,source:e.source,hide_experimental:e[`hide-experimental`],search:e.search,include_deprecated:e[`include-deprecated`],format:e.format};if(e.dryRun){l({command:`cf ai models list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
25
|
+
Searches Workers AI models by name or description.`).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`task`,{type:`string`,description:`Filter by Task Name.`}).option(`author`,{type:`string`,description:`Filter by Author.`}).option(`source`,{type:`number`,description:`Filter by Source Id.`}).option(`hide-experimental`,{type:`boolean`,description:`Filter to hide experimental models.`}).option(`search`,{type:`string`,description:`Search.`}).option(`include-deprecated`,{type:`boolean`,description:`If true, include models for up to three months after their deprecation date. Defaults to false.`}).option(`format`,{type:`string`,description:`If set, return models in the requested marketplace format instead of the default response.`,choices:[`openrouter`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`Model Search`,builder:b($),handler:async e=>f({command:`ai models list`,classification:{safeFlags:[`hide-experimental`,`include-deprecated`,`format`,`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page:e.page,task:e.task,author:e.author,source:e.source,hide_experimental:e[`hide-experimental`],search:e.search,include_deprecated:e[`include-deprecated`],format:e.format};if(e.dryRun){l({command:`cf ai models list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/models/search`,pathParams:{},query:t,bodyKind:`none`});return}let a=await s(e),o=e.local?n:await i();e.accountId=o,c(await u(`Loading`,async()=>a.ai.models.list({account_id:o,...t})),{successLabel:`Loaded`})})},he={command:`models`,describe:`Operations for models`,builder:e=>e.command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ge(e){return e.usage(`$0 ai run-model <model-name>
|
|
26
26
|
|
|
27
|
-
This endpoint provides users with the capability to run specific AI models on-demand. By submitting the required input data, users can receive real-time predictions or results generated by the chosen AI model. The endpoint supports various AI model types, ensuring flexibility and adaptability for diverse use cases. Model specific inputs available in [Cloudflare Docs](https://developers.cloudflare.com/workers-ai/models/).`).positional(`model-name`,{type:`string`,description:`Model name`,demandOption:!0}).option(`text`,{type:`string`,description:`The text that you want to classify`}).option(`guidance`,{type:`number`,description:`Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt`}).option(`height`,{type:`number`,description:`The height of the generated image in pixels`}).option(`image`,{type:`string`,array:!0,description:`For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values`}).option(`image-b64`,{type:`string`,description:`For use with img2img tasks. A base64-encoded string of the input image`}).option(`mask`,{type:`string`,array:!0,description:`An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values`}).option(`negative-prompt`,{type:`string`,description:`Text describing elements to avoid in the generated image`}).option(`num-steps`,{type:`number`,description:`The number of diffusion steps; higher values can improve quality but take longer`}).option(`prompt`,{type:`string`,description:`A text description of the image you want to generate`}).option(`seed`,{type:`number`,description:`Random seed for reproducibility of the image generation`}).option(`strength`,{type:`number`,description:`A value between 0 and 1 indicating how strongly to apply the transformation during img2img tasks; lower values make the output closer to the input image`}).option(`width`,{type:`number`,description:`The width of the generated image in pixels`}).option(`lang`,{type:`string`,description:`The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified`}).option(`source-lang`,{type:`string`,description:`The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified`}).option(`target-lang`,{type:`string`,description:`The language code to translate the text into (e.g., 'es' for Spanish)`}).option(`input-text`,{type:`string`,description:`The text that you want the model to summarize`}).option(`max-length`,{type:`number`,description:`The maximum length of the generated summary in tokens`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`text`,[`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`input-text`,`max-length`]).conflicts(`guidance`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`height`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`image`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`,`prompt`]).conflicts(`image-b64`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`mask`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`negative-prompt`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`num-steps`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`prompt`,[`text`,`source-lang`,`target-lang`,`input-text`,`max-length`,`image`]).conflicts(`seed`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`strength`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`width`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`lang`,[`text`,`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`seed`,`strength`,`width`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`source-lang`,[`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`input-text`,`max-length`]).conflicts(`target-lang`,[`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`input-text`,`max-length`]).implies(`target-lang`,[`text`]).conflicts(`input-text`,[`text`,`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`source-lang`,`target-lang`]).conflicts(`max-length`,[`text`,`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`source-lang`,`target-lang`])}const _e={command:`run-model <model-name>`,describe:`Execute AI model`,builder:ge,handler:async e=>f({command:`ai run-model`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai run-model`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
27
|
+
This endpoint provides users with the capability to run specific AI models on-demand. By submitting the required input data, users can receive real-time predictions or results generated by the chosen AI model. The endpoint supports various AI model types, ensuring flexibility and adaptability for diverse use cases. Model specific inputs available in [Cloudflare Docs](https://developers.cloudflare.com/workers-ai/models/).`).positional(`model-name`,{type:`string`,description:`Model name`,demandOption:!0}).option(`text`,{type:`string`,description:`The text that you want to classify`}).option(`guidance`,{type:`number`,description:`Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt`}).option(`height`,{type:`number`,description:`The height of the generated image in pixels`}).option(`image`,{type:`string`,array:!0,description:`For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values`}).option(`image-b64`,{type:`string`,description:`For use with img2img tasks. A base64-encoded string of the input image`}).option(`mask`,{type:`string`,array:!0,description:`An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values`}).option(`negative-prompt`,{type:`string`,description:`Text describing elements to avoid in the generated image`}).option(`num-steps`,{type:`number`,description:`The number of diffusion steps; higher values can improve quality but take longer`}).option(`prompt`,{type:`string`,description:`A text description of the image you want to generate`}).option(`seed`,{type:`number`,description:`Random seed for reproducibility of the image generation`}).option(`strength`,{type:`number`,description:`A value between 0 and 1 indicating how strongly to apply the transformation during img2img tasks; lower values make the output closer to the input image`}).option(`width`,{type:`number`,description:`The width of the generated image in pixels`}).option(`lang`,{type:`string`,description:`The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified`}).option(`source-lang`,{type:`string`,description:`The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified`}).option(`target-lang`,{type:`string`,description:`The language code to translate the text into (e.g., 'es' for Spanish)`}).option(`input-text`,{type:`string`,description:`The text that you want the model to summarize`}).option(`max-length`,{type:`number`,description:`The maximum length of the generated summary in tokens`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`text`,[`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`input-text`,`max-length`]).conflicts(`guidance`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`height`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`image`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`,`prompt`]).conflicts(`image-b64`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`mask`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`negative-prompt`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`num-steps`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`prompt`,[`text`,`source-lang`,`target-lang`,`input-text`,`max-length`,`image`]).conflicts(`seed`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`strength`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`width`,[`text`,`lang`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`lang`,[`text`,`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`seed`,`strength`,`width`,`source-lang`,`target-lang`,`input-text`,`max-length`]).conflicts(`source-lang`,[`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`input-text`,`max-length`]).conflicts(`target-lang`,[`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`input-text`,`max-length`]).implies(`target-lang`,[`text`]).conflicts(`input-text`,[`text`,`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`source-lang`,`target-lang`]).conflicts(`max-length`,[`text`,`guidance`,`height`,`image`,`image-b64`,`mask`,`negative-prompt`,`num-steps`,`prompt`,`seed`,`strength`,`width`,`lang`,`source-lang`,`target-lang`])}const _e={command:`run-model <model-name>`,describe:`Execute AI model`,builder:ge,handler:async e=>f({command:`ai run-model`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai run-model`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/run/${e[`model-name`]==null?`<model-name>`:encodeURIComponent(String(e[`model-name`]))}`,pathParams:{"model-name":String(e[`model-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({text:h(e.text,`text`,`text`),guidance:e.guidance,height:e.height,image:e.image,image_b64:h(e[`image-b64`],`image-b64`,`text`),mask:e.mask,negative_prompt:h(e[`negative-prompt`],`negative-prompt`,`text`),num_steps:e[`num-steps`],prompt:h(e.prompt,`prompt`,`text`),seed:e.seed,strength:e.strength,width:e.width,lang:h(e.lang,`lang`,`text`),source_lang:h(e[`source-lang`],`source-lang`,`text`),target_lang:h(e[`target-lang`],`target-lang`,`text`),input_text:h(e[`input-text`],`input-text`,`text`),max_length:e[`max-length`]}):p(e.body)});return}let t=await s(e),a=e.local?n:await i();if(e.accountId=a,e.body){let n=p(e.body);c(await u(`Creating`,async()=>t.ai.runModel({body:n,account_id:a,model_name:e[`model-name`]})),{successLabel:`Created`});return}let o=m({text:h(e.text,`text`,`text`),guidance:e.guidance,height:e.height,image:e.image,image_b64:h(e[`image-b64`],`image-b64`,`text`),mask:e.mask,negative_prompt:h(e[`negative-prompt`],`negative-prompt`,`text`),num_steps:e[`num-steps`],prompt:h(e.prompt,`prompt`,`text`),seed:e.seed,strength:e.strength,width:e.width,lang:h(e.lang,`lang`,`text`),source_lang:h(e[`source-lang`],`source-lang`,`text`),target_lang:h(e[`target-lang`],`target-lang`,`text`),input_text:h(e[`input-text`],`input-text`,`text`),max_length:e[`max-length`]});c(await u(`Creating`,async()=>t.ai.runModel({body:o,account_id:a,model_name:e[`model-name`]})),{successLabel:`Created`})})};function ve(e){return e.usage(`$0 ai tasks list
|
|
28
28
|
|
|
29
|
-
Searches Workers AI models by task type (e.g., text-generation, embeddings).`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ye={command:`list`,describe:`Task Search`,builder:ve,handler:async e=>f({command:`ai tasks list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai tasks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
29
|
+
Searches Workers AI models by task type (e.g., text-generation, embeddings).`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ye={command:`list`,describe:`Task Search`,builder:ve,handler:async e=>f({command:`ai tasks list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai tasks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/tasks/search`,pathParams:{},bodyKind:`none`});return}let t=await s(e),a=e.local?n:await i();e.accountId=a,c(await u(`Loading`,async()=>t.ai.tasks.list({account_id:a})),{successLabel:`Loaded`})})},be={command:`tasks`,describe:`Operations for tasks`,builder:e=>e.command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xe(e){return e.usage(`$0 ai to-markdown
|
|
30
30
|
|
|
31
|
-
Converts uploaded files into Markdown format using Workers AI.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`files`,{type:`string`,description:`The files`})}const Se={command:`to-markdown`,describe:`Convert Files into Markdown`,builder:xe,handler:async e=>f({command:`ai to-markdown`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai to-markdown`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
31
|
+
Converts uploaded files into Markdown format using Workers AI.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`files`,{type:`string`,description:`The files`})}const Se={command:`to-markdown`,describe:`Convert Files into Markdown`,builder:xe,handler:async e=>f({command:`ai to-markdown`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf ai to-markdown`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/ai/tomarkdown`,pathParams:{},bodyKind:`multipart`,body:{body:e.body,file:e.file,files:e.files}});return}let t=await s(e),o=e.local?n:await i();if(e.accountId=o,e.file!==void 0||e.body!==void 0||e.files!==void 0){let n=new FormData;if(e.file){let t=g(e.file);n.append(`file`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&n.append(`file`,e.body);if(e.files!==void 0){let t=typeof e.files==`string`?h(e.files,`files`,`text`):e.files;n.append(`files`,typeof t==`string`?t:JSON.stringify(t))}c(await u(`Creating`,async()=>a(t,`POST`,`/accounts/${o}/ai/tomarkdown`,{body:n})),{successLabel:`Created`});return}if(e.body){let n=h(e.body,`body`,`binary`);c(await u(`Creating`,async()=>a(t,`POST`,`/accounts/${o}/ai/tomarkdown`,{body:n,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},Ce={command:`ai`,describe:`ai`,builder:e=>e.command(de).command(pe).command(U).command(_e).command(Se).command(K).command(le).command(he).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ce as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{i as e}from"./context-Dzzbc9RK.mjs";import{a as t,r as n}from"./auth-B5p3SIhO.mjs";import{t as r}from"./output-CZt-berV.mjs";import{t as i}from"./dry-run-BmzTxDtZ.mjs";import{t as a}from"./progress-C9dWgc3J.mjs";import{t as o}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as s}from"./body-parser-BpPZBRMr.mjs";function c(e){return e.usage(`$0 ai-audit robots bulk-get
|
|
3
3
|
|
|
4
4
|
Fetches and parses robots.txt files for multiple domains within a zone in a single request. Each domain must belong to the specified zone. Results are keyed by hostname.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of domain hostnames to fetch robots.txt for. Each domain must end with the zone name. Maximum 25 domains per request.`})}const l={command:`bulk-get`,describe:`Bulk get robots.txt rules`,builder:c,handler:async c=>o({command:`ai-audit robots bulk-get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){i({command:`cf ai-audit robots bulk-get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ai-audit/robots/bulk`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),c.body){let e=s(c.body);if(Array.isArray(e)&&e.length>25){let n=Math.ceil(e.length/25),i=null;for(let r=0;r<e.length;r+=25){let s=e.slice(r,r+25);i=await a(`Loading: batch ${Math.floor(r/25)+1}/${n}`,async()=>t(o,`POST`,`/zones/${c.zoneId}/ai-audit/robots/bulk`,{body:s}))}r(i,{successLabel:`Loaded`});return}r(await a(`Loading`,async()=>t(o,`POST`,`/zones/${c.zoneId}/ai-audit/robots/bulk`,{body:e})),{successLabel:`Loaded`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function u(e){return e.usage(`$0 ai-audit robots get
|
|
5
5
|
|