@xuanwo/xurl 0.0.9-darwin-x64
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 +167 -0
- package/package.json +21 -0
- package/vendor/x86_64-apple-darwin/xurl/xurl +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# xURL
|
|
2
|
+
|
|
3
|
+
`xURL` is a client for AI agent URLs.
|
|
4
|
+
|
|
5
|
+
> Also known as **Xuanwo's URL**.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Multi-agent thread resolution:
|
|
10
|
+
- <img src="https://ampcode.com/amp-mark-color.svg" alt="Amp logo" width="16" height="16" /> Amp
|
|
11
|
+
- <img src="https://avatars.githubusercontent.com/u/14957082?s=24&v=4" alt="Codex logo" width="16" height="16" /> Codex
|
|
12
|
+
- <img src="https://www.anthropic.com/favicon.ico" alt="Claude logo" width="16" height="16" /> Claude
|
|
13
|
+
- <img src="https://www.google.com/favicon.ico" alt="Gemini logo" width="16" height="16" /> Gemini
|
|
14
|
+
- <img src=".github/assets/pi-logo-dark.svg" alt="Pi logo" width="16" height="16" /> Pi
|
|
15
|
+
- <img src="https://opencode.ai/favicon.ico" alt="OpenCode logo" width="16" height="16" /> OpenCode
|
|
16
|
+
- Unified URI scheme: `agents://<provider>/<thread_path>` is the primary format.
|
|
17
|
+
- Legacy provider URIs (`codex://...`, `claude://...`, etc.) are still accepted for compatibility.
|
|
18
|
+
- Default output is timeline markdown with user/assistant messages and compact markers.
|
|
19
|
+
- `--raw` outputs raw thread records.
|
|
20
|
+
- `--list` outputs subagent status aggregation for providers that support subagent transcripts.
|
|
21
|
+
- Subagent markdown views print full parent/subagent URIs in `agents://...` format.
|
|
22
|
+
- Non-fatal diagnostics are kept internal; only fatal errors are printed to `stderr`.
|
|
23
|
+
- Automatically respects official environment variables and default local data roots for each supported agent.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
Install from npm and run directly with `npx`:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx @xuanwo/xurl --help
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or install globally via npm:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install -g @xuanwo/xurl
|
|
37
|
+
xurl --help
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Install as a Codex skill:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx skills add Xuanwo/xurl
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## URL Format
|
|
47
|
+
|
|
48
|
+
Primary URI format:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
agents://<provider>/<thread_path>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
ASCII breakdown:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592/019c87fb-38b9-7843-92b1-832f02598495
|
|
58
|
+
^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
59
|
+
scheme provider thread_path (provider-specific: main thread, optional child thread)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Agents
|
|
63
|
+
|
|
64
|
+
### Amp
|
|
65
|
+
|
|
66
|
+
- Supported URIs:
|
|
67
|
+
- `agents://amp/<thread_id>`
|
|
68
|
+
- legacy: `amp://<thread_id>`
|
|
69
|
+
- Thread id format:
|
|
70
|
+
- `T-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
|
|
71
|
+
- Resolution:
|
|
72
|
+
- `XDG_DATA_HOME/amp/threads/<thread_id>.json`
|
|
73
|
+
- fallback: `~/.local/share/amp/threads/<thread_id>.json`
|
|
74
|
+
- Example:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
xurl agents://amp/T-019c0797-c402-7389-bd80-d785c98df295
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Codex
|
|
81
|
+
|
|
82
|
+
- Supported URIs:
|
|
83
|
+
- `agents://codex/<session_id>`
|
|
84
|
+
- `agents://codex/threads/<session_id>`
|
|
85
|
+
- `agents://codex/<main_session_id>/<agent_id>`
|
|
86
|
+
- legacy: `codex://<session_id>`, `codex://threads/<session_id>`, `codex://<main_session_id>/<agent_id>`
|
|
87
|
+
- Subagent modes:
|
|
88
|
+
- Aggregate: `xurl agents://codex/<main_session_id> --list`
|
|
89
|
+
- Drill-down: `xurl agents://codex/<main_session_id>/<agent_id>`
|
|
90
|
+
- Resolution order:
|
|
91
|
+
- SQLite thread index under `CODEX_HOME` (`state_<version>.sqlite` first, then `state.sqlite`) via `threads(id, rollout_path, archived)`.
|
|
92
|
+
- Filesystem fallback under `sessions/` and `archived_sessions/` for `rollout-*.jsonl`.
|
|
93
|
+
- Examples:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
xurl agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592
|
|
97
|
+
xurl agents://codex/threads/019c871c-b1f9-7f60-9c4f-87ed09f13592
|
|
98
|
+
xurl agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592 --list
|
|
99
|
+
xurl agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592/019c87fb-38b9-7843-92b1-832f02598495
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Claude
|
|
103
|
+
|
|
104
|
+
- Supported URIs:
|
|
105
|
+
- `agents://claude/<session_id>`
|
|
106
|
+
- `agents://claude/<main_session_id>/<agent_id>`
|
|
107
|
+
- legacy: `claude://<session_id>`, `claude://<main_session_id>/<agent_id>`
|
|
108
|
+
- Subagent modes:
|
|
109
|
+
- Aggregate: `xurl agents://claude/<main_session_id> --list`
|
|
110
|
+
- Drill-down: `xurl agents://claude/<main_session_id>/<agent_id>`
|
|
111
|
+
- Example:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
xurl agents://claude/2823d1df-720a-4c31-ac55-ae8ba726721f
|
|
115
|
+
xurl agents://claude/2823d1df-720a-4c31-ac55-ae8ba726721f --list
|
|
116
|
+
xurl agents://claude/2823d1df-720a-4c31-ac55-ae8ba726721f/acompact-69d537
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### OpenCode
|
|
120
|
+
|
|
121
|
+
- Supported URIs:
|
|
122
|
+
- `agents://opencode/<session_id>`
|
|
123
|
+
- legacy: `opencode://<session_id>`
|
|
124
|
+
- Example:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
xurl agents://opencode/ses_43a90e3adffejRgrTdlJa48CtE
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Gemini
|
|
131
|
+
|
|
132
|
+
- Supported URI:
|
|
133
|
+
- `agents://gemini/<session_id>`
|
|
134
|
+
- legacy: `gemini://<session_id>`
|
|
135
|
+
- Session id format:
|
|
136
|
+
- `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
|
|
137
|
+
- Resolution:
|
|
138
|
+
- `GEMINI_CLI_HOME/.gemini/tmp/*/chats/session-*.json`
|
|
139
|
+
- fallback: `~/.gemini/tmp/*/chats/session-*.json`
|
|
140
|
+
- Example:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
xurl agents://gemini/29d207db-ca7e-40ba-87f7-e14c9de60613
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Pi
|
|
147
|
+
|
|
148
|
+
- Supported URIs:
|
|
149
|
+
- `agents://pi/<session_id>`
|
|
150
|
+
- `agents://pi/<session_id>/<entry_id>`
|
|
151
|
+
- legacy: `pi://<session_id>`, `pi://<session_id>/<entry_id>`
|
|
152
|
+
- Session id format:
|
|
153
|
+
- `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
|
|
154
|
+
- Resolution:
|
|
155
|
+
- `PI_CODING_AGENT_DIR/sessions/**/*.jsonl`
|
|
156
|
+
- fallback: `~/.pi/agent/sessions/**/*.jsonl`
|
|
157
|
+
- Rendering:
|
|
158
|
+
- `agents://pi/<session_id>` renders the latest leaf branch in the session tree.
|
|
159
|
+
- `agents://pi/<session_id>/<entry_id>` renders the branch ending at the specified entry id.
|
|
160
|
+
- `agents://pi/<session_id> --list` lists all entries and marks leaf entries that are good drill-down targets.
|
|
161
|
+
- Example:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
xurl agents://pi/12cb4c19-2774-4de4-a0d0-9fa32fbae29f
|
|
165
|
+
xurl agents://pi/12cb4c19-2774-4de4-a0d0-9fa32fbae29f/d1b2c3d4
|
|
166
|
+
xurl agents://pi/12cb4c19-2774-4de4-a0d0-9fa32fbae29f --list
|
|
167
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xuanwo/xurl",
|
|
3
|
+
"version": "0.0.9-darwin-x64",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"os": [
|
|
6
|
+
"darwin"
|
|
7
|
+
],
|
|
8
|
+
"cpu": [
|
|
9
|
+
"x64"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"vendor"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/Xuanwo/xurl.git"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=16"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
Binary file
|