chore: auto-commit after complete-milestone
GSD-Unit: M002-gzq23a
This commit is contained in:
parent
b22f5d5bd6
commit
2cc7653efb
15 changed files with 41 additions and 39 deletions
30
package-lock.json
generated
30
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "gsd-pi",
|
||||
"version": "2.51.0",
|
||||
"version": "2.52.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "gsd-pi",
|
||||
"version": "2.51.0",
|
||||
"version": "2.52.0",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
|
|
@ -1815,10 +1815,14 @@
|
|||
"win32"
|
||||
]
|
||||
},
|
||||
"node_modules/@gsd/mcp-server": {
|
||||
"node_modules/@gsd-build/mcp-server": {
|
||||
"resolved": "packages/mcp-server",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@gsd-build/rpc-client": {
|
||||
"resolved": "packages/rpc-client",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@gsd/native": {
|
||||
"resolved": "packages/native",
|
||||
"link": true
|
||||
|
|
@ -1839,10 +1843,6 @@
|
|||
"resolved": "packages/pi-tui",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@gsd/rpc-client": {
|
||||
"resolved": "packages/rpc-client",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@gsd/studio": {
|
||||
"resolved": "studio",
|
||||
"link": true
|
||||
|
|
@ -9150,10 +9150,11 @@
|
|||
}
|
||||
},
|
||||
"packages/mcp-server": {
|
||||
"name": "@gsd/mcp-server",
|
||||
"version": "2.51.0",
|
||||
"name": "@gsd-build/mcp-server",
|
||||
"version": "2.52.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@gsd/rpc-client": "*",
|
||||
"@gsd-build/rpc-client": "^2.52.0",
|
||||
"@modelcontextprotocol/sdk": "^1.27.1",
|
||||
"zod": "^4.0.0"
|
||||
},
|
||||
|
|
@ -9218,9 +9219,9 @@
|
|||
},
|
||||
"packages/pi-coding-agent": {
|
||||
"name": "@gsd/pi-coding-agent",
|
||||
"version": "2.51.0",
|
||||
"version": "2.52.0",
|
||||
"dependencies": {
|
||||
"@gsd/rpc-client": "2.51.0",
|
||||
"@gsd-build/rpc-client": "^2.52.0",
|
||||
"@mariozechner/jiti": "^2.6.2",
|
||||
"@silvia-odwyer/photon-node": "^0.3.4",
|
||||
"chalk": "^5.5.0",
|
||||
|
|
@ -9262,8 +9263,9 @@
|
|||
}
|
||||
},
|
||||
"packages/rpc-client": {
|
||||
"name": "@gsd/rpc-client",
|
||||
"version": "2.51.0",
|
||||
"name": "@gsd-build/rpc-client",
|
||||
"version": "2.52.0",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=22.0.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# @gsd/mcp-server
|
||||
# @gsd-build/mcp-server
|
||||
|
||||
MCP server exposing GSD orchestration tools for Claude Code, Cursor, and other MCP-compatible clients.
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ Start GSD auto-mode sessions, poll progress, resolve blockers, and retrieve resu
|
|||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @gsd/mcp-server
|
||||
npm install @gsd-build/mcp-server
|
||||
```
|
||||
|
||||
Or with the monorepo workspace:
|
||||
|
|
@ -180,12 +180,12 @@ Resolve a pending blocker in a session by sending a response to the blocked UI r
|
|||
|
||||
```
|
||||
┌─────────────────┐ stdio ┌──────────────────┐
|
||||
│ MCP Client │ ◄────────────► │ @gsd/mcp-server │
|
||||
│ MCP Client │ ◄────────────► │ @gsd-build/mcp-server │
|
||||
│ (Claude Code, │ JSON-RPC │ │
|
||||
│ Cursor, etc.) │ │ SessionManager │
|
||||
└─────────────────┘ │ │ │
|
||||
│ ▼ │
|
||||
│ @gsd/rpc-client │
|
||||
│ @gsd-build/rpc-client │
|
||||
│ │ │
|
||||
│ ▼ │
|
||||
│ GSD CLI (child │
|
||||
|
|
@ -193,9 +193,9 @@ Resolve a pending blocker in a session by sending a response to the blocked UI r
|
|||
└──────────────────┘
|
||||
```
|
||||
|
||||
- **@gsd/mcp-server** — MCP protocol adapter. Translates MCP tool calls into SessionManager operations.
|
||||
- **@gsd-build/mcp-server** — MCP protocol adapter. Translates MCP tool calls into SessionManager operations.
|
||||
- **SessionManager** — Manages RpcClient lifecycle. One session per project directory. Tracks events in a ring buffer (last 50), detects blockers, accumulates cost.
|
||||
- **@gsd/rpc-client** — Low-level RPC client that spawns and communicates with the GSD CLI process via JSON-RPC over stdio.
|
||||
- **@gsd-build/rpc-client** — Low-level RPC client that spawns and communicates with the GSD CLI process via JSON-RPC over stdio.
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@gsd/mcp-server",
|
||||
"name": "@gsd-build/mcp-server",
|
||||
"version": "2.52.0",
|
||||
"description": "MCP server exposing GSD orchestration tools for Claude Code, Cursor, and other MCP clients",
|
||||
"license": "MIT",
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.27.1",
|
||||
"@gsd/rpc-client": "^2.52.0",
|
||||
"@gsd-build/rpc-client": "^2.52.0",
|
||||
"zod": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* @gsd/mcp-server CLI — stdio transport entry point.
|
||||
* @gsd-build/mcp-server CLI — stdio transport entry point.
|
||||
*
|
||||
* Connects the MCP server to stdin/stdout for use by Claude Code,
|
||||
* Cursor, and other MCP-compatible clients.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @gsd/mcp-server — MCP server for GSD orchestration.
|
||||
* @gsd-build/mcp-server — MCP server for GSD orchestration.
|
||||
*/
|
||||
|
||||
export { SessionManager } from './session-manager.js';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @gsd/mcp-server — Integration and unit tests.
|
||||
* @gsd-build/mcp-server — Integration and unit tests.
|
||||
*
|
||||
* Strategy: We cannot mock @gsd/rpc-client at the module level without
|
||||
* Strategy: We cannot mock @gsd-build/rpc-client at the module level without
|
||||
* --experimental-test-module-mocks. Instead we test by:
|
||||
*
|
||||
* 1. Subclassing SessionManager to inject a mock client factory
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import { execSync } from 'node:child_process';
|
||||
import { resolve } from 'node:path';
|
||||
import { RpcClient } from '@gsd/rpc-client';
|
||||
import type { SdkAgentEvent, RpcInitResult, RpcCostUpdateEvent, RpcExtensionUIRequest } from '@gsd/rpc-client';
|
||||
import { RpcClient } from '@gsd-build/rpc-client';
|
||||
import type { SdkAgentEvent, RpcInitResult, RpcCostUpdateEvent, RpcExtensionUIRequest } from '@gsd-build/rpc-client';
|
||||
import type {
|
||||
ManagedSession,
|
||||
ExecuteOptions,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* MCP Server types — session lifecycle and orchestration.
|
||||
*/
|
||||
|
||||
import type { RpcClient, SdkAgentEvent, RpcCostUpdateEvent, RpcExtensionUIRequest } from '@gsd/rpc-client';
|
||||
import type { RpcClient, SdkAgentEvent, RpcCostUpdateEvent, RpcExtensionUIRequest } from '@gsd-build/rpc-client';
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Session Status
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"copy-assets": "node scripts/copy-assets.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gsd/rpc-client": "2.51.0",
|
||||
"@gsd-build/rpc-client": "^2.52.0",
|
||||
"@mariozechner/jiti": "^2.6.2",
|
||||
"@silvia-odwyer/photon-node": "^0.3.4",
|
||||
"chalk": "^5.5.0",
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export { serializeJsonLine, attachJsonlLineReader } from '@gsd/rpc-client';
|
||||
export { serializeJsonLine, attachJsonlLineReader } from '@gsd-build/rpc-client';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# @gsd/rpc-client
|
||||
# @gsd-build/rpc-client
|
||||
|
||||
Standalone RPC client SDK for GSD. Spawn the agent process, perform a v2 protocol handshake, send commands, and consume typed events via an async generator — all in a few lines of TypeScript.
|
||||
|
||||
|
|
@ -7,13 +7,13 @@ Zero internal dependencies. Ships its own inlined types.
|
|||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @gsd/rpc-client
|
||||
npm install @gsd-build/rpc-client
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
||||
```typescript
|
||||
import { RpcClient } from '@gsd/rpc-client';
|
||||
import { RpcClient } from '@gsd-build/rpc-client';
|
||||
|
||||
const client = new RpcClient({ cwd: process.cwd() });
|
||||
await client.start();
|
||||
|
|
@ -117,7 +117,7 @@ import type {
|
|||
SessionStats,
|
||||
SdkAgentEvent,
|
||||
RpcClientOptions,
|
||||
} from '@gsd/rpc-client';
|
||||
} from '@gsd-build/rpc-client';
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { RpcClient } from '@gsd/rpc-client';
|
||||
import { RpcClient } from '@gsd-build/rpc-client';
|
||||
|
||||
const client = new RpcClient({ cwd: process.cwd() });
|
||||
await client.start();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@gsd/rpc-client",
|
||||
"name": "@gsd-build/rpc-client",
|
||||
"version": "2.52.0",
|
||||
"description": "Standalone RPC client SDK for GSD — zero internal dependencies",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @gsd/rpc-client — standalone RPC client SDK for GSD.
|
||||
* @gsd-build/rpc-client — standalone RPC client SDK for GSD.
|
||||
*
|
||||
* Re-exports all types, JSONL utilities, and the RpcClient class.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"noEmit": true,
|
||||
"types": ["node"],
|
||||
"paths": {
|
||||
"@gsd/rpc-client": ["./src/index.ts"]
|
||||
"@gsd-build/rpc-client": ["./src/index.ts"]
|
||||
}
|
||||
},
|
||||
"include": ["examples/**/*.ts"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue