@h-rig/rig-host 0.0.6-alpha.91

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,45 @@
1
+ // @bun
2
+ // packages/rig-host/src/replication/welcome.ts
3
+ import { basename, resolve } from "path";
4
+ function buildRigWelcomeSnapshot(workspaceRoot, replay) {
5
+ const normalizedRoot = resolve(workspaceRoot);
6
+ const title = basename(normalizedRoot) || normalizedRoot;
7
+ const workspace = {
8
+ id: normalizedRoot,
9
+ title,
10
+ rootPath: normalizedRoot,
11
+ sourceKind: "native",
12
+ defaultModel: null,
13
+ createdAt: replay.updatedAt,
14
+ updatedAt: replay.updatedAt
15
+ };
16
+ return {
17
+ workspaceRoot: normalizedRoot,
18
+ activeRunId: replay.activeRunId,
19
+ sequence: replay.sequence,
20
+ workspaces: [workspace],
21
+ graphs: [],
22
+ tasks: [],
23
+ runs: replay.runs,
24
+ runtimes: [],
25
+ conversations: [],
26
+ messages: [],
27
+ actions: [],
28
+ logs: [],
29
+ approvals: replay.approvals,
30
+ userInputs: replay.userInputs,
31
+ validations: [],
32
+ reviews: [],
33
+ artifacts: [],
34
+ policyDecisions: [],
35
+ queue: [],
36
+ worktrees: [],
37
+ remoteEndpoints: [],
38
+ remoteConnections: [],
39
+ remoteOrchestrations: [],
40
+ updatedAt: replay.updatedAt
41
+ };
42
+ }
43
+ export {
44
+ buildRigWelcomeSnapshot
45
+ };
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@h-rig/rig-host",
3
+ "version": "0.0.6-alpha.91",
4
+ "type": "module",
5
+ "description": "Legacy Rig host package for spawning PTY-hosted OMP run processes (legacy-only; superseded by the daemonless _run-bridge dispatch).",
6
+ "license": "UNLICENSED",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/src/index.d.ts",
14
+ "import": "./dist/src/index.js"
15
+ },
16
+ "./bin/rig-run": "./dist/bin/rig-run.js",
17
+ "./legacy/protocol": {
18
+ "types": "./dist/src/protocol.d.ts",
19
+ "import": "./dist/src/protocol.js"
20
+ }
21
+ },
22
+ "engines": {
23
+ "bun": ">=1.3.11"
24
+ },
25
+ "main": "./dist/src/index.js",
26
+ "module": "./dist/src/index.js",
27
+ "types": "./dist/src/index.d.ts",
28
+ "bin": {
29
+ "rig-run": "./dist/bin/rig-run.js"
30
+ },
31
+ "dependencies": {
32
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.91",
33
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.91",
34
+ "@oh-my-pi/pi-coding-agent": "16.0.4",
35
+ "@oh-my-pi/pi-wire": "16.0.4",
36
+ "@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.91",
37
+ "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.91"
38
+ }
39
+ }