@minhpnq1807/contextos 0.5.10 → 0.5.11
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/CHANGELOG.md +4 -0
- package/README.md +6 -0
- package/package.json +1 -1
- package/plugins/ctx/lib/workflow-discoverer.js +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.11
|
|
4
|
+
|
|
5
|
+
- Adds Antigravity workflow discovery roots under `.gemini/workflows`, `.gemini/antigravity/workflows`, and `.gemini/antigravity-cli/workflows`.
|
|
6
|
+
|
|
3
7
|
## 0.5.10
|
|
4
8
|
|
|
5
9
|
- Adds workflow discovery for `.claude/workflows/`, `.codex/workflows/`, `~/.claude/workflows/`, and `~/.codex/workflows/`.
|
package/README.md
CHANGED
|
@@ -227,8 +227,14 @@ It scans project workflows first, then global workflows:
|
|
|
227
227
|
```text
|
|
228
228
|
.claude/workflows/
|
|
229
229
|
.codex/workflows/
|
|
230
|
+
.gemini/workflows/
|
|
231
|
+
.gemini/antigravity/workflows/
|
|
232
|
+
.gemini/antigravity-cli/workflows/
|
|
230
233
|
~/.claude/workflows/
|
|
231
234
|
~/.codex/workflows/
|
|
235
|
+
~/.gemini/workflows/
|
|
236
|
+
~/.gemini/antigravity/workflows/
|
|
237
|
+
~/.gemini/antigravity-cli/workflows/
|
|
232
238
|
```
|
|
233
239
|
|
|
234
240
|
Workflow files do not need YAML frontmatter. ContextOS reads the top `#` heading, section headings, and referenced agent names such as `planner`, `tester`, `code-reviewer`, and `docs-manager`, then warms semantic embeddings. Prompt hooks inject a `Suggested workflow for this task` section only when a workflow is relevant enough.
|
package/package.json
CHANGED
|
@@ -31,14 +31,21 @@ export function workflowSearchRoots({ cwd = process.cwd(), home = os.homedir() }
|
|
|
31
31
|
return [
|
|
32
32
|
path.join(cwd, ".claude", "workflows"),
|
|
33
33
|
path.join(cwd, ".codex", "workflows"),
|
|
34
|
+
path.join(cwd, ".gemini", "workflows"),
|
|
35
|
+
path.join(cwd, ".gemini", "antigravity", "workflows"),
|
|
36
|
+
path.join(cwd, ".gemini", "antigravity-cli", "workflows"),
|
|
34
37
|
path.join(home, ".claude", "workflows"),
|
|
35
|
-
path.join(home, ".codex", "workflows")
|
|
38
|
+
path.join(home, ".codex", "workflows"),
|
|
39
|
+
path.join(home, ".gemini", "workflows"),
|
|
40
|
+
path.join(home, ".gemini", "antigravity", "workflows"),
|
|
41
|
+
path.join(home, ".gemini", "antigravity-cli", "workflows")
|
|
36
42
|
];
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
export function scanWorkflows({ cwd = process.cwd(), roots = workflowSearchRoots({ cwd }) } = {}) {
|
|
40
46
|
const workflows = [];
|
|
41
47
|
const seen = new Set();
|
|
48
|
+
const seenNames = new Set();
|
|
42
49
|
for (const root of roots) {
|
|
43
50
|
let entries = [];
|
|
44
51
|
try {
|
|
@@ -53,6 +60,8 @@ export function scanWorkflows({ cwd = process.cwd(), roots = workflowSearchRoots
|
|
|
53
60
|
if (seen.has(realPath)) continue;
|
|
54
61
|
seen.add(realPath);
|
|
55
62
|
const workflow = parseWorkflowFile(filePath, { cwd, root });
|
|
63
|
+
if (workflow?.name && seenNames.has(workflow.name)) continue;
|
|
64
|
+
if (workflow?.name) seenNames.add(workflow.name);
|
|
56
65
|
if (workflow) workflows.push(workflow);
|
|
57
66
|
}
|
|
58
67
|
}
|