@pinixai/core 0.7.0 → 0.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pinixai/core",
3
- "version": "0.7.0",
4
- "description": "Clip framework for Pinix define once, run as CLI / MCP / Pinix bridge",
3
+ "version": "0.7.1",
4
+ "description": "Clip framework for Pinix \u2014 define once, run as CLI / MCP / Pinix bridge",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
7
7
  "type": "module",
@@ -33,4 +33,4 @@
33
33
  "@modelcontextprotocol/sdk": "^1.27.1",
34
34
  "zod": "^4.3.6"
35
35
  }
36
- }
36
+ }
package/src/hub.ts CHANGED
@@ -2,11 +2,9 @@ import { createClient } from "@connectrpc/connect";
2
2
  import { createConnectTransport } from "@connectrpc/connect-web";
3
3
  import { HubService, type ClipInfo } from "./gen/hub_pb";
4
4
 
5
- const PINIX_URL = process.env.PINIX_URL ?? "http://127.0.0.1:9000";
6
-
7
5
  function getTransport(hubUrl?: string) {
8
6
  return createConnectTransport({
9
- baseUrl: hubUrl ?? PINIX_URL,
7
+ baseUrl: hubUrl ?? process.env.PINIX_URL ?? "http://127.0.0.1:9000",
10
8
  });
11
9
  }
12
10
 
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@ export type { Binding, Bindings } from "./bindings";
3
3
  export { command } from "./command";
4
4
  export { handler, type HandlerDef, type Stream } from "./handler";
5
5
  export { serveHTTP } from "./http";
6
- export { hubListClips } from "./hub";
6
+ export { hubInvoke, hubListClips } from "./hub";
7
7
  export { serveIPC, invoke, redirectConsoleToStderr } from "./ipc";
8
8
  export type { IPCCommandInfo, IPCManifest } from "./manifest";
9
9
  export { serveMCP } from "./mcp";
package/src/manifest.ts CHANGED
@@ -176,12 +176,11 @@ function findJsonFile(filename: string): Record<string, unknown> | null {
176
176
  }
177
177
 
178
178
  function resolvePackageInfo(): { package?: string; version?: string } {
179
- const pinixJson = findJsonFile("pinix.json");
180
179
  const packageJson = findJsonFile("package.json");
181
180
 
182
181
  return {
183
- package: asString(pinixJson?.name) ?? asString(packageJson?.name),
184
- version: asString(pinixJson?.version) ?? asString(packageJson?.version),
182
+ package: asString(packageJson?.name),
183
+ version: asString(packageJson?.version),
185
184
  };
186
185
  }
187
186