@ai-outfitter/outfitter 1.11.0 → 1.13.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 (65) hide show
  1. package/.outfitter/skills/outfitter/SKILL.md +4 -0
  2. package/README.md +5 -1
  3. package/dist/cli/OutfitterCli.js +2 -0
  4. package/dist/cli/OutfitterCli.js.map +1 -1
  5. package/dist/cli/commands/DumpCommand.d.ts +1 -0
  6. package/dist/cli/commands/DumpCommand.js +12 -5
  7. package/dist/cli/commands/DumpCommand.js.map +1 -1
  8. package/dist/cli/commands/ListCommand.d.ts +9 -0
  9. package/dist/cli/commands/ListCommand.js +25 -9
  10. package/dist/cli/commands/ListCommand.js.map +1 -1
  11. package/dist/cli/commands/RunAgentCommand.d.ts +5 -0
  12. package/dist/cli/commands/RunAgentCommand.js +16 -1
  13. package/dist/cli/commands/RunAgentCommand.js.map +1 -1
  14. package/dist/cli/commands/SetupCommand.d.ts +2 -1
  15. package/dist/cli/commands/SetupCommand.js +1 -0
  16. package/dist/cli/commands/SetupCommand.js.map +1 -1
  17. package/dist/cli/commands/SourcesCommand.d.ts +19 -0
  18. package/dist/cli/commands/SourcesCommand.js +85 -0
  19. package/dist/cli/commands/SourcesCommand.js.map +1 -0
  20. package/dist/cli/commands/SyncCommand.js +8 -0
  21. package/dist/cli/commands/SyncCommand.js.map +1 -1
  22. package/dist/dump/WorkflowDump.d.ts +4 -0
  23. package/dist/dump/WorkflowDump.js +148 -0
  24. package/dist/dump/WorkflowDump.js.map +1 -0
  25. package/dist/resolver/Resolver.js +2 -0
  26. package/dist/resolver/Resolver.js.map +1 -1
  27. package/dist/resolver/ResolverValidation.js +156 -1
  28. package/dist/resolver/ResolverValidation.js.map +1 -1
  29. package/dist/resolver/Resource.d.ts +1 -1
  30. package/dist/resolver/Resource.js +1 -1
  31. package/dist/resolver/Resource.js.map +1 -1
  32. package/dist/resolver/WorkflowDefinition.d.ts +56 -0
  33. package/dist/resolver/WorkflowDefinition.js +23 -0
  34. package/dist/resolver/WorkflowDefinition.js.map +1 -0
  35. package/dist/schemas/settings.schema.json +5 -0
  36. package/dist/schemas/workflow.schema.json +81 -0
  37. package/dist/settings/Settings.d.ts +6 -0
  38. package/dist/settings/Settings.js +1 -0
  39. package/dist/settings/Settings.js.map +1 -1
  40. package/dist/settings/SettingsLoader.js +1 -0
  41. package/dist/settings/SettingsLoader.js.map +1 -1
  42. package/dist/settings/SettingsMerger.js +3 -0
  43. package/dist/settings/SettingsMerger.js.map +1 -1
  44. package/dist/setup/DefaultCatalog.js +19 -3
  45. package/dist/setup/DefaultCatalog.js.map +1 -1
  46. package/dist/sources/SourceCachePolicy.d.ts +11 -0
  47. package/dist/sources/SourceCachePolicy.js +48 -0
  48. package/dist/sources/SourceCachePolicy.js.map +1 -0
  49. package/dist/sources/SourceState.d.ts +32 -0
  50. package/dist/sources/SourceState.js +90 -0
  51. package/dist/sources/SourceState.js.map +1 -0
  52. package/dist/validation/SchemaValidator.d.ts +1 -1
  53. package/dist/validation/SchemaValidator.js +2 -0
  54. package/dist/validation/SchemaValidator.js.map +1 -1
  55. package/docs/documentation/README.md +5 -3
  56. package/docs/documentation/ai-outfitter.md +259 -0
  57. package/docs/documentation/assets/feature-to-pr.svg +70 -0
  58. package/docs/documentation/catalogs.md +9 -1
  59. package/docs/documentation/cli.md +21 -8
  60. package/docs/documentation/containers.md +3 -80
  61. package/docs/documentation/dump-and-bake.md +2 -0
  62. package/docs/documentation/settings.md +5 -0
  63. package/package.json +1 -1
  64. package/src/schemas/settings.schema.json +5 -0
  65. package/src/schemas/workflow.schema.json +81 -0
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://ai-outfitter.com/schemas/workflow.schema.json",
4
+ "title": "AI Outfitter workflow",
5
+ "type": "object",
6
+ "additionalProperties": true,
7
+ "required": ["version", "id", "title", "description", "actors", "nodes"],
8
+ "properties": {
9
+ "version": { "const": 1 },
10
+ "id": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
11
+ "title": { "type": "string", "minLength": 1 },
12
+ "description": { "type": "string", "minLength": 1 },
13
+ "status": { "type": "string" },
14
+ "actors": {
15
+ "type": "object",
16
+ "additionalProperties": {
17
+ "type": "object",
18
+ "additionalProperties": true,
19
+ "required": ["kind"],
20
+ "properties": {
21
+ "kind": { "enum": ["human", "agent", "tool", "system"] },
22
+ "profile": { "type": "string" },
23
+ "skills": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
24
+ },
25
+ "allOf": [
26
+ {
27
+ "if": { "properties": { "kind": { "const": "agent" } }, "required": ["kind"] },
28
+ "then": { "required": ["profile"] }
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ "environments": { "type": "object" },
34
+ "integrations": {
35
+ "type": "object",
36
+ "additionalProperties": {
37
+ "type": "object",
38
+ "additionalProperties": true,
39
+ "properties": {
40
+ "kind": { "type": "string" },
41
+ "server": { "type": "string" },
42
+ "tools": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
43
+ "repository": { "type": "string" },
44
+ "ref": { "type": "string" },
45
+ "path": { "type": "string" },
46
+ "sha256": { "type": "string" }
47
+ }
48
+ }
49
+ },
50
+ "checks": { "type": "object" },
51
+ "triggers": { "type": "array", "items": { "type": "object" } },
52
+ "feedback": { "type": "array", "items": { "type": "object", "required": ["from", "to"] } },
53
+ "nodes": {
54
+ "type": "array",
55
+ "minItems": 1,
56
+ "items": {
57
+ "type": "object",
58
+ "additionalProperties": true,
59
+ "required": ["id", "description"],
60
+ "properties": {
61
+ "id": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
62
+ "description": { "type": "string", "minLength": 1 },
63
+ "action": { "type": "string" },
64
+ "workflow": { "type": "string" },
65
+ "actor": { "type": "string" },
66
+ "environment": { "type": "string" },
67
+ "needs": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
68
+ "skill": { "type": "string" },
69
+ "skills": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
70
+ "prompt_fragment": { "type": "string" },
71
+ "prompt_fragments": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
72
+ "uses": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
73
+ },
74
+ "oneOf": [
75
+ { "required": ["action"], "not": { "required": ["workflow"] } },
76
+ { "required": ["workflow"], "not": { "required": ["action"] } }
77
+ ]
78
+ }
79
+ }
80
+ }
81
+ }