@crewx/sdk 0.8.0-rc.91 → 0.8.1-rc.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 +584 -584
- package/dist/esm/index.js +38 -37
- package/dist/facade/Crewx.d.ts +3 -1
- package/dist/index.browser.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +38 -37
- package/dist/internal/windows-spawn.d.ts +39 -0
- package/dist/paths.d.ts +4 -0
- package/dist/types/index.d.ts +469 -0
- package/package.json +1 -1
- package/src/schemas/hooks.schema.json +59 -59
- package/templates/agents/default.yaml +500 -490
- package/templates/agents/minimal.yaml +16 -16
- package/templates/documents/crewx-manual.md +2278 -0
- package/templates/documents/crewx-quick-guide.md +147 -0
package/package.json
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "https://crewx.dev/schemas/hooks",
|
|
3
|
-
"type": "array",
|
|
4
|
-
"items": {
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["name"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"name": { "type": "string" },
|
|
9
|
-
"provider": {
|
|
10
|
-
"oneOf": [
|
|
11
|
-
{ "enum": ["claude", "codex", "gemini", "copilot", "opencode"] },
|
|
12
|
-
{ "type": "array", "items": { "enum": ["claude", "codex", "gemini", "copilot", "opencode"] } }
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"team": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
|
16
|
-
"role": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
|
17
|
-
"tag": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
|
18
|
-
"agents": { "type": "array", "items": { "type": "string" } },
|
|
19
|
-
"event": { "enum": ["PreToolUse"] },
|
|
20
|
-
"config": { "type": "object" },
|
|
21
|
-
"deny": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"required": ["reason"],
|
|
24
|
-
"properties": {
|
|
25
|
-
"when": { "type": "array", "items": { "type": "string" } },
|
|
26
|
-
"pattern": { "type": "string" },
|
|
27
|
-
"regex": { "type": "string" },
|
|
28
|
-
"pathPattern": { "type": "string" },
|
|
29
|
-
"pathSizeMin": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
30
|
-
"pathSizeMax": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
31
|
-
"reason": { "type": "string" }
|
|
32
|
-
},
|
|
33
|
-
"additionalProperties": false
|
|
34
|
-
},
|
|
35
|
-
"guide": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"required": ["say"],
|
|
38
|
-
"properties": {
|
|
39
|
-
"when": { "type": "array", "items": { "type": "string" } },
|
|
40
|
-
"pattern": { "type": "string" },
|
|
41
|
-
"regex": { "type": "string" },
|
|
42
|
-
"pathPattern": { "type": "string" },
|
|
43
|
-
"pathSizeMin": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
44
|
-
"pathSizeMax": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
45
|
-
"whenInputRegex": { "type": "string" },
|
|
46
|
-
"say": { "type": "string" },
|
|
47
|
-
"once": { "type": "boolean" }
|
|
48
|
-
},
|
|
49
|
-
"additionalProperties": false
|
|
50
|
-
},
|
|
51
|
-
"plugin": { "type": "string" }
|
|
52
|
-
},
|
|
53
|
-
"oneOf": [
|
|
54
|
-
{ "required": ["deny"] },
|
|
55
|
-
{ "required": ["guide"] },
|
|
56
|
-
{ "required": ["plugin"] }
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://crewx.dev/schemas/hooks",
|
|
3
|
+
"type": "array",
|
|
4
|
+
"items": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["name"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": { "type": "string" },
|
|
9
|
+
"provider": {
|
|
10
|
+
"oneOf": [
|
|
11
|
+
{ "enum": ["claude", "codex", "gemini", "copilot", "opencode"] },
|
|
12
|
+
{ "type": "array", "items": { "enum": ["claude", "codex", "gemini", "copilot", "opencode"] } }
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"team": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
|
16
|
+
"role": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
|
17
|
+
"tag": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] },
|
|
18
|
+
"agents": { "type": "array", "items": { "type": "string" } },
|
|
19
|
+
"event": { "enum": ["PreToolUse"] },
|
|
20
|
+
"config": { "type": "object" },
|
|
21
|
+
"deny": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["reason"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"when": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"pattern": { "type": "string" },
|
|
27
|
+
"regex": { "type": "string" },
|
|
28
|
+
"pathPattern": { "type": "string" },
|
|
29
|
+
"pathSizeMin": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
30
|
+
"pathSizeMax": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
31
|
+
"reason": { "type": "string" }
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
"guide": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": ["say"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"when": { "type": "array", "items": { "type": "string" } },
|
|
40
|
+
"pattern": { "type": "string" },
|
|
41
|
+
"regex": { "type": "string" },
|
|
42
|
+
"pathPattern": { "type": "string" },
|
|
43
|
+
"pathSizeMin": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
44
|
+
"pathSizeMax": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
45
|
+
"whenInputRegex": { "type": "string" },
|
|
46
|
+
"say": { "type": "string" },
|
|
47
|
+
"once": { "type": "boolean" }
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
},
|
|
51
|
+
"plugin": { "type": "string" }
|
|
52
|
+
},
|
|
53
|
+
"oneOf": [
|
|
54
|
+
{ "required": ["deny"] },
|
|
55
|
+
{ "required": ["guide"] },
|
|
56
|
+
{ "required": ["plugin"] }
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|