@neuralconfig/nrepo 0.0.1 → 0.0.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/dist/index.js +2 -2
- package/package.json +6 -2
- package/postinstall.js +14 -7
package/dist/index.js
CHANGED
|
@@ -237,7 +237,7 @@ import ora2 from "ora";
|
|
|
237
237
|
// src/format.ts
|
|
238
238
|
import chalk3 from "chalk";
|
|
239
239
|
|
|
240
|
-
//
|
|
240
|
+
// packages/shared/src/index.ts
|
|
241
241
|
import { z } from "zod";
|
|
242
242
|
var IDEA_STATUSES = ["captured", "exploring", "building", "shipped", "shelved"];
|
|
243
243
|
var IDEA_SOURCES = ["web", "cli", "claude-mcp", "siri", "email", "api", "shortcut"];
|
|
@@ -1329,7 +1329,7 @@ async function graphCommand(id, opts) {
|
|
|
1329
1329
|
|
|
1330
1330
|
// src/index.ts
|
|
1331
1331
|
var program = new Command();
|
|
1332
|
-
program.name("nrepo").description("NeuralRepo \u2014 capture and manage ideas from the terminal").version("0.0.
|
|
1332
|
+
program.name("nrepo").description("NeuralRepo \u2014 capture and manage ideas from the terminal").version("0.0.2");
|
|
1333
1333
|
program.command("login").description("Authenticate with NeuralRepo").option("--api-key", "Login with an API key instead of browser OAuth").action(wrap(loginCommand));
|
|
1334
1334
|
program.command("logout").description("Clear stored credentials").action(wrap(async () => {
|
|
1335
1335
|
await clearConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuralconfig/nrepo",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "NeuralRepo CLI — capture and manage ideas from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"zod": "^4.3.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@neuralrepo/shared": "
|
|
31
|
+
"@neuralrepo/shared": "file:./packages/shared",
|
|
32
32
|
"@types/node": "^25.5.0",
|
|
33
33
|
"tsup": "^8.4.0",
|
|
34
34
|
"typescript": "^5.9.3"
|
|
@@ -49,5 +49,9 @@
|
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
51
|
"url": "git+https://github.com/neuralconfig/nrepo.git"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://registry.npmjs.org",
|
|
55
|
+
"access": "public"
|
|
52
56
|
}
|
|
53
57
|
}
|
package/postinstall.js
CHANGED
|
@@ -5,16 +5,23 @@ import { homedir } from 'node:os';
|
|
|
5
5
|
|
|
6
6
|
try {
|
|
7
7
|
const claudeDir = join(homedir(), '.claude');
|
|
8
|
-
if (
|
|
8
|
+
if (existsSync(claudeDir)) {
|
|
9
|
+
const skillDir = join(claudeDir, 'skills', 'neuralrepo');
|
|
10
|
+
mkdirSync(skillDir, { recursive: true });
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
const src = join(dirname(fileURLToPath(import.meta.url)), 'skill', 'SKILL.md');
|
|
13
|
+
const dest = join(skillDir, 'SKILL.md');
|
|
14
|
+
copyFileSync(src, dest);
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
console.log('');
|
|
17
|
+
console.log(' nrepo: Claude Code skill installed');
|
|
18
|
+
}
|
|
16
19
|
|
|
17
|
-
console.log('
|
|
20
|
+
console.log('');
|
|
21
|
+
console.log(' Get started:');
|
|
22
|
+
console.log(' nrepo login Authenticate with NeuralRepo');
|
|
23
|
+
console.log(' nrepo --help See all commands');
|
|
24
|
+
console.log('');
|
|
18
25
|
} catch {
|
|
19
26
|
// Silent failure — postinstall must not break npm install
|
|
20
27
|
}
|