getkova 2.0.0-beta.12 → 2.0.0-beta.14

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/.buildstamp +1 -1
  3. package/dist/{agents-Cv83FJ1s.js → agents-DYNROeFN.js} +1 -1
  4. package/dist/agents.commands.add-B9Q3n3bY.js +2 -0
  5. package/dist/{agents.commands.add-BX7k8wxL.js → agents.commands.add-BRpMqrRJ.js} +1 -1
  6. package/dist/{auth-choice-CIJsNMvx.js → auth-choice-DXcFxAUc.js} +1 -1
  7. package/dist/{auth-choice-CDyVAWSE.js → auth-choice-a7YBkCqd.js} +1 -1
  8. package/dist/build-info.json +3 -3
  9. package/dist/cli/run-main.js +4 -4
  10. package/dist/cli-startup-metadata.json +2 -2
  11. package/dist/{command-registry-C3twXmHO.js → command-registry-C_TGmiBn.js} +2 -2
  12. package/dist/{command-registry-DXpUM0mS.js → command-registry-Cypidkbo.js} +2 -2
  13. package/dist/{command-registry-core-CK3mLwYG.js → command-registry-core-PRh_gI53.js} +7 -7
  14. package/dist/{completion-cli-DFyAWfKa.js → completion-cli-nnYwutod.js} +2 -2
  15. package/dist/{config-cli-CPvKZuLF.js → config-cli-BRzInOE-.js} +1 -1
  16. package/dist/{configure-Bj4aMJwt.js → configure-Bwh6JA7D.js} +3 -3
  17. package/dist/configure-dZ-eQGYy.js +3 -0
  18. package/dist/{configure.commands-BifddrNd.js → configure.commands-CdaC_G18.js} +1 -1
  19. package/dist/{configure.wizard-BTU9REdR.js → configure.wizard-7rSbwDP4.js} +2 -2
  20. package/dist/{embedded-backend-iIZcnNwu.js → embedded-backend-CG-3uD3y.js} +34 -0
  21. package/dist/extensions/google/gemini-cli-provider.js +9 -0
  22. package/dist/extensions/google/oauth.credentials.js +16 -2
  23. package/dist/extensions/google/setup-api.js +34 -0
  24. package/dist/{gateway-chat-BPHJjxyp.js → gateway-chat-DtgJnrdN.js} +9 -0
  25. package/dist/{gateway-cli-BOTl6I3Z.js → gateway-cli-DR7qgn-2.js} +1 -1
  26. package/dist/{local-process-backend-DnkwOXbk.js → local-process-backend-DesX8olb.js} +9 -0
  27. package/dist/{model-picker-BnozRp4j.js → model-picker-CHxCmOg1.js} +1 -1
  28. package/dist/{model-picker-B4diByz_.js → model-picker-DrZ_xnKM.js} +11 -5
  29. package/dist/{model-picker.runtime-fxBzzLJi.js → model-picker.runtime-DPqk-fCR.js} +1 -1
  30. package/dist/model-picker.runtime.js +1 -1
  31. package/dist/{onboard-CB6m87Xq.js → onboard-ocgQYlzg.js} +1 -1
  32. package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
  33. package/dist/postinstall-inventory.json +44 -44
  34. package/dist/{program-DzyIksvz.js → program-Bc7KZvE4.js} +1 -1
  35. package/dist/{provider-auth-choice-CJsn-TeW.js → provider-auth-choice-DyZRp0As.js} +48 -21
  36. package/dist/{register.agent-BNTd3T0R.js → register.agent-CJfTiudH.js} +1 -1
  37. package/dist/{register.configure-JcB2446f.js → register.configure-vDVpx5uw.js} +3 -3
  38. package/dist/{register.onboard-43O1JC9t.js → register.onboard--sMAi8Cp.js} +1 -1
  39. package/dist/{register.settings-DtxLM-rq.js → register.settings-CZ6DFi7g.js} +2 -2
  40. package/dist/{register.setup-CXZ8SKnr.js → register.setup-D4xcgVdJ.js} +1 -1
  41. package/dist/{register.subclis-uuK2Pi04.js → register.subclis-CKoT2KT7.js} +2 -2
  42. package/dist/register.subclis-CTWWaDXm.js +3 -0
  43. package/dist/{register.subclis-core-BDQSG-W8.js → register.subclis-core-CbgJhZNs.js} +2 -2
  44. package/dist/{route-DMOrB5iD.js → route-VOBcZksS.js} +2 -2
  45. package/dist/{server-Br0mq7JG.js → server-BCJX8JcM.js} +1 -1
  46. package/dist/{server-methods-DuP3oYhB.js → server-methods-B5WxzaKk.js} +1 -1
  47. package/dist/{server-plugin-bootstrap-CiVVIETK.js → server-plugin-bootstrap-COnx2RCN.js} +1 -1
  48. package/dist/{server-plugins-BAddURDP.js → server-plugins-BVrJNao2.js} +1 -1
  49. package/dist/{server-startup-plugins-Co5FKb8_.js → server-startup-plugins-C462Zlj_.js} +1 -1
  50. package/dist/{server-startup-plugins-temwFEKa.js → server-startup-plugins-CE_Z3k8p.js} +1 -1
  51. package/dist/{server.impl-CWn8I1GH.js → server.impl-Czsabr3q.js} +6 -6
  52. package/dist/{setup-D876f1H_.js → setup-CAwtzquZ.js} +2 -2
  53. package/dist/setup-D7vQE9tM.js +2 -0
  54. package/dist/tui/local-backend-child.js +4 -1
  55. package/dist/{tui-DrUuVnxI.js → tui-Bu0hhKqj.js} +3266 -75
  56. package/dist/{tui-cli-Cqen9mHS.js → tui-cli-DVPuJZko.js} +1 -1
  57. package/docs/pi.md +2 -2
  58. package/docs/plan/terminal-control-parity.md +31 -23
  59. package/docs/tools/slash-commands.md +4 -3
  60. package/docs/web/tui.md +23 -5
  61. package/package.json +4 -3
  62. package/dist/agents.commands.add-CYLGi0PU.js +0 -2
  63. package/dist/configure-BcFwkumq.js +0 -3
  64. package/dist/register.subclis-BXWExNcW.js +0 -3
  65. package/dist/setup-BuExDK_Q.js +0 -2
@@ -68,13 +68,13 @@
68
68
  "dist/agent-timestamp-K6yxWPFN.js",
69
69
  "dist/agent-tool-result-middleware-DvzCj0M-.js",
70
70
  "dist/agent-via-gateway-nbFCN-CI.js",
71
- "dist/agents-Cv83FJ1s.js",
71
+ "dist/agents-DYNROeFN.js",
72
72
  "dist/agents.binding-format-DxCQ5ArM.js",
73
73
  "dist/agents.bindings-_X4Drlvv.js",
74
74
  "dist/agents.bindings-CbbJEWS7.js",
75
75
  "dist/agents.command-shared-CqZsj4W5.js",
76
- "dist/agents.commands.add-BX7k8wxL.js",
77
- "dist/agents.commands.add-CYLGi0PU.js",
76
+ "dist/agents.commands.add-B9Q3n3bY.js",
77
+ "dist/agents.commands.add-BRpMqrRJ.js",
78
78
  "dist/agents.commands.bind-C5KjF3eq.js",
79
79
  "dist/agents.commands.bind-COF6upzm.js",
80
80
  "dist/agents.commands.delete-CDfYoMn0.js",
@@ -185,10 +185,10 @@
185
185
  "dist/auth-BhBYgTov.js",
186
186
  "dist/auth-BLUnX09n.js",
187
187
  "dist/auth-BT0NWC83.js",
188
+ "dist/auth-choice-a7YBkCqd.js",
188
189
  "dist/auth-choice-BeqsvSLf.js",
189
- "dist/auth-choice-CDyVAWSE.js",
190
- "dist/auth-choice-CIJsNMvx.js",
191
190
  "dist/auth-choice-copy-CYDE372V.js",
191
+ "dist/auth-choice-DXcFxAUc.js",
192
192
  "dist/auth-choice-inference-B_4IVNwX.js",
193
193
  "dist/auth-choice-legacy-C1z5364F.js",
194
194
  "dist/auth-choice-legacy-DrT593ag.js",
@@ -490,9 +490,9 @@
490
490
  "dist/command-poll-backoff.runtime.js",
491
491
  "dist/command-queue-Z6ldkV-u.js",
492
492
  "dist/command-registration-policy-BfUsVmz7.js",
493
- "dist/command-registry-C3twXmHO.js",
494
- "dist/command-registry-core-CK3mLwYG.js",
495
- "dist/command-registry-DXpUM0mS.js",
493
+ "dist/command-registry-C_TGmiBn.js",
494
+ "dist/command-registry-core-PRh_gI53.js",
495
+ "dist/command-registry-Cypidkbo.js",
496
496
  "dist/command-secret-gateway-Bj5ccl88.js",
497
497
  "dist/command-secret-targets--4SPOa0o.js",
498
498
  "dist/command-secret-targets-B0ryFwnL.js",
@@ -545,7 +545,7 @@
545
545
  "dist/compaction-runtime-context-D6xzYYH9.js",
546
546
  "dist/compaction-safety-timeout-C_ALjL0Z.js",
547
547
  "dist/compaction-successor-transcript-DO9DV0gi.js",
548
- "dist/completion-cli-DFyAWfKa.js",
548
+ "dist/completion-cli-nnYwutod.js",
549
549
  "dist/completion-runtime-PZ8sMcyB.js",
550
550
  "dist/config-api-CrXKtfxn.js",
551
551
  "dist/config-api-DBzXuEwN.js",
@@ -555,7 +555,7 @@
555
555
  "dist/config-BDuM8AdB.js",
556
556
  "dist/config-CBSfF5W-.js",
557
557
  "dist/config-CFerVObs.js",
558
- "dist/config-cli-CPvKZuLF.js",
558
+ "dist/config-cli-BRzInOE-.js",
559
559
  "dist/config-compat-knX5GMFP.js",
560
560
  "dist/config-compat-vOVJHgvI.js",
561
561
  "dist/config-contracts-Bwx_NMDk.js",
@@ -582,10 +582,10 @@
582
582
  "dist/config-wdO8b66X.js",
583
583
  "dist/config-yoJeWNRS.js",
584
584
  "dist/config/config.js",
585
- "dist/configure-BcFwkumq.js",
586
- "dist/configure-Bj4aMJwt.js",
587
- "dist/configure.commands-BifddrNd.js",
588
- "dist/configure.wizard-BTU9REdR.js",
585
+ "dist/configure-Bwh6JA7D.js",
586
+ "dist/configure-dZ-eQGYy.js",
587
+ "dist/configure.commands-CdaC_G18.js",
588
+ "dist/configure.wizard-7rSbwDP4.js",
589
589
  "dist/configured-CvDZhUSv.js",
590
590
  "dist/configured-max-bytes-B7v8GCHG.js",
591
591
  "dist/connect-error-details-CsndSAvd.js",
@@ -815,7 +815,7 @@
815
815
  "dist/effective-plugin-ids-DNjYaMU-.js",
816
816
  "dist/effective-tool-policy-Bb9v1b6A.js",
817
817
  "dist/elevated-unavailable-Dlbnxjzx.js",
818
- "dist/embedded-backend-iIZcnNwu.js",
818
+ "dist/embedded-backend-CG-3uD3y.js",
819
819
  "dist/embedded-gateway-stub.runtime-BVpgZkMC.js",
820
820
  "dist/embedded-gateway-stub.runtime.js",
821
821
  "dist/embedded-mode-CpMouF70.js",
@@ -2192,8 +2192,8 @@
2192
2192
  "dist/gateway-auth-bypass-CBhupg-r.js",
2193
2193
  "dist/gateway-bindings-B96CLSsN.js",
2194
2194
  "dist/gateway-BiSX-UVI.js",
2195
- "dist/gateway-chat-BPHJjxyp.js",
2196
- "dist/gateway-cli-BOTl6I3Z.js",
2195
+ "dist/gateway-chat-DtgJnrdN.js",
2196
+ "dist/gateway-cli-DR7qgn-2.js",
2197
2197
  "dist/gateway-CYZux2O1.js",
2198
2198
  "dist/gateway-discovery-targets-CRQAvghw.js",
2199
2199
  "dist/gateway-install-token--6GGPC4F.js",
@@ -2446,7 +2446,7 @@
2446
2446
  "dist/local-dispatch.runtime.js",
2447
2447
  "dist/local-file-access-Ddsa1WwI.js",
2448
2448
  "dist/local-media-access-CCWSdd03.js",
2449
- "dist/local-process-backend-DnkwOXbk.js",
2449
+ "dist/local-process-backend-DesX8olb.js",
2450
2450
  "dist/local-roots-CCUrDc4U.js",
2451
2451
  "dist/location-BY1sYJYE.js",
2452
2452
  "dist/log-RpSZBI3Y.js",
@@ -2610,10 +2610,10 @@
2610
2610
  "dist/model-overrides-5Yc9qZL2.js",
2611
2611
  "dist/model-overrides-9E9jjsZr.js",
2612
2612
  "dist/model-param-b-CfoKiWQh.js",
2613
- "dist/model-picker-B4diByz_.js",
2614
- "dist/model-picker-BnozRp4j.js",
2613
+ "dist/model-picker-CHxCmOg1.js",
2614
+ "dist/model-picker-DrZ_xnKM.js",
2615
2615
  "dist/model-picker-visibility-Bw-YyGn4.js",
2616
- "dist/model-picker.runtime-fxBzzLJi.js",
2616
+ "dist/model-picker.runtime-DPqk-fCR.js",
2617
2617
  "dist/model-picker.runtime.js",
2618
2618
  "dist/model-ref-Cn6ADl5z.js",
2619
2619
  "dist/model-ref-profile-CBmsl8r_.js",
@@ -2718,7 +2718,6 @@
2718
2718
  "dist/onboard-BQRd8evO.js",
2719
2719
  "dist/onboard-BS9ccva0.js",
2720
2720
  "dist/onboard-Buddndv0.js",
2721
- "dist/onboard-CB6m87Xq.js",
2722
2721
  "dist/onboard-CENl0V1Q.js",
2723
2722
  "dist/onboard-channels-DB3aztL8.js",
2724
2723
  "dist/onboard-channels-DwNkwYbu.js",
@@ -2745,6 +2744,7 @@
2745
2744
  "dist/onboard-helpers-DIlStw-1.js",
2746
2745
  "dist/onboard-hooks-bPlNFDGi.js",
2747
2746
  "dist/onboard-NmWFhCn7.js",
2747
+ "dist/onboard-ocgQYlzg.js",
2748
2748
  "dist/onboard-remote-CDjI7-hH.js",
2749
2749
  "dist/onboard-remote-y4SOxGL9.js",
2750
2750
  "dist/onboard-search-BzIYiOr3.js",
@@ -6638,9 +6638,9 @@
6638
6638
  "dist/profile-list-DrVTJ0hW.js",
6639
6639
  "dist/profile-utils-7b3ZHGpe.js",
6640
6640
  "dist/profiles-B_bDx1tN.js",
6641
+ "dist/program-Bc7KZvE4.js",
6641
6642
  "dist/program-context-CjdKg_V9.js",
6642
6643
  "dist/program-context-DUQAJvOZ.js",
6643
- "dist/program-DzyIksvz.js",
6644
6644
  "dist/progress-B3Q7T_pQ.js",
6645
6645
  "dist/progress-B8e131PE.js",
6646
6646
  "dist/progress-line-BLlwPNs4.js",
@@ -6660,7 +6660,7 @@
6660
6660
  "dist/provider-auth-aliases-RHuT0LeP.js",
6661
6661
  "dist/provider-auth-api-key--2p2b3eH.js",
6662
6662
  "dist/provider-auth-C8PvucBA.js",
6663
- "dist/provider-auth-choice-CJsn-TeW.js",
6663
+ "dist/provider-auth-choice-DyZRp0As.js",
6664
6664
  "dist/provider-auth-choice-helpers-il4r3K4B.js",
6665
6665
  "dist/provider-auth-choice-preference-WGHU31vl.js",
6666
6666
  "dist/provider-auth-choice.runtime--9Dpjpff.js",
@@ -6838,20 +6838,20 @@
6838
6838
  "dist/regexp-B-zUn8C0.js",
6839
6839
  "dist/register-command-groups-6fuXByLA.js",
6840
6840
  "dist/register-service-commands-CHx1ig7l.js",
6841
- "dist/register.agent-BNTd3T0R.js",
6841
+ "dist/register.agent-CJfTiudH.js",
6842
6842
  "dist/register.backup-L4e_MWAb.js",
6843
- "dist/register.configure-JcB2446f.js",
6843
+ "dist/register.configure-vDVpx5uw.js",
6844
6844
  "dist/register.maintenance-BiLz0BBB.js",
6845
6845
  "dist/register.message-Dwd5mdet.js",
6846
6846
  "dist/register.migrate-BgBXFGjc.js",
6847
- "dist/register.onboard-43O1JC9t.js",
6847
+ "dist/register.onboard--sMAi8Cp.js",
6848
6848
  "dist/register.persona-Cd2Im4hm.js",
6849
- "dist/register.settings-DtxLM-rq.js",
6850
- "dist/register.setup-CXZ8SKnr.js",
6849
+ "dist/register.settings-CZ6DFi7g.js",
6850
+ "dist/register.setup-D4xcgVdJ.js",
6851
6851
  "dist/register.status-health-sessions-dJAJPIbz.js",
6852
- "dist/register.subclis-BXWExNcW.js",
6853
- "dist/register.subclis-core-BDQSG-W8.js",
6854
- "dist/register.subclis-uuK2Pi04.js",
6852
+ "dist/register.subclis-CKoT2KT7.js",
6853
+ "dist/register.subclis-core-CbgJhZNs.js",
6854
+ "dist/register.subclis-CTWWaDXm.js",
6855
6855
  "dist/registry-BPu4Powl.js",
6856
6856
  "dist/registry-BwfPJbKk.js",
6857
6857
  "dist/registry-C7brISRU.js",
@@ -6917,10 +6917,10 @@
6917
6917
  "dist/root-help-metadata-BFhteW8y.js",
6918
6918
  "dist/root-memory-files-cfm2v7YJ.js",
6919
6919
  "dist/route-auth-DCAam0KO.js",
6920
- "dist/route-DMOrB5iD.js",
6921
6920
  "dist/route-reply-C0TnD1J5.js",
6922
6921
  "dist/route-reply.runtime-CbkDxvrP.js",
6923
6922
  "dist/route-reply.runtime.js",
6923
+ "dist/route-VOBcZksS.js",
6924
6924
  "dist/routes-BaUti-m2.js",
6925
6925
  "dist/routes-BjmtiAOa.js",
6926
6926
  "dist/routing-Cm33ixUc.js",
@@ -7085,8 +7085,8 @@
7085
7085
  "dist/send-policy-CbB2vUsI.js",
7086
7086
  "dist/send.runtime-D72FfTjh.js",
7087
7087
  "dist/send.runtime.js",
7088
+ "dist/server-BCJX8JcM.js",
7088
7089
  "dist/server-Bm2w2zvW.js",
7089
- "dist/server-Br0mq7JG.js",
7090
7090
  "dist/server-Bwt3l4c1.js",
7091
7091
  "dist/server-chat-Bn4ynkpJ.js",
7092
7092
  "dist/server-constants-CPPsRRCw.js",
@@ -7094,13 +7094,13 @@
7094
7094
  "dist/server-context-dTWgbp-2.js",
7095
7095
  "dist/server-context-XBzbzFna.js",
7096
7096
  "dist/server-json-BYtbV62B.js",
7097
- "dist/server-methods-DuP3oYhB.js",
7097
+ "dist/server-methods-B5WxzaKk.js",
7098
7098
  "dist/server-middleware-B28SqI-a.js",
7099
7099
  "dist/server-model-catalog-CGUyVffz.js",
7100
7100
  "dist/server-model-catalog-CtxktAry.js",
7101
7101
  "dist/server-node-events-n_zeZtny.js",
7102
- "dist/server-plugin-bootstrap-CiVVIETK.js",
7103
- "dist/server-plugins-BAddURDP.js",
7102
+ "dist/server-plugin-bootstrap-COnx2RCN.js",
7103
+ "dist/server-plugins-BVrJNao2.js",
7104
7104
  "dist/server-restart-sentinel-Bd_H9sJW.js",
7105
7105
  "dist/server-restart-sentinel-Dqy0ONsU.js",
7106
7106
  "dist/server-session-events-RQ7XErqL.js",
@@ -7108,11 +7108,11 @@
7108
7108
  "dist/server-startup-early-vdmhwUaD.js",
7109
7109
  "dist/server-startup-log-BG-1tuJ8.js",
7110
7110
  "dist/server-startup-memory-DiT3TyR1.js",
7111
- "dist/server-startup-plugins-Co5FKb8_.js",
7112
- "dist/server-startup-plugins-temwFEKa.js",
7111
+ "dist/server-startup-plugins-C462Zlj_.js",
7112
+ "dist/server-startup-plugins-CE_Z3k8p.js",
7113
7113
  "dist/server-startup-session-migration-C5m4k142.js",
7114
7114
  "dist/server-tailscale-BLZuOn7Z.js",
7115
- "dist/server.impl-CWn8I1GH.js",
7115
+ "dist/server.impl-Czsabr3q.js",
7116
7116
  "dist/service-audit-BaQqjpcc.js",
7117
7117
  "dist/service-audit-CG3ABhwY.js",
7118
7118
  "dist/service-CB_r2pVm.js",
@@ -7201,11 +7201,11 @@
7201
7201
  "dist/set-DgDDq-tV.js",
7202
7202
  "dist/set-image-BGbdPVtz.js",
7203
7203
  "dist/setup-binary-Dfqs304w.js",
7204
- "dist/setup-BuExDK_Q.js",
7204
+ "dist/setup-CAwtzquZ.js",
7205
7205
  "dist/setup-core-DAYmhim_.js",
7206
7206
  "dist/setup-core-hklhip6b.js",
7207
7207
  "dist/setup-core-PuGDd5NB.js",
7208
- "dist/setup-D876f1H_.js",
7208
+ "dist/setup-D7vQE9tM.js",
7209
7209
  "dist/setup-Dr3bpq_Q.js",
7210
7210
  "dist/setup-group-access-ET37KjI5.js",
7211
7211
  "dist/setup-helpers-DnvMR78j.js",
@@ -7588,8 +7588,8 @@
7588
7588
  "dist/tts.runtime-BXhMhYl0.js",
7589
7589
  "dist/tts.runtime-CwXB84rA.js",
7590
7590
  "dist/tts.runtime.js",
7591
- "dist/tui-cli-Cqen9mHS.js",
7592
- "dist/tui-DrUuVnxI.js",
7591
+ "dist/tui-Bu0hhKqj.js",
7592
+ "dist/tui-cli-DVPuJZko.js",
7593
7593
  "dist/tui-launch-DmN3rK_6.js",
7594
7594
  "dist/tui/local-backend-child.js",
7595
7595
  "dist/turn-trace-wd0pI8yO.js",
@@ -9,7 +9,7 @@ import { n as setProgramContext } from "./program-context-CjdKg_V9.js";
9
9
  import { t as isCommandJsonOutputMode } from "./json-mode-C9veyRob.js";
10
10
  import { t as forceFreePort } from "./ports-COAREJy6.js";
11
11
  import { n as resolvePluginInstallPreactionRequest, t as resolvePluginInstallInvalidConfigPolicy } from "./plugin-install-config-policy-Dmc_vig8.js";
12
- import { t as registerProgramCommands } from "./command-registry-DXpUM0mS.js";
12
+ import { t as registerProgramCommands } from "./command-registry-Cypidkbo.js";
13
13
  import { t as configureProgramHelp } from "./help-DIjCPjp6.js";
14
14
  import { i as shouldBypassConfigGuardForCommandPath, n as ensureCliExecutionBootstrap, r as resolveCliExecutionStartupContext, t as applyCliExecutionStartupPresentation } from "./command-execution-startup-B41K-tqc.js";
15
15
  import process$1 from "node:process";
@@ -63,6 +63,7 @@ async function applyDefaultModelFromAuthChoice(params) {
63
63
  });
64
64
  return nextConfig;
65
65
  }
66
+ const PROVIDER_AUTH_UNAVAILABLE_ERROR_CODE = "KOVA_PROVIDER_AUTH_UNAVAILABLE";
66
67
  let providerAuthChoiceDeps = { loadPluginProviderRuntime: async () => import("./provider-auth-choice.runtime-B9qTU_YS.js") };
67
68
  async function loadPluginProviderRuntime() {
68
69
  return await providerAuthChoiceDeps.loadPluginProviderRuntime();
@@ -81,6 +82,9 @@ function withProviderPluginId(provider, pluginId) {
81
82
  pluginId
82
83
  };
83
84
  }
85
+ function isProviderAuthUnavailableError(error) {
86
+ return Boolean(error) && typeof error === "object" && error.code === PROVIDER_AUTH_UNAVAILABLE_ERROR_CODE;
87
+ }
84
88
  async function runProviderPluginAuthMethod(params) {
85
89
  const agentId = params.agentId ?? resolveDefaultAgentId(params.config);
86
90
  const defaultAgentId = resolveDefaultAgentId(params.config);
@@ -133,7 +137,12 @@ async function applyAuthChoiceLoadedPluginProvider(params) {
133
137
  update: () => {},
134
138
  stop: () => {}
135
139
  };
136
- let providerSetupReady = false;
140
+ let progressActive = true;
141
+ const stopProgress = (message) => {
142
+ if (!progressActive) return;
143
+ progressActive = false;
144
+ progress.stop(message);
145
+ };
137
146
  let runtime;
138
147
  let manifestAuthChoice;
139
148
  let installCatalogEntry;
@@ -153,14 +162,15 @@ async function applyAuthChoiceLoadedPluginProvider(params) {
153
162
  env: params.env,
154
163
  includeUntrustedWorkspacePlugins: false
155
164
  });
156
- providerSetupReady = true;
157
- } finally {
158
- progress.stop(providerSetupReady ? "Provider setup ready." : void 0);
165
+ } catch (error) {
166
+ stopProgress();
167
+ throw error;
159
168
  }
160
169
  const { resolvePluginProviders, resolvePluginSetupProvider, resolveProviderPluginChoice, runProviderModelSelectedHook } = runtime;
161
170
  if (installCatalogEntry) {
162
171
  const enableResult = enablePluginInConfig(nextConfig, installCatalogEntry.pluginId);
163
172
  if (!enableResult.enabled) {
173
+ stopProgress();
164
174
  const safeLabel = sanitizeTerminalText(installCatalogEntry.label);
165
175
  await params.prompter.note(`${safeLabel} plugin is disabled (${enableResult.reason ?? "blocked"}).`, safeLabel);
166
176
  return { config: nextConfig };
@@ -177,6 +187,7 @@ async function applyAuthChoiceLoadedPluginProvider(params) {
177
187
  providerRefs: [manifestAuthChoice.providerId]
178
188
  } : {}
179
189
  });
190
+ progress.update("Loading selected provider");
180
191
  const setupProvider = manifestAuthChoice ? resolvePluginSetupProvider({
181
192
  provider: manifestAuthChoice.providerId,
182
193
  config: enabledConfig,
@@ -185,11 +196,13 @@ async function applyAuthChoiceLoadedPluginProvider(params) {
185
196
  pluginIds: [manifestAuthChoice.pluginId]
186
197
  }) : void 0;
187
198
  let providers = setupProvider ? [withProviderPluginId(setupProvider, manifestAuthChoice.pluginId)] : resolveScopedRuntimeProviders(enabledConfig);
199
+ progress.update("Resolving provider auth method");
188
200
  let resolved = resolveProviderPluginChoice({
189
201
  providers,
190
202
  choice: params.authChoice
191
203
  });
192
204
  if (!resolved && setupProvider) {
205
+ progress.update("Loading provider runtime setup");
193
206
  providers = resolveScopedRuntimeProviders(enabledConfig);
194
207
  resolved = resolveProviderPluginChoice({
195
208
  providers,
@@ -197,6 +210,7 @@ async function applyAuthChoiceLoadedPluginProvider(params) {
197
210
  });
198
211
  }
199
212
  if (!resolved && installCatalogEntry) {
213
+ stopProgress();
200
214
  const [{ ensureOnboardingPluginInstalled }, { clearPluginDiscoveryCache }] = await Promise.all([import("./onboarding-plugin-install-D8QrlRLr.js"), import("./discovery-Ox3lyCLn.js")]);
201
215
  const installResult = await ensureOnboardingPluginInstalled({
202
216
  cfg: nextConfig,
@@ -221,24 +235,37 @@ async function applyAuthChoiceLoadedPluginProvider(params) {
221
235
  choice: params.authChoice
222
236
  });
223
237
  }
224
- if (!resolved) return nextConfig === params.config ? null : {
225
- config: nextConfig,
226
- retrySelection: true
227
- };
238
+ if (!resolved) {
239
+ stopProgress();
240
+ return nextConfig === params.config ? null : {
241
+ config: nextConfig,
242
+ retrySelection: true
243
+ };
244
+ }
228
245
  if (nextConfig === params.config && enabledConfig !== params.config) nextConfig = enabledConfig;
229
- const applied = await runProviderPluginAuthMethod({
230
- config: nextConfig,
231
- env: params.env,
232
- runtime: params.runtime,
233
- prompter: params.prompter,
234
- method: resolved.method,
235
- agentDir: params.agentDir,
236
- agentId: params.agentId,
237
- workspaceDir,
238
- secretInputMode: params.opts?.secretInputMode,
239
- allowSecretRefPrompt: false,
240
- opts: params.opts
241
- });
246
+ stopProgress("Provider setup ready.");
247
+ let applied;
248
+ try {
249
+ applied = await runProviderPluginAuthMethod({
250
+ config: nextConfig,
251
+ env: params.env,
252
+ runtime: params.runtime,
253
+ prompter: params.prompter,
254
+ method: resolved.method,
255
+ agentDir: params.agentDir,
256
+ agentId: params.agentId,
257
+ workspaceDir,
258
+ secretInputMode: params.opts?.secretInputMode,
259
+ allowSecretRefPrompt: false,
260
+ opts: params.opts
261
+ });
262
+ } catch (error) {
263
+ if (isProviderAuthUnavailableError(error)) return {
264
+ config: nextConfig,
265
+ retrySelection: true
266
+ };
267
+ throw error;
268
+ }
242
269
  nextConfig = applied.config;
243
270
  let agentModelOverride;
244
271
  if (applied.defaultModel) {
@@ -11,7 +11,7 @@ async function loadAgentCliCommand() {
11
11
  return (await import("./agent-via-gateway-nbFCN-CI.js")).agentCliCommand;
12
12
  }
13
13
  async function loadAgentsAddCommand() {
14
- return (await import("./agents.commands.add-CYLGi0PU.js")).agentsAddCommand;
14
+ return (await import("./agents.commands.add-B9Q3n3bY.js")).agentsAddCommand;
15
15
  }
16
16
  async function loadAgentsBindCommand() {
17
17
  return (await import("./agents.commands.bind-COF6upzm.js")).agentsBindCommand;
@@ -2,9 +2,9 @@ import { t as formatDocsLink } from "./links-m69AEvat.js";
2
2
  import { r as theme } from "./theme-C-A7UKu3.js";
3
3
  import { n as defaultRuntime } from "./runtime-BqmjkjMH.js";
4
4
  import { n as runCommandWithRuntime } from "./cli-utils-BdrauEIR.js";
5
- import { r as CONFIGURE_WIZARD_SECTIONS } from "./configure.wizard-BTU9REdR.js";
6
- import { n as configureCommandFromSectionsArg } from "./configure.commands-BifddrNd.js";
7
- import "./configure-BcFwkumq.js";
5
+ import { r as CONFIGURE_WIZARD_SECTIONS } from "./configure.wizard-7rSbwDP4.js";
6
+ import { n as configureCommandFromSectionsArg } from "./configure.commands-CdaC_G18.js";
7
+ import "./configure-dZ-eQGYy.js";
8
8
  //#region src/cli/program/register.configure.ts
9
9
  function registerConfigureCommand(program) {
10
10
  program.command("configure").description("Interactive configuration for credentials, channels, gateway, and agent defaults").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/configure", "docs.neuralstudio.in/cli/configure")}\n`).option("--section <section>", `Configuration sections (repeatable). Options: ${CONFIGURE_WIZARD_SECTIONS.join(", ")}`, (value, previous) => [...previous, value], []).action(async (opts) => {
@@ -5,7 +5,7 @@ import { a as resolveManifestProviderOnboardAuthFlags } from "./provider-auth-ch
5
5
  import { n as runCommandWithRuntime } from "./cli-utils-BdrauEIR.js";
6
6
  import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-Dq9aafoz.js";
7
7
  import { t as CORE_ONBOARD_AUTH_FLAGS } from "./onboard-core-auth-flags-CLOirLZQ.js";
8
- import { t as setupWizardCommand } from "./onboard-CB6m87Xq.js";
8
+ import { t as setupWizardCommand } from "./onboard-ocgQYlzg.js";
9
9
  //#region src/cli/program/register.onboard.ts
10
10
  function resolveInstallDaemonFlag(command, opts) {
11
11
  if (!command || typeof command !== "object") return;
@@ -12,8 +12,8 @@ import { n as mutateConfigFile } from "./config-yoJeWNRS.js";
12
12
  import { n as runCommandWithRuntime } from "./cli-utils-BdrauEIR.js";
13
13
  import { f as probeGatewayReachable, v as resolveGatewayHttpLinks } from "./onboard-helpers-DIlStw-1.js";
14
14
  import { t as resolveSetupSecretInputString } from "./setup.secret-input-L_VnuW_Z.js";
15
- import { r as configureCommandWithSections } from "./configure.commands-BifddrNd.js";
16
- import { t as setupWizardCommand } from "./onboard-CB6m87Xq.js";
15
+ import { r as configureCommandWithSections } from "./configure.commands-CdaC_G18.js";
16
+ import { t as setupWizardCommand } from "./onboard-ocgQYlzg.js";
17
17
  import path from "node:path";
18
18
  import fs from "node:fs/promises";
19
19
  import { emitKeypressEvents } from "node:readline";
@@ -5,7 +5,7 @@ import { g as shortenHomePath } from "./utils-B00J6vyS.js";
5
5
  import { n as defaultRuntime } from "./runtime-BqmjkjMH.js";
6
6
  import { n as safeParseWithSchema } from "./zod-parse-B0kVhAcx.js";
7
7
  import { n as runCommandWithRuntime } from "./cli-utils-BdrauEIR.js";
8
- import { t as setupWizardCommand } from "./onboard-CB6m87Xq.js";
8
+ import { t as setupWizardCommand } from "./onboard-ocgQYlzg.js";
9
9
  import JSON5 from "json5";
10
10
  import fs from "node:fs/promises";
11
11
  import { z } from "zod";
@@ -2,11 +2,11 @@ import { h as getSubCliEntries } from "./argv-DsGX2kMJ.js";
2
2
  import { t as resolveCliArgvInvocation } from "./argv-invocation-DWwdVlIB.js";
3
3
  import { r as shouldRegisterPrimarySubcommandOnly, t as shouldEagerRegisterSubcommands } from "./command-registration-policy-BfUsVmz7.js";
4
4
  import { i as registerCommandGroups, r as registerCommandGroupByName } from "./register-command-groups-6fuXByLA.js";
5
- import { i as buildCommandGroupEntries, n as registerSubCliByName$1, o as defineImportedProgramCommandGroupSpecs, r as registerSubCliCommands$1 } from "./register.subclis-core-BDQSG-W8.js";
5
+ import { i as buildCommandGroupEntries, n as registerSubCliByName$1, o as defineImportedProgramCommandGroupSpecs, r as registerSubCliCommands$1 } from "./register.subclis-core-CbgJhZNs.js";
6
6
  //#region src/cli/program/register.subclis.ts
7
7
  const entrySpecs = [...defineImportedProgramCommandGroupSpecs([{
8
8
  commandNames: ["completion"],
9
- loadModule: () => import("./completion-cli-DFyAWfKa.js"),
9
+ loadModule: () => import("./completion-cli-nnYwutod.js"),
10
10
  exportName: "registerCompletionCli"
11
11
  }])];
12
12
  function resolveSubCliCommandGroups() {
@@ -0,0 +1,3 @@
1
+ import "./argv-DsGX2kMJ.js";
2
+ import { t as registerSubCliByName } from "./register.subclis-CKoT2KT7.js";
3
+ export { registerSubCliByName };
@@ -61,7 +61,7 @@ const entrySpecs = [
61
61
  },
62
62
  {
63
63
  commandNames: ["gateway"],
64
- loadModule: () => import("./gateway-cli-BOTl6I3Z.js"),
64
+ loadModule: () => import("./gateway-cli-DR7qgn-2.js"),
65
65
  exportName: "registerGatewayCli"
66
66
  },
67
67
  {
@@ -131,7 +131,7 @@ const entrySpecs = [
131
131
  "chat",
132
132
  "tui-local-backend"
133
133
  ],
134
- loadModule: () => import("./tui-cli-Cqen9mHS.js"),
134
+ loadModule: () => import("./tui-cli-DVPuJZko.js"),
135
135
  exportName: "registerTuiCli"
136
136
  },
137
137
  {
@@ -235,7 +235,7 @@ let configCliPromise;
235
235
  let modelsListCommandPromise;
236
236
  let modelsStatusCommandPromise;
237
237
  function loadConfigCli() {
238
- configCliPromise ??= import("./config-cli-CPvKZuLF.js");
238
+ configCliPromise ??= import("./config-cli-BRzInOE-.js");
239
239
  return configCliPromise;
240
240
  }
241
241
  function loadModelsListCommand() {
@@ -288,7 +288,7 @@ const routedCommandDefinitions = {
288
288
  "agents-list": defineRoutedCommand({
289
289
  parseArgs: parseAgentsListRouteArgs,
290
290
  runParsedArgs: async (args) => {
291
- const { agentsListCommand } = await import("./agents-Cv83FJ1s.js");
291
+ const { agentsListCommand } = await import("./agents-DYNROeFN.js");
292
292
  await agentsListCommand(args, defaultRuntime);
293
293
  }
294
294
  }),
@@ -1,7 +1,7 @@
1
1
  import { t as truncateCloseReason } from "./close-reason-BMV0bnou.js";
2
2
  //#region src/gateway/server.ts
3
3
  async function loadServerImpl() {
4
- return await import("./server.impl-CWn8I1GH.js");
4
+ return await import("./server.impl-Czsabr3q.js");
5
5
  }
6
6
  async function startGatewayServer(...args) {
7
7
  return await (await loadServerImpl()).startGatewayServer(...args);
@@ -162,7 +162,7 @@ import { a as removeBackfillDiaryEntries, c as writeBackfillDiaryEntries, n as d
162
162
  import { r as lookupConfigSchema, t as loadGatewayRuntimeConfigSchema } from "./runtime-schema-CPEbO68P.js";
163
163
  import { t as detectRespawnSupervisor } from "./supervisor-markers-CltY2pNh.js";
164
164
  import { t as readConfiguredLogTail } from "./log-tail-BsFnyBVw.js";
165
- import { r as CONFIGURE_WIZARD_SECTIONS, t as runConfigureWizard } from "./configure.wizard-BTU9REdR.js";
165
+ import { r as CONFIGURE_WIZARD_SECTIONS, t as runConfigureWizard } from "./configure.wizard-7rSbwDP4.js";
166
166
  import { n as installSkill } from "./onboard-skills-BM8G1sfP.js";
167
167
  import "./status-RCuLvyo5.js";
168
168
  import { t as getStatusSummary } from "./status.summary-3r2FG4RB.js";
@@ -2,7 +2,7 @@ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-Cw5sWy_s.js";
2
2
  import { d as pinActivePluginChannelRegistry } from "./runtime-DK8paHGW.js";
3
3
  import { t as primeConfiguredBindingRegistry } from "./binding-registry-CIjYWVWq.js";
4
4
  import { i as setGatewaySubagentRuntime, r as setGatewayNodesRuntime } from "./gateway-bindings-B96CLSsN.js";
5
- import { a as setPluginSubagentOverridePolicies, n as createGatewaySubagentRuntime, r as loadGatewayPlugins, t as createGatewayNodesRuntime } from "./server-plugins-BAddURDP.js";
5
+ import { a as setPluginSubagentOverridePolicies, n as createGatewaySubagentRuntime, r as loadGatewayPlugins, t as createGatewayNodesRuntime } from "./server-plugins-BVrJNao2.js";
6
6
  //#region src/gateway/server-plugin-bootstrap.ts
7
7
  function installGatewayPluginRuntimeEnvironment(cfg) {
8
8
  setPluginSubagentOverridePolicies(cfg);
@@ -152,7 +152,7 @@ async function dispatchGatewayMethod(method, params, options) {
152
152
  const isWebchatConnect = scope?.isWebchatConnect ?? (() => false);
153
153
  if (!context) throw new Error(`Plugin subagent dispatch requires a gateway request scope (method: ${method}). No scope set and no fallback context available.`);
154
154
  let result;
155
- const { handleGatewayRequest } = await import("./server-methods-DuP3oYhB.js");
155
+ const { handleGatewayRequest } = await import("./server-methods-B5WxzaKk.js");
156
156
  const pluginRuntimeOwnerId = typeof options?.pluginRuntimeOwnerId === "string" && options.pluginRuntimeOwnerId.trim() ? options.pluginRuntimeOwnerId.trim() : void 0;
157
157
  const syntheticClient = createSyntheticOperatorClient({
158
158
  allowModelOverride: options?.allowSyntheticModelOverride === true,
@@ -1,2 +1,2 @@
1
- import { t as loadGatewayStartupPluginRuntime } from "./server-startup-plugins-temwFEKa.js";
1
+ import { t as loadGatewayStartupPluginRuntime } from "./server-startup-plugins-CE_Z3k8p.js";
2
2
  export { loadGatewayStartupPluginRuntime };
@@ -245,7 +245,7 @@ async function loadGatewayStartupPluginRuntime(params) {
245
245
  pluginIds: params.startupPluginIds,
246
246
  log: params.log
247
247
  });
248
- const { loadGatewayStartupPlugins } = await import("./server-plugin-bootstrap-CiVVIETK.js");
248
+ const { loadGatewayStartupPlugins } = await import("./server-plugin-bootstrap-COnx2RCN.js");
249
249
  return loadGatewayStartupPlugins({
250
250
  cfg: params.cfg,
251
251
  activationSourceConfig: params.activationSourceConfig,
@@ -133,9 +133,9 @@ import { _ as parseGatewayRole, c as resolveGatewayReloadSettings, d as loadVoic
133
133
  import { a as resolveApnsAuthConfigFromEnv, c as sendApnsExecApprovalAlert, d as resolveApnsRelayConfigFromEnv, l as sendApnsExecApprovalResolvedWake, n as loadApnsRegistration, t as clearApnsRegistrationIfCurrent, u as shouldClearStoredApnsRegistration } from "./push-apns-B8orN3Du.js";
134
134
  import { i as normalizeCanvasScopedUrl, n as buildCanvasScopedHostUrl, r as mintCanvasCapabilityToken, t as CANVAS_CAPABILITY_TTL_MS } from "./canvas-capability-OoZ4VR7t.js";
135
135
  import { n as runHeartbeatOnce, r as startHeartbeatRunner } from "./heartbeat-runner-DECky8vq.js";
136
- import { i as setFallbackGatewayContextResolver } from "./server-plugins-BAddURDP.js";
136
+ import { i as setFallbackGatewayContextResolver } from "./server-plugins-BVrJNao2.js";
137
137
  import { a as getHealthVersion, c as refreshGatewayHealthSnapshot, i as getHealthCache, o as getPresenceVersion, r as buildGatewaySnapshot, s as incrementPresenceVersion, t as startGatewayEarlyRuntime } from "./server-startup-early-vdmhwUaD.js";
138
- import { i as GATEWAY_EVENT_UPDATE_AVAILABLE, n as prepareGatewayPluginBootstrap, r as GATEWAY_EVENTS } from "./server-startup-plugins-temwFEKa.js";
138
+ import { i as GATEWAY_EVENT_UPDATE_AVAILABLE, n as prepareGatewayPluginBootstrap, r as GATEWAY_EVENTS } from "./server-startup-plugins-CE_Z3k8p.js";
139
139
  import { n as stopGmailWatcher, t as startGmailWatcherWithLogs } from "./gmail-watcher-lifecycle-BA6efaeu.js";
140
140
  import { a as resolvePluginRoutePathContext, i as isProtectedPluginRoutePathFromContext, n as shouldEnforceGatewayAuthForPluginPath } from "./route-auth-DCAam0KO.js";
141
141
  import "./paths-D6Zgu-XC.js";
@@ -9630,7 +9630,7 @@ function attachGatewayWsMessageHandler(params) {
9630
9630
  });
9631
9631
  };
9632
9632
  (async () => {
9633
- const { handleGatewayRequest } = await import("./server-methods-DuP3oYhB.js");
9633
+ const { handleGatewayRequest } = await import("./server-methods-B5WxzaKk.js");
9634
9634
  await handleGatewayRequest({
9635
9635
  req,
9636
9636
  respond,
@@ -10112,7 +10112,7 @@ function createGatewayAuthRateLimiters(rateLimitConfig) {
10112
10112
  };
10113
10113
  }
10114
10114
  const runDefaultSetupWizard = async (...args) => {
10115
- const { runSetupWizard } = await import("./setup-BuExDK_Q.js");
10115
+ const { runSetupWizard } = await import("./setup-D7vQE9tM.js");
10116
10116
  return runSetupWizard(...args);
10117
10117
  };
10118
10118
  async function startGatewayServer(port = 18789, opts = {}) {
@@ -10535,7 +10535,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
10535
10535
  setFallbackGatewayContextResolver(() => gatewayRequestContext);
10536
10536
  if (!minimalTestGateway && runtimePluginsLoaded) {
10537
10537
  if (deferredConfiguredChannelPluginIds.length > 0) {
10538
- const { reloadDeferredGatewayPlugins } = await import("./server-plugin-bootstrap-CiVVIETK.js");
10538
+ const { reloadDeferredGatewayPlugins } = await import("./server-plugin-bootstrap-COnx2RCN.js");
10539
10539
  publishGatewayPluginRuntime(reloadDeferredGatewayPlugins({
10540
10540
  cfg: gatewayPluginConfigAtStart,
10541
10541
  workspaceDir: defaultWorkspaceDir,
@@ -10598,7 +10598,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
10598
10598
  unavailableGatewayMethods,
10599
10599
  ...!runtimePluginsLoaded && !minimalTestGateway ? {
10600
10600
  loadStartupPlugins: async () => {
10601
- const { loadGatewayStartupPluginRuntime } = await import("./server-startup-plugins-Co5FKb8_.js");
10601
+ const { loadGatewayStartupPluginRuntime } = await import("./server-startup-plugins-C462Zlj_.js");
10602
10602
  return loadGatewayStartupPluginRuntime({
10603
10603
  cfg: gatewayPluginConfigAtStart,
10604
10604
  activationSourceConfig: cfgAtStart,
@@ -306,7 +306,7 @@ let authChoiceModulePromise;
306
306
  let configLoggingModulePromise;
307
307
  let modelPickerModulePromise;
308
308
  function loadAuthChoiceModule() {
309
- authChoiceModulePromise ??= import("./auth-choice-CIJsNMvx.js");
309
+ authChoiceModulePromise ??= import("./auth-choice-DXcFxAUc.js");
310
310
  return authChoiceModulePromise;
311
311
  }
312
312
  function loadConfigLoggingModule() {
@@ -314,7 +314,7 @@ function loadConfigLoggingModule() {
314
314
  return configLoggingModulePromise;
315
315
  }
316
316
  function loadModelPickerModule() {
317
- modelPickerModulePromise ??= import("./model-picker-BnozRp4j.js");
317
+ modelPickerModulePromise ??= import("./model-picker-CHxCmOg1.js");
318
318
  return modelPickerModulePromise;
319
319
  }
320
320
  async function writeWizardConfigFile(config, opts = {}) {