@nyxa/nyx-agent 0.1.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.
- package/README.md +15 -0
- package/dist/cli.js +35 -0
- package/dist/commands/init.js +265 -0
- package/dist/commands/run.js +8 -0
- package/dist/config/loadConfig.js +8 -0
- package/dist/config/schema.js +97 -0
- package/dist/runtime/buildPrompt.js +57 -0
- package/dist/runtime/effectiveConfig.js +14 -0
- package/dist/runtime/files.js +25 -0
- package/dist/runtime/git.js +24 -0
- package/dist/runtime/parseResult.js +38 -0
- package/dist/runtime/paths.js +19 -0
- package/dist/runtime/renderTemplate.js +28 -0
- package/dist/runtime/runPhase.js +244 -0
- package/dist/runtime/runWorkflow.js +158 -0
- package/dist/runtime/time.js +3 -0
- package/dist/runtime/validateResult.js +15 -0
- package/docs/nyxagent-v0-spec.md +488 -0
- package/package.json +37 -0
- package/templates/default/prompts/closure.md +11 -0
- package/templates/default/prompts/execution.md +11 -0
- package/templates/default/prompts/repair-result.md +29 -0
- package/templates/default/prompts/review.md +18 -0
- package/templates/default/prompts/selection.md +19 -0
- package/templates/default/schemas/review.schema.json +60 -0
- package/templates/default/schemas/selection.schema.json +74 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": ["outcome"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"outcome": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": ["selected", "no_work"]
|
|
9
|
+
},
|
|
10
|
+
"work_item": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["key", "title", "source"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"key": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1
|
|
17
|
+
},
|
|
18
|
+
"title": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
},
|
|
22
|
+
"source": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["type", "locator"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"type": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1
|
|
29
|
+
},
|
|
30
|
+
"locator": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": true
|
|
36
|
+
},
|
|
37
|
+
"url": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": true
|
|
42
|
+
},
|
|
43
|
+
"reason": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"allOf": [
|
|
48
|
+
{
|
|
49
|
+
"if": {
|
|
50
|
+
"properties": {
|
|
51
|
+
"outcome": {
|
|
52
|
+
"const": "selected"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"then": {
|
|
57
|
+
"required": ["work_item"]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"if": {
|
|
62
|
+
"properties": {
|
|
63
|
+
"outcome": {
|
|
64
|
+
"const": "no_work"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"then": {
|
|
69
|
+
"required": ["reason"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"additionalProperties": true
|
|
74
|
+
}
|