pi-better-subagents 0.29.0 → 0.29.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,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-better-subagents",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "description": "Pi extension for detached, sandboxed subagent runs that keep the foreground session free.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -342,6 +342,11 @@ export function listOperations(
342
342
  ): OperationRecord[] {
343
343
  const clauses: string[] = [];
344
344
  const params: Array<string | number> = [];
345
+ if (filter.ownerScope) {
346
+ const owner = normalizeOwner("ownerScope", filter.ownerScope);
347
+ clauses.push("owner_kind = ? AND owner_session_id = ? AND owner_workspace = ?");
348
+ params.push(owner.kind, owner.sessionId, owner.workspace);
349
+ }
345
350
  if (filter.owner) {
346
351
  const owner = normalizeOwner("owner", filter.owner);
347
352
  clauses.push(
@@ -204,6 +204,8 @@ export interface RecordTerminalOutcomeResult {
204
204
  /** Filter for `listOperations`. */
205
205
  export interface OperationFilter {
206
206
  owner?: OwnerIdentity;
207
+ /** Session/workspace scope spanning all branches and goals. */
208
+ ownerScope?: Pick<OwnerIdentity, "kind" | "sessionId" | "workspace">;
207
209
  phase?: OperationPhase;
208
210
  taskId?: string;
209
211
  }