substrattice 0.1.0 → 0.1.1
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/dist/bridge.js +11 -2
- package/package.json +1 -1
package/dist/bridge.js
CHANGED
|
@@ -170,11 +170,20 @@ export class OmniBridge {
|
|
|
170
170
|
async shareArtifact(input) {
|
|
171
171
|
if (!this.httpUrl)
|
|
172
172
|
throw new Error("not connected");
|
|
173
|
+
// Build only schema-recognized keys: the server wants projectId/roomId (a
|
|
174
|
+
// strict zod schema 400s on `room`/`project`). undefined keys are omitted.
|
|
173
175
|
const body = {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
kind: input.kind,
|
|
177
|
+
title: input.title,
|
|
178
|
+
content: input.content,
|
|
179
|
+
url: input.url,
|
|
180
|
+
language: input.language,
|
|
176
181
|
source: input.source ?? "claude-code",
|
|
177
182
|
};
|
|
183
|
+
if (input.project)
|
|
184
|
+
body.projectId = input.project;
|
|
185
|
+
else
|
|
186
|
+
body.roomId = input.room ?? this.room;
|
|
178
187
|
const res = await fetch(`${this.httpUrl}/api/artifacts`, {
|
|
179
188
|
method: "POST",
|
|
180
189
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "substrattice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"mcpName": "io.github.gen-rl-millz/substrattice",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Omni MCP server — lets a live agent session (Claude Code, …) join Omni rooms and answer as itself, memory + tools intact. Spin up/join a room, wait for work, reply, and share artifacts.",
|