prelude-context 1.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/README.md +354 -0
- package/dist/bin/prelude.d.ts +3 -0
- package/dist/bin/prelude.d.ts.map +1 -0
- package/dist/bin/prelude.js +35 -0
- package/dist/bin/prelude.js.map +1 -0
- package/dist/src/commands/decision.d.ts +3 -0
- package/dist/src/commands/decision.d.ts.map +1 -0
- package/dist/src/commands/decision.js +74 -0
- package/dist/src/commands/decision.js.map +1 -0
- package/dist/src/commands/export.d.ts +3 -0
- package/dist/src/commands/export.d.ts.map +1 -0
- package/dist/src/commands/export.js +132 -0
- package/dist/src/commands/export.js.map +1 -0
- package/dist/src/commands/init.d.ts +3 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +80 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/share.d.ts +3 -0
- package/dist/src/commands/share.d.ts.map +1 -0
- package/dist/src/commands/share.js +133 -0
- package/dist/src/commands/share.js.map +1 -0
- package/dist/src/commands/watch.d.ts +3 -0
- package/dist/src/commands/watch.d.ts.map +1 -0
- package/dist/src/commands/watch.js +58 -0
- package/dist/src/commands/watch.js.map +1 -0
- package/dist/src/constants.d.ts +16 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +49 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/core/exporter.d.ts +4 -0
- package/dist/src/core/exporter.d.ts.map +1 -0
- package/dist/src/core/exporter.js +196 -0
- package/dist/src/core/exporter.js.map +1 -0
- package/dist/src/core/infer.d.ts +6 -0
- package/dist/src/core/infer.d.ts.map +1 -0
- package/dist/src/core/infer.js +900 -0
- package/dist/src/core/infer.js.map +1 -0
- package/dist/src/core/updater.d.ts +8 -0
- package/dist/src/core/updater.d.ts.map +1 -0
- package/dist/src/core/updater.js +120 -0
- package/dist/src/core/updater.js.map +1 -0
- package/dist/src/core/watcher.d.ts +15 -0
- package/dist/src/core/watcher.d.ts.map +1 -0
- package/dist/src/core/watcher.js +119 -0
- package/dist/src/core/watcher.js.map +1 -0
- package/dist/src/schema/architecture.d.ts +75 -0
- package/dist/src/schema/architecture.d.ts.map +1 -0
- package/dist/src/schema/architecture.js +24 -0
- package/dist/src/schema/architecture.js.map +1 -0
- package/dist/src/schema/constraints.d.ts +146 -0
- package/dist/src/schema/constraints.d.ts.map +1 -0
- package/dist/src/schema/constraints.js +39 -0
- package/dist/src/schema/constraints.js.map +1 -0
- package/dist/src/schema/decisions.d.ts +122 -0
- package/dist/src/schema/decisions.d.ts.map +1 -0
- package/dist/src/schema/decisions.js +23 -0
- package/dist/src/schema/decisions.js.map +1 -0
- package/dist/src/schema/index.d.ts +7 -0
- package/dist/src/schema/index.d.ts.map +1 -0
- package/dist/src/schema/index.js +7 -0
- package/dist/src/schema/index.js.map +1 -0
- package/dist/src/schema/project.d.ts +69 -0
- package/dist/src/schema/project.d.ts.map +1 -0
- package/dist/src/schema/project.js +24 -0
- package/dist/src/schema/project.js.map +1 -0
- package/dist/src/schema/session.d.ts +210 -0
- package/dist/src/schema/session.d.ts.map +1 -0
- package/dist/src/schema/session.js +26 -0
- package/dist/src/schema/session.js.map +1 -0
- package/dist/src/schema/stack.d.ts +58 -0
- package/dist/src/schema/stack.d.ts.map +1 -0
- package/dist/src/schema/stack.js +23 -0
- package/dist/src/schema/stack.js.map +1 -0
- package/dist/src/utils/fs.d.ts +10 -0
- package/dist/src/utils/fs.d.ts.map +1 -0
- package/dist/src/utils/fs.js +63 -0
- package/dist/src/utils/fs.js.map +1 -0
- package/dist/src/utils/log.d.ts +20 -0
- package/dist/src/utils/log.d.ts.map +1 -0
- package/dist/src/utils/log.js +45 -0
- package/dist/src/utils/log.js.map +1 -0
- package/dist/src/utils/time.d.ts +5 -0
- package/dist/src/utils/time.d.ts.map +1 -0
- package/dist/src/utils/time.js +33 -0
- package/dist/src/utils/time.js.map +1 -0
- package/package.json +64 -0
- package/schemas/architecture.schema.json +98 -0
- package/schemas/constraints.schema.json +161 -0
- package/schemas/decisions.schema.json +95 -0
- package/schemas/export.schema.json +46 -0
- package/schemas/project.schema.json +102 -0
- package/schemas/session.schema.json +101 -0
- package/schemas/stack.schema.json +103 -0
- package/spec.md +717 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://adjective.us/prelude/schemas/v1/export.schema.json",
|
|
4
|
+
"title": "Prelude Export Schema",
|
|
5
|
+
"description": "Schema for Prelude export.json file containing aggregated context",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["generatedAt"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "URI of the JSON Schema for this file",
|
|
12
|
+
"format": "uri"
|
|
13
|
+
},
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Semantic version of Prelude format",
|
|
17
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
18
|
+
},
|
|
19
|
+
"generatedAt": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "ISO 8601 datetime when export was generated",
|
|
22
|
+
"format": "date-time"
|
|
23
|
+
},
|
|
24
|
+
"project": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Project metadata from project.json"
|
|
27
|
+
},
|
|
28
|
+
"stack": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"description": "Stack information from stack.json"
|
|
31
|
+
},
|
|
32
|
+
"architecture": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"description": "Architecture information from architecture.json"
|
|
35
|
+
},
|
|
36
|
+
"constraints": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"description": "Constraints from constraints.json"
|
|
39
|
+
},
|
|
40
|
+
"decisions": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "Decisions from decisions.json"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": true
|
|
46
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://adjective.us/prelude/schemas/v1/project.schema.json",
|
|
4
|
+
"title": "Prelude Project Schema",
|
|
5
|
+
"description": "Schema for Prelude project.json file containing project metadata",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name", "description", "createdAt", "updatedAt"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "URI of the JSON Schema for this file",
|
|
12
|
+
"format": "uri"
|
|
13
|
+
},
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Semantic version of Prelude format",
|
|
17
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Project name",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Brief project description"
|
|
27
|
+
},
|
|
28
|
+
"createdAt": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "ISO 8601 datetime when project was created",
|
|
31
|
+
"format": "date-time"
|
|
32
|
+
},
|
|
33
|
+
"updatedAt": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "ISO 8601 datetime when project was last updated",
|
|
36
|
+
"format": "date-time"
|
|
37
|
+
},
|
|
38
|
+
"projectVersion": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Project version"
|
|
41
|
+
},
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Repository URL",
|
|
45
|
+
"format": "uri"
|
|
46
|
+
},
|
|
47
|
+
"license": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "License identifier (e.g., MIT, Apache-2.0)"
|
|
50
|
+
},
|
|
51
|
+
"homepage": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Project homepage URL",
|
|
54
|
+
"format": "uri"
|
|
55
|
+
},
|
|
56
|
+
"team": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"description": "Team members",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["name"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"name": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Team member name"
|
|
66
|
+
},
|
|
67
|
+
"role": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Team member role"
|
|
70
|
+
},
|
|
71
|
+
"email": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Team member email",
|
|
74
|
+
"format": "email"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"outputs": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"description": "Project deliverables",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"goals": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"description": "Project objectives",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"constraints": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"description": "High-level project constraints",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"additionalProperties": true
|
|
102
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://adjective.us/prelude/schemas/v1/session.schema.json",
|
|
4
|
+
"title": "Prelude Session Schema",
|
|
5
|
+
"description": "Schema for Prelude session.json file containing AI/LLM interaction logs",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["sessions"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "URI of the JSON Schema for this file",
|
|
12
|
+
"format": "uri"
|
|
13
|
+
},
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Semantic version of Prelude format",
|
|
17
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
18
|
+
},
|
|
19
|
+
"sessions": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "List of AI interaction sessions",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["sessionId", "startedAt", "entries"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"sessionId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Unique session identifier"
|
|
29
|
+
},
|
|
30
|
+
"startedAt": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "ISO 8601 datetime when session started",
|
|
33
|
+
"format": "date-time"
|
|
34
|
+
},
|
|
35
|
+
"endedAt": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "ISO 8601 datetime when session ended",
|
|
38
|
+
"format": "date-time"
|
|
39
|
+
},
|
|
40
|
+
"entries": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"description": "Session interaction entries",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": ["id", "timestamp", "type", "summary"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"id": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Unique entry identifier"
|
|
50
|
+
},
|
|
51
|
+
"timestamp": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "ISO 8601 datetime of entry",
|
|
54
|
+
"format": "date-time"
|
|
55
|
+
},
|
|
56
|
+
"type": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": ["prompt", "decision", "refactor", "debug", "planning", "review"],
|
|
59
|
+
"description": "Type of interaction"
|
|
60
|
+
},
|
|
61
|
+
"summary": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Brief summary of interaction",
|
|
64
|
+
"minLength": 1
|
|
65
|
+
},
|
|
66
|
+
"input": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "Input prompt or query"
|
|
69
|
+
},
|
|
70
|
+
"output": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Output or response"
|
|
73
|
+
},
|
|
74
|
+
"filesAffected": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"description": "Files affected by this interaction",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"outcome": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": ["success", "partial", "failed", "pending"],
|
|
84
|
+
"description": "Outcome of interaction"
|
|
85
|
+
},
|
|
86
|
+
"tags": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"description": "Tags for categorization",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": true
|
|
101
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://adjective.us/prelude/schemas/v1/stack.schema.json",
|
|
4
|
+
"title": "Prelude Stack Schema",
|
|
5
|
+
"description": "Schema for Prelude stack.json file containing technology stack information",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["language"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "URI of the JSON Schema for this file",
|
|
12
|
+
"format": "uri"
|
|
13
|
+
},
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Semantic version of Prelude format",
|
|
17
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
18
|
+
},
|
|
19
|
+
"language": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Primary programming language"
|
|
22
|
+
},
|
|
23
|
+
"runtime": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Runtime environment (e.g., Node.js 20.x)"
|
|
26
|
+
},
|
|
27
|
+
"packageManager": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["npm", "pnpm", "yarn", "bun", "pip", "poetry", "cargo", "go"],
|
|
30
|
+
"description": "Package manager used"
|
|
31
|
+
},
|
|
32
|
+
"framework": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Primary framework"
|
|
35
|
+
},
|
|
36
|
+
"frameworks": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"description": "All frameworks used",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"description": "Production dependencies",
|
|
46
|
+
"additionalProperties": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"description": "Development dependencies",
|
|
53
|
+
"additionalProperties": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"buildTools": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"description": "Build and bundler tools",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"testingFrameworks": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"description": "Testing frameworks",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"styling": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"description": "Styling solutions",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"database": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Database(s) used"
|
|
81
|
+
},
|
|
82
|
+
"orm": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "ORM or query builder"
|
|
85
|
+
},
|
|
86
|
+
"stateManagement": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "State management solution"
|
|
89
|
+
},
|
|
90
|
+
"deployment": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Deployment platform"
|
|
93
|
+
},
|
|
94
|
+
"cicd": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"description": "CI/CD tools",
|
|
97
|
+
"items": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"additionalProperties": true
|
|
103
|
+
}
|