@commonlyai/cli 0.1.224 → 0.1.225
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/package.json +1 -1
- package/src/commands/dev.js +3 -0
package/package.json
CHANGED
package/src/commands/dev.js
CHANGED
|
@@ -440,12 +440,15 @@ export const bootstrapClawdbotRuntime = async ({
|
|
|
440
440
|
throw new Error('Runtime token was not returned by the runtime-tokens route');
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
// Rotated like the runtime token above: an existing user token is stored
|
|
444
|
+
// only as a hash, so asking without force returns none to write here.
|
|
443
445
|
const userIssued = await client.post(
|
|
444
446
|
`/api/registry/pods/${pod.podId}/agents/${CLAWDBOT_AGENT_NAME}/user-token`,
|
|
445
447
|
{
|
|
446
448
|
instanceId,
|
|
447
449
|
displayName,
|
|
448
450
|
scopes: CLAWDBOT_USER_TOKEN_SCOPES,
|
|
451
|
+
force: true,
|
|
449
452
|
},
|
|
450
453
|
);
|
|
451
454
|
const userToken = userIssued.token;
|