nolo-cli 0.97.0-alpha.1 → 0.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/{_executeModel-JIG7MRXQ.js → _executeModel-DYHTQJZC.js} +68 -63
- package/{action-YVYQEAAV.js → action-GI44T4DR.js} +10 -10
- package/{addContentAction-O7R66HEX.js → addContentAction-B2DRF7P6.js} +9 -9
- package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-T3I7IXPK.js} +15 -17
- package/{agentDeleteCommand-THAZ5GQS.js → agentDeleteCommand-LLNNP3AM.js} +47 -43
- package/{agentEmailCommands-A7T7AJA4.js → agentEmailCommands-EO3H2LDW.js} +90 -82
- package/agentListCommands-J3MWAZWO.js +741 -0
- package/{agentMachineCommands-DM4N5PK3.js → agentMachineCommands-V65VOQNK.js} +42 -38
- package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-EMZCM6VA.js} +1 -1
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-HF4A42D4.js} +1 -1
- package/agentRecordCommands-VY35OMX3.js +136 -0
- package/{agentRunCommand-JVSTGVG2.js → agentRunCommand-CSEX4QIH.js} +90 -80
- package/{agentRunControl-WCTKX5VL.js → agentRunControl-5T64LM2M.js} +2 -2
- package/{agentRuntimeLocal-73CVIWBB.js → agentRuntimeLocal-AY6YNUAL.js} +44 -36
- package/{agentSlice-6X4JL2E3.js → agentSlice-FOZUXW7X.js} +11 -11
- package/{appDeleteCommands-S7CK4OYL.js → appDeleteCommands-QTTL3QF3.js} +42 -38
- package/{appDeployCommands-U6TMS5GO.js → appDeployCommands-43LJECGV.js} +42 -38
- package/{appDeployStatusCommands-DTNQJ3LJ.js → appDeployStatusCommands-L5BKOLYW.js} +42 -38
- package/{appGetCommands-3SHZEQD5.js → appGetCommands-HOFZKOPC.js} +42 -38
- package/{appListCommands-E2ZMIUB6.js → appListCommands-I7C3SJCE.js} +42 -38
- package/{authCommand-F4EFRRX6.js → authCommand-2YPMMIJN.js} +117 -23
- package/{authCommands-RGOGCPP6.js → authCommands-FFDS4FVX.js} +7 -5
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-CALVIJTX.js} +6 -5
- package/{chatQueueReduxAdapter-LAQEZQKE.js → chatQueueReduxAdapter-NMEZRYC2.js} +30 -29
- package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
- package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
- package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
- package/{chunk-YQTQQX2H.js → chunk-2UV22D2F.js} +1 -1
- package/{chunk-R2B3MIZA.js → chunk-3BFMH6GE.js} +6 -7
- package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
- package/{chunk-QIAVMDHY.js → chunk-3LX6YE3P.js} +4 -4
- package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
- package/chunk-5J3PYNUP.js +255 -0
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
- package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
- package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
- package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
- package/{chunk-IIVGDG4I.js → chunk-6PHKBY2Q.js} +10 -4
- package/{chunk-WADCY6G6.js → chunk-6ZWMH6TJ.js} +111 -41
- package/{chunk-ABQYVJBJ.js → chunk-7CHC4W22.js} +1 -1
- package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
- package/{chunk-ZWUOR654.js → chunk-7WCQEMPB.js} +971 -1093
- package/{chunk-BLJWCTRL.js → chunk-AOPCEXTB.js} +1 -1
- package/{chunk-LXF6XQDT.js → chunk-AQ3I6DZE.js} +865 -207
- package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
- package/{chunk-RG6JBBX5.js → chunk-AWF3WO5R.js} +166 -13
- package/{chunk-GPCZ7UXG.js → chunk-AZRHIN5B.js} +1 -1
- package/chunk-BMQ2MJUK.js +153 -0
- package/{chunk-HWIZU4OL.js → chunk-C3VLSD4K.js} +236 -36
- package/{chunk-3IIEFNGY.js → chunk-C53ZG23R.js} +2 -2
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-HJUYAD4A.js → chunk-CPUFH46E.js} +8 -8
- package/{chunk-LS2ZANRJ.js → chunk-CTUQJVQM.js} +1 -1
- package/{chunk-BP4XNZRM.js → chunk-CU3QB4HW.js} +3 -3
- package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
- package/{chunk-KQ4ONNQD.js → chunk-DAWDCRIG.js} +82 -8
- package/{chunk-VLTIYV3X.js → chunk-DCLMZ5TX.js} +4 -4
- package/{chunk-UKZDAFYT.js → chunk-DSSTTEKI.js} +6 -10
- package/{chunk-LZIWMYX4.js → chunk-EKS2APRJ.js} +21 -5
- package/{chunk-HVURBGF3.js → chunk-ESRMFY7G.js} +2 -2
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/chunk-FD5K6MPI.js +7808 -0
- package/chunk-GMZLP5DV.js +82 -0
- package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
- package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
- package/{chunk-JCIHVIVG.js → chunk-HKTIX4ZE.js} +23 -76
- package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
- package/{chunk-H62HCIUP.js → chunk-HYZIYH2H.js} +11 -10
- package/{chunk-3VNWWVKB.js → chunk-I3QNET24.js} +30 -17
- package/{chunk-WV42OMV7.js → chunk-IAESIMK7.js} +4 -4
- package/{chunk-6FVRQBRR.js → chunk-JJ7P5CIY.js} +56 -34
- package/{chunk-3WD6RUUJ.js → chunk-JZ5II5UV.js} +15 -20
- package/{chunk-JRQFUXY7.js → chunk-KCDUTE5V.js} +96 -19
- package/{chunk-Y5HW6GM2.js → chunk-KHVJXNRY.js} +100 -100
- package/{chunk-7S4YWN7P.js → chunk-MX574M24.js} +1 -1
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/{chunk-53HEEOTT.js → chunk-O26PCYLS.js} +80 -13
- package/{chunk-3DII57IT.js → chunk-O2OWEFII.js} +1 -1
- package/{chunk-TDRTS7QW.js → chunk-O6JPWEEK.js} +77 -17
- package/chunk-OCZKATRC.js +129 -0
- package/{chunk-6D6VBVEW.js → chunk-OTEMQQZI.js} +80 -14
- package/{chunk-7OLPQSMQ.js → chunk-OYOWA3CP.js} +24 -5
- package/chunk-P6GMCCAT.js +870 -0
- package/{chunk-ESWUWEFS.js → chunk-PQTSOHBT.js} +13 -13
- package/{chunk-WGR3J4Q6.js → chunk-Q4GP72HX.js} +9 -3
- package/{chunk-DHDMC6FO.js → chunk-QKUMVP3O.js} +11 -6
- package/{chunk-TZJJ77KQ.js → chunk-RMAWULCS.js} +498 -480
- package/{chunk-V4MJDUSR.js → chunk-RSEEDUMS.js} +2 -2
- package/{chunk-UZGQNTVW.js → chunk-S5XGT6GB.js} +5 -3
- package/{chunk-76WEAXJB.js → chunk-SACTCJAC.js} +18 -15
- package/{chunk-AFUORTY4.js → chunk-SONWNI3L.js} +21 -21
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-OF7AQZUG.js → chunk-TU5NE4U3.js} +9 -84
- package/chunk-TY3TIUJK.js +89 -0
- package/chunk-UEGYKNHO.js +13349 -0
- package/chunk-UNYJU5L6.js +780 -0
- package/{chunk-J4MOO56S.js → chunk-UQNS32WZ.js} +10 -2
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-54ADB4W7.js → chunk-VYN7O3OY.js} +1 -1
- package/{chunk-JAXOVNM4.js → chunk-WILHZY7K.js} +45 -45
- package/{chunk-UKWGR5SS.js → chunk-WIWM4FE3.js} +187 -398
- package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
- package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
- package/{chunk-SNPMM7H3.js → chunk-Y6AZRODX.js} +13 -13
- package/{chunk-SQQVLHMH.js → chunk-YJKDTJ2X.js} +7 -7
- package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
- package/{chunk-TOP2VXOR.js → chunk-Z4CSIXYP.js} +2 -2
- package/{chunk-2F7RJC6L.js → chunk-ZOVKKMF6.js} +1 -1
- package/chunk-ZRAU6T47.js +56 -0
- package/{chunk-Z77CRGTW.js → chunk-ZYWQNCBN.js} +1 -1
- package/commandRegistry-MRPLKSWP.js +833 -0
- package/{contentThunks-ATLWNC2D.js → contentThunks-TD5YOAQM.js} +32 -30
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
- package/{createAgentAutomationAction-QYYWTVUR.js → createAgentAutomationAction-XUG62ANM.js} +32 -30
- package/{createDialogAction-7I5VGWCR.js → createDialogAction-L3CMZKNL.js} +36 -33
- package/{createPageAction-WNURYCWU.js → createPageAction-WJ3MX6JS.js} +38 -36
- package/{chunk-YVIV7WT4.js → cursorProvider-YGGNMVWX.js} +2496 -9890
- package/{dbSlice-XVWBAGYN.js → dbSlice-DQ32LYTJ.js} +8 -8
- package/{deleteFile-YG6QMJLU.js → deleteFile-NX6QHCWZ.js} +3 -3
- package/{dialogCommands-RILHDRQ5.js → dialogCommands-VM3I4HBW.js} +45 -41
- package/{dialogSlice-W5BYELVR.js → dialogSlice-DSHG3YUE.js} +36 -29
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-GSTPU7SG.js → docCreateCommands-TYUJPCOP.js} +44 -40
- package/{docDeleteCommands-2FC3LSUT.js → docDeleteCommands-5XEG2LXO.js} +44 -40
- package/{docReadCommands-27POBA34.js → docReadCommands-M6RO6QHV.js} +43 -39
- package/{docStore-7LAHBFP2.js → docStore-RYOGMPEF.js} +11 -10
- package/{docUpdateCommands-U4II6VCO.js → docUpdateCommands-DKOFTZRX.js} +44 -40
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-67MEFPZR.js} +2 -2
- package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +3 -3
- package/{handleSendMessageAction-SKMJMVRU.js → handleSendMessageAction-XH742B27.js} +91 -83
- package/index.js +87 -884
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-EBRS242U.js} +2 -2
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-5W6IJRAD.js} +6 -6
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-3LRMNLCM.js} +1 -1
- package/{machineCommands-S2RNYKVJ.js → machineCommands-BKYVMMEG.js} +85 -77
- package/{machineWsRunDispatch-JC44LBLP.js → machineWsRunDispatch-QOBSQQ72.js} +82 -74
- package/{memberThunks-QGFLFVCI.js → memberThunks-5ZXPR63F.js} +9 -9
- package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
- package/oauthTokenStore-ITEB663N.js +23 -0
- package/package.json +1 -1
- package/pdf-U6KSUEZZ.js +26435 -0
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-76AVU3HD.js} +7 -7
- package/{providerRegistry-757OWH3O.js → providerRegistry-Z62NC45X.js} +11 -7
- package/{read-COE3ZYR6.js → read-EPTJRAEF.js} +5 -5
- package/{readDocTool-5USN4A6V.js → readDocTool-W4NDXNEX.js} +5 -3
- package/{readlineWorkspace-VZSBXUH4.js → readlineWorkspace-7P7IORIT.js} +2450 -2022
- package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-BVAWQKXE.js} +17 -19
- package/{runAgentClientLoop-ZYENU7GH.js → runAgentClientLoop-7WXN6I7L.js} +62 -58
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-3USD722U.js} +3 -3
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-LYY45IAD.js} +12 -11
- package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-73IL7DLU.js} +18 -20
- package/{settingSlice-ZQZVUPKK.js → settingSlice-Q6EKL7EQ.js} +9 -9
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
- package/{spaceCommands-QB3NNEMN.js → spaceCommands-QFP4ZXKG.js} +44 -40
- package/{streamAgentChatTurn-43GPPQSN.js → streamAgentChatTurn-B4PXPJJS.js} +184 -91
- package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-UUXDSQ6X.js} +15 -17
- package/{tableCommands-O6NWHFKV.js → tableCommands-G7RV3RU3.js} +4 -4
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-INIQCPGY.js} +3 -3
- package/{tools-SX6Y4STZ.js → tools-QFS2L7BU.js} +55 -51
- package/{tuiSummaryLlmCaller-T2SHYMDZ.js → tuiSummaryLlmCaller-74NRRLVW.js} +18 -16
- package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
- package/{updateDialogTitleAction-VAKA4ZNY.js → updateDialogTitleAction-HTDYCNNZ.js} +81 -43
- package/agentListCommands-BRZFEJQM.js +0 -406
- package/agentRecordCommands-TTAEMNHB.js +0 -128
- package/chunk-K4YGZD3P.js +0 -18881
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-Q5FJJ6XI.js +0 -103
- package/chunk-S7Z2HMCN.js +0 -25
- package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-6D6VBVEW.js";
|
|
4
1
|
import {
|
|
5
2
|
generateCloudflareEmailRoutingToken,
|
|
6
3
|
parseFlagWithOptionalValue,
|
|
7
4
|
runCloudflareOAuthLogin,
|
|
8
5
|
upsertEnvVariable
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AZRHIN5B.js";
|
|
10
7
|
import {
|
|
11
8
|
ANTHROPIC_OAUTH_AUTHORIZE_URL,
|
|
12
9
|
ANTHROPIC_OAUTH_CALLBACK_PORT,
|
|
@@ -39,6 +36,7 @@ import {
|
|
|
39
36
|
generatePkcePair,
|
|
40
37
|
normalizeAnthropicTokenPayload,
|
|
41
38
|
readJsonBody,
|
|
39
|
+
refreshAntigravityOAuthToken,
|
|
42
40
|
renderDeviceCodeDisplay,
|
|
43
41
|
runAntigravityOAuthLogin,
|
|
44
42
|
runOpenAiCodexBrowserPkce,
|
|
@@ -46,43 +44,54 @@ import {
|
|
|
46
44
|
startCallbackServer,
|
|
47
45
|
validateXAIEndpoint,
|
|
48
46
|
xaiOAuthDiscovery
|
|
49
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-O26PCYLS.js";
|
|
48
|
+
import {
|
|
49
|
+
defaultOpenBrowser
|
|
50
|
+
} from "./chunk-OTEMQQZI.js";
|
|
51
|
+
import "./chunk-TY3TIUJK.js";
|
|
50
52
|
import "./chunk-ESHYE7WU.js";
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
+
import {
|
|
54
|
+
extractGoogleValidationLink
|
|
55
|
+
} from "./chunk-BMQ2MJUK.js";
|
|
56
|
+
import "./chunk-ZOVKKMF6.js";
|
|
53
57
|
import "./chunk-GLKOYSRU.js";
|
|
58
|
+
import "./chunk-JBTJAPUF.js";
|
|
54
59
|
import {
|
|
55
60
|
buildDevinAuthUrl,
|
|
56
61
|
buildDevinOAuthCredential,
|
|
57
62
|
detectLocalDevinCredentials,
|
|
58
|
-
extractDevinToken
|
|
59
|
-
|
|
63
|
+
extractDevinToken,
|
|
64
|
+
fetchAntigravityCloudCodeCompletion
|
|
65
|
+
} from "./chunk-P6GMCCAT.js";
|
|
66
|
+
import "./chunk-GMZLP5DV.js";
|
|
60
67
|
import "./chunk-5ZUL4CUO.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-OIVSQH2O.js";
|
|
65
|
-
import {
|
|
66
|
-
createOAuthTokenStore
|
|
67
|
-
} from "./chunk-ONXOABJR.js";
|
|
68
|
-
import "./chunk-W7XHHYWM.js";
|
|
68
|
+
import "./chunk-S5XGT6GB.js";
|
|
69
|
+
import "./chunk-27ONFIEY.js";
|
|
70
|
+
import "./chunk-7KVZ5LDQ.js";
|
|
69
71
|
import {
|
|
70
72
|
toErrorMessage
|
|
71
73
|
} from "./chunk-HNMXYYJR.js";
|
|
74
|
+
import "./chunk-3BXNTXYI.js";
|
|
75
|
+
import "./chunk-W7XHHYWM.js";
|
|
76
|
+
import {
|
|
77
|
+
createOAuthTokenStore,
|
|
78
|
+
resolveFreshAccessToken
|
|
79
|
+
} from "./chunk-HNGRBWYF.js";
|
|
80
|
+
import "./chunk-A7GB5UGH.js";
|
|
81
|
+
import "./chunk-OLZBQWZU.js";
|
|
72
82
|
import {
|
|
73
83
|
buildEnvFromProfile,
|
|
74
84
|
getProfileOAuthSync,
|
|
75
85
|
loadProfileConfig,
|
|
76
86
|
saveProfileOAuthSync
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-Q67DOFOO.js";
|
|
81
|
-
import "./chunk-VMFTFOWF.js";
|
|
87
|
+
} from "./chunk-TNIX77YM.js";
|
|
88
|
+
import "./chunk-Y3PMXGLH.js";
|
|
89
|
+
import "./chunk-3AH7LNUB.js";
|
|
82
90
|
import {
|
|
83
91
|
asOptionalFiniteNumber
|
|
84
92
|
} from "./chunk-WWC7I6TA.js";
|
|
85
93
|
import "./chunk-QSJ3HFEF.js";
|
|
94
|
+
import "./chunk-OW765XBU.js";
|
|
86
95
|
import {
|
|
87
96
|
isRecord
|
|
88
97
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -759,7 +768,7 @@ This authorizes model API access only. It does NOT log you into the Nolo platfor
|
|
|
759
768
|
To manage agents, docs, spaces, and other Nolo resources, run "nolo login" first.
|
|
760
769
|
|
|
761
770
|
Usage:
|
|
762
|
-
nolo auth antigravity [--browser] [--no-browser] [--sync-to-server] [--help]
|
|
771
|
+
nolo auth antigravity [--browser] [--no-browser] [--verify] [--sync-to-server] [--help]
|
|
763
772
|
|
|
764
773
|
Opens a browser to https://accounts.google.com (OIDC PKCE loopback on 127.0.0.1:51121).
|
|
765
774
|
After approval, the flow provisions a Cloud Code Assist project and stores the
|
|
@@ -771,6 +780,8 @@ oh-my-pi; Google does not publish a public Cloud Code Assist client registration
|
|
|
771
780
|
Options:
|
|
772
781
|
--browser Use the browser PKCE flow (default for antigravity).
|
|
773
782
|
--no-browser Print the authorization URL only.
|
|
783
|
+
--verify Check the current Google one-time verification challenge
|
|
784
|
+
and open the validation link in a browser (no re-auth).
|
|
774
785
|
${SYNC_HELP_LINE}
|
|
775
786
|
--help, -h Show this help and exit.
|
|
776
787
|
|
|
@@ -975,6 +986,7 @@ async function runAuthProviderCommand(provider, args, _ctx, deps = {}) {
|
|
|
975
986
|
const useBrowser = args.includes("--browser");
|
|
976
987
|
const noBrowser = args.includes("--no-browser") || deps.noBrowserByDefault;
|
|
977
988
|
const syncOnly = args.includes("--sync-only");
|
|
989
|
+
const verify = args.includes("--verify");
|
|
978
990
|
const generateToken = args.includes("--generate-token");
|
|
979
991
|
const writeToEnvRaw = parseFlagWithOptionalValue(args, "--write-to-env");
|
|
980
992
|
const writeToEnvPath = typeof writeToEnvRaw === "string" ? writeToEnvRaw : writeToEnvRaw === true ? ".env" : void 0;
|
|
@@ -990,6 +1002,88 @@ async function runAuthProviderCommand(provider, args, _ctx, deps = {}) {
|
|
|
990
1002
|
await syncCredentialToServer(provider, credential, deps);
|
|
991
1003
|
return 0;
|
|
992
1004
|
}
|
|
1005
|
+
if (verify) {
|
|
1006
|
+
if (provider !== "antigravity") {
|
|
1007
|
+
error.error(`[nolo] --verify is only supported for "nolo auth antigravity".`);
|
|
1008
|
+
return 1;
|
|
1009
|
+
}
|
|
1010
|
+
const credential = tokenStore.read(provider);
|
|
1011
|
+
if (!credential?.accessToken) {
|
|
1012
|
+
error.error(
|
|
1013
|
+
`[nolo] No local antigravity credential. Run: nolo auth antigravity`
|
|
1014
|
+
);
|
|
1015
|
+
return 1;
|
|
1016
|
+
}
|
|
1017
|
+
output.log(
|
|
1018
|
+
`[nolo] Checking the current verification challenge (one lightweight request)...`
|
|
1019
|
+
);
|
|
1020
|
+
let accessToken = null;
|
|
1021
|
+
let refreshError;
|
|
1022
|
+
try {
|
|
1023
|
+
accessToken = await resolveFreshAccessToken({
|
|
1024
|
+
provider,
|
|
1025
|
+
store: tokenStore,
|
|
1026
|
+
refresh: deps.refreshAntigravityToken ?? refreshAntigravityOAuthToken
|
|
1027
|
+
});
|
|
1028
|
+
} catch (err) {
|
|
1029
|
+
refreshError = toErrorMessage(err);
|
|
1030
|
+
if (/invalid_grant|unauthorized_client|revoked|invalid_token|refresh[_ ]token[^.]*(expired|invalid|revoked)|expired[^.]*refresh/i.test(
|
|
1031
|
+
refreshError
|
|
1032
|
+
)) {
|
|
1033
|
+
error.error(
|
|
1034
|
+
`[nolo] The antigravity refresh token is no longer valid (${refreshError}). Re-run \`nolo auth antigravity\` to re-authorize this account.`
|
|
1035
|
+
);
|
|
1036
|
+
return 1;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
let result;
|
|
1040
|
+
try {
|
|
1041
|
+
result = await fetchAntigravityCloudCodeCompletion({
|
|
1042
|
+
agentConfig: { model: "gemini-3.1-pro" },
|
|
1043
|
+
accessToken: accessToken ?? credential.accessToken,
|
|
1044
|
+
metadata: credential.metadata ?? null,
|
|
1045
|
+
openAiBody: { messages: [{ role: "user", content: "hi" }] },
|
|
1046
|
+
fetchImpl: deps.fetchImpl ?? fetch
|
|
1047
|
+
});
|
|
1048
|
+
} catch (err) {
|
|
1049
|
+
const msg = toErrorMessage(err);
|
|
1050
|
+
if (/projectId|metadata\.projectId|Re-run `nolo auth/i.test(msg)) {
|
|
1051
|
+
error.error(
|
|
1052
|
+
`[nolo] The stored antigravity credential is incomplete (${msg}). Re-run \`nolo auth antigravity\` to re-authorize.`
|
|
1053
|
+
);
|
|
1054
|
+
} else {
|
|
1055
|
+
error.error(
|
|
1056
|
+
`[nolo] Could not reach the antigravity provider: ${msg}. Check your network and retry.`
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
return 1;
|
|
1060
|
+
}
|
|
1061
|
+
if (result.status >= 200 && result.status < 300) {
|
|
1062
|
+
output.log(
|
|
1063
|
+
`[nolo] \u2713 The credential is working \u2014 no verification is required right now. You can retry your agent.`
|
|
1064
|
+
);
|
|
1065
|
+
return 0;
|
|
1066
|
+
}
|
|
1067
|
+
const { url: validationUrl } = extractGoogleValidationLink(
|
|
1068
|
+
JSON.stringify(result.body ?? {})
|
|
1069
|
+
);
|
|
1070
|
+
if (result.status === 403 && validationUrl) {
|
|
1071
|
+
output.log(
|
|
1072
|
+
`[nolo] Google requires a one-time account verification for ${credential.accountId ?? "this account"}.`
|
|
1073
|
+
);
|
|
1074
|
+
output.log(`[nolo] ${validationUrl}`);
|
|
1075
|
+
const opener = noBrowser ? void 0 : deps.openBrowser ?? defaultOpenBrowser;
|
|
1076
|
+
const opened = opener ? await opener(validationUrl) : false;
|
|
1077
|
+
output.log(
|
|
1078
|
+
opened ? `[nolo] \u2713 Opened it in your browser \u2014 complete the verification there (sign in with the same Google account), then retry your agent.` : `[nolo] Copy the URL above into a browser signed into ${credential.accountId ?? "that account"}, complete the verification, then retry your agent.`
|
|
1079
|
+
);
|
|
1080
|
+
return 0;
|
|
1081
|
+
}
|
|
1082
|
+
error.error(
|
|
1083
|
+
`[nolo] The provider returned HTTP ${result.status} without a verification link \u2014 this is not the one-time-verification case --verify handles.` + (refreshError ? ` (token refresh also failed earlier: ${refreshError})` : "") + ` Response detail: ${JSON.stringify(result.body ?? {}).slice(0, 400)}`
|
|
1084
|
+
);
|
|
1085
|
+
return 1;
|
|
1086
|
+
}
|
|
993
1087
|
const flowDeps = {
|
|
994
1088
|
...deps.fetchImpl ? { fetchImpl: deps.fetchImpl } : {},
|
|
995
1089
|
...deps.sleep ? { sleep: deps.sleep } : {},
|
|
@@ -7,16 +7,18 @@ import {
|
|
|
7
7
|
runLogoutCommand,
|
|
8
8
|
runWhoamiCommand,
|
|
9
9
|
saveTokenLogin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OTEMQQZI.js";
|
|
11
|
+
import "./chunk-TY3TIUJK.js";
|
|
11
12
|
import "./chunk-ESHYE7WU.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-2F7RJC6L.js";
|
|
13
|
+
import "./chunk-ZOVKKMF6.js";
|
|
14
14
|
import "./chunk-GLKOYSRU.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JBTJAPUF.js";
|
|
16
16
|
import "./chunk-A7GB5UGH.js";
|
|
17
17
|
import "./chunk-OLZBQWZU.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-TNIX77YM.js";
|
|
19
|
+
import "./chunk-3AH7LNUB.js";
|
|
19
20
|
import "./chunk-WWC7I6TA.js";
|
|
21
|
+
import "./chunk-OW765XBU.js";
|
|
20
22
|
import "./chunk-3EUW3WEO.js";
|
|
21
23
|
import "./chunk-U6VC4MU4.js";
|
|
22
24
|
import "./chunk-LCBAMY2M.js";
|
|
@@ -7,13 +7,14 @@ import {
|
|
|
7
7
|
resolveBuiltinSkillEntry,
|
|
8
8
|
resolveBuiltinSkillPage,
|
|
9
9
|
resolveBuiltinSkillSlug
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KCDUTE5V.js";
|
|
11
|
+
import "./chunk-QKUMVP3O.js";
|
|
12
|
+
import "./chunk-AUDNYVRC.js";
|
|
13
13
|
import "./chunk-KHCLMKZZ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XUWRURDF.js";
|
|
15
|
+
import "./chunk-5J3PYNUP.js";
|
|
15
16
|
import "./chunk-QDSINZM3.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-3AH7LNUB.js";
|
|
17
18
|
import "./chunk-WWC7I6TA.js";
|
|
18
19
|
import "./chunk-BNGW5ASC.js";
|
|
19
20
|
import "./chunk-M2EJHDJP.js";
|
|
@@ -4,57 +4,58 @@ import {
|
|
|
4
4
|
} from "./chunk-YPREESF4.js";
|
|
5
5
|
import {
|
|
6
6
|
handleSendMessage
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-3BMYXEUW.js";
|
|
7
|
+
} from "./chunk-UEGYKNHO.js";
|
|
8
|
+
import "./chunk-523DITKR.js";
|
|
10
9
|
import "./chunk-YYLHWIW6.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6O4IK4V2.js";
|
|
11
|
+
import "./chunk-YJKDTJ2X.js";
|
|
12
|
+
import "./chunk-Z4CSIXYP.js";
|
|
14
13
|
import "./chunk-5RGU3J7P.js";
|
|
14
|
+
import "./chunk-4LCOCOR5.js";
|
|
15
15
|
import {
|
|
16
16
|
clearPendingUserInputQueue,
|
|
17
17
|
dequeueUserInput,
|
|
18
18
|
enqueueUserInput,
|
|
19
19
|
getLoopStopReason,
|
|
20
20
|
getPendingUserInputQueue
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-M76ECQRD.js";
|
|
21
|
+
} from "./chunk-6D2JFXLY.js";
|
|
23
22
|
import "./chunk-YDH3FDFQ.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MX574M24.js";
|
|
24
|
+
import "./chunk-AGGIDPCZ.js";
|
|
25
|
+
import "./chunk-WILHZY7K.js";
|
|
26
|
+
import "./chunk-6ZWMH6TJ.js";
|
|
27
|
+
import "./chunk-5MMAK75Q.js";
|
|
26
28
|
import "./chunk-PSCNXBYA.js";
|
|
27
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-ESRMFY7G.js";
|
|
28
30
|
import "./chunk-BYXBJQAS.js";
|
|
29
|
-
import "./chunk-OIVSQH2O.js";
|
|
30
31
|
import "./chunk-DWLEOOGR.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-ONXOABJR.js";
|
|
33
|
-
import "./chunk-W7XHHYWM.js";
|
|
32
|
+
import "./chunk-7KVZ5LDQ.js";
|
|
34
33
|
import "./chunk-HNMXYYJR.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-3BXNTXYI.js";
|
|
35
|
+
import "./chunk-W7XHHYWM.js";
|
|
36
|
+
import "./chunk-RSEEDUMS.js";
|
|
37
|
+
import "./chunk-UAD2WT54.js";
|
|
38
|
+
import "./chunk-HNGRBWYF.js";
|
|
39
|
+
import "./chunk-CYSYR67N.js";
|
|
40
|
+
import "./chunk-Y3PMXGLH.js";
|
|
41
|
+
import "./chunk-SONWNI3L.js";
|
|
39
42
|
import "./chunk-Y5GCAMGP.js";
|
|
40
43
|
import "./chunk-QDSINZM3.js";
|
|
41
44
|
import "./chunk-KX6YBIHG.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-VMFTFOWF.js";
|
|
45
|
+
import "./chunk-HYZIYH2H.js";
|
|
46
|
+
import "./chunk-7CHC4W22.js";
|
|
47
|
+
import "./chunk-3AH7LNUB.js";
|
|
46
48
|
import "./chunk-WWC7I6TA.js";
|
|
47
|
-
import "./chunk-ABQYVJBJ.js";
|
|
48
49
|
import "./chunk-QSJ3HFEF.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-M2EJHDJP.js";
|
|
52
|
-
import "./chunk-UKWGR5SS.js";
|
|
50
|
+
import "./chunk-IAESIMK7.js";
|
|
51
|
+
import "./chunk-WIWM4FE3.js";
|
|
53
52
|
import "./chunk-QOKAKDPE.js";
|
|
54
|
-
import "./chunk-OW765XBU.js";
|
|
55
53
|
import "./chunk-SEJ5OS6F.js";
|
|
54
|
+
import "./chunk-OW765XBU.js";
|
|
56
55
|
import "./chunk-GBRG75BQ.js";
|
|
57
56
|
import "./chunk-KUG52IAP.js";
|
|
57
|
+
import "./chunk-BNGW5ASC.js";
|
|
58
|
+
import "./chunk-M2EJHDJP.js";
|
|
58
59
|
import "./chunk-3EUW3WEO.js";
|
|
59
60
|
import "./chunk-U6VC4MU4.js";
|
|
60
61
|
import "./chunk-LCBAMY2M.js";
|