@pennixrv/trellis 0.7.2-beta.12 → 0.7.2-beta.16
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/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +11 -13
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +23 -10
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +5 -7
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/codebuddy.d.ts +1 -8
- package/dist/configurators/codebuddy.d.ts.map +1 -1
- package/dist/configurators/codebuddy.js +2 -12
- package/dist/configurators/codebuddy.js.map +1 -1
- package/dist/configurators/codex.d.ts +0 -36
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +2 -99
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts +1 -12
- package/dist/configurators/copilot.d.ts.map +1 -1
- package/dist/configurators/copilot.js +2 -20
- package/dist/configurators/copilot.js.map +1 -1
- package/dist/configurators/cursor.d.ts +1 -8
- package/dist/configurators/cursor.d.ts.map +1 -1
- package/dist/configurators/cursor.js +2 -12
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/droid.d.ts +1 -8
- package/dist/configurators/droid.d.ts.map +1 -1
- package/dist/configurators/droid.js +2 -12
- package/dist/configurators/droid.js.map +1 -1
- package/dist/configurators/dsh.d.ts +1 -21
- package/dist/configurators/dsh.d.ts.map +1 -1
- package/dist/configurators/dsh.js +4 -37
- package/dist/configurators/dsh.js.map +1 -1
- package/dist/configurators/gemini.d.ts +1 -16
- package/dist/configurators/gemini.d.ts.map +1 -1
- package/dist/configurators/gemini.js +3 -21
- package/dist/configurators/gemini.js.map +1 -1
- package/dist/configurators/grok.d.ts +1 -12
- package/dist/configurators/grok.d.ts.map +1 -1
- package/dist/configurators/grok.js +2 -18
- package/dist/configurators/grok.js.map +1 -1
- package/dist/configurators/kimi.d.ts +1 -21
- package/dist/configurators/kimi.d.ts.map +1 -1
- package/dist/configurators/kimi.js +2 -38
- package/dist/configurators/kimi.js.map +1 -1
- package/dist/configurators/kiro.d.ts +1 -9
- package/dist/configurators/kiro.d.ts.map +1 -1
- package/dist/configurators/kiro.js +1 -9
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/omp.d.ts.map +1 -1
- package/dist/configurators/omp.js +1 -5
- package/dist/configurators/omp.js.map +1 -1
- package/dist/configurators/pi.d.ts.map +1 -1
- package/dist/configurators/pi.js +2 -5
- package/dist/configurators/pi.js.map +1 -1
- package/dist/configurators/qoder.d.ts +1 -10
- package/dist/configurators/qoder.d.ts.map +1 -1
- package/dist/configurators/qoder.js +3 -15
- package/dist/configurators/qoder.js.map +1 -1
- package/dist/configurators/reasonix.d.ts +1 -12
- package/dist/configurators/reasonix.d.ts.map +1 -1
- package/dist/configurators/reasonix.js +3 -22
- package/dist/configurators/reasonix.js.map +1 -1
- package/dist/configurators/shared.d.ts +1 -24
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +5 -184
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.d.ts +1 -20
- package/dist/configurators/snow.d.ts.map +1 -1
- package/dist/configurators/snow.js +2 -25
- package/dist/configurators/snow.js.map +1 -1
- package/dist/configurators/trae.d.ts +1 -14
- package/dist/configurators/trae.d.ts.map +1 -1
- package/dist/configurators/trae.js +3 -19
- package/dist/configurators/trae.js.map +1 -1
- package/dist/configurators/zcode.d.ts +1 -13
- package/dist/configurators/zcode.d.ts.map +1 -1
- package/dist/configurators/zcode.js +2 -18
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
- package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
- package/dist/migrations/retired-native-paths.d.ts +109 -0
- package/dist/migrations/retired-native-paths.d.ts.map +1 -0
- package/dist/migrations/retired-native-paths.js +263 -0
- package/dist/migrations/retired-native-paths.js.map +1 -0
- package/dist/templates/claude/index.d.ts +1 -16
- package/dist/templates/claude/index.d.ts.map +1 -1
- package/dist/templates/claude/index.js +5 -32
- package/dist/templates/claude/index.js.map +1 -1
- package/dist/templates/claude/settings.json +0 -22
- package/dist/templates/codebuddy/index.d.ts +2 -3
- package/dist/templates/codebuddy/index.d.ts.map +1 -1
- package/dist/templates/codebuddy/index.js +2 -3
- package/dist/templates/codebuddy/index.js.map +1 -1
- package/dist/templates/codebuddy/settings.json +0 -10
- package/dist/templates/codex/config.toml +2 -19
- package/dist/templates/codex/hooks/session-start.py +1 -1
- package/dist/templates/codex/hooks.json +0 -12
- package/dist/templates/codex/index.d.ts +0 -5
- package/dist/templates/codex/index.d.ts.map +1 -1
- package/dist/templates/codex/index.js +0 -13
- package/dist/templates/codex/index.js.map +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/copilot/hooks/session-start.py +1 -1
- package/dist/templates/cursor/hooks.json +0 -7
- package/dist/templates/cursor/index.d.ts +1 -11
- package/dist/templates/cursor/index.d.ts.map +1 -1
- package/dist/templates/cursor/index.js +2 -10
- package/dist/templates/cursor/index.js.map +1 -1
- package/dist/templates/droid/index.d.ts +2 -3
- package/dist/templates/droid/index.d.ts.map +1 -1
- package/dist/templates/droid/index.js +2 -3
- package/dist/templates/droid/index.js.map +1 -1
- package/dist/templates/droid/settings.json +0 -10
- package/dist/templates/dsh/DSH.md +2 -33
- package/dist/templates/dsh/index.d.ts +1 -19
- package/dist/templates/dsh/index.d.ts.map +1 -1
- package/dist/templates/dsh/index.js +2 -21
- package/dist/templates/dsh/index.js.map +1 -1
- package/dist/templates/gemini/index.d.ts +1 -11
- package/dist/templates/gemini/index.d.ts.map +1 -1
- package/dist/templates/gemini/index.js +2 -10
- package/dist/templates/gemini/index.js.map +1 -1
- package/dist/templates/kiro/index.d.ts +1 -13
- package/dist/templates/kiro/index.d.ts.map +1 -1
- package/dist/templates/kiro/index.js +1 -13
- package/dist/templates/kiro/index.js.map +1 -1
- package/dist/templates/markdown/agents.md +6 -3
- package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
- package/dist/templates/omp/index.d.ts +0 -2
- package/dist/templates/omp/index.d.ts.map +1 -1
- package/dist/templates/omp/index.js +1 -4
- package/dist/templates/omp/index.js.map +1 -1
- package/dist/templates/opencode/lib/trellis-context.js +12 -321
- package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
- package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
- package/dist/templates/opencode/plugins/session-start.js +2 -6
- package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
- package/dist/templates/pi/index.d.ts +1 -2
- package/dist/templates/pi/index.d.ts.map +1 -1
- package/dist/templates/pi/index.js +2 -5
- package/dist/templates/pi/index.js.map +1 -1
- package/dist/templates/qoder/index.d.ts +2 -3
- package/dist/templates/qoder/index.d.ts.map +1 -1
- package/dist/templates/qoder/index.js +2 -3
- package/dist/templates/qoder/index.js.map +1 -1
- package/dist/templates/shared-hooks/index.d.ts +2 -56
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +3 -70
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
- package/dist/templates/shared-hooks/session-start.py +1 -1
- package/dist/templates/snow/SNOW.md +6 -18
- package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
- package/dist/templates/snow/index.d.ts +2 -21
- package/dist/templates/snow/index.d.ts.map +1 -1
- package/dist/templates/snow/index.js +3 -24
- package/dist/templates/snow/index.js.map +1 -1
- package/dist/templates/template-utils.d.ts +1 -2
- package/dist/templates/template-utils.d.ts.map +1 -1
- package/dist/templates/template-utils.js +1 -11
- package/dist/templates/template-utils.js.map +1 -1
- package/dist/templates/trae/index.d.ts +2 -3
- package/dist/templates/trae/index.d.ts.map +1 -1
- package/dist/templates/trae/index.js +2 -3
- package/dist/templates/trae/index.js.map +1 -1
- package/dist/templates/trellis/config.yaml +7 -36
- package/dist/templates/trellis/scripts/common/config.py +1 -36
- package/dist/templates/trellis/scripts/common/git_context.py +3 -4
- package/dist/templates/trellis/scripts/common/task_context.py +3 -3
- package/dist/templates/trellis/scripts/common/task_store.py +1 -77
- package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
- package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
- package/dist/templates/trellis/scripts/task.py +2 -2
- package/dist/templates/trellis/workflow.md +1 -7
- package/dist/templates/zcode/config.json +0 -10
- package/dist/templates/zcode/index.d.ts +3 -22
- package/dist/templates/zcode/index.d.ts.map +1 -1
- package/dist/templates/zcode/index.js +3 -24
- package/dist/templates/zcode/index.js.map +1 -1
- package/dist/types/ai-tools.d.ts +0 -4
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +4 -109
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/ablation-store.d.ts.map +1 -1
- package/dist/utils/ablation-store.js +24 -0
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts.map +1 -1
- package/dist/utils/asset-backup.js +3 -0
- package/dist/utils/asset-backup.js.map +1 -1
- package/dist/utils/retired-native-assets.d.ts +16 -0
- package/dist/utils/retired-native-assets.d.ts.map +1 -0
- package/dist/utils/retired-native-assets.js +234 -0
- package/dist/utils/retired-native-assets.js.map +1 -0
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +1 -1
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/package.json +2 -2
- package/dist/templates/claude/agents/trellis-check.md +0 -115
- package/dist/templates/claude/agents/trellis-implement.md +0 -110
- package/dist/templates/claude/agents/trellis-research.md +0 -137
- package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
- package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
- package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
- package/dist/templates/codex/agents/trellis-check.toml +0 -56
- package/dist/templates/codex/agents/trellis-implement.toml +0 -37
- package/dist/templates/codex/agents/trellis-research.toml +0 -78
- package/dist/templates/cursor/agents/trellis-check.md +0 -114
- package/dist/templates/cursor/agents/trellis-implement.md +0 -109
- package/dist/templates/cursor/agents/trellis-research.md +0 -136
- package/dist/templates/droid/droids/trellis-check.md +0 -107
- package/dist/templates/droid/droids/trellis-implement.md +0 -102
- package/dist/templates/droid/droids/trellis-research.md +0 -137
- package/dist/templates/dsh/agents/trellis-check.md +0 -99
- package/dist/templates/dsh/agents/trellis-implement.md +0 -106
- package/dist/templates/dsh/agents/trellis-research.md +0 -134
- package/dist/templates/gemini/agents/trellis-check.md +0 -107
- package/dist/templates/gemini/agents/trellis-implement.md +0 -102
- package/dist/templates/gemini/agents/trellis-research.md +0 -136
- package/dist/templates/grok/agents/trellis-check.md +0 -105
- package/dist/templates/grok/agents/trellis-implement.md +0 -116
- package/dist/templates/grok/agents/trellis-research.md +0 -146
- package/dist/templates/grok/index.d.ts +0 -16
- package/dist/templates/grok/index.d.ts.map +0 -1
- package/dist/templates/grok/index.js +0 -19
- package/dist/templates/grok/index.js.map +0 -1
- package/dist/templates/kimi/agents/trellis-check.md +0 -103
- package/dist/templates/kimi/agents/trellis-implement.md +0 -115
- package/dist/templates/kimi/agents/trellis-research.md +0 -144
- package/dist/templates/kimi/index.d.ts +0 -20
- package/dist/templates/kimi/index.d.ts.map +0 -1
- package/dist/templates/kimi/index.js +0 -23
- package/dist/templates/kimi/index.js.map +0 -1
- package/dist/templates/kiro/agents/trellis-check.json +0 -26
- package/dist/templates/kiro/agents/trellis-implement.json +0 -26
- package/dist/templates/kiro/agents/trellis-research.json +0 -30
- package/dist/templates/omp/agents/trellis-check.md +0 -41
- package/dist/templates/omp/agents/trellis-implement.md +0 -45
- package/dist/templates/omp/agents/trellis-research.md +0 -30
- package/dist/templates/opencode/agents/trellis-check.md +0 -122
- package/dist/templates/opencode/agents/trellis-implement.md +0 -118
- package/dist/templates/opencode/agents/trellis-research.md +0 -145
- package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
- package/dist/templates/pi/agents/trellis-check.md +0 -37
- package/dist/templates/pi/agents/trellis-implement.md +0 -42
- package/dist/templates/pi/agents/trellis-research.md +0 -25
- package/dist/templates/qoder/agents/trellis-check.md +0 -108
- package/dist/templates/qoder/agents/trellis-implement.md +0 -103
- package/dist/templates/qoder/agents/trellis-research.md +0 -137
- package/dist/templates/reasonix/agents/trellis-check.md +0 -36
- package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
- package/dist/templates/reasonix/index.d.ts +0 -13
- package/dist/templates/reasonix/index.d.ts.map +0 -1
- package/dist/templates/reasonix/index.js +0 -16
- package/dist/templates/reasonix/index.js.map +0 -1
- package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
- package/dist/templates/snow/agents/trellis-check.md +0 -135
- package/dist/templates/snow/agents/trellis-implement.md +0 -153
- package/dist/templates/snow/agents/trellis-research.md +0 -114
- package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
- package/dist/templates/trae/agents/trellis-check.md +0 -108
- package/dist/templates/trae/agents/trellis-implement.md +0 -103
- package/dist/templates/trae/agents/trellis-research.md +0 -137
- package/dist/templates/zcode/agents/trellis-check.md +0 -109
- package/dist/templates/zcode/agents/trellis-implement.md +0 -111
- package/dist/templates/zcode/agents/trellis-research.md +0 -133
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
3
|
"hooks": {
|
|
4
|
-
"preToolUse": [
|
|
5
|
-
{
|
|
6
|
-
"command": "{{PYTHON_CMD}} .cursor/hooks/inject-subagent-context.py",
|
|
7
|
-
"matcher": "Task|Subagent",
|
|
8
|
-
"timeout": 30
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
4
|
"sessionStart": [
|
|
12
5
|
{
|
|
13
6
|
"command": "{{PYTHON_CMD}} .cursor/hooks/session-start.py",
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor templates
|
|
3
|
-
*
|
|
4
|
-
* Directory structure:
|
|
5
|
-
* cursor/
|
|
6
|
-
* ├── agents/ # Sub-agent definitions
|
|
7
|
-
* └── hooks.json # Hooks configuration
|
|
8
|
-
*/
|
|
9
|
-
import { type AgentTemplate } from "../template-utils.js";
|
|
10
|
-
export type { AgentTemplate };
|
|
11
|
-
export declare const getAllAgents: () => AgentTemplate[];
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
12
2
|
export declare const getHooksConfig: () => string;
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE,eAAO,MAAM,cAAc,QAAO,MAAiC,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor templates
|
|
3
|
-
*
|
|
4
|
-
* Directory structure:
|
|
5
|
-
* cursor/
|
|
6
|
-
* ├── agents/ # Sub-agent definitions
|
|
7
|
-
* └── hooks.json # Hooks configuration
|
|
8
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
9
2
|
import { createTemplateReader } from "../template-utils.js";
|
|
10
|
-
const {
|
|
11
|
-
export const getAllAgents = () => listMdAgents();
|
|
3
|
+
const { getConfig } = createTemplateReader(import.meta.url);
|
|
12
4
|
export const getHooksConfig = () => getConfig("hooks.json");
|
|
13
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAW,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
* ├── droids/ # Multi-agent pipeline droids (agents)
|
|
9
9
|
* └── settings.json # Settings configuration
|
|
10
10
|
*/
|
|
11
|
-
import { type
|
|
12
|
-
export type {
|
|
13
|
-
export declare const getAllDroids: () => AgentTemplate[];
|
|
11
|
+
import { type HookTemplate } from "../template-utils.js";
|
|
12
|
+
export type { HookTemplate };
|
|
14
13
|
export declare const getSettingsTemplate: () => HookTemplate;
|
|
15
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/E,YAAY,EAAE,YAAY,EAAE,CAAC;AAG7B,eAAO,MAAM,mBAAmB,QAAO,YAA6B,CAAC"}
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
* ├── droids/ # Multi-agent pipeline droids (agents)
|
|
9
9
|
* └── settings.json # Settings configuration
|
|
10
10
|
*/
|
|
11
|
-
import { createTemplateReader
|
|
12
|
-
const {
|
|
13
|
-
export const getAllDroids = () => listMdAgents("droids");
|
|
11
|
+
import { createTemplateReader } from "../template-utils.js";
|
|
12
|
+
const { getSettings } = createTemplateReader(import.meta.url);
|
|
14
13
|
export const getSettingsTemplate = () => getSettings();
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAC;AAG/E,MAAM,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAiB,EAAE,CAAC,WAAW,EAAE,CAAC"}
|
|
@@ -33,16 +33,6 @@
|
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"PreToolUse": [
|
|
36
|
-
{
|
|
37
|
-
"matcher": "Task",
|
|
38
|
-
"hooks": [
|
|
39
|
-
{
|
|
40
|
-
"type": "command",
|
|
41
|
-
"command": "{{PYTHON_CMD}} .factory/hooks/inject-subagent-context.py",
|
|
42
|
-
"timeout": 30
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
36
|
{
|
|
47
37
|
"matcher": "Execute|Bash",
|
|
48
38
|
"hooks": [
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
# Trellis on DeepSeek Harness (dsh)
|
|
2
2
|
|
|
3
|
-
dsh
|
|
4
|
-
the project, uses native continuable sub-agents for isolated implementation and
|
|
5
|
-
review roles, and exposes a stable `DSH_SESSION_ID` to every managed shell.
|
|
6
|
-
|
|
7
|
-
| Capability | Without companion plugin | With `dsh-trellis` |
|
|
8
|
-
| --- | --- | --- |
|
|
9
|
-
| Shared and entry skills | Works | Works |
|
|
10
|
-
| Session-scoped active task | Works through verified `DSH_SHELL=1` + `DSH_SESSION_ID`, including nested launches | Managed per-execution identity can forward a distinct child session |
|
|
11
|
-
| Implement/check/research roles | Foreground native sub-agent | Background native sub-agent |
|
|
12
|
-
| Per-turn workflow breadcrumb | Not available | Injected from `workflow.md` |
|
|
13
|
-
| Event-driven child wait | Not available | `trellis_wait` |
|
|
14
|
-
| Utility commands | Not available | `/trellis-status`, `/trellis-finish` |
|
|
3
|
+
dsh discovers project Skills and exposes a stable `DSH_SESSION_ID` to managed shells. The optional companion plugin supplies main-session breadcrumbs; Trellis does not install that plugin.
|
|
15
4
|
|
|
16
5
|
## Quick start
|
|
17
6
|
|
|
@@ -24,26 +13,10 @@ In dsh:
|
|
|
24
13
|
|
|
25
14
|
1. Describe the work in natural language and load `trellis-start` when a
|
|
26
15
|
session needs explicit Trellis bootstrap.
|
|
27
|
-
2.
|
|
28
|
-
`trellis-agent-implement`, and `trellis-agent-check` through DSH's native
|
|
29
|
-
`subagent` tool. Each child loads exactly one matching role skill.
|
|
16
|
+
2. Follow the current task phase and authorized contract. Collaboration uses `trellis teamwork` or `paseo-based-parallelism`.
|
|
30
17
|
3. Use Delivery Review and On-Site Closeout Phase to review and close the task. `trellis-finish-work` records
|
|
31
18
|
session progress separately and does not change task lifecycle state.
|
|
32
19
|
|
|
33
|
-
## Companion plugin fallback contract
|
|
34
|
-
|
|
35
|
-
The Trellis adapter does not install a DSH profile plugin. Before dispatching a
|
|
36
|
-
role, check whether the `trellis_wait` tool is available:
|
|
37
|
-
|
|
38
|
-
- If available, use DSH's default continuable background mode, continue
|
|
39
|
-
independent work, then call `trellis_wait` once per dependent child id and
|
|
40
|
-
consume each native settlement notice before entering the dependent gate.
|
|
41
|
-
- If unavailable, dispatch every child with `run_in_background: false` from the outset
|
|
42
|
-
so the dependent workflow gate cannot overtake it.
|
|
43
|
-
|
|
44
|
-
Never replace either path with shell sleep, polling loops, `job_output`, or
|
|
45
|
-
repeated agent-list polling.
|
|
46
|
-
|
|
47
20
|
## Nested host sessions
|
|
48
21
|
|
|
49
22
|
DSH inherits ordinary environment variables from the process that launches it.
|
|
@@ -62,8 +35,6 @@ from the shell's own session id.
|
|
|
62
35
|
the other Agent Skills writers.
|
|
63
36
|
- `.dsh/skills/trellis-{start,continue,finish-work}/` — DSH-private entry
|
|
64
37
|
skills.
|
|
65
|
-
- `.dsh/skills/trellis-agent-{research,implement,check}/` — child-only role
|
|
66
|
-
skills; implement/check include the pull-based task context prelude.
|
|
67
38
|
- `.dsh/DSH.md` — this operator guide.
|
|
68
39
|
- `.trellis/` — workflow, specs, tasks, workspace journal, and shared scripts.
|
|
69
40
|
|
|
@@ -71,8 +42,6 @@ from the shell's own session id.
|
|
|
71
42
|
|
|
72
43
|
- Generated Python commands use `python3` in source templates and are rendered
|
|
73
44
|
to the detected Windows launcher during `trellis init` / `trellis update`.
|
|
74
|
-
- Role dispatch prompts start with `Active task: <task path>`. This exact task
|
|
75
|
-
path is the child's primary context source; children must not guess globally.
|
|
76
45
|
- Each `dsh --profile headless` invocation creates a fresh DSH session. Do not
|
|
77
46
|
expect an active-task pointer to persist across separate headless calls; keep
|
|
78
47
|
the workflow in one session or explicitly resume its returned session id.
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DeepSeek Harness (dsh) template module.
|
|
3
|
-
*
|
|
4
|
-
* dsh is a class-2 pull-based platform:
|
|
5
|
-
* - Workflow/bundled skills go to the shared `.agents/skills/` root via the
|
|
6
|
-
* neutral resolver (byte-identical to Codex/Gemini/Pi/Kimi writes).
|
|
7
|
-
* - User-invocable entry points (`trellis-start` / `trellis-continue` /
|
|
8
|
-
* `trellis-finish-work`) and Trellis role prompts live under
|
|
9
|
-
* `.dsh/skills/trellis-agent-<role>/SKILL.md`.
|
|
10
|
-
* - Operator guide `.dsh/DSH.md`.
|
|
11
|
-
*
|
|
12
|
-
* dsh has no project-level hooks/settings file Trellis may write and no
|
|
13
|
-
* declarative custom sub-agent definitions, so the Trellis agent prompts ship
|
|
14
|
-
* as skills; the main session dispatches them through the `subagent` tool and
|
|
15
|
-
* trellis-agent-implement / trellis-agent-check get the pull-based prelude.
|
|
16
|
-
*/
|
|
17
|
-
import { type AgentTemplate } from "../template-utils.js";
|
|
18
|
-
/** Source role prompts; the configurator installs collision-free DSH skills. */
|
|
19
|
-
export declare function getAllAgents(): AgentTemplate[];
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
20
2
|
/** Operator guide copied to `.dsh/DSH.md`. */
|
|
21
3
|
export declare function getDshGuide(): string;
|
|
22
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAMpE,8CAA8C;AAC9C,wBAAgB,WAAW,IAAI,MAAM,CAEpC"}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DeepSeek Harness (dsh) template module.
|
|
3
|
-
*
|
|
4
|
-
* dsh is a class-2 pull-based platform:
|
|
5
|
-
* - Workflow/bundled skills go to the shared `.agents/skills/` root via the
|
|
6
|
-
* neutral resolver (byte-identical to Codex/Gemini/Pi/Kimi writes).
|
|
7
|
-
* - User-invocable entry points (`trellis-start` / `trellis-continue` /
|
|
8
|
-
* `trellis-finish-work`) and Trellis role prompts live under
|
|
9
|
-
* `.dsh/skills/trellis-agent-<role>/SKILL.md`.
|
|
10
|
-
* - Operator guide `.dsh/DSH.md`.
|
|
11
|
-
*
|
|
12
|
-
* dsh has no project-level hooks/settings file Trellis may write and no
|
|
13
|
-
* declarative custom sub-agent definitions, so the Trellis agent prompts ship
|
|
14
|
-
* as skills; the main session dispatches them through the `subagent` tool and
|
|
15
|
-
* trellis-agent-implement / trellis-agent-check get the pull-based prelude.
|
|
16
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
17
2
|
import { createTemplateReader } from "../template-utils.js";
|
|
18
|
-
const {
|
|
19
|
-
/** Source role prompts; the configurator installs collision-free DSH skills. */
|
|
20
|
-
export function getAllAgents() {
|
|
21
|
-
return listMdAgents();
|
|
22
|
-
}
|
|
3
|
+
const { readTemplate } = createTemplateReader(import.meta.url);
|
|
23
4
|
/** Operator guide copied to `.dsh/DSH.md`. */
|
|
24
5
|
export function getDshGuide() {
|
|
25
6
|
return readTemplate("DSH.md");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/D,8CAA8C;AAC9C,MAAM,UAAU,WAAW;IACzB,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gemini CLI templates
|
|
3
|
-
*
|
|
4
|
-
* Directory structure:
|
|
5
|
-
* gemini/
|
|
6
|
-
* ├── agents/ # Sub-agent definitions
|
|
7
|
-
* └── settings.json # Settings configuration
|
|
8
|
-
*/
|
|
9
|
-
import { type AgentTemplate } from "../template-utils.js";
|
|
10
|
-
export type { AgentTemplate };
|
|
11
|
-
export declare const getAllAgents: () => AgentTemplate[];
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
12
2
|
export declare const getSettingsTemplate: () => string;
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE,eAAO,MAAM,mBAAmB,QAAO,MAAoC,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gemini CLI templates
|
|
3
|
-
*
|
|
4
|
-
* Directory structure:
|
|
5
|
-
* gemini/
|
|
6
|
-
* ├── agents/ # Sub-agent definitions
|
|
7
|
-
* └── settings.json # Settings configuration
|
|
8
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
9
2
|
import { createTemplateReader } from "../template-utils.js";
|
|
10
|
-
const {
|
|
11
|
-
export const getAllAgents = () => listMdAgents();
|
|
3
|
+
const { getConfig } = createTemplateReader(import.meta.url);
|
|
12
4
|
export const getSettingsTemplate = () => getConfig("settings.json");
|
|
13
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAW,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kiro templates
|
|
3
|
-
*
|
|
4
|
-
* Kiro uses pure JSON agent definitions, not Markdown.
|
|
5
|
-
* CLI agents embed hooks in their JSON (`hooks.agentSpawn`,
|
|
6
|
-
* `hooks.userPromptSubmit`); the IDE surface reads standalone `.kiro.hook`
|
|
7
|
-
* JSON files (`when`/`then` schema).
|
|
8
|
-
*
|
|
9
|
-
* Directory structure:
|
|
10
|
-
* kiro/
|
|
11
|
-
* ├── agents/ # Agent definitions (JSON) — main `trellis` + 3 sub-agents
|
|
12
|
-
* └── hooks/ # IDE `.kiro.hook` definitions (JSON)
|
|
13
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
14
2
|
import { type AgentTemplate } from "../template-utils.js";
|
|
15
3
|
export type { AgentTemplate };
|
|
16
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,CAAC;AAM9B;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aAAa,EAAsB,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,eAAe,EAGqB,CAAC"}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kiro templates
|
|
3
|
-
*
|
|
4
|
-
* Kiro uses pure JSON agent definitions, not Markdown.
|
|
5
|
-
* CLI agents embed hooks in their JSON (`hooks.agentSpawn`,
|
|
6
|
-
* `hooks.userPromptSubmit`); the IDE surface reads standalone `.kiro.hook`
|
|
7
|
-
* JSON files (`when`/`then` schema).
|
|
8
|
-
*
|
|
9
|
-
* Directory structure:
|
|
10
|
-
* kiro/
|
|
11
|
-
* ├── agents/ # Agent definitions (JSON) — main `trellis` + 3 sub-agents
|
|
12
|
-
* └── hooks/ # IDE `.kiro.hook` definitions (JSON)
|
|
13
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
14
2
|
import { createTemplateReader } from "../template-utils.js";
|
|
15
3
|
const { listFiles, readTemplate, listJsonAgents } = createTemplateReader(import.meta.url);
|
|
16
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAsB,MAAM,sBAAsB,CAAC;AAGhF,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,oBAAoB,CACtE,MAAM,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,cAAc,EAAE,CAAC;AASpE;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAsB,EAAE,CACjD,SAAS,CAAC,OAAO,CAAC;KACf,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;KACvC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -21,9 +21,12 @@ This project is managed by Trellis. The working knowledge you need lives under `
|
|
|
21
21
|
|
|
22
22
|
If a Trellis command is available on your platform (e.g. `/trellis:finish-work`, `/trellis:continue`), prefer it over manual steps. Not every platform exposes every command.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
- `.agents/skills/` — reusable Trellis
|
|
26
|
-
- `.
|
|
24
|
+
Project-scoped helpers use these native owners:
|
|
25
|
+
- `.agents/skills/` — reusable Trellis methods
|
|
26
|
+
- `.trellis/agents/` — Teamwork role cards and Paseo node methods
|
|
27
|
+
|
|
28
|
+
The main session owns task decisions and integration. Collaboration uses
|
|
29
|
+
`trellis teamwork` or `paseo-based-parallelism` under the authorized contract.
|
|
27
30
|
|
|
28
31
|
Managed by Trellis. Edits outside this block are preserved; edits inside may be overwritten by a future `trellis update`.
|
|
29
32
|
|
|
@@ -311,23 +311,14 @@ function buildSessionContext(projectRoot: string, contextKey: string | null): st
|
|
|
311
311
|
// Task context — prd.md, info.md, and jsonl-referenced spec/research files
|
|
312
312
|
// ---------------------------------------------------------------------------
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
function taskContextJsonlNames(agentType?: AgentType): string[] {
|
|
317
|
-
if (agentType === "trellis-implement") return ["implement.jsonl"];
|
|
318
|
-
if (agentType === "trellis-check") return ["check.jsonl"];
|
|
319
|
-
if (agentType === "trellis-research") return [];
|
|
320
|
-
return ["implement.jsonl", "check.jsonl"];
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
function taskContextInputPaths(projectRoot: string, taskDir: string, agentType?: AgentType): string[] {
|
|
314
|
+
function taskContextInputPaths(projectRoot: string, taskDir: string): string[] {
|
|
324
315
|
const trustedRoots = resolveTrustedRoots(projectRoot);
|
|
325
316
|
const paths = new Set<string>([
|
|
326
317
|
join(projectRoot, ".trellis", "config.yaml"),
|
|
327
318
|
join(taskDir, "prd.md"),
|
|
328
319
|
join(taskDir, "info.md"),
|
|
329
320
|
]);
|
|
330
|
-
for (const jsonlName of
|
|
321
|
+
for (const jsonlName of ["implement.jsonl", "check.jsonl"]) {
|
|
331
322
|
const jsonlPath = join(taskDir, jsonlName);
|
|
332
323
|
paths.add(jsonlPath);
|
|
333
324
|
if (!existsSync(jsonlPath)) continue;
|
|
@@ -349,8 +340,8 @@ function taskContextInputPaths(projectRoot: string, taskDir: string, agentType?:
|
|
|
349
340
|
return [...paths];
|
|
350
341
|
}
|
|
351
342
|
|
|
352
|
-
function taskContextSignature(projectRoot: string, taskDir: string
|
|
353
|
-
return taskContextInputPaths(projectRoot, taskDir
|
|
343
|
+
function taskContextSignature(projectRoot: string, taskDir: string): string {
|
|
344
|
+
return taskContextInputPaths(projectRoot, taskDir).map((filePath) => {
|
|
354
345
|
try {
|
|
355
346
|
const stat = statSync(filePath);
|
|
356
347
|
return `${filePath}:${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`;
|
|
@@ -630,7 +621,7 @@ function readJsonlLines(jsonlPath: string, displayPath: string): { lines: string
|
|
|
630
621
|
}
|
|
631
622
|
}
|
|
632
623
|
|
|
633
|
-
function buildTaskContext(projectRoot: string, taskDir: string
|
|
624
|
+
function buildTaskContext(projectRoot: string, taskDir: string): string {
|
|
634
625
|
const parts: string[] = [];
|
|
635
626
|
// Resolved once per call (not per referenced file) — avoids re-parsing
|
|
636
627
|
// config.yaml for every jsonl row.
|
|
@@ -666,7 +657,7 @@ function buildTaskContext(projectRoot: string, taskDir: string, agentType?: Agen
|
|
|
666
657
|
}
|
|
667
658
|
|
|
668
659
|
// Determine which jsonl files to read based on agent type
|
|
669
|
-
const jsonlNames =
|
|
660
|
+
const jsonlNames = ["implement.jsonl", "check.jsonl"];
|
|
670
661
|
|
|
671
662
|
// A file may be referenced by both manifests. Use the resolved real path so
|
|
672
663
|
// relative aliases and symlinked paths cannot consume the context budget twice.
|
|
@@ -881,24 +872,9 @@ function parseWorkflowStateBlocks(markdown: string): WorkflowStateBlock[] {
|
|
|
881
872
|
return blocks;
|
|
882
873
|
}
|
|
883
874
|
|
|
884
|
-
// ---------------------------------------------------------------------------
|
|
885
|
-
// Sub-agent detection
|
|
886
|
-
// ---------------------------------------------------------------------------
|
|
887
|
-
|
|
888
|
-
const TRELLIS_AGENTS = new Set(["trellis-implement", "trellis-check", "trellis-research"]);
|
|
889
|
-
|
|
890
|
-
function detectAgentType(): AgentType {
|
|
891
|
-
const blocked = process.env.PI_BLOCKED_AGENT;
|
|
892
|
-
if (blocked && TRELLIS_AGENTS.has(blocked)) {
|
|
893
|
-
return blocked as AgentType;
|
|
894
|
-
}
|
|
895
|
-
return null;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
875
|
interface TaskContextCache {
|
|
899
876
|
projectRoot: string;
|
|
900
877
|
taskDir: string;
|
|
901
|
-
agentType: AgentType;
|
|
902
878
|
signature: string;
|
|
903
879
|
content: string;
|
|
904
880
|
}
|
|
@@ -910,8 +886,6 @@ interface TaskContextCache {
|
|
|
910
886
|
export default function(pi: ExtensionAPI): void {
|
|
911
887
|
let projectRoot: string | null = null;
|
|
912
888
|
const turnCache = new TurnContextCache();
|
|
913
|
-
const agentType = detectAgentType();
|
|
914
|
-
const isSubAgent = agentType !== null;
|
|
915
889
|
let taskContextCache: TaskContextCache | null = null;
|
|
916
890
|
|
|
917
891
|
// Tracks compaction boundaries — context handler skips scanning when no
|
|
@@ -926,12 +900,12 @@ export default function(pi: ExtensionAPI): void {
|
|
|
926
900
|
};
|
|
927
901
|
|
|
928
902
|
const getTaskContext = (taskDir: string, root: string): string => {
|
|
929
|
-
const signature = taskContextSignature(root, taskDir
|
|
930
|
-
if (taskContextCache?.projectRoot === root && taskContextCache.taskDir === taskDir && taskContextCache.
|
|
903
|
+
const signature = taskContextSignature(root, taskDir);
|
|
904
|
+
if (taskContextCache?.projectRoot === root && taskContextCache.taskDir === taskDir && taskContextCache.signature === signature) {
|
|
931
905
|
return taskContextCache.content;
|
|
932
906
|
}
|
|
933
|
-
const content = buildTaskContext(root, taskDir
|
|
934
|
-
taskContextCache = { projectRoot: root, taskDir,
|
|
907
|
+
const content = buildTaskContext(root, taskDir);
|
|
908
|
+
taskContextCache = { projectRoot: root, taskDir, signature, content };
|
|
935
909
|
return content;
|
|
936
910
|
};
|
|
937
911
|
|
|
@@ -941,20 +915,7 @@ export default function(pi: ExtensionAPI): void {
|
|
|
941
915
|
|
|
942
916
|
if (!projectRoot) return;
|
|
943
917
|
|
|
944
|
-
|
|
945
|
-
// Sub-agent: inject precise task context once
|
|
946
|
-
const { taskDir } = resolveActiveTaskStatus(projectRoot, contextKey);
|
|
947
|
-
if (taskDir) {
|
|
948
|
-
const taskContext = getTaskContext(taskDir, projectRoot);
|
|
949
|
-
if (taskContext) {
|
|
950
|
-
await pi.sendMessage({
|
|
951
|
-
customType: "trellis-task-context",
|
|
952
|
-
content: taskContext,
|
|
953
|
-
display: false,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
} else {
|
|
918
|
+
|
|
958
919
|
// Main session: inject session context (global map) + task context
|
|
959
920
|
const sessionContext = buildSessionContext(projectRoot, contextKey);
|
|
960
921
|
if (sessionContext) {
|
|
@@ -978,7 +939,6 @@ export default function(pi: ExtensionAPI): void {
|
|
|
978
939
|
}
|
|
979
940
|
|
|
980
941
|
ctx.ui.notify("Trellis workflow system available", "info");
|
|
981
|
-
}
|
|
982
942
|
});
|
|
983
943
|
|
|
984
944
|
pi.on("session_before_compact", async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { createTemplateReader } from "../template-utils.js";
|
|
2
|
-
const {
|
|
3
|
-
export function getAllAgents() {
|
|
4
|
-
return listMdAgents();
|
|
5
|
-
}
|
|
2
|
+
const { readTemplate } = createTemplateReader(import.meta.url);
|
|
6
3
|
export function getExtensionTemplate() {
|
|
7
4
|
return readTemplate("extensions/trellis/index.ts.txt");
|
|
8
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/D,MAAM,UAAU,oBAAoB;IAClC,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAAC;AACzD,CAAC"}
|