@compilr-dev/sdk 0.20.2 → 0.20.3

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.
@@ -49,6 +49,12 @@ export interface AgentUpdateResult {
49
49
  * ability to write files is worth more than the row it costs.
50
50
  */
51
51
  toolsNarrowed: boolean;
52
+ /**
53
+ * ⚠️ NARROWER THAN `toolsNarrowed`, and the host needs both. "Fewer tools" and "cannot
54
+ * write any more" are different facts; a transcript saying "it can no longer change files"
55
+ * when six tools were dropped is a false statement in the record.
56
+ */
57
+ lostWriteAccess: boolean;
52
58
  previousProfile?: TeamAgentConfig['toolProfile'];
53
59
  newProfile?: TeamAgentConfig['toolProfile'];
54
60
  }
package/dist/team/team.js CHANGED
@@ -11,7 +11,7 @@ import { TeamAgent } from './team-agent.js';
11
11
  import { ROLE_EXPERTISE } from './types.js';
12
12
  import { SharedContextManager } from './shared-context.js';
13
13
  import { ArtifactStore } from './artifacts.js';
14
- import { isNarrowing, isKnownProfile } from './team-agent.js';
14
+ import { isNarrowing, isKnownProfile, lostWriteAccess } from './team-agent.js';
15
15
  import { resolveAgentIdCollision } from './collision-utils.js';
16
16
  /**
17
17
  * AgentTeam orchestrates multiple persistent agents
@@ -360,6 +360,8 @@ export class AgentTeam {
360
360
  return {
361
361
  rebuilt,
362
362
  toolsNarrowed: isNarrowing(previousProfile, agent.toolProfile),
363
+ /* ⚠️ The narrower fact, so the host can word the notice truthfully. */
364
+ lostWriteAccess: lostWriteAccess(previousProfile, agent.toolProfile),
363
365
  previousProfile,
364
366
  newProfile: agent.toolProfile,
365
367
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",