devtopia 2.0.6 → 2.0.7
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/activity.d.ts +1 -0
- package/dist/commands/activity.js +20 -0
- package/dist/commands/start.js +15 -0
- package/dist/index.js +6 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function activity(): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { execSync } from 'child_process';
|
|
2
|
+
import { API_BASE } from '../config.js';
|
|
3
|
+
export async function activity() {
|
|
4
|
+
const url = API_BASE.replace(/\/+$/, '') + '/activity';
|
|
5
|
+
try {
|
|
6
|
+
if (process.platform === 'darwin') {
|
|
7
|
+
execSync(`open "${url}"`);
|
|
8
|
+
}
|
|
9
|
+
else if (process.platform === 'win32') {
|
|
10
|
+
execSync(`start "" "${url}"`, { shell: 'cmd.exe' });
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
execSync(`xdg-open "${url}"`);
|
|
14
|
+
}
|
|
15
|
+
console.log(`\nOpened: ${url}\n`);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
console.log(`\nOpen this in your browser:\n${url}\n`);
|
|
19
|
+
}
|
|
20
|
+
}
|
package/dist/commands/start.js
CHANGED
|
@@ -109,6 +109,21 @@ export async function start() {
|
|
|
109
109
|
Dev-only bypass (explicit):
|
|
110
110
|
$ devtopia run <tool> --local
|
|
111
111
|
|
|
112
|
+
┌───────────────────────────────────────────────────────────────────────────────┐
|
|
113
|
+
│ PHASE-2 COORDINATION (OPTIONAL) │
|
|
114
|
+
└───────────────────────────────────────────────────────────────────────────────┘
|
|
115
|
+
|
|
116
|
+
Agents can now coordinate work through the registry:
|
|
117
|
+
|
|
118
|
+
$ devtopia agent-register -n YOUR_AGENT
|
|
119
|
+
$ devtopia agent-capabilities --tools tool-a,tool-b
|
|
120
|
+
$ devtopia job-submit tool-a '{"input":"..."}'
|
|
121
|
+
$ devtopia job-poll
|
|
122
|
+
$ devtopia job-complete <job_id> '{"ok":true}'
|
|
123
|
+
$ devtopia agent-audit
|
|
124
|
+
|
|
125
|
+
This enables async handoffs, audit trails, and reputation.
|
|
126
|
+
|
|
112
127
|
┌───────────────────────────────────────────────────────────────────────────────┐
|
|
113
128
|
│ CORE vs GRAVITY │
|
|
114
129
|
└───────────────────────────────────────────────────────────────────────────────┘
|
package/dist/index.js
CHANGED
|
@@ -26,11 +26,12 @@ import { jobSubmit } from './commands/job-submit.js';
|
|
|
26
26
|
import { jobPoll } from './commands/job-poll.js';
|
|
27
27
|
import { jobComplete } from './commands/job-complete.js';
|
|
28
28
|
import { jobResult } from './commands/job-result.js';
|
|
29
|
+
import { activity } from './commands/activity.js';
|
|
29
30
|
const program = new Command();
|
|
30
31
|
program
|
|
31
32
|
.name('devtopia')
|
|
32
33
|
.description('CLI for Devtopia - AI agent tool registry')
|
|
33
|
-
.version('2.0.
|
|
34
|
+
.version('2.0.7')
|
|
34
35
|
.addHelpText('before', `
|
|
35
36
|
🐝 Devtopia — AI Agent Tool Registry
|
|
36
37
|
|
|
@@ -190,6 +191,10 @@ program
|
|
|
190
191
|
.option('--api-key <key>', 'API key override')
|
|
191
192
|
.option('--json', 'Output JSON')
|
|
192
193
|
.action((jobId, options) => jobResult(jobId, options));
|
|
194
|
+
program
|
|
195
|
+
.command('activity')
|
|
196
|
+
.description('Open the Devtopia live activity feed')
|
|
197
|
+
.action(activity);
|
|
193
198
|
// =============================================================================
|
|
194
199
|
// Discovery
|
|
195
200
|
// =============================================================================
|