@pi-orca/teams 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 +52 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# pi-orca-teams
|
|
2
|
+
|
|
3
|
+
**Team Orchestration**
|
|
4
|
+
|
|
5
|
+
Version: 0.0.1 (Phase 0 - Stub)
|
|
6
|
+
License: MIT
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Team templates and orchestrated spinup with validation and dependency checking.
|
|
11
|
+
|
|
12
|
+
**Status:** Phase 0 scaffold complete. Full implementation pending.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install pi-orca-teams
|
|
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,QAgD/B;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pi Orca Teams Extension
|
|
3
|
+
* Team templates and orchestrated spinup.
|
|
4
|
+
* Spec: §6 — pi-orca-teams Extension
|
|
5
|
+
*/
|
|
6
|
+
export function register(pi) {
|
|
7
|
+
console.log("pi-orca-teams: Registering extension (stub mode)");
|
|
8
|
+
// Check for agent dependency
|
|
9
|
+
pi.events?.on("session_start", () => {
|
|
10
|
+
const hasAgents = pi.getAllTools?.().some((t) => t.name === "agent");
|
|
11
|
+
if (!hasAgents) {
|
|
12
|
+
console.warn("pi-orca-teams requires pi-orca-agents");
|
|
13
|
+
}
|
|
14
|
+
pi.events?.emit("orca:teams:ready", {});
|
|
15
|
+
});
|
|
16
|
+
// Register team tool
|
|
17
|
+
pi.registerTool?.({
|
|
18
|
+
name: "team",
|
|
19
|
+
label: "Team Management",
|
|
20
|
+
description: "Manage team lifecycle. Actions: spinup, teardown, list, status",
|
|
21
|
+
parameters: {
|
|
22
|
+
type: "object",
|
|
23
|
+
properties: {
|
|
24
|
+
action: {
|
|
25
|
+
type: "string",
|
|
26
|
+
enum: ["spinup", "teardown", "list", "status"],
|
|
27
|
+
},
|
|
28
|
+
template: { type: "string" },
|
|
29
|
+
teamId: { type: "string" },
|
|
30
|
+
labels: { type: "object" },
|
|
31
|
+
},
|
|
32
|
+
required: ["action"],
|
|
33
|
+
},
|
|
34
|
+
async execute(toolCallId, params, signal, onUpdate, ctx) {
|
|
35
|
+
return {
|
|
36
|
+
success: false,
|
|
37
|
+
message: `Team action '${params.action}' not implemented yet (Phase 0 stub)`,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
// Register slash commands
|
|
42
|
+
pi.registerCommand?.({
|
|
43
|
+
name: "/team",
|
|
44
|
+
description: "Toggle team widget or manage teams",
|
|
45
|
+
async execute(args, ctx) {
|
|
46
|
+
return "Team commands not implemented yet (Phase 0 stub)";
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
console.log("pi-orca-teams: Registered (stub mode - awaiting Phase 5 implementation)");
|
|
50
|
+
}
|
|
51
|
+
export default register;
|
|
52
|
+
//# 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,kDAAkD,CAAC,CAAC;IAEhE,6BAA6B;IAC7B,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QAClC,MAAM,SAAS,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC;QAC1E,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;QACxD,CAAC;QACD,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,qBAAqB;IACrB,EAAE,CAAC,YAAY,EAAE,CAAC;QAChB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,gEAAgE;QAC7E,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC;iBAC/C;gBACD,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC3B;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,gBAAgB,MAAM,CAAC,MAAM,sCAAsC;aAC7E,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;IAEH,0BAA0B;IAC1B,EAAE,CAAC,eAAe,EAAE,CAAC;QACnB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,oCAAoC;QACjD,KAAK,CAAC,OAAO,CAAC,IAAc,EAAE,GAAQ;YACpC,OAAO,kDAAkD,CAAC;QAC5D,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,yEAAyE,CAAC,CAAC;AACzF,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pi-orca/teams",
|
|
3
|
+
"version": "0.0.2-dev.20260413162335",
|
|
4
|
+
"description": "Team templates and orchestrated spinup",
|
|
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-teams"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@pi-orca/core": "0.0.2-dev.20260413162335"
|
|
43
|
+
}
|
|
44
|
+
}
|