@mjasnikovs/pi-task 0.20.0 → 0.20.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.
@@ -1,5 +1,5 @@
1
1
  import { getConfig } from '../config/config.js';
2
- import { getBridge, dispatchRemoteLine, dispatchRemoteNewSession, makeShimmedCtx, interruptAgent } from './bridge.js';
2
+ import { getBridge, dispatchRemoteLine, dispatchRemoteNewSession, makeShimmedCtx, interruptAgent, registerBridgeCommand } from './bridge.js';
3
3
  import { setupEvents } from './events.js';
4
4
  import { reset, addUserTurn } from './session-state.js';
5
5
  import { html } from './ui.js';
@@ -84,7 +84,10 @@ export function registerRemote(pi) {
84
84
  S.send = null;
85
85
  }
86
86
  });
87
- pi.registerCommand('remote', {
87
+ // Bridge-registered (not pi.registerCommand) so `/remote stop` also works when
88
+ // typed in the browser — the web UI advertises it, and while a /task-auto run
89
+ // holds the host command loop the browser is the only live input surface.
90
+ registerBridgeCommand(pi, 'remote', {
88
91
  description: 'Show the remote QR code & URLs.',
89
92
  handler: async (args, ctx) => {
90
93
  if (!getConfig().remote) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjasnikovs/pi-task",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Deterministic task planning and spec-orchestration for local models — crash-safe /task pipelines with verify/enforce gates, a real-time remote web view, and web/docs/fetch/worker subagent tools.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",