@pi-orca/agents 0.0.2-dev.20260413162335
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/README.md +43 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# pi-orca-agents
|
|
2
|
+
|
|
3
|
+
**Subagent Lifecycle**
|
|
4
|
+
|
|
5
|
+
Version: 0.0.1 (Phase 0 - Stub)
|
|
6
|
+
License: MIT
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Subagent lifecycle management via SDK/RPC/tmux with heartbeat monitoring.
|
|
11
|
+
|
|
12
|
+
**Status:** Phase 0 scaffold complete. Full implementation pending.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install pi-orca-agents
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
This package is currently in stub mode. Tools and commands are registered but return "Not implemented yet" messages.
|
|
23
|
+
|
|
24
|
+
## Development Status
|
|
25
|
+
|
|
26
|
+
- [x] Package scaffold
|
|
27
|
+
- [x] TypeScript configuration
|
|
28
|
+
- [x] Tool registration (stub)
|
|
29
|
+
- [x] Command registration (stub)
|
|
30
|
+
- [x] Event emission (ready signal)
|
|
31
|
+
- [ ] Full implementation (pending)
|
|
32
|
+
|
|
33
|
+
## Dependencies
|
|
34
|
+
|
|
35
|
+
- `pi-orca-core` — Shared types and utilities
|
|
36
|
+
|
|
37
|
+
## Documentation
|
|
38
|
+
|
|
39
|
+
See the [Pi Orca specification](../../docs/spec-v0.3.0.md) for the complete design.
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT License — see [LICENSE](../../LICENSE) for details.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,GAAG,QAkD/B;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pi Orca Agents Extension
|
|
3
|
+
* Subagent lifecycle via SDK/RPC/tmux.
|
|
4
|
+
* Spec: §5 — pi-orca-agents Extension
|
|
5
|
+
*/
|
|
6
|
+
export function register(pi) {
|
|
7
|
+
console.log("pi-orca-agents: Registering extension (stub mode)");
|
|
8
|
+
// Register agent tool
|
|
9
|
+
pi.registerTool?.({
|
|
10
|
+
name: "agent",
|
|
11
|
+
label: "Agent Management",
|
|
12
|
+
description: "Manage subagent lifecycle. Actions: spawn, list, stop, recover, status",
|
|
13
|
+
parameters: {
|
|
14
|
+
type: "object",
|
|
15
|
+
properties: {
|
|
16
|
+
action: {
|
|
17
|
+
type: "string",
|
|
18
|
+
enum: ["spawn", "list", "stop", "recover", "status"],
|
|
19
|
+
},
|
|
20
|
+
template: { type: "string" },
|
|
21
|
+
agentId: { type: "string" },
|
|
22
|
+
task: { type: "string" },
|
|
23
|
+
labels: { type: "object" },
|
|
24
|
+
isolation: {
|
|
25
|
+
type: "string",
|
|
26
|
+
enum: ["sdk", "process", "tmux"],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
required: ["action"],
|
|
30
|
+
},
|
|
31
|
+
async execute(toolCallId, params, signal, onUpdate, ctx) {
|
|
32
|
+
return {
|
|
33
|
+
success: false,
|
|
34
|
+
message: `Agent action '${params.action}' not implemented yet (Phase 0 stub)`,
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
// Register slash commands
|
|
39
|
+
pi.registerCommand?.({
|
|
40
|
+
name: "/agent",
|
|
41
|
+
description: "Toggle agent widget or manage agents",
|
|
42
|
+
async execute(args, ctx) {
|
|
43
|
+
return "Agent commands not implemented yet (Phase 0 stub)";
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
// Emit ready event
|
|
47
|
+
pi.events?.on("session_start", () => {
|
|
48
|
+
pi.events?.emit("orca:agents:ready", {});
|
|
49
|
+
});
|
|
50
|
+
console.log("pi-orca-agents: Registered (stub mode - awaiting Phase 4 implementation)");
|
|
51
|
+
}
|
|
52
|
+
export default register;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,UAAU,QAAQ,CAAC,EAAO;IAC9B,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,sBAAsB;IACtB,EAAE,CAAC,YAAY,EAAE,CAAC;QAChB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACT,wEAAwE;QAC1E,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;iBACrD;gBACD,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC;iBACjC;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;QACD,KAAK,CAAC,OAAO,CAAC,UAAkB,EAAE,MAAW,EAAE,MAAmB,EAAE,QAAa,EAAE,GAAQ;YACzF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,iBAAiB,MAAM,CAAC,MAAM,sCAAsC;aAC9E,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;IAEH,0BAA0B;IAC1B,EAAE,CAAC,eAAe,EAAE,CAAC;QACnB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,sCAAsC;QACnD,KAAK,CAAC,OAAO,CAAC,IAAc,EAAE,GAAQ;YACpC,OAAO,mDAAmD,CAAC;QAC7D,CAAC;KACF,CAAC,CAAC;IAEH,mBAAmB;IACnB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,0EAA0E,CAAC,CAAC;AAC1F,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pi-orca/agents",
|
|
3
|
+
"version": "0.0.2-dev.20260413162335",
|
|
4
|
+
"description": "Subagent lifecycle via SDK/RPC/tmux",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"defaults"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc -p tsconfig.json",
|
|
20
|
+
"clean": "rm -rf dist *.tsbuildinfo",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"pi-package",
|
|
27
|
+
"pi-orca",
|
|
28
|
+
"pi-agent",
|
|
29
|
+
"pi-extension"
|
|
30
|
+
],
|
|
31
|
+
"author": "Bindu / Ba",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/bwavell/pi-orca.git",
|
|
39
|
+
"directory": "packages/pi-orca-agents"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@pi-orca/core": "0.0.2-dev.20260413162335"
|
|
43
|
+
}
|
|
44
|
+
}
|