@pi-orca/messages 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 +49 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# pi-orca-messages
|
|
2
|
+
|
|
3
|
+
**Inter-Session Messaging**
|
|
4
|
+
|
|
5
|
+
Version: 0.0.1 (Phase 0 - Stub)
|
|
6
|
+
License: MIT
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Inter-session messaging with inbox delivery for agent coordination.
|
|
11
|
+
|
|
12
|
+
**Status:** Phase 0 scaffold complete. Full implementation pending.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install pi-orca-messages
|
|
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,QA8C/B;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pi Orca Messages Extension
|
|
3
|
+
* Inter-session messaging with inbox delivery.
|
|
4
|
+
* Spec: §4 — pi-orca-messages Extension
|
|
5
|
+
*/
|
|
6
|
+
export function register(pi) {
|
|
7
|
+
console.log("pi-orca-messages: Registering extension (stub mode)");
|
|
8
|
+
// Register message tool
|
|
9
|
+
pi.registerTool?.({
|
|
10
|
+
name: "message",
|
|
11
|
+
label: "Messaging",
|
|
12
|
+
description: "Inter-session messaging for agents. Actions: send, broadcast, read, list, register, sessions",
|
|
13
|
+
parameters: {
|
|
14
|
+
type: "object",
|
|
15
|
+
properties: {
|
|
16
|
+
action: {
|
|
17
|
+
type: "string",
|
|
18
|
+
enum: ["send", "broadcast", "read", "list", "register", "sessions"],
|
|
19
|
+
},
|
|
20
|
+
to: { type: "string" },
|
|
21
|
+
title: { type: "string" },
|
|
22
|
+
body: { type: "string" },
|
|
23
|
+
labels: { type: "object" },
|
|
24
|
+
},
|
|
25
|
+
required: ["action"],
|
|
26
|
+
},
|
|
27
|
+
async execute(toolCallId, params, signal, onUpdate, ctx) {
|
|
28
|
+
return {
|
|
29
|
+
success: false,
|
|
30
|
+
message: `Message action '${params.action}' not implemented yet (Phase 0 stub)`,
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
// Register slash commands
|
|
35
|
+
pi.registerCommand?.({
|
|
36
|
+
name: "/message",
|
|
37
|
+
description: "Toggle message widget or manage messages",
|
|
38
|
+
async execute(args, ctx) {
|
|
39
|
+
return "Message commands not implemented yet (Phase 0 stub)";
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
// Emit ready event
|
|
43
|
+
pi.events?.on("session_start", () => {
|
|
44
|
+
pi.events?.emit("orca:messages:ready", {});
|
|
45
|
+
});
|
|
46
|
+
console.log("pi-orca-messages: Registered (stub mode - awaiting Phase 2 implementation)");
|
|
47
|
+
}
|
|
48
|
+
export default register;
|
|
49
|
+
//# 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,qDAAqD,CAAC,CAAC;IAEnE,wBAAwB;IACxB,EAAE,CAAC,YAAY,EAAE,CAAC;QAChB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,WAAW;QAClB,WAAW,EACT,8FAA8F;QAChG,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC;iBACpE;gBACD,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACtB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,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,mBAAmB,MAAM,CAAC,MAAM,sCAAsC;aAChF,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;IAEH,0BAA0B;IAC1B,EAAE,CAAC,eAAe,EAAE,CAAC;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,0CAA0C;QACvD,KAAK,CAAC,OAAO,CAAC,IAAc,EAAE,GAAQ;YACpC,OAAO,qDAAqD,CAAC;QAC/D,CAAC;KACF,CAAC,CAAC;IAEH,mBAAmB;IACnB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,4EAA4E,CAAC,CAAC;AAC5F,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pi-orca/messages",
|
|
3
|
+
"version": "0.0.2-dev.20260413162335",
|
|
4
|
+
"description": "Inter-session messaging with inbox delivery",
|
|
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-messages"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@pi-orca/core": "0.0.2-dev.20260413162335"
|
|
43
|
+
}
|
|
44
|
+
}
|