@storacha/clawracha 0.1.16 → 0.1.18
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/plugin.d.ts.map +1 -1
- package/dist/plugin.js +3 -8
- package/package.json +1 -1
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EACV,iBAAiB,EAIlB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EACV,iBAAiB,EAIlB,MAAM,qBAAqB,CAAC;AAkJ7B,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,GAAG,EAAE,iBAAiB,QAwmBpD"}
|
package/dist/plugin.js
CHANGED
|
@@ -39,14 +39,7 @@ async function requestWorkspaceUpdate(workspace, agentId, gatewayConfig) {
|
|
|
39
39
|
// Mirror resolveGatewayPort from openclaw core
|
|
40
40
|
const DEFAULT_GATEWAY_PORT = 18789;
|
|
41
41
|
let port = DEFAULT_GATEWAY_PORT;
|
|
42
|
-
|
|
43
|
-
process.env.CLAWDBOT_GATEWAY_PORT?.trim();
|
|
44
|
-
if (envRaw) {
|
|
45
|
-
const parsed = Number.parseInt(envRaw, 10);
|
|
46
|
-
if (Number.isFinite(parsed) && parsed > 0)
|
|
47
|
-
port = parsed;
|
|
48
|
-
}
|
|
49
|
-
else if (typeof gatewayConfig.port === "number" &&
|
|
42
|
+
if (typeof gatewayConfig.port === "number" &&
|
|
50
43
|
Number.isFinite(gatewayConfig.port) &&
|
|
51
44
|
gatewayConfig.port > 0) {
|
|
52
45
|
port = gatewayConfig.port;
|
|
@@ -150,6 +143,8 @@ export default function plugin(api) {
|
|
|
150
143
|
if (newSync) {
|
|
151
144
|
activeSyncers.set(updateParams.workspace, newSync);
|
|
152
145
|
}
|
|
146
|
+
res.statusCode = 200;
|
|
147
|
+
res.end(JSON.stringify({ success: true }));
|
|
153
148
|
return true;
|
|
154
149
|
});
|
|
155
150
|
api.registerService({
|