@sequenceholdings/agent-spec 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -25,11 +25,16 @@ import { defineAgent } from '@sequenceholdings/agent-spec'
25
25
  export const agent = defineAgent({
26
26
  id: '680000000000000000000001',
27
27
  name: 'Support Agent',
28
- model: { provider: 'anthropic', name: 'claude-sonnet-4-6' },
28
+ model: { provider: 'anthropic', name: 'claude-sonnet-5-5' },
29
29
  systemPrompt: 'Help the support team investigate and resolve requests.',
30
30
  })
31
31
  ```
32
32
 
33
+ `RECOMMENDED_AGENT_MODEL` is the model new agents start on; `seq-studio agents
34
+ init` writes it into the scaffold. A definition that omits `model` keeps the
35
+ schema's original default, so upgrading this package never moves an existing
36
+ agent to another model.
37
+
33
38
  Definitions must be pure data literals: do not read environment variables, call
34
39
  functions, or compute fields in `agent.ts`. Keep deployment targeting separate
35
40
  from a definition, then use `seq-studio agents validate`, `plan`, and `apply`.
@@ -2,6 +2,10 @@ import { z } from 'zod';
2
2
  export { canonicalJson } from './canonical-json.js';
3
3
  export { voiceDeclarationSchema } from './voice-authoring.js';
4
4
  export type { VoiceDeclaration, VoiceDeclarationInput } from './voice-authoring.js';
5
+ export declare const RECOMMENDED_AGENT_MODEL: {
6
+ readonly provider: "anthropic";
7
+ readonly name: "claude-sonnet-5-5";
8
+ };
5
9
  export type UnsupportedConstraint = {
6
10
  path: string;
7
11
  type: string;
@@ -12,6 +12,10 @@ const DEFAULT_MODEL = {
12
12
  provider: 'anthropic',
13
13
  name: 'claude-sonnet-4-5-20250929',
14
14
  };
15
+ export const RECOMMENDED_AGENT_MODEL = {
16
+ provider: 'anthropic',
17
+ name: 'claude-sonnet-5-5',
18
+ };
15
19
  const jsonObjectSchema = z.record(z.string(), z.unknown());
16
20
  const unsupportedConstraints = {
17
21
  integer: ['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequenceholdings/agent-spec",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Typed agent definition contract, compiler, hashing, and migration utilities",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {