@robbiesrobotics/alice-agents 1.5.0 → 1.5.1
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/lib/installer.mjs +6 -0
- package/lib/prompter.mjs +14 -3
- package/package.json +1 -1
package/lib/installer.mjs
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
promptLicenseKey,
|
|
17
17
|
promptCloudAddon,
|
|
18
18
|
promptMissionControlToken,
|
|
19
|
+
promptMissionControlWorkerToken,
|
|
19
20
|
confirm,
|
|
20
21
|
choose,
|
|
21
22
|
input,
|
|
@@ -726,6 +727,10 @@ export async function runInstall(options = {}) {
|
|
|
726
727
|
auto
|
|
727
728
|
? String(options.cloudToken || '').trim()
|
|
728
729
|
: String(options.cloudToken || await promptMissionControlToken()).trim();
|
|
730
|
+
const workerToken =
|
|
731
|
+
auto
|
|
732
|
+
? String(options.cloudWorkerToken || '').trim()
|
|
733
|
+
: String(options.cloudWorkerToken || await promptMissionControlWorkerToken(ingestToken)).trim();
|
|
729
734
|
const sourceNode =
|
|
730
735
|
String(options.cloudSourceNode || existingMissionControl?.sourceNode || defaults.sourceNode).trim();
|
|
731
736
|
|
|
@@ -741,6 +746,7 @@ export async function runInstall(options = {}) {
|
|
|
741
746
|
teamPlan: String(options.cloudTeamPlan || existingMissionControl?.teamPlan || '').trim(),
|
|
742
747
|
hasIngestToken: !!ingestToken,
|
|
743
748
|
ingestToken,
|
|
749
|
+
workerToken,
|
|
744
750
|
};
|
|
745
751
|
}
|
|
746
752
|
}
|
package/lib/prompter.mjs
CHANGED
|
@@ -136,8 +136,19 @@ export async function promptCloudAddon() {
|
|
|
136
136
|
|
|
137
137
|
export async function promptMissionControlToken() {
|
|
138
138
|
console.log('');
|
|
139
|
-
console.log(' Enter your Mission Control
|
|
140
|
-
console.log('
|
|
139
|
+
console.log(' Enter your Mission Control Ingest Token from your purchase email.');
|
|
140
|
+
console.log(' It looks like: mc_ingest_[64 hex chars]');
|
|
141
|
+
console.log(' You can find it in the "A.L.I.C.E. Pro License Delivered" email.');
|
|
142
|
+
console.log(' Press Enter to skip — you can add it later.');
|
|
141
143
|
console.log('');
|
|
142
|
-
return input(' Mission Control
|
|
144
|
+
return input(' Mission Control Ingest Token', '');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export async function promptMissionControlWorkerToken(ingestToken = '') {
|
|
148
|
+
if (!ingestToken) return '';
|
|
149
|
+
console.log('');
|
|
150
|
+
console.log(' Enter your Mission Control Worker Token from the same purchase email.');
|
|
151
|
+
console.log(' It looks like: mc_worker_[64 hex chars]');
|
|
152
|
+
console.log('');
|
|
153
|
+
return input(' Mission Control Worker Token', '');
|
|
143
154
|
}
|