@aiassesstech/sam 0.1.0

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.
@@ -0,0 +1,2 @@
1
+ export { default } from './plugin.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from './plugin.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @aiassesstech/sam — Engineering Agent Plugin
3
+ *
4
+ * Lightweight OpenClaw plugin that gives Sam (the Engineer) fleet-bus
5
+ * receive capabilities. Sam is sandboxed — he receives tasks from the
6
+ * Commander but does NOT initiate outbound fleet communication.
7
+ *
8
+ * Sam is a built-in OpenClaw agent. This plugin only adds fleet
9
+ * message reception — all other engineering behavior is handled
10
+ * by OpenClaw's core.
11
+ *
12
+ * Routing constraint (Patent 5): Sam can only send to jessie
13
+ * (task/status, task/complete). No outbound fleet tools are
14
+ * registered to enforce this at the tool level.
15
+ */
16
+ export default function register(api: any): void;
17
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,QAyCxC"}
package/dist/plugin.js ADDED
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @aiassesstech/sam — Engineering Agent Plugin
3
+ *
4
+ * Lightweight OpenClaw plugin that gives Sam (the Engineer) fleet-bus
5
+ * receive capabilities. Sam is sandboxed — he receives tasks from the
6
+ * Commander but does NOT initiate outbound fleet communication.
7
+ *
8
+ * Sam is a built-in OpenClaw agent. This plugin only adds fleet
9
+ * message reception — all other engineering behavior is handled
10
+ * by OpenClaw's core.
11
+ *
12
+ * Routing constraint (Patent 5): Sam can only send to jessie
13
+ * (task/status, task/complete). No outbound fleet tools are
14
+ * registered to enforce this at the tool level.
15
+ */
16
+ export default function register(api) {
17
+ // ── Fleet Bus Integration ──────────────────────────────────────
18
+ const fleetBusMod = "@aiassesstech/fleet-bus";
19
+ import(fleetBusMod)
20
+ .then(async ({ FleetBus, SAM_CARD, createTransport, fleetReceive }) => {
21
+ const bus = FleetBus.create(api, {
22
+ agentId: "sam",
23
+ role: "engineer",
24
+ card: SAM_CARD,
25
+ });
26
+ bus.start();
27
+ const transport = await createTransport();
28
+ if (transport) {
29
+ fleetReceive(bus, {
30
+ methods: [
31
+ "task/assign",
32
+ "veto/issue",
33
+ "fleet/ping",
34
+ "fleet/pong",
35
+ "fleet/broadcast",
36
+ ],
37
+ handler: async (msg) => {
38
+ console.log(`[sam] Fleet message received: ${msg.method} from ${msg.from}`);
39
+ },
40
+ });
41
+ console.log("[sam] Fleet bus: active (receive-only, sandboxed)");
42
+ }
43
+ else {
44
+ console.log("[sam] Fleet bus: observer mode (gateway transport unavailable)");
45
+ }
46
+ })
47
+ .catch(() => {
48
+ console.warn("[sam] Fleet bus unavailable — operating standalone");
49
+ });
50
+ console.log("[sam] Engineering Agent plugin registered");
51
+ }
52
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAQ;IACvC,kEAAkE;IAClE,MAAM,WAAW,GAAG,yBAAyB,CAAC;IAC9C,MAAM,CAAC,WAAW,CAAC;SAChB,IAAI,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAO,EAAE,EAAE;QACzE,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE;YAC/B,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC;QACH,GAAG,CAAC,KAAK,EAAE,CAAC;QAEZ,MAAM,SAAS,GAAG,MAAM,eAAe,EAAE,CAAC;QAC1C,IAAI,SAAS,EAAE,CAAC;YACd,YAAY,CAAC,GAAG,EAAE;gBAChB,OAAO,EAAE;oBACP,aAAa;oBACb,YAAY;oBACZ,YAAY;oBACZ,YAAY;oBACZ,iBAAiB;iBAClB;gBACD,OAAO,EAAE,KAAK,EAAE,GAAQ,EAAE,EAAE;oBAC1B,OAAO,CAAC,GAAG,CACT,iCAAiC,GAAG,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,CAC/D,CAAC;gBACJ,CAAC;aACF,CAAC,CAAC;YAEH,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;QACnE,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CACT,gEAAgE,CACjE,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;SACD,KAAK,CAAC,GAAG,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;IAEL,OAAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "id": "sam",
3
+ "name": "Sam — Engineering Agent",
4
+ "description": "Sandboxed engineering agent plugin — receives tasks via fleet-bus, reports status and completion. No outbound fleet tools (by design).",
5
+ "configSchema": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {},
9
+ "required": []
10
+ }
11
+ }
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@aiassesstech/sam",
3
+ "version": "0.1.0",
4
+ "description": "Sam — Engineering Agent plugin for OpenClaw. Sandboxed task receiver with fleet-bus integration.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "openclaw": {
9
+ "extensions": [
10
+ "./dist/plugin.js"
11
+ ]
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "agent",
16
+ "openclaw.plugin.json",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "dev": "tsc --watch",
23
+ "typecheck": "tsc --noEmit",
24
+ "lint": "tsc --noEmit",
25
+ "prepublishOnly": "npm run typecheck && npm run build"
26
+ },
27
+ "keywords": [
28
+ "sam",
29
+ "engineering-agent",
30
+ "sandboxed",
31
+ "openclaw",
32
+ "fleet-bus"
33
+ ],
34
+ "author": "GiDanc AI LLC",
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/spar65/compsi.git",
39
+ "directory": "packages/sam"
40
+ },
41
+ "homepage": "https://www.aiassesstech.com",
42
+ "bugs": {
43
+ "url": "https://github.com/spar65/compsi/issues"
44
+ },
45
+ "peerDependencies": {
46
+ "@aiassesstech/fleet-bus": ">=0.1.0"
47
+ },
48
+ "peerDependenciesMeta": {
49
+ "@aiassesstech/fleet-bus": {
50
+ "optional": true
51
+ }
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^20.0.0",
55
+ "typescript": "^5.3.3"
56
+ },
57
+ "engines": {
58
+ "node": ">=18.0.0"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ }
63
+ }