hybrid 2.0.0 → 2.1.0

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
@@ -47,18 +47,19 @@ my-agent/
47
47
 
48
48
  ### `hybrid build [--target]`
49
49
 
50
- Build the agent bundle into `.hybrid/`:
50
+ Build the agent bundle into `./dist/`:
51
51
 
52
52
  ```bash
53
53
  hybrid build # Default build
54
54
  hybrid build --target fly # Fly.io target (default)
55
+ hybrid build --target spawn # Spawn Sprite target
55
56
  hybrid build --target railway # Railway target
56
57
  hybrid build --target cf # Cloudflare Workers target
57
58
  ```
58
59
 
59
60
  The build:
60
61
  1. Compiles `packages/agent` via `pnpm --filter hybrid/agent build`
61
- 2. Creates `.hybrid/` directory structure
62
+ 2. Creates `./dist/` directory structure
62
63
  3. Copies compiled `dist/` from the agent package
63
64
  4. Copies `SOUL.md`, `AGENTS.md`, and `agent.ts` from your project root
64
65
  5. Copies core skills from `packages/agent/skills/` → `.hybrid/skills/core/`
@@ -68,19 +69,46 @@ The build:
68
69
 
69
70
  **Build output structure:**
70
71
  ```
71
- .hybrid/
72
+ dist/
72
73
  ├── dist/ # Compiled agent code
73
74
  │ ├── server/index.cjs # Full Claude Code SDK server
74
75
  │ ├── server/simple.cjs # Lightweight server
75
- │ └── xmtp.cjs # XMTP sidecar
76
76
  ├── skills/
77
- │ ├── core/ # Built-in skills (memory, xmtp)
77
+ │ ├── core/ # Built-in skills (memory)
78
78
  │ ├── ext/ # User-installed skills
79
79
  │ └── skills_lock.json
80
80
  ├── package.json
81
81
  ├── Dockerfile
82
82
  ├── fly.toml # (Fly.io targets only)
83
- └── start.sh # Starts server + sidecar concurrently
83
+ ├── spawn.sh # (Spawn targets only)
84
+ └── start.sh # Starts server
85
+ ```
86
+
87
+ The build:
88
+ 1. Compiles `packages/agent` via `pnpm --filter hybrid/agent build`
89
+ 2. Creates `./dist/` directory structure
90
+ 3. Copies compiled `dist/` from the agent package
91
+ 4. Copies `SOUL.md`, `AGENTS.md`, and `agent.ts` from your project root
92
+ 5. Copies core skills from `packages/agent/skills/` → `.hybrid/skills/core/`
93
+ 6. Copies user skills from `./skills/` → `.hybrid/skills/ext/`
94
+ 7. Writes `skills/skills_lock.json` listing all installed skills
95
+ 8. Generates deployment files: `package.json`, `Dockerfile`, `fly.toml`, `start.sh`
96
+
97
+ **Build output structure:**
98
+ ```
99
+ dist/
100
+ ├── dist/ # Compiled agent code
101
+ │ ├── server/index.cjs # Full Claude Code SDK server
102
+ │ ├── server/simple.cjs # Lightweight server
103
+ ├── skills/
104
+ │ ├── core/ # Built-in skills (memory)
105
+ │ ├── ext/ # User-installed skills
106
+ │ └── skills_lock.json
107
+ ├── package.json
108
+ ├── Dockerfile
109
+ ├── fly.toml # (Fly.io targets only)
110
+ ├── spawn.sh # (Spawn targets only)
111
+ └── start.sh # Starts server
84
112
  ```
85
113
 
86
114
  ### `hybrid dev`
@@ -104,30 +132,12 @@ hybrid deploy railway # Railway (builds only, manual deploy)
104
132
 
105
133
  ### `hybrid register`
106
134
 
107
- Register the agent wallet on the XMTP network:
135
+ Register the agent identity:
108
136
 
109
137
  ```bash
110
138
  hybrid register
111
139
  ```
112
140
 
113
- Delegates to `@hybrd/xmtp`'s register script via `pnpm --filter @hybrd/xmtp register`.
114
-
115
- ### `hybrid revoke <inboxId>`
116
-
117
- Revoke XMTP installations for a specific inbox ID:
118
-
119
- ```bash
120
- hybrid revoke 0xabc123...
121
- ```
122
-
123
- ### `hybrid revoke-all`
124
-
125
- Auto-detect the inbox ID from the installation limit error and revoke all installations:
126
-
127
- ```bash
128
- hybrid revoke-all
129
- ```
130
-
131
141
  ### `hybrid install <source>`
132
142
 
133
143
  Install a skill into your agent project:
@@ -183,11 +193,10 @@ CMD ["sh", "start.sh"]
183
193
 
184
194
  ### `start.sh`
185
195
 
186
- Runs the agent server and XMTP sidecar concurrently:
196
+ Runs the agent server:
187
197
 
188
198
  ```bash
189
- node dist/server/simple.cjs &
190
- node dist/xmtp.cjs
199
+ node dist/server/simple.cjs
191
200
  ```
192
201
 
193
202
  ### `fly.toml`
@@ -259,7 +268,7 @@ hybrid deploy cf
259
268
 
260
269
  - Builds `packages/agent` via `pnpm --filter`
261
270
  - Deploys `packages/gateway` for Cloudflare Workers target
262
- - Delegates `register`/`revoke` commands to `@hybrd/xmtp` scripts
271
+ - Delegates `register` command to agent identity scripts
263
272
  - The output `.hybrid/` directory is what `packages/gateway` runs inside its Docker container
264
273
 
265
274
  ## License