@ericsanchezok/meta-synergy 1.1.7 → 1.1.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ericsanchezok/meta-synergy",
4
- "version": "1.1.7",
4
+ "version": "1.1.8",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -22,7 +22,7 @@ export namespace MetaSynergyHolosLogin {
22
22
  })
23
23
  const body = MetaSynergyHolosProtocol.WsTokenResponse.safeParse(await response.json())
24
24
  if (!body.success || !response.ok || body.data.code !== 0) {
25
- return { valid: false, reason: body.success ? body.data.message ?? "Invalid response" : "Invalid response" }
25
+ return { valid: false, reason: body.success ? (body.data.message ?? "Invalid response") : "Invalid response" }
26
26
  }
27
27
  return { valid: true }
28
28
  }
@@ -85,11 +85,7 @@ export class MetaSynergyInboundHandler {
85
85
  callerAgentID: input.caller.agentID,
86
86
  error: error instanceof Error ? error.message : String(error),
87
87
  })
88
- return errorResult(
89
- undefined,
90
- "host_internal_error",
91
- error instanceof Error ? error.message : String(error),
92
- )
88
+ return errorResult(undefined, "host_internal_error", error instanceof Error ? error.message : String(error))
93
89
  }
94
90
  }
95
91
 
@@ -192,9 +188,7 @@ function errorResult(
192
188
  }
193
189
  }
194
190
 
195
- function isEnvelopeError(
196
- error: unknown,
197
- ): error is {
191
+ function isEnvelopeError(error: unknown): error is {
198
192
  requestID?: string
199
193
  tool?: MetaProtocolEnvelope.Tool
200
194
  action?: string
@@ -136,9 +136,7 @@ function errorResult(
136
136
  }
137
137
  }
138
138
 
139
- function isEnvelopeError(
140
- error: unknown,
141
- ): error is {
139
+ function isEnvelopeError(error: unknown): error is {
142
140
  requestID?: string
143
141
  tool?: MetaProtocolEnvelope.Tool
144
142
  action?: string
package/src/rpc/schema.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import z from "zod"
2
- import { MetaProtocolBash, MetaProtocolEnvelope, MetaProtocolProcess, MetaProtocolSession } from "@ericsanchezok/meta-protocol"
2
+ import {
3
+ MetaProtocolBash,
4
+ MetaProtocolEnvelope,
5
+ MetaProtocolProcess,
6
+ MetaProtocolSession,
7
+ } from "@ericsanchezok/meta-protocol"
3
8
 
4
9
  export const RPCRequestSchema = z.discriminatedUnion("tool", [
5
10
  MetaProtocolBash.ExecuteRequest,
package/src/runtime.ts CHANGED
@@ -314,5 +314,5 @@ function requireState(runtime: MetaSynergyRuntime) {
314
314
  }
315
315
 
316
316
  function escapeAppleScript(input: string) {
317
- return input.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"")
317
+ return input.replaceAll("\\", "\\\\").replaceAll('"', '\\"')
318
318
  }
@@ -244,6 +244,9 @@ export class SessionManager {
244
244
  }
245
245
  }
246
246
 
247
- function envelopeError(code: MetaProtocolError.Code, message: string): { code: MetaProtocolError.Code; message: string } {
247
+ function envelopeError(
248
+ code: MetaProtocolError.Code,
249
+ message: string,
250
+ ): { code: MetaProtocolError.Code; message: string } {
248
251
  return { code, message }
249
252
  }