failproofai 1.0.13 → 1.0.15
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +44 -44
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js +2 -3
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +3 -4
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +6 -6
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/audit/invite/route.js +3 -4
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js +22 -23
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js +2 -3
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js +4 -5
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js +4 -5
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js +4 -5
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js +3 -4
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js +2 -3
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js +5 -6
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +6 -6
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js +4 -5
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js +4 -5
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js +20 -21
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +8 -9
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js +6 -7
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page/build-manifest.json +6 -6
- package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +8 -8
- package/.next/standalone/.next/server/app/settings/page.js +3 -4
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__1a2d0ewycsp6k._.js → [externals]__0h0p9dmv_e7r7._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__1am_1tz0o0aqz._.js → [externals]__1_407huhlmj1m._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__031qp1lkow_kc._.js → [externals]__1rlxpymm37wel._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03s1za0hn71yp._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__048f1wnr8pysf._.js +63 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__07a0sa6fuw5_b._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0l-oi4gdtmlo5._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0spt0kv8azrpl._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0yvyp5b7jmlc4._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__145vo_drnuvas._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1lh8c0mmhdrbj._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1oclamblhzhrf._.js +7 -7
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1qjnp3fa0e5g3._.js +3 -0
- package/.next/standalone/.next/server/chunks/[turbopack]_runtime.js +7 -9
- package/.next/standalone/.next/server/chunks/_02sa8fcu9_9xo._.js +1 -1
- package/.next/standalone/.next/server/chunks/_09dz7xva4ce_2._.js +18 -18
- package/.next/standalone/.next/server/chunks/_0hf5q4xzyg40j._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0tovk6q0miud6._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3ycqv17cl._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1-2owkp-1_987._.js +1 -1
- package/.next/standalone/.next/server/chunks/_13ltj8a9z92o8._.js +1 -1
- package/.next/standalone/.next/server/chunks/_15k37au70vjvg._.js +1 -1
- package/.next/standalone/.next/server/chunks/_18rfu4__wjhwb._.js +1 -1
- package/.next/standalone/.next/server/chunks/_19011-u44143j._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1ek68lnh2daur._.js +2 -2
- package/.next/standalone/.next/server/chunks/_1fz8m31sndkcu._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1ogwigfb0163w._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1vslkoe35wok6._.js +1 -1
- package/.next/standalone/.next/server/chunks/lib_11qmqmccehybz._.js +1 -1
- package/.next/standalone/.next/server/chunks/lib_1sezqnatvr8j-._.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oigsgz07._.js +1 -2
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p77cu37y._.js +1 -2
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4vkpxxu7._.js +1 -1
- package/.next/standalone/.next/server/chunks/src_hooks_0_em82s16zfym._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[externals]__0ilfh9mfnzsth._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[externals]__0ohnuzsaozaca._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__097i34ct1o88x._.js → [externals]__12qr51qgrrt6o._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__021vebe-4il8s._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05-glpesefmmi._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__08ch3staq3ejw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bigvy9xmv2ka._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0evgy902m9h5e._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ezoipo-r7_5k._.js +14 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h1jw32uvrhh0._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h86bl2qf0k_o._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pia5h3p8re4c._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__10v5cyxvj64j4._.js → [root-of-the-server]__0tfnj3v_mp6rv._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-9s1nsw-5q8o._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-ey9fgesfbc0._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__15bi9em2xe0x2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__15usvs-ms-0hf._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__16gb3_92zvk5x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1avi2kypusyb_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__20dt376-socef._.js → [root-of-the-server]__1e00l_e_8r_-g._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1mc9-zlnh656_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ob2uzmms1adf._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1r7drlqli-ado._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ed1zh4scn7-k._.js → [root-of-the-server]__1tq3x9i_3_860._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1utel1l1-u64v._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1vofkb2oq7p7e._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1vxwetblyf8vp._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__2158020r_amn9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +7 -9
- package/.next/standalone/.next/server/chunks/ssr/_0-f9uotv7v2n9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_00e4_rvim31u_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0bseae9u7g98r._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0eoura3_9gjb-._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0ge1hz9485xpp._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0kqw2_f1ywmpo._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0mouhaflye1ro._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0ouu886szh6yj._.js +10 -10
- package/.next/standalone/.next/server/chunks/ssr/_0pedwblqdoh58._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0tfqha481f033._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_1_ozgifqv1ssi._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1a516zcgtqius._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1ddpc5gj57uuf._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1djqs9i27e4kg._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1ew6ra24vt-ij._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1or8gixmrpv5i._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1s8zk-upxzp00._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1u9tpla2o6utw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1v4_ul3sj2lq_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1y3xzro8ca8t6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_20hn4gn87nsjc._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo5_vm5f.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_087bt9wus25zs._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_0trz6ik19xz5_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_1fvisnppn1unv._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_209u41o446my6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_actions_get-scheduled-audit_ts_0ei9snixb5fd-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit_0hku_y73ischw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47q0xq5w._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x33jqb6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpcz0uxur._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_settings_02tf1h47jmhhd._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/lib_16jvhmthj_k3a._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_05vgn62--7c5e._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0dad4au22rq0p._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0gxlxpuufujz9._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0ptcnmeaxvd_a._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_html-to-image_es_index_1cmkmhnty0-x7.js → node_modules_html-to-image_es_index_0e3yg5gbcfsai.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_0bz67659f5z-3._.js +4 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0-amwqbrge23p._.js +6 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0ocrceo0c9psx._.js +4 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_1alv566ojmz5j._.js +4 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_1et9oq9q9-y3v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_1khq67j4vo9y4._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j32_ibz4._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_shared_lib_0ftnv26hg1lry._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_0dagmbznysrc2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js +1 -2
- package/.next/standalone/.next/server/chunks/ssr/package_json_[json]_cjs_013tntikdft59._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_0-q0ummbuhlg5._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_06kzv9ddabn3_._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_0agdmptetetdt._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_0g194syq7r7ql._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_0mdwgjisv4fub._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_1cv9_c4l1tzrm._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_1kx9e0dx_1-8o._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +44 -44
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +23 -23
- package/.next/standalone/.next/static/chunks/05g1pu2r8o5q3.js +1 -0
- package/.next/standalone/.next/static/chunks/{0mm-e5t9denbu.js → 098vx6twrn-vk.js} +1 -1
- package/.next/standalone/.next/static/chunks/0oxlfb02aqo3e.js +1 -0
- package/.next/standalone/.next/static/chunks/0p14j2e6dnj1x.js +1 -0
- package/.next/standalone/.next/static/chunks/0tiuj32d-qcy3.js +1 -0
- package/.next/standalone/.next/static/chunks/0ztuix-ip2oiv.js +1 -0
- package/.next/standalone/.next/static/chunks/12ys9uaq6i1h2.js +6 -0
- package/.next/standalone/.next/static/chunks/1dudxmlwx2n3q.js +1 -0
- package/.next/standalone/.next/static/chunks/1i9zuw01f0ogt.js +22 -0
- package/.next/standalone/.next/static/chunks/1osrmi14e2jub.js +1 -0
- package/.next/standalone/.next/static/chunks/2hqfk_jgesiw2.js +1 -0
- package/.next/standalone/.next/static/chunks/2k6xp6kdy7lmd.js +1 -0
- package/.next/standalone/.next/static/chunks/2o8j51ujh1ox4.js +1 -0
- package/.next/standalone/.next/static/chunks/2zwsbp8xyfv__.js +1 -0
- package/.next/standalone/.next/static/chunks/34rjkinfk6d4p.js +31 -0
- package/.next/standalone/.next/static/chunks/38lnk75xvqiug.js +1 -0
- package/.next/standalone/.next/static/chunks/{1-0se0uwja_ny.js → 3d6_vjbvr0c2n.js} +1 -1
- package/.next/standalone/.next/static/chunks/3i_9ugyh1q1o1.js +1 -0
- package/.next/standalone/.next/static/chunks/3o30fiw7llng3.js +1 -0
- package/.next/standalone/.next/static/chunks/41ujrab732qi3.css +2 -0
- package/.next/standalone/.next/static/chunks/436g_rqa42mr7.js +1 -0
- package/.next/standalone/.next/static/chunks/436nql0jk__xy.js +1 -0
- package/.next/standalone/.next/static/chunks/{turbopack-3-ry682tkyiqk.js → turbopack-2u1d16houkiyo.js} +1 -1
- package/.next/standalone/SECURITY.md +19 -4
- package/.next/standalone/assets/logos/failproof-dark.png +0 -0
- package/.next/standalone/assets/logos/failproof-light.png +0 -0
- package/.next/standalone/fp-cloud-cli/CHANGELOG.md +34 -3
- package/.next/standalone/fp-cloud-cli/README.md +14 -7
- package/.next/standalone/fp-cloud-cli/fp_cli/_version.py +1 -1
- package/.next/standalone/fp-cloud-cli/fp_cli/app.py +2 -8
- package/.next/standalone/fp-cloud-cli/fp_cli/auth.py +325 -3
- package/.next/standalone/fp-cloud-cli/fp_cli/cloud_output.py +3 -3
- package/.next/standalone/fp-cloud-cli/fp_cli/commands/account_cmds.py +1 -11
- package/.next/standalone/fp-cloud-cli/fp_cli/commands/auth_cmds.py +218 -51
- package/.next/standalone/fp-cloud-cli/fp_cli/commands/orgs_cmds.py +1 -1
- package/.next/standalone/fp-cloud-cli/fp_cli/output.py +112 -135
- package/.next/standalone/fp-cloud-cli/fp_cli/permissions.py +10 -1
- package/.next/standalone/fp-cloud-cli/fp_cli/select.py +85 -6
- package/.next/standalone/fp-cloud-cli/fp_cli/theme.py +21 -21
- package/.next/standalone/fp-cloud-cli/pyproject.toml +1 -1
- package/.next/standalone/fp-cloud-cli/skill/SKILL.md +4 -4
- package/.next/standalone/fp-cloud-cli/skill/references/commands.md +4 -4
- package/.next/standalone/fp-cloud-cli/tests/fake_cloud_smoke.py +2 -2
- package/.next/standalone/fp-cloud-cli/tests/test_browser_login.py +943 -0
- package/.next/standalone/fp-cloud-cli/tests/test_cloud_account.py +0 -2
- package/.next/standalone/fp-cloud-cli/tests/test_cloud_agent.py +4 -8
- package/.next/standalone/fp-cloud-cli/tests/test_cloud_human_views.py +0 -4
- package/.next/standalone/fp-cloud-cli/tests/test_commands.py +3 -3
- package/.next/standalone/fp-cloud-cli/tests/test_dashboards_agent.py +3 -3
- package/.next/standalone/fp-cloud-cli/tests/test_facets.py +1 -1
- package/.next/standalone/fp-cloud-cli/tests/test_keys_queries.py +19 -2
- package/.next/standalone/fp-cloud-cli/tests/test_operator.py +1 -1
- package/.next/standalone/fp-cloud-cli/tests/test_orgs.py +1 -1
- package/.next/standalone/fp-cloud-cli/tests/test_output.py +19 -19
- package/.next/standalone/fp-cloud-cli/tests/test_round4_behaviour.py +3 -2
- package/.next/standalone/fp-cloud-cli/tests/test_screen_language.py +86 -25
- package/.next/standalone/fp-cloud-cli/tests/test_whoami.py +1 -1
- package/.next/standalone/fp-cloud-cli/uv.lock +200 -13
- package/.next/standalone/hermes-plugin/plugin.yaml +1 -1
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/fast-jwt/index.js +3 -0
- package/.next/standalone/node_modules/next/dist/compiled/fast-jwt/package.json +1 -0
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +23 -23
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +23 -23
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +7 -7
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +8 -5
- package/.next/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +8 -2
- package/.next/standalone/node_modules/next/dist/server/app-render/app-render.js +52 -14
- package/.next/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +19 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/turbopack-bootstrap-script.js +50 -0
- package/.next/standalone/node_modules/next/dist/server/base-http/node.js +7 -2
- package/.next/standalone/node_modules/next/dist/server/base-server.js +8 -0
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +59 -10
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +15 -0
- package/.next/standalone/node_modules/next/dist/server/image-optimizer/detect-content-type.js +24 -20
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +3 -0
- package/.next/standalone/node_modules/next/dist/server/lib/router-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/trace/tracer.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/next-server.js +10 -2
- package/.next/standalone/node_modules/next/dist/server/render.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/route-modules/app-page/parse-request-headers.js +1 -2
- package/.next/standalone/node_modules/next/dist/server/send-response.js +12 -0
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +69 -6
- package/.next/standalone/node_modules/next/dist/server/web/adapter.js +5 -1
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +10 -10
- package/.next/standalone/package.json +12 -12
- package/.next/standalone/sdk/python/skill/SKILL.md +5 -0
- package/.next/standalone/sdk/python/uv.lock +79 -47
- package/.next/standalone/sdk/typescript/CHANGELOG.md +48 -5
- package/.next/standalone/sdk/typescript/integration/fixtures/langchain-dup-core/package-lock.json +0 -9
- package/.next/standalone/sdk/typescript/integration/fixtures/langchain-dup-core/package.json +2 -1
- package/.next/standalone/sdk/typescript/integration/fixtures/llamaindex-0.11/package-lock.json +72 -44
- package/.next/standalone/sdk/typescript/integration/fixtures/llamaindex-0.11/package.json +2 -1
- package/.next/standalone/sdk/typescript/integration/fixtures/llamaindex-0.12/package-lock.json +72 -44
- package/.next/standalone/sdk/typescript/integration/fixtures/llamaindex-0.12/package.json +3 -0
- package/.next/standalone/sdk/typescript/integration/fixtures/mastra-0/package-lock.json +18 -332
- package/.next/standalone/sdk/typescript/integration/fixtures/mastra-0/package.json +4 -2
- package/.next/standalone/sdk/typescript/integration/fixtures/mastra-1/package-lock.json +925 -296
- package/.next/standalone/sdk/typescript/integration/fixtures/mastra-1/package.json +3 -8
- package/.next/standalone/sdk/typescript/integration/fixtures/nextjs/package-lock.json +319 -317
- package/.next/standalone/sdk/typescript/integration/fixtures/nextjs/package.json +3 -3
- package/.next/standalone/server.js +1 -1
- package/README.md +174 -83
- package/dist/cli.mjs +23 -13
- package/dist/worker.mjs +1 -1
- package/hermes-plugin/plugin.yaml +1 -1
- package/openclaw-plugin/daemon-client.js +95 -26
- package/openclaw-plugin/hooks.js +4 -1
- package/package.json +12 -12
- package/src/hooks/delivery-health.ts +11 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__038kwryp970nh._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08atcie7jzswm._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0car70pylmvor._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1j6kfp0vzu5rw._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1l0ayum_hqqsw._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1o9rznwc0w7og._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1v1-l-83czzsr._.js +0 -63
- package/.next/standalone/.next/server/chunks/node_modules_@opentelemetry_api_build_esm_index_0oo58a7rymoxh.js +0 -3
- package/.next/standalone/.next/server/chunks/node_modules_@opentelemetry_api_build_esm_index_1jp9ij0_ddtgk.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__075uro8t92s0_._.js +0 -14
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0alpzjn3450sr._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0aup10z2o8zc1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bioghlkjf7s7._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nhm28v58ty9z._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vse4qi496ol-._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__190xwrr5zrfi3._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1guwlpkyurdn9._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1jq2bh84rafc7._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1k96jctukf65_._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1sj-wn2jp6va5._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_100nvr7rei3us._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_@opentelemetry_api_build_esm_index_0ntwr8lzj6p2i.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0janj0i6dqko7._.js +0 -6
- package/.next/standalone/.next/static/chunks/0rucj5pu307i4.js +0 -1
- package/.next/standalone/.next/static/chunks/1024g0jaymm46.js +0 -1
- package/.next/standalone/.next/static/chunks/165ezyyx0j1ft.js +0 -22
- package/.next/standalone/.next/static/chunks/173vw1xs-5m5g.js +0 -1
- package/.next/standalone/.next/static/chunks/20cme7d6wv6md.js +0 -1
- package/.next/standalone/.next/static/chunks/26c4gmdpsthv6.css +0 -2
- package/.next/standalone/.next/static/chunks/2_sj5ssr_m_wm.js +0 -1
- package/.next/standalone/.next/static/chunks/2mz-k_jt_76xt.js +0 -1
- package/.next/standalone/.next/static/chunks/2ojf3r8g4tn7s.js +0 -1
- package/.next/standalone/.next/static/chunks/2tjfp9dirxnku.js +0 -1
- package/.next/standalone/.next/static/chunks/2u1m0f-wnhz44.js +0 -1
- package/.next/standalone/.next/static/chunks/2ytnb83xmjn3u.js +0 -1
- package/.next/standalone/.next/static/chunks/2zyrjasvbmwpq.js +0 -1
- package/.next/standalone/.next/static/chunks/31fan-ze541d1.js +0 -1
- package/.next/standalone/.next/static/chunks/32s3y34p0t2pe.js +0 -1
- package/.next/standalone/.next/static/chunks/36re0fegaocq-.js +0 -1
- package/.next/standalone/.next/static/chunks/3fhk60ouw_ae6.js +0 -1
- package/.next/standalone/.next/static/chunks/3xgxl1s_in776.js +0 -31
- package/.next/standalone/.next/static/chunks/40g_e46c1-j4k.js +0 -6
- package/.next/standalone/.next/static/chunks/44yz8zx53euy1.js +0 -1
- package/.next/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +0 -11
- package/.next/standalone/node_modules/next/dist/compiled/jsonwebtoken/package.json +0 -1
- package/.next/standalone/node_modules/next/dist/lib/semver-noop.js +0 -18
- /package/.next/standalone/.next/static/{4MgI0mZP1iVhhocpUivMm → -AugwIGiiIYcahO4J7mdM}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{4MgI0mZP1iVhhocpUivMm → -AugwIGiiIYcahO4J7mdM}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{4MgI0mZP1iVhhocpUivMm → -AugwIGiiIYcahO4J7mdM}/_ssgManifest.js +0 -0
|
@@ -17,96 +17,26 @@ from typing import Any, Dict, List, Optional, Sequence
|
|
|
17
17
|
|
|
18
18
|
import typer
|
|
19
19
|
from rich.box import ROUNDED, SIMPLE_HEAD
|
|
20
|
+
from rich.cells import cell_len
|
|
20
21
|
from rich.console import Console, Group
|
|
21
22
|
from rich.padding import Padding
|
|
22
|
-
from rich.panel import Panel
|
|
23
|
-
from rich.rule import Rule
|
|
23
|
+
from rich.panel import Panel
|
|
24
|
+
from rich.rule import Rule
|
|
24
25
|
from rich.table import Table as RichTable
|
|
25
|
-
from rich.measure import Measurement
|
|
26
26
|
from rich.text import Text
|
|
27
27
|
|
|
28
28
|
from . import theme
|
|
29
|
-
from ._version import __version__
|
|
30
|
-
|
|
31
|
-
_screen_started = False
|
|
32
|
-
_screen_context = "Cloud"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def wordmark(context: Optional[str] = None) -> Text:
|
|
36
|
-
line = Text("fa", style="bold")
|
|
37
|
-
line.append("il", style=f"bold {theme.PINK}")
|
|
38
|
-
line.append("proof ai", style="bold")
|
|
39
|
-
line.append(f" v{__version__} · {context or _screen_context}", style=theme.LABEL)
|
|
40
|
-
return line
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
def heading(value: Any) -> Text:
|
|
44
|
-
text = value.copy() if isinstance(value, Text) else Text.from_markup(str(value))
|
|
45
|
-
# Change chrome, never the case of a resource name/id in a title.
|
|
46
|
-
name, sep, rest = text.plain.partition(" · ")
|
|
47
|
-
known = {"events", "sessions", "evals", "errors", "keys", "users", "queries", "settings",
|
|
48
|
-
"issues", "models", "chats", "audits", "findings", "commands", "version",
|
|
49
|
-
"permissions", "orgs", "assistant", "usage", "guardrails", "policies", "fleet",
|
|
50
|
-
"options", "arguments"}
|
|
51
|
-
if name.lower() in known:
|
|
52
|
-
text = Text(name.upper(), style=f"bold {theme.TEXT}") + Text(sep + rest, style=theme.LABEL)
|
|
53
|
-
return text
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def screen_header(console=None) -> None:
|
|
57
|
-
global _screen_started
|
|
58
|
-
if not _screen_started and not _quiet and not _json_out:
|
|
59
|
-
_screen_started = True
|
|
60
|
-
(console or _stdout).print(wordmark())
|
|
61
|
-
(console or _stdout).print()
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class Panel(RichPanel):
|
|
65
|
-
"""Legacy cards rendered through the open-screen primitive, without boxes.
|
|
66
|
-
|
|
67
|
-
Keep RichPanel's constructor/attributes so existing renderers need no rewrite.
|
|
68
|
-
"""
|
|
69
|
-
def __rich_console__(self, console, options):
|
|
70
|
-
global _screen_started
|
|
71
|
-
if not _screen_started and not _quiet and not _json_out:
|
|
72
|
-
_screen_started = True
|
|
73
|
-
yield wordmark()
|
|
74
|
-
yield Text("")
|
|
75
|
-
if self.title:
|
|
76
|
-
yield heading(self.title)
|
|
77
|
-
yield self.renderable
|
|
78
|
-
if self.subtitle:
|
|
79
|
-
yield heading(self.subtitle)
|
|
80
|
-
|
|
81
|
-
def __rich_measure__(self, console, options):
|
|
82
|
-
parts = [self.renderable]
|
|
83
|
-
if self.title:
|
|
84
|
-
parts.insert(0, heading(self.title))
|
|
85
|
-
return Measurement.get(console, options, Group(*parts))
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class Rule(RichRule):
|
|
89
|
-
"""Legacy separators are intentionally invisible in the 2026-10 language."""
|
|
90
|
-
def __rich_console__(self, console, options):
|
|
91
|
-
return iter(())
|
|
92
|
-
|
|
93
|
-
def __rich_measure__(self, console, options):
|
|
94
|
-
return Measurement(0, 0)
|
|
95
29
|
|
|
96
30
|
|
|
97
31
|
class Table(RichTable):
|
|
98
|
-
"""
|
|
99
|
-
|
|
100
|
-
kwargs["box"] = None
|
|
101
|
-
kwargs["show_edge"] = False
|
|
102
|
-
kwargs["header_style"] = theme.LABEL
|
|
103
|
-
super().__init__(*args, **kwargs)
|
|
104
|
-
|
|
32
|
+
"""Long values wrap rather than being cut: an id, a URL or a command is never shown with a
|
|
33
|
+
``…``. Everything else about a table is the caller's."""
|
|
105
34
|
def add_column(self, *args, **kwargs):
|
|
106
35
|
kwargs["overflow"] = "fold"
|
|
107
36
|
kwargs["no_wrap"] = False
|
|
108
37
|
return super().add_column(*args, **kwargs)
|
|
109
38
|
|
|
39
|
+
|
|
110
40
|
_stdout = Console()
|
|
111
41
|
_stderr = Console(stderr=True)
|
|
112
42
|
_quiet = False
|
|
@@ -114,16 +44,14 @@ _no_color = False
|
|
|
114
44
|
_json_out = False
|
|
115
45
|
|
|
116
46
|
|
|
117
|
-
def configure(*, no_color: bool = False, quiet: bool = False, json: bool = False
|
|
47
|
+
def configure(*, no_color: bool = False, quiet: bool = False, json: bool = False) -> None:
|
|
118
48
|
"""Reconfigure the consoles from the resolved global flags."""
|
|
119
|
-
global _stdout, _stderr, _quiet, _no_color, _json_out
|
|
49
|
+
global _stdout, _stderr, _quiet, _no_color, _json_out
|
|
120
50
|
_stdout = Console(no_color=no_color)
|
|
121
51
|
_stderr = Console(stderr=True, no_color=no_color)
|
|
122
52
|
_quiet = quiet
|
|
123
53
|
_no_color = no_color
|
|
124
54
|
_json_out = json
|
|
125
|
-
_screen_started = False
|
|
126
|
-
_screen_context = context
|
|
127
55
|
|
|
128
56
|
|
|
129
57
|
def is_json() -> bool:
|
|
@@ -170,6 +98,7 @@ def prompt(label: str, *, default: Optional[str] = None, hide_input: bool = Fals
|
|
|
170
98
|
kwargs: dict = {"err": True, "prompt_suffix": " ", "hide_input": hide_input}
|
|
171
99
|
if default is not None:
|
|
172
100
|
kwargs["default"] = default
|
|
101
|
+
kwargs["show_default"] = bool(default) # a blank default would show as `[]`
|
|
173
102
|
return typer.prompt(text, **kwargs)
|
|
174
103
|
|
|
175
104
|
|
|
@@ -214,30 +143,29 @@ def print_table(
|
|
|
214
143
|
title: Optional[str] = None,
|
|
215
144
|
show_header: bool = True,
|
|
216
145
|
) -> None:
|
|
217
|
-
screen_header()
|
|
218
|
-
if title:
|
|
219
|
-
_stdout.print(Text(str(title).upper(), style="bold"))
|
|
220
146
|
widths = [max([len(str(column))] + [len(_cell(row[i])) for row in rows if i < len(row)]) for i, column in enumerate(columns)]
|
|
221
|
-
if len(columns) > 1 and sum(widths) + 3 * len(columns) > _stdout.width:
|
|
147
|
+
if len(columns) > 1 and sum(widths) + 3 * len(columns) + 1 > _stdout.width:
|
|
222
148
|
# On a narrow terminal, wrapped adjacent columns interleave copyable
|
|
223
149
|
# ids and URLs. Stack the fields so each value remains a whole line.
|
|
150
|
+
if title:
|
|
151
|
+
_stdout.print(Text(str(title), style="bold"))
|
|
224
152
|
for row in rows:
|
|
225
153
|
for column, value in zip(columns, row):
|
|
226
|
-
_stdout.print(Text(str(column)
|
|
154
|
+
_stdout.print(Text(str(column), style=theme.LABEL))
|
|
227
155
|
_stdout.print(Text(" " + _cell(value)), soft_wrap=True)
|
|
228
156
|
_stdout.print()
|
|
229
157
|
return
|
|
230
|
-
table = Table(
|
|
158
|
+
table = Table(
|
|
159
|
+
title=Text(title) if title else None, title_justify="left", header_style="bold",
|
|
160
|
+
show_header=show_header,
|
|
161
|
+
)
|
|
231
162
|
for column in columns:
|
|
232
163
|
table.add_column(str(column), overflow="fold")
|
|
233
164
|
for row in rows:
|
|
234
165
|
# Wrap each cell in Text so a value containing Rich markup (e.g. "[/]" or
|
|
235
166
|
# "[red]" in a server-provided field) renders literally instead of raising
|
|
236
167
|
# MarkupError mid-render (which would abort with a raw traceback).
|
|
237
|
-
table.add_row(*[
|
|
238
|
-
Text(_cell(value), style=theme.LABEL if list(columns) == ["Field", "Value"] and i == 0 else "")
|
|
239
|
-
for i, value in enumerate(row)
|
|
240
|
-
])
|
|
168
|
+
table.add_row(*[Text(_cell(value)) for value in row])
|
|
241
169
|
_stdout.print(table)
|
|
242
170
|
|
|
243
171
|
|
|
@@ -254,7 +182,7 @@ def info(message: str) -> None:
|
|
|
254
182
|
|
|
255
183
|
def success(message: str) -> None:
|
|
256
184
|
if not _quiet:
|
|
257
|
-
_stderr.print(Text(
|
|
185
|
+
_stderr.print(Text(message, style="green"))
|
|
258
186
|
|
|
259
187
|
|
|
260
188
|
def hint(message: str) -> None:
|
|
@@ -263,12 +191,12 @@ def hint(message: str) -> None:
|
|
|
263
191
|
|
|
264
192
|
|
|
265
193
|
def error(message: str) -> None:
|
|
266
|
-
_stderr.print(Text(
|
|
194
|
+
_stderr.print(Text(message, style="bold red"))
|
|
267
195
|
|
|
268
196
|
|
|
269
197
|
def warn(message: str) -> None:
|
|
270
198
|
if not _quiet:
|
|
271
|
-
_stderr.print(Text(
|
|
199
|
+
_stderr.print(Text(message, style="yellow"))
|
|
272
200
|
|
|
273
201
|
|
|
274
202
|
def cli_warn(message: str) -> None:
|
|
@@ -289,7 +217,7 @@ def cli_warn(message: str) -> None:
|
|
|
289
217
|
# here is stderr status chrome (never the --json data on stdout); the accent is
|
|
290
218
|
# the project's pink/magenta. All gated on `_quiet`.
|
|
291
219
|
|
|
292
|
-
_ACCENT =
|
|
220
|
+
_ACCENT = "magenta"
|
|
293
221
|
_NEUTRAL = "grey62" # gray for 'already in that state' no-op boxes (neutral, not red/green)
|
|
294
222
|
|
|
295
223
|
|
|
@@ -298,9 +226,8 @@ def auth_header() -> None:
|
|
|
298
226
|
if _quiet:
|
|
299
227
|
return
|
|
300
228
|
_stderr.print()
|
|
301
|
-
|
|
302
|
-
_stderr.print(
|
|
303
|
-
_stderr.print(" [dim]welcome — let's get you signed in with a one-time code[/]")
|
|
229
|
+
_stderr.print(f" [bold {_ACCENT}]◆ fp[/]")
|
|
230
|
+
_stderr.print(" [dim]welcome — let's get you signed in[/]")
|
|
304
231
|
_stderr.print()
|
|
305
232
|
|
|
306
233
|
|
|
@@ -315,7 +242,7 @@ def code_sent(email: str) -> None:
|
|
|
315
242
|
"""Confirm the one-time code was emailed (the completed `request_otp` step)."""
|
|
316
243
|
if _quiet:
|
|
317
244
|
return
|
|
318
|
-
_stderr.print(f" [
|
|
245
|
+
_stderr.print(f" [green]✓[/] code sent to [bold {_ACCENT}]{email}[/]")
|
|
319
246
|
|
|
320
247
|
|
|
321
248
|
def org_picker(slugs: Sequence[str], current: Optional[str] = None) -> None:
|
|
@@ -406,17 +333,57 @@ def login_inset(slugs: Sequence[str], idx: int):
|
|
|
406
333
|
table.add_row(ptr, name)
|
|
407
334
|
inset = Panel(table, box=ROUNDED, border_style=theme.FAINT, style=f"on {theme.INSET_BG}",
|
|
408
335
|
padding=(0, 1), expand=False)
|
|
409
|
-
hint = Text("↑↓ move ·
|
|
336
|
+
hint = Text("↑↓ move · enter select · esc cancel", style=theme.FAINT)
|
|
410
337
|
return Group(title, inset, hint)
|
|
411
338
|
|
|
412
339
|
|
|
340
|
+
def print_unwrapped(text: str) -> None:
|
|
341
|
+
"""One line on stderr that the terminal wraps, not Rich, so a long link stays one link.
|
|
342
|
+
Not silenced by ``--quiet``: the login can't go on without it."""
|
|
343
|
+
_stderr.print(Text(text), soft_wrap=True)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
def _login_keys(text: str) -> Text:
|
|
347
|
+
"""A key hint, with the keys themselves standing out: ``enter send a code · esc cancel``."""
|
|
348
|
+
hint = Text(text, style=theme.TEXT_DIM)
|
|
349
|
+
if " · " in text: # "enter the 6-digit code" is an instruction, and its "enter" is no key
|
|
350
|
+
hint.highlight_regex(r"\b(?:enter|tab|esc)\b", style=theme.TEXT)
|
|
351
|
+
return hint
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
def print_login_link(done, intro: str, url: str) -> int:
|
|
355
|
+
"""The still part of the box's link screen, once: the box says what to do, and the link sits
|
|
356
|
+
right under it, outside the border. A border would break a link wider than the window, so it
|
|
357
|
+
couldn't be clicked or copied whole, where the terminal can wrap it as one. Returns the rows it
|
|
358
|
+
took on screen."""
|
|
359
|
+
head = Group(render_login_frame(done, None, asks=intro), Text(""))
|
|
360
|
+
# One that fits lines up with the box. One that doesn't starts at the margin, so its rows line
|
|
361
|
+
# up with each other.
|
|
362
|
+
indent = " " if cell_len(url) + 2 <= _stderr.width else ""
|
|
363
|
+
link = Text(indent).append(url, style=f"underline {theme.ACCENT}")
|
|
364
|
+
_stderr.print(head)
|
|
365
|
+
_stderr.print(link, soft_wrap=True)
|
|
366
|
+
_stderr.print()
|
|
367
|
+
return len(_stderr.render_lines(head, pad=False)) + math.ceil(link.cell_len / _stderr.width) + 1
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
def render_login_waiting(line: str, keys: str):
|
|
371
|
+
"""The live part of the box's link screen, under the link: a spinner, what it's waiting for and
|
|
372
|
+
the time left, then the keys."""
|
|
373
|
+
waiting = Text(line, style=theme.TEXT_DIM)
|
|
374
|
+
waiting.stylize(theme.ACCENT, 0, 1)
|
|
375
|
+
waiting.highlight_regex(r"\d+:\d\d$", style=theme.TEXT)
|
|
376
|
+
return Padding(Group(waiting, _login_keys(keys)), (0, 0, 0, 2))
|
|
377
|
+
|
|
378
|
+
|
|
413
379
|
def render_login_frame(done, active, *, active_value: str = "", active_slots: Optional[int] = None,
|
|
414
380
|
helper=None, error=None, inset=None, note=None, signed_in=None,
|
|
415
|
-
cancelled=None, failed=None):
|
|
381
|
+
cancelled=None, failed=None, asks=None):
|
|
416
382
|
"""Build the one login Panel (a renderable the caller redraws via ``Live``). ``done`` is a list
|
|
417
383
|
of ``(label, value)`` collapsed ✓ steps; ``active`` is the current step label (bright ``❯``
|
|
418
384
|
line) with ``active_value`` the in-progress typed text (rendered as fixed slots when
|
|
419
|
-
``active_slots`` is set, e.g. the 6-digit code)
|
|
385
|
+
``active_slots`` is set, e.g. the 6-digit code), and ``asks`` the same bright line for something
|
|
386
|
+
to do outside the box, with no field to type in. ``inset`` is a picker block; ``signed_in``
|
|
420
387
|
= ``(email, org)`` flips the border green; ``cancelled`` (bool: was the session persisted?)
|
|
421
388
|
renders the calm close; ``failed`` = ``(message, hint)`` flips the border red and shows the
|
|
422
389
|
failure INSIDE the same box (e.g. a wrong code). Legend ``◆ fp`` rides the top border."""
|
|
@@ -433,7 +400,7 @@ def render_login_frame(done, active, *, active_value: str = "", active_slots: Op
|
|
|
433
400
|
intro = Text()
|
|
434
401
|
intro.append("welcome ", style=theme.TEXT_DIM)
|
|
435
402
|
intro.append("— ", style=theme.FAINT)
|
|
436
|
-
intro.append("sign in
|
|
403
|
+
intro.append("sign in", style=theme.TEXT_DIM)
|
|
437
404
|
lines.append(intro)
|
|
438
405
|
for label, value in done:
|
|
439
406
|
ln = Text()
|
|
@@ -457,7 +424,12 @@ def render_login_frame(done, active, *, active_value: str = "", active_slots: Op
|
|
|
457
424
|
if error:
|
|
458
425
|
lines.append(Text(" " + str(error), style=theme.ERROR))
|
|
459
426
|
elif helper:
|
|
460
|
-
lines.append(
|
|
427
|
+
lines.append(_login_keys(" " + str(helper)))
|
|
428
|
+
if asks:
|
|
429
|
+
ln = Text()
|
|
430
|
+
ln.append("❯ ", style=f"bold {theme.ACCENT}")
|
|
431
|
+
ln.append(str(asks), style=theme.TEXT)
|
|
432
|
+
lines.append(ln)
|
|
461
433
|
if note:
|
|
462
434
|
lines.append(Text("· " + str(note), style=theme.FAINT))
|
|
463
435
|
if inset is not None:
|
|
@@ -489,7 +461,7 @@ def render_login_frame(done, active, *, active_value: str = "", active_slots: Op
|
|
|
489
461
|
fl.append(str(msg), style=theme.TEXT)
|
|
490
462
|
lines.append(fl)
|
|
491
463
|
if hint:
|
|
492
|
-
h =
|
|
464
|
+
h = _login_keys(str(hint))
|
|
493
465
|
h.highlight_words(["fp login"], style=theme.ACCENT) # glow the command to run
|
|
494
466
|
lines.append(h)
|
|
495
467
|
legend = Text()
|
|
@@ -506,7 +478,6 @@ def _panel(mark: str, color: str, title: str, body: Text, hint: Optional[str] =
|
|
|
506
478
|
highlighted. Built from a `rich.Text` (literal body — no markup injection). The colour
|
|
507
479
|
carries the meaning: **green** = success, **brand-accent** = neutral 'already-in-state'
|
|
508
480
|
no-op, **red** = failure. One shape so they all read as one family."""
|
|
509
|
-
color = theme.SUCCESS if color == "green" else theme.PINK if color in ("red", "yellow", "cyan", "magenta") else color
|
|
510
481
|
text = Text()
|
|
511
482
|
indent = ""
|
|
512
483
|
# A box may be mark-less (the colour/title carry the meaning, e.g. the red
|
|
@@ -519,7 +490,7 @@ def _panel(mark: str, color: str, title: str, body: Text, hint: Optional[str] =
|
|
|
519
490
|
text.append(f"\n{indent}")
|
|
520
491
|
text.append(hint, style="dim")
|
|
521
492
|
text.highlight_words(
|
|
522
|
-
["fp login", "fp logout", "login --force"], style=
|
|
493
|
+
["fp login", "fp logout", "login --force"], style="bold cyan"
|
|
523
494
|
)
|
|
524
495
|
panel = Panel(
|
|
525
496
|
text,
|
|
@@ -537,12 +508,8 @@ def _panel(mark: str, color: str, title: str, body: Text, hint: Optional[str] =
|
|
|
537
508
|
|
|
538
509
|
|
|
539
510
|
def _error_box(message: str, hint: Optional[str] = None) -> None:
|
|
540
|
-
"""
|
|
541
|
-
|
|
542
|
-
if hint:
|
|
543
|
-
line = Text(" " + hint, style=theme.LABEL)
|
|
544
|
-
line.highlight_regex(r"(?:fp|failproofai)\s+[^`]+", style=theme.PINK)
|
|
545
|
-
_stderr.print(line)
|
|
511
|
+
"""A red `✗` failure box — the chokepoint for every CLI error."""
|
|
512
|
+
_panel("✗", "red", "error", Text(message), hint)
|
|
546
513
|
|
|
547
514
|
|
|
548
515
|
def _status_box(title: str, body: Text, hint: Optional[str] = None) -> None:
|
|
@@ -558,8 +525,21 @@ def version_banner(version: str) -> None:
|
|
|
558
525
|
if _quiet:
|
|
559
526
|
_stdout.print(version)
|
|
560
527
|
return
|
|
561
|
-
|
|
562
|
-
|
|
528
|
+
body = Text()
|
|
529
|
+
body.append("◆ ", style=f"bold {_ACCENT}")
|
|
530
|
+
body.append("fp", style="bold")
|
|
531
|
+
body.append(" ")
|
|
532
|
+
body.append(f"v{version}", style=f"bold {_ACCENT}")
|
|
533
|
+
panel = Panel(
|
|
534
|
+
body,
|
|
535
|
+
border_style=_ACCENT,
|
|
536
|
+
title=f"[bold {_ACCENT}]version[/]",
|
|
537
|
+
title_align="left",
|
|
538
|
+
expand=False,
|
|
539
|
+
padding=(0, 1),
|
|
540
|
+
)
|
|
541
|
+
_stdout.print()
|
|
542
|
+
_stdout.print(Padding(panel, (0, 0, 0, 2)))
|
|
563
543
|
|
|
564
544
|
|
|
565
545
|
# ── top-level help (the grouped `fp` / `fp help` / `fp --help` screen) ──
|
|
@@ -572,7 +552,7 @@ _TOP_LEVEL_GROUPS = [
|
|
|
572
552
|
("ESSENTIALS", [
|
|
573
553
|
("version", "Show the CLI version.", ""),
|
|
574
554
|
("help", "Show this help and the available commands.", ""),
|
|
575
|
-
("login", "Sign in with an emailed
|
|
555
|
+
("login", "Sign in from a browser or with an emailed code.", ""),
|
|
576
556
|
("logout", "Clear the saved session on this machine.", ""),
|
|
577
557
|
("whoami", "Show the current user, active org, and perms.", ""),
|
|
578
558
|
]),
|
|
@@ -607,7 +587,7 @@ _TOP_LEVEL_GROUPS = [
|
|
|
607
587
|
("settings", "View and change org settings.", "list schema set context-windows"),
|
|
608
588
|
("roles", "Manage permission sets.", "list show create update delete"),
|
|
609
589
|
("plan", "Inspect offers and team trial.", "claim"),
|
|
610
|
-
("otel", "Control Cloud OTEL ingestion.", "status
|
|
590
|
+
("otel", "Control Cloud OTEL ingestion.", "status"),
|
|
611
591
|
("slack", "Manage Slack integration.", "status disconnect"),
|
|
612
592
|
]),
|
|
613
593
|
("TOOLS", [
|
|
@@ -632,21 +612,17 @@ def render_top_level_help() -> None:
|
|
|
632
612
|
bold-white headings, BLUE command names, white one-line descriptions, FAINT subcommand hints,
|
|
633
613
|
a FAINT footer), then aligned EXAMPLES. Presentation only — same routing, same commands.
|
|
634
614
|
NO_COLOR keeps the box + bold headings + alignment, drops colour."""
|
|
635
|
-
global _screen_started
|
|
636
615
|
total = sum(len(cmds) for _, cmds in _TOP_LEVEL_GROUPS)
|
|
637
616
|
|
|
638
617
|
def _bullet(*parts) -> Text:
|
|
639
618
|
line = Text(" · ", style=theme.FAINT)
|
|
640
619
|
for text, style in parts:
|
|
641
|
-
if text.startswith("fp "):
|
|
642
|
-
style = theme.PINK
|
|
643
620
|
line.append(text, style=style)
|
|
644
621
|
return line
|
|
645
622
|
|
|
646
623
|
# ── brand mark ──
|
|
647
624
|
_stdout.print()
|
|
648
|
-
|
|
649
|
-
_stdout.print(wordmark())
|
|
625
|
+
_stdout.print(Text(" ◆ fp", style=f"bold {theme.ACCENT}"))
|
|
650
626
|
|
|
651
627
|
# ── getting started ──
|
|
652
628
|
_stdout.print()
|
|
@@ -660,7 +636,7 @@ def render_top_level_help() -> None:
|
|
|
660
636
|
Text(" or set ", style=theme.FAINT) +
|
|
661
637
|
Text("FP_DASHBOARD_URL", style=theme.TEXT_DIM) +
|
|
662
638
|
Text("; saved after login.)", style=theme.FAINT))
|
|
663
|
-
_stdout.print(_bullet(("
|
|
639
|
+
_stdout.print(_bullet(("authorize the link in your browser, or press tab for a code by email. self-signed dashboard? add ", theme.TEXT),
|
|
664
640
|
("--insecure", theme.ACCENT), (".", theme.TEXT)))
|
|
665
641
|
_stdout.print(_bullet(("then: ", theme.TEXT), ("fp whoami", theme.ACCENT),
|
|
666
642
|
(" ", theme.FAINT), ("fp --json sessions --since 24h", theme.ACCENT)))
|
|
@@ -678,9 +654,9 @@ def render_top_level_help() -> None:
|
|
|
678
654
|
glob.append(g, style=theme.TEXT_DIM)
|
|
679
655
|
_stdout.print(glob)
|
|
680
656
|
eg = Text(" e.g. ")
|
|
681
|
-
eg.append("fp --json events ", style=theme.
|
|
657
|
+
eg.append("fp --json events ", style=theme.TEXT_DIM)
|
|
682
658
|
eg.append("✓", style=theme.SUCCESS)
|
|
683
|
-
eg.append(" fp events --json ", style=theme.
|
|
659
|
+
eg.append(" fp events --json ", style=theme.TEXT_DIM)
|
|
684
660
|
eg.append("✗", style=theme.ERROR)
|
|
685
661
|
_stdout.print(eg)
|
|
686
662
|
mt = Text(" multi-tenant: set the org at login (", style=theme.FAINT)
|
|
@@ -730,7 +706,7 @@ def render_top_level_help() -> None:
|
|
|
730
706
|
if hint:
|
|
731
707
|
cell.append(" · ", style=theme.FAINT)
|
|
732
708
|
cell.append(hint, style=theme.FAINT)
|
|
733
|
-
table.add_row(Text(name, style=theme.
|
|
709
|
+
table.add_row(Text(name, style=theme.BLUE), cell)
|
|
734
710
|
footer = Text()
|
|
735
711
|
footer.append("run ", style=theme.FAINT)
|
|
736
712
|
footer.append("fp <command> --help", style=theme.TEXT_DIM)
|
|
@@ -751,7 +727,7 @@ def render_top_level_help() -> None:
|
|
|
751
727
|
ex.add_column(no_wrap=True)
|
|
752
728
|
ex.add_column(no_wrap=True, overflow="ellipsis", max_width=max(SCORES_MIN_WIDTH, min(_stdout.width, 110) - 56))
|
|
753
729
|
for cmd, why in _TOP_LEVEL_EXAMPLES:
|
|
754
|
-
ex.add_row(Text(cmd, style=theme.
|
|
730
|
+
ex.add_row(Text(cmd, style=theme.ACCENT), Text(why, style=theme.TEXT_DIM))
|
|
755
731
|
_stdout.print(Padding(ex, (0, 0, 0, 2)))
|
|
756
732
|
|
|
757
733
|
_stdout.print()
|
|
@@ -1020,7 +996,6 @@ def render_whoami(
|
|
|
1020
996
|
"""The logged-in ``whoami`` view (stdout): an identity header, then the shared
|
|
1021
997
|
permissions + orgs panels. Presentation only; no legend."""
|
|
1022
998
|
c = _stdout
|
|
1023
|
-
screen_header(c)
|
|
1024
999
|
|
|
1025
1000
|
# ── identity header (no box) ──
|
|
1026
1001
|
c.print()
|
|
@@ -1131,14 +1106,14 @@ def render_org_perms(*, slug: str, role: str, permissions: Sequence[str],
|
|
|
1131
1106
|
# The picker frame and the switched card share the same rounded Panel shell as every other
|
|
1132
1107
|
# boxed view (only the border colour + contents differ), so they read as one system.
|
|
1133
1108
|
|
|
1134
|
-
_PICKER_FOOTER = "↑↓ move ·
|
|
1109
|
+
_PICKER_FOOTER = "↑↓ move · enter select · esc cancel"
|
|
1135
1110
|
|
|
1136
1111
|
|
|
1137
1112
|
def org_picker_frame(orgs: Sequence[dict], idx: int):
|
|
1138
1113
|
"""One frame of the interactive ``orgs switch`` picker (a renderable, redrawn in place by the
|
|
1139
1114
|
caller's ``Live``): a rounded ACCENT panel ``switch org · {n} available``; one row per org with
|
|
1140
1115
|
a ``❯`` pointer (ACCENT) on row ``idx`` — the selected slug bright (TEXT), others dim — and a
|
|
1141
|
-
``● current`` (SUCCESS) / ``○`` (FAINT) status. Footer ``↑↓ move ·
|
|
1116
|
+
``● current`` (SUCCESS) / ``○`` (FAINT) status. Footer ``↑↓ move · enter select · esc cancel`` in
|
|
1142
1117
|
the bottom border. NO_COLOR keeps the box, pointer, and ●/○ shapes (colour drops out)."""
|
|
1143
1118
|
table = Table(box=None, pad_edge=False, show_header=False, padding=(0, 2, 0, 0))
|
|
1144
1119
|
table.add_column(no_wrap=True) # pointer
|
|
@@ -1158,7 +1133,7 @@ def org_picker_frame(orgs: Sequence[dict], idx: int):
|
|
|
1158
1133
|
panel = Panel(table, box=ROUNDED, border_style=theme.ACCENT, title=title, title_align="left",
|
|
1159
1134
|
padding=(0, 1), expand=False)
|
|
1160
1135
|
# The key hint rides as a FAINT line just beneath the panel (always fits — no border
|
|
1161
|
-
# truncation of the wide
|
|
1136
|
+
# truncation of the wide arrow glyphs), aligned under the box.
|
|
1162
1137
|
footer = Text(" " + _PICKER_FOOTER, style=theme.FAINT)
|
|
1163
1138
|
return Group(Padding(panel, (0, 0, 0, 2)), footer)
|
|
1164
1139
|
|
|
@@ -1942,6 +1917,9 @@ def _errors_title(count: int, order: Optional[str], days) -> Text:
|
|
|
1942
1917
|
return t
|
|
1943
1918
|
|
|
1944
1919
|
|
|
1920
|
+
ERRORS_SUMMARY_MIN_WIDTH = 28
|
|
1921
|
+
|
|
1922
|
+
|
|
1945
1923
|
def render_errors(items: Sequence[Any], *, order: Optional[str] = None, full_ids: bool = False,
|
|
1946
1924
|
empty_message: str = "no errors") -> None:
|
|
1947
1925
|
"""The ``errors`` list view (stdout): an error-themed (muted red-purple border) boxed table —
|
|
@@ -1968,7 +1946,8 @@ def render_errors(items: Sequence[Any], *, order: Optional[str] = None, full_ids
|
|
|
1968
1946
|
max((len(x) for x in agents), default=0),
|
|
1969
1947
|
max((len(x) for x in sessions), default=0),
|
|
1970
1948
|
))
|
|
1971
|
-
|
|
1949
|
+
# Full ids can fill the row: keep the summary readable, and let the long ids wrap instead.
|
|
1950
|
+
budget = max(ERRORS_SUMMARY_MIN_WIDTH, _stdout.width - fixed - _LIST_CHROME)
|
|
1972
1951
|
|
|
1973
1952
|
rows = []
|
|
1974
1953
|
for i, e in enumerate(items):
|
|
@@ -2758,13 +2737,13 @@ def _sql_syntax_theme():
|
|
|
2758
2737
|
class _FpSqlStyle(Style):
|
|
2759
2738
|
background_color = "#0e0c12" # overridden by Syntax(background_color="default")
|
|
2760
2739
|
styles = {
|
|
2761
|
-
Token:
|
|
2740
|
+
Token: theme.TEXT,
|
|
2762
2741
|
Comment: f"italic {theme.FAINT}",
|
|
2763
2742
|
Keyword: f"bold {theme.ACCENT}",
|
|
2764
2743
|
Keyword.Type: theme.SCORE_HIGH,
|
|
2765
2744
|
Operator: theme.TEXT_DIM,
|
|
2766
2745
|
Operator.Word: f"bold {theme.ACCENT}", # AND / OR / NOT
|
|
2767
|
-
Name:
|
|
2746
|
+
Name: theme.TEXT,
|
|
2768
2747
|
Name.Builtin: theme.SUCCESS,
|
|
2769
2748
|
Name.Function: theme.SUCCESS,
|
|
2770
2749
|
Name.Variable: theme.PERM_WRITE, # :name / @var params
|
|
@@ -2896,8 +2875,6 @@ def _plain(*parts, console=None) -> None:
|
|
|
2896
2875
|
``--quiet`` for non-error chrome; callers that must always show pass ``console``)."""
|
|
2897
2876
|
line = Text(" ")
|
|
2898
2877
|
for text, style in parts:
|
|
2899
|
-
if text.startswith("fp "):
|
|
2900
|
-
style = theme.PINK
|
|
2901
2878
|
line.append(text, style=style)
|
|
2902
2879
|
(console or _stderr).print(line)
|
|
2903
2880
|
|
|
@@ -47,7 +47,13 @@ ALL_PERMISSIONS: List[str] = [
|
|
|
47
47
|
"policies:read",
|
|
48
48
|
"policies:write",
|
|
49
49
|
"policies:pull",
|
|
50
|
+
# Code fixes (GitHub issues and pull requests raised from insights). Separate from
|
|
51
|
+
# policies:*; read-only and standard get code_fixes:read through the ":read" suffix.
|
|
52
|
+
"code_fixes:read",
|
|
53
|
+
"code_fixes:write",
|
|
50
54
|
"usage:read",
|
|
55
|
+
# Billing (plan, checkout, top-ups). Members only: the server refuses it on a key.
|
|
56
|
+
"billing:manage",
|
|
51
57
|
# Jev through FailproofAI Cloud, charged to the org's plan. The built-in
|
|
52
58
|
# admin set carries it, so PRESETS["admin"] below does too. The server
|
|
53
59
|
# refuses a KEY that carries it without both events:add and policies:pull
|
|
@@ -71,6 +77,9 @@ RETIRED_PERMISSION_ALIASES = {
|
|
|
71
77
|
"incidents:write": ["issues:create"],
|
|
72
78
|
"incidents:ack": ["issues:read", "issues:create", "issues:close"],
|
|
73
79
|
"alerts:ack": ["issues:read", "issues:create", "issues:close"],
|
|
80
|
+
# Briefly spelled `fixes:*`; the server still parses them as policies:*.
|
|
81
|
+
"fixes:read": ["policies:read"],
|
|
82
|
+
"fixes:write": ["policies:write"],
|
|
74
83
|
}
|
|
75
84
|
|
|
76
85
|
|
|
@@ -132,7 +141,7 @@ _ASSIGNABLE_SET = frozenset(ASSIGNABLE_PERMISSIONS)
|
|
|
132
141
|
# `keys:update` is human-only (a bearer key can create keys but never edit them). The key flows
|
|
133
142
|
# strip these from a permission-set seed (silently, like the dashboard's keyAssignableOnly-strip)
|
|
134
143
|
# and reject them from an explicit `--add` (so the user gets a clean message, not a server 422).
|
|
135
|
-
KEY_NON_ASSIGNABLE = frozenset({"orgs:admin", "keys:update"})
|
|
144
|
+
KEY_NON_ASSIGNABLE = frozenset({"orgs:admin", "keys:update", "billing:manage"})
|
|
136
145
|
KEY_ASSIGNABLE_PERMISSIONS: List[str] = [p for p in ASSIGNABLE_PERMISSIONS if p not in KEY_NON_ASSIGNABLE]
|
|
137
146
|
|
|
138
147
|
|