-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
50 lines (46 loc) · 1.18 KB
/
index.js
File metadata and controls
50 lines (46 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* ShipMachine ShipMachine
* An engineering-only shipping agent. Every LLM call is mediated by PromptOS.
* Pure: Objective → Plan → Code → PR.
*/
import { ShipMachine } from './orchestrator/index.js';
import { PolicyEngine } from './control-plane/policy.js';
import { RBAC } from './control-plane/rbac.js';
import { PromptOSBridge } from './promptos-bridge/index.js';
import { FilesystemTool } from './tools/fs.js';
import { GitTool } from './tools/git.js';
import { ExecTool } from './tools/exec.js';
import { TestsTool } from './tools/tests.js';
import { PRTool } from './tools/pr.js';
import { TaskContext } from './memory/task-context.js';
// Re-export for external use
export {
ShipMachine,
PolicyEngine,
RBAC,
PromptOSBridge,
FilesystemTool,
GitTool,
ExecTool,
TestsTool,
PRTool,
TaskContext,
};
// Auto-register CLI if run directly
const isMain = process.argv[1]?.includes('cli');
if (isMain) {
// CLI is self-registering via commander
// This file is also the main entry point for programmatic use
}
export default {
ShipMachine,
PolicyEngine,
RBAC,
PromptOSBridge,
FilesystemTool,
GitTool,
ExecTool,
TestsTool,
PRTool,
TaskContext,
};