@ai-outfitter/outfitter 1.1.2 → 1.2.0

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 (33) hide show
  1. package/dist/cli/commands/DumpCommand.js +1 -1
  2. package/dist/cli/commands/DumpCommand.js.map +1 -1
  3. package/dist/cli/commands/RunAgentCommand.js +5 -3
  4. package/dist/cli/commands/RunAgentCommand.js.map +1 -1
  5. package/dist/cli/commands/ValidateCommand.js +1 -1
  6. package/dist/cli/commands/ValidateCommand.js.map +1 -1
  7. package/dist/composer/Composer.d.ts +7 -5
  8. package/dist/composer/Composer.js +280 -64
  9. package/dist/composer/Composer.js.map +1 -1
  10. package/dist/composer/Composition.d.ts +34 -3
  11. package/dist/composer/PromptSource.d.ts +44 -0
  12. package/dist/composer/PromptSource.js +113 -0
  13. package/dist/composer/PromptSource.js.map +1 -0
  14. package/dist/dump/Dump.d.ts +1 -1
  15. package/dist/dump/Dump.js +111 -20
  16. package/dist/dump/Dump.js.map +1 -1
  17. package/dist/projection/Materialize.d.ts +1 -5
  18. package/dist/projection/Materialize.js +57 -13
  19. package/dist/projection/Materialize.js.map +1 -1
  20. package/dist/projection/ProjectHarness.js +8 -3
  21. package/dist/projection/ProjectHarness.js.map +1 -1
  22. package/dist/resolver/AgentDefinition.d.ts +9 -0
  23. package/dist/resolver/AgentDefinition.js +17 -0
  24. package/dist/resolver/AgentDefinition.js.map +1 -1
  25. package/dist/resolver/ResolverValidation.d.ts +1 -1
  26. package/dist/resolver/ResolverValidation.js +25 -15
  27. package/dist/resolver/ResolverValidation.js.map +1 -1
  28. package/dist/schemas/agent.schema.json +32 -0
  29. package/docs/documentation/agents.md +81 -26
  30. package/docs/documentation/migration.md +18 -9
  31. package/docs/documentation/profiles.md +24 -7
  32. package/package.json +1 -1
  33. package/src/schemas/agent.schema.json +32 -0
@@ -8,6 +8,29 @@
8
8
  "name": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "maxLength": 64 },
9
9
  "label": { "type": "string", "minLength": 1 },
10
10
  "description": { "type": "string" },
11
+ "inherits": {
12
+ "oneOf": [
13
+ { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "maxLength": 64 },
14
+ {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "items": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "maxLength": 64 }
18
+ }
19
+ ],
20
+ "description": "Parent agent slug or ordered parent slug list composed parent-first before this agent."
21
+ },
22
+ "system_prompt": {
23
+ "$ref": "#/$defs/promptSource",
24
+ "description": "Prompt fragment that replaces the winning root system-prompt.md; file is trusted catalog content and repo_file is untrusted repository content."
25
+ },
26
+ "append_system_prompt": {
27
+ "oneOf": [{ "$ref": "#/$defs/promptSource" }, { "type": "array", "items": { "$ref": "#/$defs/promptSource" } }],
28
+ "description": "Prompt fragments appended after root agents.md and before inherited agent bodies."
29
+ },
30
+ "prompt_template": {
31
+ "$ref": "#/$defs/promptSource",
32
+ "description": "Harness prompt-template source projected only by harnesses that support templates."
33
+ },
11
34
  "skills": {
12
35
  "$ref": "#/$defs/slugList",
13
36
  "description": "Skill slugs resolved from agents/<name>/skills first, then catalog-wide skills."
@@ -44,6 +67,15 @@
44
67
  "slugList": {
45
68
  "type": "array",
46
69
  "items": { "type": "string", "minLength": 1 }
70
+ },
71
+ "promptSource": {
72
+ "type": "object",
73
+ "oneOf": [{ "required": ["file"] }, { "required": ["repo_file"] }],
74
+ "properties": {
75
+ "file": { "type": "string", "minLength": 1 },
76
+ "repo_file": { "type": "string", "minLength": 1 }
77
+ },
78
+ "additionalProperties": false
47
79
  }
48
80
  }
49
81
  }