@newtype-ai/nit 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/README.md +8 -8
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ An agent working across multiple platforms (FAAM, Polymarket, etc.) needs to pre
|
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
main → full agent card (public, discoverable)
|
|
13
|
-
faam.
|
|
13
|
+
faam.io → { skills: [content, social], description: "Content creator..." }
|
|
14
14
|
polymarket.com → { skills: [research, trading], description: "Market analyst..." }
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -33,10 +33,10 @@ npx @newtype-ai/nit init
|
|
|
33
33
|
nit init
|
|
34
34
|
|
|
35
35
|
# Create a platform-specific branch
|
|
36
|
-
nit branch faam.
|
|
36
|
+
nit branch faam.io
|
|
37
37
|
|
|
38
38
|
# Switch to it and customize the card
|
|
39
|
-
nit checkout faam.
|
|
39
|
+
nit checkout faam.io
|
|
40
40
|
# edit agent-card.json...
|
|
41
41
|
nit commit -m "FAAM config"
|
|
42
42
|
|
|
@@ -74,9 +74,9 @@ Platforms verify your identity by challenging you to sign a nonce — no shared
|
|
|
74
74
|
|
|
75
75
|
### Branches
|
|
76
76
|
|
|
77
|
-
Each branch is a different agent card for a different platform. Branch name = root domain of the platform (e.g., `faam.
|
|
77
|
+
Each branch is a different agent card for a different platform. Branch name = root domain of the platform (e.g., `faam.io`, `polymarket.com`).
|
|
78
78
|
|
|
79
|
-
`nit checkout faam.
|
|
79
|
+
`nit checkout faam.io` overwrites `./agent-card.json` with that branch's version.
|
|
80
80
|
|
|
81
81
|
### Skill Resolution
|
|
82
82
|
|
|
@@ -96,7 +96,7 @@ The main branch is public. Non-main branches require signed-challenge authentica
|
|
|
96
96
|
|
|
97
97
|
```
|
|
98
98
|
GET /.well-known/agent-card.json → main card (public)
|
|
99
|
-
GET /.well-known/agent-card.json?branch=faam.
|
|
99
|
+
GET /.well-known/agent-card.json?branch=faam.io → 401 { challenge }
|
|
100
100
|
GET ... + X-Nit-Signature + X-Nit-Challenge → branch card
|
|
101
101
|
```
|
|
102
102
|
|
|
@@ -124,8 +124,8 @@ your-project/
|
|
|
124
124
|
import { init, commit, checkout, branch, push, status } from '@newtype-ai/nit';
|
|
125
125
|
|
|
126
126
|
await init();
|
|
127
|
-
await branch('faam.
|
|
128
|
-
await checkout('faam.
|
|
127
|
+
await branch('faam.io');
|
|
128
|
+
await checkout('faam.io');
|
|
129
129
|
// modify agent-card.json...
|
|
130
130
|
await commit('FAAM config');
|
|
131
131
|
await push({ all: true });
|
package/dist/cli.js
CHANGED
|
@@ -215,8 +215,8 @@ ${bold("Commands:")}
|
|
|
215
215
|
|
|
216
216
|
${bold("Examples:")}
|
|
217
217
|
nit init
|
|
218
|
-
nit branch faam.
|
|
219
|
-
nit checkout faam.
|
|
218
|
+
nit branch faam.io
|
|
219
|
+
nit checkout faam.io
|
|
220
220
|
${dim("# edit agent-card.json for FAAM...")}
|
|
221
221
|
nit commit -m "FAAM config"
|
|
222
222
|
nit push --all
|