@cluesmith/codev 2.0.0-rc.24 → 2.0.0-rc.26
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/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +52 -52
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/consult.js +1 -1
- package/dist/agent-farm/commands/consult.js.map +1 -1
- package/dist/agent-farm/commands/index.d.ts +1 -2
- package/dist/agent-farm/commands/index.d.ts.map +1 -1
- package/dist/agent-farm/commands/index.js +1 -2
- package/dist/agent-farm/commands/index.js.map +1 -1
- package/dist/agent-farm/commands/{util.d.ts → shell.d.ts} +4 -4
- package/dist/agent-farm/commands/shell.d.ts.map +1 -0
- package/dist/agent-farm/commands/{util.js → shell.js} +4 -4
- package/dist/agent-farm/commands/shell.js.map +1 -0
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +361 -66
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/start.js +5 -4
- package/dist/agent-farm/commands/start.js.map +1 -1
- package/dist/agent-farm/commands/tower.d.ts.map +1 -1
- package/dist/agent-farm/commands/tower.js +2 -1
- package/dist/agent-farm/commands/tower.js.map +1 -1
- package/dist/agent-farm/hq-connector.d.ts +2 -2
- package/dist/agent-farm/hq-connector.js +2 -2
- package/dist/agent-farm/servers/dashboard-server.js +153 -6
- package/dist/agent-farm/servers/dashboard-server.js.map +1 -1
- package/dist/agent-farm/servers/tower-server.js +374 -0
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/types.d.ts +38 -0
- package/dist/agent-farm/types.d.ts.map +1 -1
- package/dist/agent-farm/utils/notifications.d.ts +30 -0
- package/dist/agent-farm/utils/notifications.d.ts.map +1 -0
- package/dist/agent-farm/utils/notifications.js +121 -0
- package/dist/agent-farm/utils/notifications.js.map +1 -0
- package/dist/agent-farm/utils/server-utils.d.ts +2 -1
- package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
- package/dist/agent-farm/utils/server-utils.js +11 -1
- package/dist/agent-farm/utils/server-utils.js.map +1 -1
- package/dist/agent-farm/utils/shell.d.ts +1 -0
- package/dist/agent-farm/utils/shell.d.ts.map +1 -1
- package/dist/agent-farm/utils/shell.js +2 -0
- package/dist/agent-farm/utils/shell.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +0 -37
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.js +3 -3
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/init.js +1 -1
- package/dist/commands/porch/run.d.ts.map +1 -1
- package/dist/commands/porch/run.js +5 -0
- package/dist/commands/porch/run.js.map +1 -1
- package/package.json +3 -1
- package/skeleton/protocol-schema.json +282 -0
- package/skeleton/protocols/bugfix/builder-prompt.md +49 -0
- package/skeleton/protocols/bugfix/protocol.json +13 -1
- package/skeleton/protocols/experiment/builder-prompt.md +47 -0
- package/skeleton/protocols/experiment/protocol.json +101 -0
- package/skeleton/protocols/maintain/builder-prompt.md +41 -0
- package/skeleton/protocols/maintain/protocol.json +114 -0
- package/skeleton/protocols/protocol-schema.json +53 -0
- package/skeleton/protocols/spider/builder-prompt.md +53 -0
- package/skeleton/protocols/spider/protocol.json +7 -1
- package/skeleton/protocols/tick/builder-prompt.md +51 -0
- package/skeleton/protocols/tick/protocol.json +6 -1
- package/skeleton/resources/commands/agent-farm.md +23 -41
- package/skeleton/resources/commands/overview.md +5 -5
- package/skeleton/resources/workflow-reference.md +2 -2
- package/skeleton/roles/architect.md +49 -33
- package/skeleton/roles/builder.md +77 -108
- package/skeleton/templates/cheatsheet.md +4 -2
- package/templates/tower.html +456 -17
- package/dist/agent-farm/commands/kickoff.d.ts +0 -20
- package/dist/agent-farm/commands/kickoff.d.ts.map +0 -1
- package/dist/agent-farm/commands/kickoff.js +0 -343
- package/dist/agent-farm/commands/kickoff.js.map +0 -1
- package/dist/agent-farm/commands/tutorial.d.ts +0 -10
- package/dist/agent-farm/commands/tutorial.d.ts.map +0 -1
- package/dist/agent-farm/commands/tutorial.js +0 -49
- package/dist/agent-farm/commands/tutorial.js.map +0 -1
- package/dist/agent-farm/commands/util.d.ts.map +0 -1
- package/dist/agent-farm/commands/util.js.map +0 -1
- package/dist/agent-farm/tutorial/index.d.ts +0 -8
- package/dist/agent-farm/tutorial/index.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/index.js +0 -8
- package/dist/agent-farm/tutorial/index.js.map +0 -1
- package/dist/agent-farm/tutorial/prompts.d.ts +0 -57
- package/dist/agent-farm/tutorial/prompts.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/prompts.js +0 -147
- package/dist/agent-farm/tutorial/prompts.js.map +0 -1
- package/dist/agent-farm/tutorial/runner.d.ts +0 -52
- package/dist/agent-farm/tutorial/runner.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/runner.js +0 -204
- package/dist/agent-farm/tutorial/runner.js.map +0 -1
- package/dist/agent-farm/tutorial/state.d.ts +0 -26
- package/dist/agent-farm/tutorial/state.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/state.js +0 -89
- package/dist/agent-farm/tutorial/state.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/first-spec.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/first-spec.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/first-spec.js +0 -136
- package/dist/agent-farm/tutorial/steps/first-spec.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/implementation.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/implementation.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/implementation.js +0 -76
- package/dist/agent-farm/tutorial/steps/implementation.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/index.d.ts +0 -10
- package/dist/agent-farm/tutorial/steps/index.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/index.js +0 -10
- package/dist/agent-farm/tutorial/steps/index.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/planning.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/planning.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/planning.js +0 -143
- package/dist/agent-farm/tutorial/steps/planning.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/review.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/review.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/review.js +0 -78
- package/dist/agent-farm/tutorial/steps/review.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/setup.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/setup.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/setup.js +0 -126
- package/dist/agent-farm/tutorial/steps/setup.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/welcome.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/welcome.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/welcome.js +0 -50
- package/dist/agent-farm/tutorial/steps/welcome.js.map +0 -1
- package/dist/commands/tower.d.ts +0 -16
- package/dist/commands/tower.d.ts.map +0 -1
- package/dist/commands/tower.js +0 -21
- package/dist/commands/tower.js.map +0 -1
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tutorial Step 2: Setup Phase
|
|
3
|
-
* Creates codev directory structure and explains it
|
|
4
|
-
*/
|
|
5
|
-
import { existsSync, mkdirSync } from 'node:fs';
|
|
6
|
-
import { writeFile } from 'node:fs/promises';
|
|
7
|
-
import { resolve } from 'node:path';
|
|
8
|
-
import * as prompts from '../prompts.js';
|
|
9
|
-
const AGENTS_MD_TEMPLATE = `# AI Agent Instructions
|
|
10
|
-
|
|
11
|
-
This file provides instructions to AI coding assistants working on this project.
|
|
12
|
-
|
|
13
|
-
## Project Overview
|
|
14
|
-
|
|
15
|
-
[Describe your project here]
|
|
16
|
-
|
|
17
|
-
## Development Workflow
|
|
18
|
-
|
|
19
|
-
This project uses Codev for structured AI-assisted development:
|
|
20
|
-
|
|
21
|
-
- **Specifications** (codev/specs/): What to build
|
|
22
|
-
- **Plans** (codev/plans/): How to build it
|
|
23
|
-
- **Reviews** (codev/reviews/): Lessons learned
|
|
24
|
-
|
|
25
|
-
## Available Protocols
|
|
26
|
-
|
|
27
|
-
- **TICK**: Fast protocol for small, well-defined tasks
|
|
28
|
-
- **SPIDER**: Full protocol with consultation for complex features
|
|
29
|
-
|
|
30
|
-
## Getting Started
|
|
31
|
-
|
|
32
|
-
1. Check \`codev/projectlist.md\` for current project status
|
|
33
|
-
2. Run \`af tutorial\` if you're new to the project
|
|
34
|
-
3. See \`codev/protocols/\` for detailed protocol documentation
|
|
35
|
-
`;
|
|
36
|
-
const PROJECTLIST_TEMPLATE = `# Project List
|
|
37
|
-
|
|
38
|
-
Track all projects and their status here.
|
|
39
|
-
|
|
40
|
-
## Active Projects
|
|
41
|
-
|
|
42
|
-
\`\`\`yaml
|
|
43
|
-
projects: []
|
|
44
|
-
\`\`\`
|
|
45
|
-
|
|
46
|
-
## Next Available Number
|
|
47
|
-
|
|
48
|
-
**0001** - Reserve this number for your next project
|
|
49
|
-
`;
|
|
50
|
-
export const setupStep = {
|
|
51
|
-
id: 'setup',
|
|
52
|
-
title: 'Project Setup',
|
|
53
|
-
async run(ctx) {
|
|
54
|
-
if (ctx.hasCodev) {
|
|
55
|
-
prompts.success('Codev is already set up in this project!');
|
|
56
|
-
console.log();
|
|
57
|
-
prompts.content('Your codev directory structure:');
|
|
58
|
-
prompts.bullet('codev/specs/ - Feature specifications');
|
|
59
|
-
prompts.bullet('codev/plans/ - Implementation plans');
|
|
60
|
-
prompts.bullet('codev/reviews/ - Post-implementation reviews');
|
|
61
|
-
prompts.bullet('codev/protocols/ - Development protocols');
|
|
62
|
-
prompts.bullet('codev/projectlist.md - Project tracking');
|
|
63
|
-
console.log();
|
|
64
|
-
await prompts.pressEnter();
|
|
65
|
-
return { status: 'completed' };
|
|
66
|
-
}
|
|
67
|
-
prompts.content('Let\'s set up the Codev directory structure.\n');
|
|
68
|
-
prompts.content('This will create:');
|
|
69
|
-
prompts.bullet('codev/specs/ - Where you\'ll write feature specifications');
|
|
70
|
-
prompts.bullet('codev/plans/ - Where implementation plans go');
|
|
71
|
-
prompts.bullet('codev/reviews/ - Where you\'ll document lessons learned');
|
|
72
|
-
prompts.bullet('codev/projectlist.md - Master project tracking file');
|
|
73
|
-
console.log();
|
|
74
|
-
const shouldCreate = await prompts.confirm('Create these directories?');
|
|
75
|
-
if (!shouldCreate) {
|
|
76
|
-
prompts.info('You can manually create the codev/ directory later.');
|
|
77
|
-
return { status: 'skipped' };
|
|
78
|
-
}
|
|
79
|
-
// Create directories
|
|
80
|
-
const codevDir = resolve(ctx.projectPath, 'codev');
|
|
81
|
-
const dirs = ['specs', 'plans', 'reviews', 'protocols', 'resources'];
|
|
82
|
-
try {
|
|
83
|
-
if (!existsSync(codevDir)) {
|
|
84
|
-
mkdirSync(codevDir, { recursive: true });
|
|
85
|
-
}
|
|
86
|
-
for (const dir of dirs) {
|
|
87
|
-
const dirPath = resolve(codevDir, dir);
|
|
88
|
-
if (!existsSync(dirPath)) {
|
|
89
|
-
mkdirSync(dirPath, { recursive: true });
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
// Create projectlist.md
|
|
93
|
-
const projectlistPath = resolve(codevDir, 'projectlist.md');
|
|
94
|
-
if (!existsSync(projectlistPath)) {
|
|
95
|
-
await writeFile(projectlistPath, PROJECTLIST_TEMPLATE);
|
|
96
|
-
}
|
|
97
|
-
// Create CLAUDE.md / AGENTS.md if they don't exist
|
|
98
|
-
const claudeMdPath = resolve(ctx.projectPath, 'CLAUDE.md');
|
|
99
|
-
const agentsMdPath = resolve(ctx.projectPath, 'AGENTS.md');
|
|
100
|
-
if (!existsSync(claudeMdPath) && !existsSync(agentsMdPath)) {
|
|
101
|
-
await writeFile(agentsMdPath, AGENTS_MD_TEMPLATE);
|
|
102
|
-
prompts.success('Created AGENTS.md with project instructions');
|
|
103
|
-
}
|
|
104
|
-
prompts.success('Created codev/ directory structure');
|
|
105
|
-
console.log();
|
|
106
|
-
prompts.content('Directory structure:');
|
|
107
|
-
prompts.code(`codev/
|
|
108
|
-
├── specs/ # Feature specifications
|
|
109
|
-
├── plans/ # Implementation plans
|
|
110
|
-
├── reviews/ # Post-implementation reviews
|
|
111
|
-
├── protocols/ # Development protocols
|
|
112
|
-
├── resources/ # Reference materials
|
|
113
|
-
└── projectlist.md`);
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
prompts.warn(`Failed to create directories: ${error instanceof Error ? error.message : String(error)}`);
|
|
117
|
-
return { status: 'aborted' };
|
|
118
|
-
}
|
|
119
|
-
console.log();
|
|
120
|
-
prompts.info('Tip: Add AGENTS.md to version control so AI assistants can read it.');
|
|
121
|
-
console.log();
|
|
122
|
-
await prompts.pressEnter();
|
|
123
|
-
return { status: 'completed' };
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=setup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../../src/agent-farm/tutorial/steps/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAEzC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B1B,CAAC;AAEF,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;CAa5B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAS;IAC7B,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,eAAe;IAEtB,KAAK,CAAC,GAAG,CAAC,GAAgB;QACxB,IAAI,GAAG,CA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AAC;YACxC,OAAO,CAAC,IAAI,CAAC;;;;;;mBAMA,CAAC,CAAC;QAEjB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,iCAAiC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACxG,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAC/B,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;QACpF,OAAO,CAAC,GAAG,EAAE,CAAC;QAEd,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;QAC3B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IACjC,CAAC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../../../src/agent-farm/tutorial/steps/welcome.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAA2B,MAAM,cAAc,CAAC;AAGlE,eAAO,MAAM,WAAW,EAAE,IAkDzB,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tutorial Step 1: Welcome & Project Detection
|
|
3
|
-
* Introduces Codev/Agent Farm and detects the project environment
|
|
4
|
-
*/
|
|
5
|
-
import * as prompts from '../prompts.js';
|
|
6
|
-
export const welcomeStep = {
|
|
7
|
-
id: 'welcome',
|
|
8
|
-
title: 'Welcome & Project Detection',
|
|
9
|
-
async run(ctx) {
|
|
10
|
-
prompts.content('Welcome to Agent Farm! This tutorial will help you get started');
|
|
11
|
-
prompts.content('with structured AI-assisted development.\n');
|
|
12
|
-
// Show what we detected
|
|
13
|
-
prompts.content('About your project:');
|
|
14
|
-
prompts.bullet(`Project: ${ctx.projectName}`);
|
|
15
|
-
prompts.bullet(`Type: ${ctx.projectType === 'other' ? 'Unknown' : ctx.projectType}`);
|
|
16
|
-
prompts.bullet(`Git repository: ${ctx.hasGit ? 'Yes' : 'No'}`);
|
|
17
|
-
prompts.bullet(`Codev initialized: ${ctx.hasCodev ? 'Yes' : 'No'}`);
|
|
18
|
-
console.log();
|
|
19
|
-
// Warn if not in a git repo
|
|
20
|
-
if (!ctx.hasGit) {
|
|
21
|
-
prompts.warn('This directory is not a git repository.');
|
|
22
|
-
prompts.content('Codev works best with git for version control and worktrees.');
|
|
23
|
-
console.log();
|
|
24
|
-
const shouldContinue = await prompts.confirm('Continue anyway?');
|
|
25
|
-
if (!shouldContinue) {
|
|
26
|
-
prompts.info('Run `git init` to initialize a repository, then run `af tutorial` again.');
|
|
27
|
-
return { status: 'aborted' };
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
// Explain what Codev/Agent Farm is
|
|
31
|
-
prompts.content('\nWhat is Agent Farm?\n');
|
|
32
|
-
prompts.content('Agent Farm helps you work with AI coding assistants more effectively by:');
|
|
33
|
-
prompts.bullet('Organizing work into specs, plans, and reviews');
|
|
34
|
-
prompts.bullet('Using structured protocols (SPIDER, TICK) for development');
|
|
35
|
-
prompts.bullet('Enabling the Architect/Builder pattern for parallel work');
|
|
36
|
-
prompts.bullet('Maintaining project context and documentation');
|
|
37
|
-
console.log();
|
|
38
|
-
prompts.content('Key concepts:');
|
|
39
|
-
prompts.bullet('Spec: What you want to build (the goal)');
|
|
40
|
-
prompts.bullet('Plan: How you\'ll build it (the approach)');
|
|
41
|
-
prompts.bullet('Review: What you learned (lessons and improvements)');
|
|
42
|
-
console.log();
|
|
43
|
-
const ready = await prompts.confirm('Ready to set up Codev in your project?');
|
|
44
|
-
if (!ready) {
|
|
45
|
-
return { status: 'aborted' };
|
|
46
|
-
}
|
|
47
|
-
return { status: 'completed' };
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=welcome.js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kB,CAAC,CAAC;YACjE,IAAI,CAAC,cAAc,EAAE,CAAC;gBACpB,OAAO,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;gBACzF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;YAC/B,CAAC;QACH,CAAC;QAED,mCAAmC;QACnC,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;QAC3C,OAAO,CAAC,OAAO,CAAC,0EAA0E,CAAC,CAAC;QAC5F,OAAO,CAAC,MAAM,CAAC,gDAAgD,CAAC,CAAC;QACjE,OAAO,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAC;QAC5E,OAAO,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;QAC3E,OAAO,CAAC,MAAM,CAAC,+CAA+C,CAAC,CAAC;QAChE,OAAO,CAAC,GAAG,EAAE,CAAC;QAEd,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QACjC,OAAO,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC;QAC1D,OAAO,CAAC,MAAM,CAAC,2CAA2C,CAAC,CAAC;QAC5D,OAAO,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;QACtE,OAAO,CAAC,GAAG,EAAE,CAAC;QAEd,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,wCAAwC,CAAC,CAAC;QAC9E,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAC/B,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IACjC,CAAC;CACF,CAAC"}
|
package/dist/commands/tower.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* codev tower - Cross-project dashboard
|
|
3
|
-
*
|
|
4
|
-
* Shows all running agent-farm instances across projects.
|
|
5
|
-
* This is a framework-level command (not project-level like af).
|
|
6
|
-
*/
|
|
7
|
-
interface TowerOptions {
|
|
8
|
-
port?: number;
|
|
9
|
-
stop?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Start or stop the tower dashboard
|
|
13
|
-
*/
|
|
14
|
-
export declare function tower(options?: TowerOptions): Promise<void>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=tower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tower.d.ts","sourceRoot":"","sources":["../../src/commands/tower.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWrE"}
|
package/dist/commands/tower.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* codev tower - Cross-project dashboard
|
|
3
|
-
*
|
|
4
|
-
* Shows all running agent-farm instances across projects.
|
|
5
|
-
* This is a framework-level command (not project-level like af).
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Start or stop the tower dashboard
|
|
9
|
-
*/
|
|
10
|
-
export async function tower(options = {}) {
|
|
11
|
-
// Import dynamically to avoid circular dependency with agent-farm
|
|
12
|
-
const { towerStart, towerStop } = await import('../agent-farm/commands/tower.js');
|
|
13
|
-
const port = options.port ?? 4100;
|
|
14
|
-
if (options.stop) {
|
|
15
|
-
await towerStop({ port });
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
await towerStart({ port });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=tower.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tower.js","sourceRoot":"","sources":["../../src/commands/tower.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,KAAK,CAAC,UAAwB,EAAE;IACpD,kEAAkE;IAClE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC;IAElF,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC;IAElC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,MAAM,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,MAAM,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
|