@techsologic/unolock-agent 0.1.34 → 0.1.36
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
CHANGED
|
@@ -86,7 +86,7 @@ Agent-first onboarding site:
|
|
|
86
86
|
|
|
87
87
|
Recommended customer install source:
|
|
88
88
|
|
|
89
|
-
* UnoLock's built-in local
|
|
89
|
+
* UnoLock's built-in local runtime/CLI with a GitHub Release binary when available
|
|
90
90
|
* `npx -y @techsologic/unolock-agent@latest` as the easiest Node/npm CLI path
|
|
91
91
|
* `pipx install` as the fallback source install path when no release binary is available yet
|
|
92
92
|
|
|
@@ -144,20 +144,26 @@ For host configuration and implementation details, see:
|
|
|
144
144
|
* [OpenClaw plugin config example](examples/openclaw-plugin-config.json)
|
|
145
145
|
|
|
146
146
|
For skill-aware agents, start with the skill above.
|
|
147
|
-
For direct agent use, prefer the CLI
|
|
147
|
+
For direct agent use, prefer the CLI. If `unolock-agent` is already installed, use it directly. Only use `npx -y @techsologic/unolock-agent@latest ...` when the executable is not installed yet. Run the command you need directly.
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
unolock-agent link-agent-key 'https://safe.example/#/agent-register/...' 1
|
|
151
|
+
unolock-agent list-spaces
|
|
152
|
+
unolock-agent list-notes
|
|
153
|
+
unolock-agent list-files
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Only if the executable is not installed yet, use the same commands through:
|
|
148
157
|
|
|
149
158
|
```bash
|
|
150
159
|
npx -y @techsologic/unolock-agent@latest link-agent-key 'https://safe.example/#/agent-register/...' 1
|
|
151
|
-
npx -y @techsologic/unolock-agent@latest list-spaces
|
|
152
|
-
npx -y @techsologic/unolock-agent@latest list-notes
|
|
153
|
-
npx -y @techsologic/unolock-agent@latest list-files
|
|
154
160
|
```
|
|
155
161
|
|
|
156
|
-
Only if a host needs the explicit host-command form, use
|
|
162
|
+
Only if a host needs the explicit host-command form, use:
|
|
157
163
|
|
|
158
|
-
*
|
|
164
|
+
* `npx -y @techsologic/unolock-agent@latest mcp`
|
|
159
165
|
* The host writes JSON-RPC to `stdin` and reads JSON-RPC from `stdout`.
|
|
160
|
-
* The `mcp` subcommand starts and uses
|
|
166
|
+
* The `mcp` subcommand starts and uses UnoLock automatically.
|
|
161
167
|
* On a fresh host, the first start can take longer because local cryptographic code may need to be compiled or prepared.
|
|
162
168
|
|
|
163
169
|
That keeps the user PIN in process memory and keeps the current Space selected.
|
|
@@ -208,7 +214,7 @@ For the best customer experience, prefer GitHub Release binaries over source ins
|
|
|
208
214
|
|
|
209
215
|
## Preferred Customer Install
|
|
210
216
|
|
|
211
|
-
When available, prefer the built-in UnoLock local
|
|
217
|
+
When available, prefer the built-in UnoLock local runtime plus the npm wrapper or release binary.
|
|
212
218
|
|
|
213
219
|
For an agent-first public onboarding flow, send users or agents to:
|
|
214
220
|
|
package/bin/unolock-agent.js
CHANGED
|
@@ -7,8 +7,8 @@ const path = require("path");
|
|
|
7
7
|
const https = require("https");
|
|
8
8
|
const { spawn } = require("child_process");
|
|
9
9
|
|
|
10
|
-
const PACKAGE_VERSION = "0.1.
|
|
11
|
-
const FALLBACK_BINARY_VERSION = "0.1.
|
|
10
|
+
const PACKAGE_VERSION = "0.1.36";
|
|
11
|
+
const FALLBACK_BINARY_VERSION = "0.1.36";
|
|
12
12
|
const REPO = "TechSologic/unolock-agent";
|
|
13
13
|
const TOP_LEVEL_USAGE = `usage: unolock-agent [-h] [--version] {link-agent-key,set-agent-pin,list-spaces,get-current-space,set-current-space,list-records,list-notes,list-checklists,get-record,create-note,update-note,append-note,rename-record,create-checklist,set-checklist-item-done,add-checklist-item,remove-checklist-item,list-files,get-file,download-file,upload-file,rename-file,replace-file,delete-file,tpm-diagnose,tpm-check,self-test,mcp} ...
|
|
14
14
|
|
|
@@ -10,15 +10,16 @@ This skill uses the local `unolock-agent` executable on the user's device.
|
|
|
10
10
|
|
|
11
11
|
## Preferred Workflow
|
|
12
12
|
|
|
13
|
-
1. If `unolock-agent` is
|
|
14
|
-
2.
|
|
15
|
-
3.
|
|
16
|
-
4.
|
|
13
|
+
1. If `unolock-agent` is already installed, run that directly. Only use `npx -y @techsologic/unolock-agent@latest` when `unolock-agent` is not installed yet.
|
|
14
|
+
2. Run the `unolock-agent` command you need directly.
|
|
15
|
+
3. On a fresh host, allow extra time for the first start.
|
|
16
|
+
4. Ask the user for the one-time Agent Key URL and the PIN together.
|
|
17
|
+
5. Link the key on this device:
|
|
17
18
|
`unolock-agent link-agent-key '<agent-key-url>' '<pin>'`
|
|
18
|
-
|
|
19
|
+
6. List spaces and select the working space when needed:
|
|
19
20
|
`unolock-agent list-spaces`
|
|
20
21
|
`unolock-agent set-current-space <space_id>`
|
|
21
|
-
|
|
22
|
+
7. Use the normal note, checklist, and file commands for day-to-day work.
|
|
22
23
|
|
|
23
24
|
## Main CLI Commands
|
|
24
25
|
|
|
@@ -33,9 +34,11 @@ This skill uses the local `unolock-agent` executable on the user's device.
|
|
|
33
34
|
## Key Rules
|
|
34
35
|
|
|
35
36
|
- give the agent the Agent Key URL and PIN together for first setup
|
|
37
|
+
- if `unolock-agent` is installed, use `unolock-agent ...` directly for CLI commands
|
|
38
|
+
- run the `unolock-agent` command you need directly
|
|
36
39
|
- if a command reports that the PIN is needed, run `unolock-agent set-agent-pin '<pin>'` and retry the original command
|
|
37
40
|
- keep the PIN in UnoLock process memory only
|
|
38
|
-
- if
|
|
41
|
+
- if `unolock-agent` is not installed yet, use `npx -y @techsologic/unolock-agent@latest`
|
|
39
42
|
|
|
40
43
|
## User-Facing Model
|
|
41
44
|
|
package/package.json
CHANGED
|
@@ -11,15 +11,16 @@ This skill uses the local `unolock-agent` executable on the user's device.
|
|
|
11
11
|
## Preferred Workflow
|
|
12
12
|
|
|
13
13
|
1. Load this skill if the host supports skills.
|
|
14
|
-
2. If `unolock-agent` is
|
|
15
|
-
3.
|
|
16
|
-
4.
|
|
17
|
-
5.
|
|
14
|
+
2. If `unolock-agent` is already installed, run that directly. Only use `npx -y @techsologic/unolock-agent@latest` when `unolock-agent` is not installed yet.
|
|
15
|
+
3. Run the `unolock-agent` command you need directly.
|
|
16
|
+
4. On a fresh host, allow extra time for the first start.
|
|
17
|
+
5. Ask the user for the one-time Agent Key URL and the PIN together.
|
|
18
|
+
6. Link the key on this device:
|
|
18
19
|
`unolock-agent link-agent-key '<agent-key-url>' '<pin>'`
|
|
19
|
-
|
|
20
|
+
7. List spaces and select the working space when needed:
|
|
20
21
|
`unolock-agent list-spaces`
|
|
21
22
|
`unolock-agent set-current-space <space_id>`
|
|
22
|
-
|
|
23
|
+
8. Use the normal note, checklist, and file commands for day-to-day work.
|
|
23
24
|
|
|
24
25
|
## Main CLI Commands
|
|
25
26
|
|
|
@@ -34,9 +35,11 @@ This skill uses the local `unolock-agent` executable on the user's device.
|
|
|
34
35
|
## Key Rules
|
|
35
36
|
|
|
36
37
|
- give the agent the Agent Key URL and PIN together for first setup
|
|
38
|
+
- if `unolock-agent` is installed, use `unolock-agent ...` directly for CLI commands
|
|
39
|
+
- run the `unolock-agent` command you need directly
|
|
37
40
|
- if a command reports that the PIN is needed, run `unolock-agent set-agent-pin '<pin>'` and retry the original command
|
|
38
41
|
- keep the PIN in UnoLock process memory only
|
|
39
|
-
- if
|
|
42
|
+
- if `unolock-agent` is not installed yet, use `npx -y @techsologic/unolock-agent@latest`
|
|
40
43
|
|
|
41
44
|
## User-Facing Model
|
|
42
45
|
|