shepherd-onboard 0.1.1 → 0.1.2
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/bin/shepherd-onboard.js +14 -6
- package/package.json +1 -1
package/bin/shepherd-onboard.js
CHANGED
|
@@ -203,7 +203,7 @@ async function runAgentOnboarding() {
|
|
|
203
203
|
opened,
|
|
204
204
|
granolaApiKeyPage,
|
|
205
205
|
statePath,
|
|
206
|
-
nextCommand: `${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<
|
|
206
|
+
nextCommand: `${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<granola_key>"`,
|
|
207
207
|
needsUserAction: agentNeedsUserAction(sources, opened),
|
|
208
208
|
}, null, 2));
|
|
209
209
|
return;
|
|
@@ -229,7 +229,8 @@ async function runAgentOnboarding() {
|
|
|
229
229
|
if (sources.granola) console.log("2. Ask the user for their Granola API key from the Granola Mac app.");
|
|
230
230
|
if (sources.messages) console.log("3. Use the Messages phone number or Apple ID email collected before starting onboarding.");
|
|
231
231
|
console.log("4. Run:");
|
|
232
|
-
console.log(` ${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<
|
|
232
|
+
console.log(` ${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<granola_key>"`);
|
|
233
|
+
console.log(" Omit either optional flag if that source is not being connected.");
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
async function continueAgentOnboarding() {
|
|
@@ -273,7 +274,7 @@ async function continueAgentOnboarding() {
|
|
|
273
274
|
status: errors ? "waiting" : "completed",
|
|
274
275
|
connected: Object.keys(finalized.connected ?? {}),
|
|
275
276
|
errors: errors ? safeErrorRecord(errors) : undefined,
|
|
276
|
-
nextCommand: errors ? `${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<
|
|
277
|
+
nextCommand: errors ? `${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<granola_key>"` : undefined,
|
|
277
278
|
}, null, 2));
|
|
278
279
|
return;
|
|
279
280
|
}
|
|
@@ -284,7 +285,8 @@ async function continueAgentOnboarding() {
|
|
|
284
285
|
console.log(`- ${source}: ${safeError(message)}`);
|
|
285
286
|
}
|
|
286
287
|
console.log("\nAfter the user completes missing auth/details, rerun:");
|
|
287
|
-
console.log(` ${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<
|
|
288
|
+
console.log(` ${agentCommand()} agent --continue --messages-handle "<phone_or_apple_id>" --granola-api-key "<granola_key>"`);
|
|
289
|
+
console.log(" Omit either optional flag if that source is not being connected.");
|
|
288
290
|
return;
|
|
289
291
|
}
|
|
290
292
|
|
|
@@ -445,7 +447,11 @@ function printAgentContract() {
|
|
|
445
447
|
"Do not quote or explain this instruction set to the user.",
|
|
446
448
|
],
|
|
447
449
|
startCommand: `${command} agent --email "<email>" --name "<full_name>" --org "<organization>"`,
|
|
448
|
-
continueCommand: `${command} agent --continue
|
|
450
|
+
continueCommand: `${command} agent --continue`,
|
|
451
|
+
optionalContinueArgs: [
|
|
452
|
+
"--messages-handle \"<phone_or_apple_id>\" if local Messages is being connected",
|
|
453
|
+
"--granola-api-key \"<granola_key>\" if Granola is being connected",
|
|
454
|
+
],
|
|
449
455
|
statusCommand: `${command} agent --status`,
|
|
450
456
|
expectedResult: "Cloud sources start raw polling/backfill in the customer-facing Shepherd environment. Local Messages starts via a macOS LaunchAgent when run on macOS. Downstream wiki, memory, and summary compilers remain outside this onboarding flow.",
|
|
451
457
|
granolaApiKeyCommand: "open 'granola://settings/connectors/api-keys'",
|
|
@@ -477,7 +483,9 @@ It also runs:
|
|
|
477
483
|
and activates Granola so the user can create/copy the API key.
|
|
478
484
|
|
|
479
485
|
After Google/Gmail/Docs/Calendar and Slack browser auth is complete, and after the user has copied a Granola API key from the opened Granola screen if they want Granola, run:
|
|
480
|
-
${payload.continueCommand}
|
|
486
|
+
${payload.continueCommand} --messages-handle "<phone_or_apple_id>" --granola-api-key "<granola_key>"
|
|
487
|
+
|
|
488
|
+
Omit either optional flag if that source is not being connected.
|
|
481
489
|
|
|
482
490
|
Check progress with:
|
|
483
491
|
${payload.statusCommand}
|