clawsouls 0.1.4 → 0.1.5
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 +33 -0
- package/dist/bin/clawsouls.js +5 -0
- package/dist/bin/clawsouls.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,16 @@ npm install -g clawsouls
|
|
|
37
37
|
|
|
38
38
|
## Commands
|
|
39
39
|
|
|
40
|
+
### `clawsouls init [name]`
|
|
41
|
+
|
|
42
|
+
Scaffold a new soul package directory with template files.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
clawsouls init my-soul
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Creates a directory with `clawsoul.json`, `SOUL.md`, `IDENTITY.md`, `AGENTS.md`, `HEARTBEAT.md`, and `README.md` — ready for customization and publishing.
|
|
49
|
+
|
|
40
50
|
### `clawsouls install <name>`
|
|
41
51
|
|
|
42
52
|
Download and install a soul from the registry.
|
|
@@ -72,6 +82,29 @@ clawsouls restore
|
|
|
72
82
|
|
|
73
83
|
Multiple backups are kept — each `use` creates a new timestamped backup, so you can safely switch between souls without losing any previous configuration.
|
|
74
84
|
|
|
85
|
+
### `clawsouls publish <dir>`
|
|
86
|
+
|
|
87
|
+
Publish a soul package to the ClawSouls registry. Requires authentication.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# 1. Log in at https://clawsouls.ai and get your API token from the Dashboard
|
|
91
|
+
# 2. Set the token
|
|
92
|
+
export CLAWSOULS_TOKEN=<your-token>
|
|
93
|
+
|
|
94
|
+
# 3. Publish your soul
|
|
95
|
+
clawsouls publish ./my-soul/
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The directory must contain a valid `clawsoul.json`. All files in the directory are uploaded. A security scan runs automatically before publishing.
|
|
99
|
+
|
|
100
|
+
### `clawsouls login`
|
|
101
|
+
|
|
102
|
+
Show instructions for authenticating with the registry.
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
clawsouls login
|
|
106
|
+
```
|
|
107
|
+
|
|
75
108
|
### `clawsouls list`
|
|
76
109
|
|
|
77
110
|
Show all installed souls.
|
package/dist/bin/clawsouls.js
CHANGED
|
@@ -6,6 +6,7 @@ import { useCommand } from '../commands/use.js';
|
|
|
6
6
|
import { restoreCommand } from '../commands/restore.js';
|
|
7
7
|
import { listCommand } from '../commands/list.js';
|
|
8
8
|
import { publishCommand, loginCommand } from '../commands/publish.js';
|
|
9
|
+
import { initCommand } from '../commands/init.js';
|
|
9
10
|
const require = createRequire(import.meta.url);
|
|
10
11
|
const { version } = require('../../package.json');
|
|
11
12
|
const program = new Command();
|
|
@@ -39,5 +40,9 @@ program
|
|
|
39
40
|
.command('login')
|
|
40
41
|
.description('Get instructions for authenticating with the registry')
|
|
41
42
|
.action(loginCommand);
|
|
43
|
+
program
|
|
44
|
+
.command('init [name]')
|
|
45
|
+
.description('Scaffold a new soul directory')
|
|
46
|
+
.action((name) => initCommand(name));
|
|
42
47
|
program.parse();
|
|
43
48
|
//# sourceMappingURL=clawsouls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clawsouls.js","sourceRoot":"","sources":["../../src/bin/clawsouls.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"clawsouls.js","sourceRoot":"","sources":["../../src/bin/clawsouls.ts"],"names":[],"mapp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