picocode-core 0.9.148 → 0.9.150
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 +1 -1
- package/src/controller.js +6 -1
- package/src/mcp.js +1 -1
package/package.json
CHANGED
package/src/controller.js
CHANGED
|
@@ -154,7 +154,12 @@ export function createController({ boot }) {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
function ensureSession() {
|
|
157
|
-
if (!state.session)
|
|
157
|
+
if (!state.session) {
|
|
158
|
+
state.session = (boot.ephemeral ? createEphemeralSession : createSession)({ cwd: boot.cwd, root: boot.root })
|
|
159
|
+
// the file exists from this moment; anyone tracking open sessions
|
|
160
|
+
// by file needs to hear about it
|
|
161
|
+
emit('session', state.session)
|
|
162
|
+
}
|
|
158
163
|
while (state.persisted < state.events.length) {
|
|
159
164
|
state.session.append(state.events[state.persisted])
|
|
160
165
|
state.persisted++
|
package/src/mcp.js
CHANGED
|
@@ -255,7 +255,7 @@ export async function createMcpRuntime({ root, onChange = () => {} }) {
|
|
|
255
255
|
status: s.status,
|
|
256
256
|
error: s.error,
|
|
257
257
|
toolCount: s.connection?.tools.length || 0,
|
|
258
|
-
tools: (s.connection?.tools || []).map((t) => ({ name: t.name, description: t.description || '' })),
|
|
258
|
+
tools: (s.connection?.tools || []).map((t) => ({ name: t.name, description: t.description || '', inputSchema: t.inputSchema ?? null })),
|
|
259
259
|
}))
|
|
260
260
|
},
|
|
261
261
|
tools() {
|