create-semaphor-app 0.1.0 → 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/README.md +16 -1
- package/bin/create-semaphor-app.mjs +15 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,22 @@ cd customer-health
|
|
|
52
52
|
npm run dev
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
For Codex OAuth, run:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
codex mcp login semaphor
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For Claude Code OAuth, start Claude Code and run the interactive MCP flow:
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
claude
|
|
65
|
+
/mcp
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Then complete auth for the `semaphor` server.
|
|
69
|
+
|
|
70
|
+
After Semaphor auth, ask your agent:
|
|
56
71
|
|
|
57
72
|
```text
|
|
58
73
|
@semaphor Build a Data App from my Semaphor project.
|
|
@@ -419,11 +419,9 @@ function printNextSteps({ targetDir, packageManager, pluginSummary }) {
|
|
|
419
419
|
console.log(` cd ${relativeTarget}`);
|
|
420
420
|
console.log(` ${packageManager} run dev`);
|
|
421
421
|
|
|
422
|
-
console.log('\nThen open Codex or Claude Code in this folder and ask:');
|
|
423
|
-
console.log(' @semaphor Build a Data App from my Semaphor project.');
|
|
424
|
-
|
|
425
422
|
if (pluginSummary?.skipped) {
|
|
426
423
|
printPluginInstructions();
|
|
424
|
+
printBuildPrompt();
|
|
427
425
|
return;
|
|
428
426
|
}
|
|
429
427
|
|
|
@@ -434,6 +432,7 @@ function printNextSteps({ targetDir, packageManager, pluginSummary }) {
|
|
|
434
432
|
console.log(` - ${failure.agent}: ${failure.error}`);
|
|
435
433
|
}
|
|
436
434
|
printPluginInstructions();
|
|
435
|
+
printBuildPrompt();
|
|
437
436
|
return;
|
|
438
437
|
}
|
|
439
438
|
|
|
@@ -443,12 +442,19 @@ function printNextSteps({ targetDir, packageManager, pluginSummary }) {
|
|
|
443
442
|
for (const result of installed) {
|
|
444
443
|
console.log(` - ${result.agent}`);
|
|
445
444
|
}
|
|
446
|
-
console.log('\nAuthenticate when your agent asks
|
|
445
|
+
console.log('\nAuthenticate when your agent asks.');
|
|
446
|
+
console.log('\nCodex:');
|
|
447
447
|
console.log(' codex mcp login semaphor');
|
|
448
|
+
console.log('\nClaude Code:');
|
|
449
|
+
console.log(' claude');
|
|
450
|
+
console.log(' /mcp');
|
|
451
|
+
console.log(' Then complete auth for the semaphor server.');
|
|
452
|
+
printBuildPrompt();
|
|
448
453
|
return;
|
|
449
454
|
}
|
|
450
455
|
|
|
451
456
|
printPluginInstructions();
|
|
457
|
+
printBuildPrompt();
|
|
452
458
|
}
|
|
453
459
|
|
|
454
460
|
function printPluginInstructions() {
|
|
@@ -463,6 +469,11 @@ function printPluginInstructions() {
|
|
|
463
469
|
console.log(' Use the Claude Code MCP auth flow for the semaphor server.');
|
|
464
470
|
}
|
|
465
471
|
|
|
472
|
+
function printBuildPrompt() {
|
|
473
|
+
console.log('\nAfter Semaphor auth, ask your agent:');
|
|
474
|
+
console.log(' @semaphor Build a Data App from my Semaphor project.');
|
|
475
|
+
}
|
|
476
|
+
|
|
466
477
|
async function main() {
|
|
467
478
|
let args;
|
|
468
479
|
try {
|