@mind-harness/mh-workspace 0.1.6 → 0.2.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/lib/index.js CHANGED
@@ -313,7 +313,7 @@ let MhWorkspaceService = (() => {
313
313
  "mhBrowser",
314
314
  "workspaceRegistry",
315
315
  "storageDomain",
316
- "sessionProjections",
316
+ "agents",
317
317
  "systemPrompt"
318
318
  ];
319
319
  home = __runInitializers(this, _instanceExtraInitializers);
@@ -443,12 +443,7 @@ let MhWorkspaceService = (() => {
443
443
  /** The first step of the Session's first turn. Later turns do not place pages. */
444
444
  isFirstStep(payload) {
445
445
  if (payload.step !== 1 || payload.messages.length === 0) return false;
446
- const boundary = this.turns().stateOf(payload.agent.session, "turnBoundary");
447
- if (boundary === void 0) {
448
- this.ctx.logger.warn("mh-workspace: turnBoundary projection is not registered; cwd pages not placed");
449
- return false;
450
- }
451
- return boundary.lastTurn === 1;
446
+ return this.agents().turnBoundaryOf(payload.agent.session).lastTurn === 1;
452
447
  }
453
448
  /**
454
449
  * The Project this Session's cwd is a working copy of. Only the first step
@@ -538,8 +533,8 @@ let MhWorkspaceService = (() => {
538
533
  return [];
539
534
  }
540
535
  }
541
- turns() {
542
- return this.ctx.sessionProjections;
536
+ agents() {
537
+ return this.ctx.agents;
543
538
  }
544
539
  browser() {
545
540
  return this.ctx.mhBrowser;
@@ -817,7 +812,7 @@ const inject = [
817
812
  "mhBrowser",
818
813
  "workspaceRegistry",
819
814
  "storageDomain",
820
- "sessionProjections",
815
+ "agents",
821
816
  "systemPrompt"
822
817
  ];
823
818
  const Config = workspaceConfig;
@@ -64,7 +64,7 @@ const $remote = createTypertRemoteInfo({
64
64
  create: _mind_harness_mh_workspace_mhWorkspace_ensureWorkspace_result$schema,
65
65
  jsonSchema: {"type":"object","properties":{"workspaceId":{"type":"string"}},"required":["workspaceId"],"additionalProperties":true},
66
66
  },
67
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":178,"column":9},
67
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":168,"column":9},
68
68
  },
69
69
  'mhWorkspace/openPersonWindow': {
70
70
  service: 'mhWorkspace',
@@ -95,7 +95,7 @@ const $remote = createTypertRemoteInfo({
95
95
  create: _mind_harness_mh_workspace_mhWorkspace_openPersonWindow_result$schema,
96
96
  jsonSchemaError: 'typert tool schema: unsupported void value',
97
97
  },
98
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":187,"column":9},
98
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":177,"column":9},
99
99
  },
100
100
  'mhWorkspace/startBrowser': {
101
101
  service: 'mhWorkspace',
@@ -110,7 +110,7 @@ const $remote = createTypertRemoteInfo({
110
110
  create: _mind_harness_mh_workspace_mhWorkspace_startBrowser_result$schema,
111
111
  jsonSchemaError: 'typert tool schema: unsupported void value',
112
112
  },
113
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":211,"column":9},
113
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":201,"column":9},
114
114
  },
115
115
  'mhWorkspace/syncProjects': {
116
116
  service: 'mhWorkspace',
@@ -125,7 +125,7 @@ const $remote = createTypertRemoteInfo({
125
125
  create: _mind_harness_mh_workspace_mhWorkspace_syncProjects_result$schema,
126
126
  jsonSchema: {"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"projectId":{"type":"string"},"workspaceId":{"type":"string"},"removed":{"type":"boolean","const":true,"description":"The person removed this Project's Workspace. It is not in the sidebar."}},"required":["url","name","projectId"],"additionalProperties":true}},"signedIn":{"type":"boolean","description":"The Memory home names a viewer. Signed out, the list holds only what is public."},"selfLogin":{"type":"boolean"}},"required":["projects","signedIn","selfLogin"],"additionalProperties":true},
127
127
  },
128
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":164,"column":9},
128
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":154,"column":9},
129
129
  },
130
130
  },
131
131
  }, z)
@@ -64,7 +64,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
64
64
  create: _mind_harness_mh_workspace_mhWorkspace_ensureWorkspace_result$schema,
65
65
  jsonSchema: {"type":"object","properties":{"workspaceId":{"type":"string"}},"required":["workspaceId"],"additionalProperties":true},
66
66
  },
67
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":178,"column":9},
67
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":168,"column":9},
68
68
  },
69
69
  'mhWorkspace/openPersonWindow': {
70
70
  service: 'mhWorkspace',
@@ -95,7 +95,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
95
95
  create: _mind_harness_mh_workspace_mhWorkspace_openPersonWindow_result$schema,
96
96
  jsonSchemaError: 'typert tool schema: unsupported void value',
97
97
  },
98
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":187,"column":9},
98
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":177,"column":9},
99
99
  },
100
100
  'mhWorkspace/startBrowser': {
101
101
  service: 'mhWorkspace',
@@ -110,7 +110,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
110
110
  create: _mind_harness_mh_workspace_mhWorkspace_startBrowser_result$schema,
111
111
  jsonSchemaError: 'typert tool schema: unsupported void value',
112
112
  },
113
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":211,"column":9},
113
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":201,"column":9},
114
114
  },
115
115
  'mhWorkspace/syncProjects': {
116
116
  service: 'mhWorkspace',
@@ -125,7 +125,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
125
125
  create: _mind_harness_mh_workspace_mhWorkspace_syncProjects_result$schema,
126
126
  jsonSchema: {"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"projectId":{"type":"string"},"workspaceId":{"type":"string"},"removed":{"type":"boolean","const":true,"description":"The person removed this Project's Workspace. It is not in the sidebar."}},"required":["url","name","projectId"],"additionalProperties":true}},"signedIn":{"type":"boolean","description":"The Memory home names a viewer. Signed out, the list holds only what is public."},"selfLogin":{"type":"boolean"}},"required":["projects","signedIn","selfLogin"],"additionalProperties":true},
127
127
  },
128
- sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":164,"column":9},
128
+ sourceLocation: {"file":"packages/mh-workspace/src/service.ts","line":154,"column":9},
129
129
  },
130
130
  },
131
131
  }, z)
@@ -83,7 +83,7 @@ export declare class MhWorkspaceService extends TypertRemoteService {
83
83
  /** Why the browser cannot read the person's Projects now; undefined when it can. */
84
84
  private signInGap;
85
85
  private openQuietly;
86
- private turns;
86
+ private agents;
87
87
  private browser;
88
88
  private mount;
89
89
  private projects;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mind-harness/mh-workspace",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
4
4
  "description": "Lists your Mind Harness Projects and gives each one a workspace; a Session started there begins with the Project's README and AGENTS.md.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "files": [
@@ -42,28 +42,31 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@mind-harness/mh-browser": "0.1.6",
45
+ "@mind-harness/mh-browser": "0.2.1",
46
46
  "zod": "^4.6.6"
47
47
  },
48
48
  "devDependencies": {
49
- "@deepseek-ai/cordis": "~4.0.5",
50
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.3",
51
- "@deepseek-ai/dsh-home-paths": "^0.2.1-rc.3",
52
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.3",
53
- "@deepseek-ai/dsh-storage-domain": "^0.2.1-rc.3",
54
- "@deepseek-ai/dsh-typert-generator": "^0.2.1-rc.3",
55
- "@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.3",
56
- "@deepseek-ai/schemastery": "~3.18.5"
49
+ "@deepseek-ai/cordis": "~4.1.0",
50
+ "@deepseek-ai/dsh-agent": "^0.2.2-rc.1",
51
+ "@deepseek-ai/dsh-home-paths": "^0.2.2-rc.1",
52
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.1",
53
+ "@deepseek-ai/dsh-storage-domain": "^0.2.2-rc.1",
54
+ "@deepseek-ai/dsh-typert-generator": "^0.2.2-rc.1",
55
+ "@deepseek-ai/dsh-typert-protocol": "^0.2.2-rc.1",
56
+ "@deepseek-ai/schemastery": "~3.19.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@deepseek-ai/cordis": "~4.0.5",
60
- "@deepseek-ai/dsh-home-paths": ">=0.2.1-rc.3 <0.3.0",
61
- "@deepseek-ai/dsh-llm": ">=0.2.1-rc.3 <0.3.0",
62
- "@deepseek-ai/dsh-storage-domain": ">=0.2.1-rc.3 <0.3.0",
63
- "@deepseek-ai/dsh-typert-protocol": ">=0.2.1-rc.3 <0.3.0",
64
- "@deepseek-ai/schemastery": "~3.18.5"
59
+ "@deepseek-ai/cordis": "^4.1.0",
60
+ "@deepseek-ai/dsh-home-paths": ">=0.2.2-rc.1 <0.2.3-0",
61
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1 <0.2.3-0",
62
+ "@deepseek-ai/dsh-storage-domain": ">=0.2.2-rc.1 <0.2.3-0",
63
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.1 <0.2.3-0",
64
+ "@deepseek-ai/schemastery": "^3.19.0"
65
65
  },
66
66
  "icon": "./icon.svg",
67
+ "engines": {
68
+ "dsh": ">=0.2.2-rc.1 <0.2.3-0"
69
+ },
67
70
  "scripts": {
68
71
  "generate": "node --experimental-strip-types ../../scripts/mh/typert-protocol-src.ts && node --experimental-strip-types scripts/generate-typert.ts"
69
72
  }