@compilr-dev/sdk 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.
@@ -22,6 +22,12 @@ import type { CustomAgentDefinition } from './custom-agents.js';
22
22
  */
23
23
  export interface TeamAgentUpdate {
24
24
  displayName?: string;
25
+ /**
26
+ * ⚠️ HANDLED BY `setModelTier`, NOT BY THE FIELD ASSIGNMENT BELOW. The tier owns its own
27
+ * rebuild (it has to strip thinking blocks, whose signatures do not transfer across a
28
+ * model change), so `applyUpdate` delegates rather than reimplementing it.
29
+ */
30
+ modelTier?: ModelTier;
25
31
  mascot?: MascotExpression;
26
32
  description?: string;
27
33
  systemPromptAddition?: string;
@@ -254,6 +254,13 @@ export class TeamAgent {
254
254
  (patch.toolProfile !== undefined && patch.toolProfile !== this.toolProfile) ||
255
255
  (patch.toolFilter !== undefined && !sameStrings(patch.toolFilter, this.toolFilter)) ||
256
256
  (patch.enabledSkills !== undefined && !sameStrings(patch.enabledSkills, this.enabledSkills));
257
+ /*
258
+ Delegated: `setModelTier` no-ops when the tier is unchanged and stashes for rebuild
259
+ when it is not. Its `rebuilt` contribution is folded in below.
260
+ */
261
+ const tierChanged = patch.modelTier !== undefined && patch.modelTier !== this._modelTier;
262
+ if (patch.modelTier !== undefined)
263
+ this.setModelTier(patch.modelTier);
257
264
  if (patch.displayName !== undefined)
258
265
  this.displayName = patch.displayName;
259
266
  if (patch.mascot !== undefined)
@@ -270,7 +277,7 @@ export class TeamAgent {
270
277
  this.enabledSkills = patch.enabledSkills;
271
278
  if (needsRebuild)
272
279
  this.stashForRebuild();
273
- return { rebuilt: needsRebuild };
280
+ return { rebuilt: needsRebuild || tierChanged };
274
281
  }
275
282
  /**
276
283
  * Initialize the agent with the given factory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",