create-agent 0.0.19 → 0.0.20
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/.nojekyll +0 -0
- package/README.md +1 -0
- package/SKILL.md +5 -4
- package/index.js +1 -0
- package/package.json +1 -1
- package/test/index.test.js +1 -0
- package/.claude/settings.local.json +0 -34
package/.nojekyll
ADDED
|
File without changes
|
package/README.md
CHANGED
package/SKILL.md
CHANGED
|
@@ -52,7 +52,7 @@ layers.
|
|
|
52
52
|
|
|
53
53
|
```json
|
|
54
54
|
{
|
|
55
|
-
"@context": ["https://www.w3.org/ns/cid/v1", "https://w3id.org/nostr/context"],
|
|
55
|
+
"@context": ["https://www.w3.org/ns/did/v1", "https://www.w3.org/ns/cid/v1", "https://w3id.org/nostr/context"],
|
|
56
56
|
"id": "did:nostr:dd82687ee5a352c6d6de337bce53f150ca1567f3861475c74e7da62695931d23",
|
|
57
57
|
"type": "DIDNostr",
|
|
58
58
|
"seeAlso": "https://init-agent.com/SKILL.md",
|
|
@@ -82,11 +82,12 @@ layers.
|
|
|
82
82
|
|
|
83
83
|
## Current spec facts (verify; do not recall from memory)
|
|
84
84
|
|
|
85
|
-
did:nostr is a young, evolving method. As of **2026-
|
|
85
|
+
did:nostr is a young, evolving method. As of **2026-07-26** (spec 0.1.1) the canonical
|
|
86
86
|
shape is:
|
|
87
87
|
|
|
88
|
-
- `@context`: `["https://www.w3.org/ns/cid/v1", "https://w3id.org/nostr/context"]`
|
|
89
|
-
— note **
|
|
88
|
+
- `@context`: `["https://www.w3.org/ns/did/v1", "https://www.w3.org/ns/cid/v1", "https://w3id.org/nostr/context"]`
|
|
89
|
+
— note it leads with **DID v1** (required by DID Core), followed by **CID v1**, which
|
|
90
|
+
defines the `Multikey` terms.
|
|
90
91
|
- `type`: `DIDNostr`; verification method `type`: `Multikey`.
|
|
91
92
|
- `publicKeyMultibase`: `fe70102` + lowercase-hex pubkey.
|
|
92
93
|
- `authentication` and `assertionMethod`: `["#key1"]`.
|
package/index.js
CHANGED
package/package.json
CHANGED
package/test/index.test.js
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"WebFetch(domain:did-nostr.com)",
|
|
5
|
-
"WebFetch(domain:nostrcg.github.io)",
|
|
6
|
-
"Bash(npm test *)",
|
|
7
|
-
"Bash(gh repo *)",
|
|
8
|
-
"Bash(gh issue *)",
|
|
9
|
-
"Bash(git push *)",
|
|
10
|
-
"Bash(gh pr create --base gh-pages --title 'Update DID document to latest did:nostr spec \\(DID → CID context\\)' --body ' *)",
|
|
11
|
-
"Bash(gh pr *)",
|
|
12
|
-
"Bash(gh api *)",
|
|
13
|
-
"Bash(git checkout *)",
|
|
14
|
-
"Bash(git pull *)",
|
|
15
|
-
"Bash(npm install *)",
|
|
16
|
-
"WebFetch(domain:github.com)",
|
|
17
|
-
"Bash(curl -sL \"https://www.w3.org/ns/cid/v1\")",
|
|
18
|
-
"Bash(curl -sL \"https://w3id.org/nostr/context\")",
|
|
19
|
-
"Bash(python3 -c \"import json;d=json.load\\(open\\('vocab.jsonld'\\)\\);print\\(json.dumps\\(d['@context']\\)[:600]\\)\")",
|
|
20
|
-
"Bash(python3 -c \"import json;d=json.load\\(open\\('vocab.json'\\)\\);print\\(json.dumps\\(d['@context']\\)[:600]\\)\")",
|
|
21
|
-
"Bash(node -e \"import\\('./index.js'\\).then\\(m=>{const a=m.generateAgent\\(\\);console.log\\('seeAlso:',a.did.seeAlso\\)}\\)\")",
|
|
22
|
-
"WebFetch(domain:blocktrails.com)",
|
|
23
|
-
"WebFetch(domain:aam.wtf)",
|
|
24
|
-
"WebFetch(domain:www.npmjs.com)",
|
|
25
|
-
"Bash(npm view *)",
|
|
26
|
-
"Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\('name:',d.get\\('name'\\)\\); print\\('version:',d.get\\('version'\\)\\); print\\('description:',d.get\\('description'\\)\\); print\\('keywords:',d.get\\('keywords'\\)\\); print\\('homepage:',d.get\\('homepage'\\)\\); print\\('author:',d.get\\('author'\\)\\); print\\('bin:',d.get\\('bin'\\)\\); print\\('repository:',d.get\\('repository'\\)\\)\")",
|
|
27
|
-
"WebFetch(domain:www.blocktrails.com)",
|
|
28
|
-
"WebFetch(domain:blocktrails.org)",
|
|
29
|
-
"Bash(git add *)",
|
|
30
|
-
"Bash(git commit -q -m ' *)",
|
|
31
|
-
"Bash(python3 -c \"import json;print\\(json.load\\(open\\('package.json'\\)\\)['version']\\)\")"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
}
|