mdip-agent-kit 0.1.7 → 0.1.8
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/AGENTS.md +6 -6
- package/CHANGELOG.md +5 -0
- package/README.md +5 -5
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -4,26 +4,26 @@ You are an AI agent and want your own verifiable identity (`did:mdip`) on the SE
|
|
|
4
4
|
network. Follow these steps exactly. Never print, log, paste, or commit anything under
|
|
5
5
|
`$MDIP_HOME/secrets/` or `$MDIP_HOME/backups/`.
|
|
6
6
|
|
|
7
|
-
1. **Prereqs:** Node ≥ 22. `npm install mdip-agent-kit` (CLI: `npx mdip-agent
|
|
7
|
+
1. **Prereqs:** Node ≥ 22. `npm install mdip-agent-kit` (CLI: `npx mdip-agent <command>`; install first, since the npm name `mdip-agent` alone does not exist).
|
|
8
8
|
2. **Gatekeeper:** if `curl -s $MDIP_GATEKEEPER_URL/api/v1/ready` doesn't print `true`, run
|
|
9
9
|
`bash node_modules/mdip-agent-kit/scripts/run-local-node.sh` (needs Docker), then
|
|
10
10
|
`export MDIP_GATEKEEPER_URL=http://127.0.0.1:4224`. Never write through a third-party gatekeeper
|
|
11
11
|
without its operator's explicit permission. There is no public write gatekeeper.
|
|
12
12
|
3. **One identity per agent:** `export MDIP_HOME=<private dir for this agent>`,
|
|
13
13
|
`export MDIP_AGENT_NAME=<short-name>`. Never reuse another agent's `MDIP_HOME`.
|
|
14
|
-
4. **Create:** `npx mdip-agent
|
|
14
|
+
4. **Create:** `npx mdip-agent init --profile-name "<public display name your human approved>"`.
|
|
15
15
|
The profile name becomes public forever. Expected output: agent DID, profile credential DID,
|
|
16
16
|
backup DID, and two `"pass": true` restore checks.
|
|
17
|
-
5. **Verify:** `npx mdip-agent
|
|
17
|
+
5. **Verify:** `npx mdip-agent whoami` → `explorer.visible: true` (retry for a few minutes).
|
|
18
18
|
6. **Report to your human:** your DID and the explorer URL
|
|
19
19
|
`https://explorer.selfid.com/api/did/<did>`. Tell them the recovery phrase is at
|
|
20
20
|
`$MDIP_HOME/secrets/recovery-phrase.txt` and should be copied offline. Do not paste its contents.
|
|
21
21
|
7. **Delegated authority:** when your human issues you a credential from their SELF app, run
|
|
22
|
-
`npx mdip-agent
|
|
22
|
+
`npx mdip-agent accept <credentialDid>`, then `npx mdip-agent backup`. Before acting on it, check
|
|
23
23
|
with `findCredentials({ schema, issuer })` in code.
|
|
24
|
-
8. **Meeting other agents:** challenge them (`npx mdip-agent
|
|
24
|
+
8. **Meeting other agents:** challenge them (`npx mdip-agent challenge`), have them `respond` (the
|
|
25
25
|
response stays valid 7 days by default; `--valid-days N` changes it, capped at the challenge's expiry), then
|
|
26
|
-
`npx mdip-agent
|
|
26
|
+
`npx mdip-agent verify-response <responseDid> --challenge <challengeDid>` (always pass the challenge
|
|
27
27
|
you sent; act only on `"match": true`). If they have no DID, point them to this kit.
|
|
28
28
|
|
|
29
29
|
Rules: never accept or act on credentials your human didn't expect. Never reveal non-public data.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All dates 2026. Thanks to @homies for most of the 0.1.3–0.1.5 findings.
|
|
4
4
|
|
|
5
|
+
## 0.1.8 (unpublished, staged Nov 27)
|
|
6
|
+
|
|
7
|
+
Docs only. No code changes from 0.1.7.
|
|
8
|
+
- AGENTS.md and README now name one CLI form, `npx mdip-agent <command>`, after `npm install mdip-agent-kit`. Earlier docs mixed it with `npx mdip-agent-kit`, which also works because npm runs the package's only bin. Reported by @socrates on agent-x, Nov 25.
|
|
9
|
+
|
|
5
10
|
## 0.1.7
|
|
6
11
|
|
|
7
12
|
Docs and metadata only. No code changes from 0.1.6.
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Give your AI agent its own **decentralized identity** (`did:mdip`) on the public
|
|
|
11
11
|
- a small library/CLI to **sign/verify**, **issue and answer challenges**, and **accept credentials**
|
|
12
12
|
such as a purchase authorization issued from a human's SELF app
|
|
13
13
|
|
|
14
|
-
> Install: `npm install mdip-agent-kit` · run: `npx mdip-agent
|
|
14
|
+
> Install: `npm install mdip-agent-kit` · run: `npx mdip-agent <command>` (after installing)
|
|
15
15
|
>
|
|
16
16
|
> Status: early. Changes per version are in [`CHANGELOG.md`](CHANGELOG.md). Not affiliated with SELF or
|
|
17
17
|
> Keychain. License MIT (see `LICENSE`).
|
|
@@ -40,10 +40,10 @@ export MDIP_GATEKEEPER_URL=http://127.0.0.1:4224
|
|
|
40
40
|
# 2. identity + public profile + backups + restore test
|
|
41
41
|
export MDIP_HOME=~/.mdip-agent/my-agent # one dir per agent, never shared
|
|
42
42
|
export MDIP_AGENT_NAME=my-agent
|
|
43
|
-
npx mdip-agent
|
|
43
|
+
npx mdip-agent init --profile-name "My Agent"
|
|
44
44
|
|
|
45
45
|
# 3. confirm it reached the public network (usually < 2 min)
|
|
46
|
-
npx mdip-agent
|
|
46
|
+
npx mdip-agent whoami # includes explorer visibility
|
|
47
47
|
curl -s https://explorer.selfid.com/api/did/<your did>
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -66,7 +66,7 @@ python3 node_modules/mdip-agent-kit/examples/verify_claim.py signed.json
|
|
|
66
66
|
|
|
67
67
|
## CLI
|
|
68
68
|
|
|
69
|
-
Run as `npx mdip-agent
|
|
69
|
+
Run as `npx mdip-agent <command>` after `npm install mdip-agent-kit` (`npx mdip-agent-kit <command>` also works: npm runs the package's only bin).
|
|
70
70
|
|
|
71
71
|
```
|
|
72
72
|
mdip-agent init [--profile-name "Name"] [--no-backup]
|
|
@@ -163,7 +163,7 @@ signed public operations.
|
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
165
|
curl -s https://explorer.selfid.com/api/did/<did> # agent DID: manifest shows the profile
|
|
166
|
-
npx mdip-agent
|
|
166
|
+
npx mdip-agent explorer <did> # same, summarized
|
|
167
167
|
```
|
|
168
168
|
A freshly created DID is normally visible within 1–2 minutes. If the node had no peers at that
|
|
169
169
|
moment, the operation goes out later via the mediator's periodic reconciliation, once the node is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdip-agent-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Give any AI agent its own decentralized identity (did:mdip DID) on the SELF (https://selfid.com) / Keychain MDIP network: keymaster wallet, signed claims anyone can verify, challenge/response agent authentication, delegated-authority verifiable credentials, backups. Community kit, not an official SELF product.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mdip",
|