@clawos-dev/clawd 0.2.175-beta.351.b6b1f4d → 0.2.175-beta.352.ccf86fc

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +11 -3
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -43978,6 +43978,7 @@ var SessionManager = class {
43978
43978
  cwd,
43979
43979
  tool: "claude",
43980
43980
  ownerPersonaId: args.targetPersona,
43981
+ ...args.sourceSessionId ? { dispatchedFromSessionId: args.sourceSessionId } : {},
43981
43982
  createdAt: now,
43982
43983
  updatedAt: now
43983
43984
  };
@@ -47544,7 +47545,8 @@ function createShiftScheduler(deps) {
47544
47545
  shiftId: shift.id,
47545
47546
  targetPersona: shift.targetPersona,
47546
47547
  prompt: shift.prompt,
47547
- timeoutMs
47548
+ timeoutMs,
47549
+ ...shift.createdBySessionId ? { sourceSessionId: shift.createdBySessionId } : {}
47548
47550
  });
47549
47551
  sessionId = spawned.sessionId;
47550
47552
  const startRun = {
@@ -47598,8 +47600,12 @@ function createShiftScheduler(deps) {
47598
47600
 
47599
47601
  // src/shift/spawn.ts
47600
47602
  function createShiftSpawnFn(deps) {
47601
- return async ({ targetPersona, prompt, timeoutMs }) => {
47602
- const created = deps.sessionManager.createShiftSession({ targetPersona, prompt });
47603
+ return async ({ targetPersona, prompt, timeoutMs, sourceSessionId }) => {
47604
+ const created = deps.sessionManager.createShiftSession({
47605
+ targetPersona,
47606
+ prompt,
47607
+ ...sourceSessionId ? { sourceSessionId } : {}
47608
+ });
47603
47609
  let resolveOuter = () => {
47604
47610
  };
47605
47611
  const ended = new Promise((r) => {
@@ -47653,12 +47659,14 @@ function validateSchedule(schedule) {
47653
47659
  function buildShiftInternalHandlers(deps) {
47654
47660
  const add = async (frame) => {
47655
47661
  const persona = readPersonaId(frame);
47662
+ const callerSessionId = typeof frame.sessionId === "string" ? frame.sessionId : void 0;
47656
47663
  const { type: _t, requestId: _r, personaId: _p, sessionId: _s, ...rest } = frame;
47657
47664
  const args = rest;
47658
47665
  validateSchedule(args.schedule);
47659
47666
  const shift = deps.store.add({
47660
47667
  ownerId: deps.ownerIdProvider(),
47661
47668
  createdByPersona: persona,
47669
+ ...callerSessionId ? { createdBySessionId: callerSessionId } : {},
47662
47670
  name: args.name,
47663
47671
  enabled: true,
47664
47672
  schedule: args.schedule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.175-beta.351.b6b1f4d",
3
+ "version": "0.2.175-beta.352.ccf86fc",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",