@pathmode/cli 2.0.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/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/index.js +17693 -0
- package/dist/schema.json +112 -0
- package/package.json +47 -0
package/dist/schema.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://intentspec.org/schema.json",
|
|
4
|
+
"title": "IntentSpec",
|
|
5
|
+
"description": "A structured contract for AI Agent intent definition.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"status",
|
|
10
|
+
"objective",
|
|
11
|
+
"outcomes"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Unique identifier for the intent specification."
|
|
17
|
+
},
|
|
18
|
+
"status": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"draft",
|
|
22
|
+
"validated",
|
|
23
|
+
"approved",
|
|
24
|
+
"shipped",
|
|
25
|
+
"verified"
|
|
26
|
+
],
|
|
27
|
+
"default": "draft"
|
|
28
|
+
},
|
|
29
|
+
"version": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"default": 1
|
|
32
|
+
},
|
|
33
|
+
"objective": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The core problem to solve and why it matters."
|
|
36
|
+
},
|
|
37
|
+
"problemSeverity": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"low",
|
|
41
|
+
"medium",
|
|
42
|
+
"high",
|
|
43
|
+
"critical"
|
|
44
|
+
],
|
|
45
|
+
"description": "Priority or severity of the problem."
|
|
46
|
+
},
|
|
47
|
+
"userGoal": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "The specific goal the user is trying to achieve."
|
|
50
|
+
},
|
|
51
|
+
"outcomes": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"description": "Observable state changes indicating success."
|
|
57
|
+
},
|
|
58
|
+
"healthMetrics": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"description": "metrics that must not degrade."
|
|
64
|
+
},
|
|
65
|
+
"constraints": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"description": "Hard boundaries the agent must respect."
|
|
71
|
+
},
|
|
72
|
+
"edgeCases": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"scenario": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"expectedBehavior": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"scenario",
|
|
89
|
+
"expectedBehavior"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"strategicAlignment": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"high",
|
|
97
|
+
"medium",
|
|
98
|
+
"low",
|
|
99
|
+
"deviation"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"alignmentNotes": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"createdAt": {
|
|
106
|
+
"type": "integer"
|
|
107
|
+
},
|
|
108
|
+
"updatedAt": {
|
|
109
|
+
"type": "integer"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pathmode/cli",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "The Intent Layer CLI — Spec-Driven Development with Pathmode",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"pathmode": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
+
"build": "ncc build src/index.ts -o dist && cp src/schema.json dist/",
|
|
15
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"pathmode",
|
|
19
|
+
"intentspec",
|
|
20
|
+
"intent-engineering",
|
|
21
|
+
"ai-agents",
|
|
22
|
+
"spec-driven-development",
|
|
23
|
+
"cli"
|
|
24
|
+
],
|
|
25
|
+
"author": "Pathmode",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"type": "commonjs",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/pathmode/cli.git"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://pathmode.io",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/fs-extra": "^11.0.4",
|
|
35
|
+
"@types/node": "^25.1.0",
|
|
36
|
+
"@vercel/ncc": "^0.38.4",
|
|
37
|
+
"ajv": "^8.17.1",
|
|
38
|
+
"ajv-formats": "^3.0.1",
|
|
39
|
+
"chalk": "^5.6.2",
|
|
40
|
+
"commander": "^14.0.3",
|
|
41
|
+
"ts-node": "^10.9.2",
|
|
42
|
+
"typescript": "^5.9.3"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"gray-matter": "^4.0.3"
|
|
46
|
+
}
|
|
47
|
+
}
|