iriai-build 0.2.1 → 0.2.3

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/cli/bootstrap.js CHANGED
@@ -8,7 +8,8 @@ import { Recovery } from "../v3/recovery.js";
8
8
  import { ReviewSessionManager } from "../v3/review-sessions.js";
9
9
  import { TerminalInput } from "./terminal-input.js";
10
10
  import * as queries from "../v3/queries.js";
11
- import { DB_PATH } from "../v3/constants.js";
11
+ import { DB_PATH, PORTAL_PORT } from "../v3/constants.js";
12
+ import { ArtifactPortal } from "../v3/artifact-portal.js";
12
13
  import { slugify } from "../v3/helpers.js";
13
14
 
14
15
  /**
@@ -25,12 +26,19 @@ export function bootstrap() {
25
26
  adapter.setInputHandler(input);
26
27
  const recovery = new Recovery({ orchestrator, adapter });
27
28
 
29
+ // Start artifact portal for mockup/plan review
30
+ const portal = new ArtifactPortal({ reviewSessions });
31
+ portal.start(PORTAL_PORT).catch(err => {
32
+ console.warn(`[iriai-build] Artifact portal failed to start: ${err.message}`);
33
+ });
34
+
28
35
  let _shutdownCalled = false;
29
36
  async function shutdown() {
30
37
  if (_shutdownCalled) return;
31
38
  _shutdownCalled = true;
32
39
  input.stopInputLoop();
33
40
  input.exitScreen();
41
+ await portal.stop();
34
42
  await reviewSessions.stopAll();
35
43
  await orchestrator.shutdown();
36
44
  db.close();
@@ -9,7 +9,8 @@ import { Orchestrator } from "../../v3/orchestrator.js";
9
9
  import { Recovery } from "../../v3/recovery.js";
10
10
  import { ReviewSessionManager } from "../../v3/review-sessions.js";
11
11
  import * as queries from "../../v3/queries.js";
12
- import { DB_PATH } from "../../v3/constants.js";
12
+ import { DB_PATH, PORTAL_PORT } from "../../v3/constants.js";
13
+ import { ArtifactPortal } from "../../v3/artifact-portal.js";
13
14
  import * as config from "../config.js";
14
15
  import { systemMsg, successMsg, errorMsg } from "../display.js";
15
16
 
@@ -44,6 +45,10 @@ export async function slackCommand() {
44
45
  const orchestrator = new Orchestrator({ adapter, reviewSessions });
45
46
  adapter.setOrchestrator(orchestrator);
46
47
 
48
+ // Start artifact portal
49
+ const portal = new ArtifactPortal({ reviewSessions });
50
+ await portal.start(PORTAL_PORT);
51
+
47
52
  const recovery = new Recovery({ orchestrator, adapter });
48
53
  await recovery.run();
49
54
 
@@ -57,6 +62,7 @@ export async function slackCommand() {
57
62
  const shutdown = async (signal) => {
58
63
  console.log(`\n[bridge] ${signal} — shutting down...`);
59
64
  caffeinate.kill();
65
+ await portal.stop();
60
66
  await orchestrator.shutdown();
61
67
  db.close();
62
68
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iriai-build",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Iriai Build tool — AI agent orchestration CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/v3/bridge.db DELETED
File without changes