@syrin/iris 0.4.0 → 0.6.10

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/dist/next.js CHANGED
@@ -11,7 +11,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
13
  var __commonJS = (cb, mod) => function __require2() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
+ try {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ } catch (e) {
17
+ throw mod = 0, e;
18
+ }
15
19
  };
16
20
  var __copyProps = (to, from, except, desc) => {
17
21
  if (from && typeof from === "object" || typeof from === "function") {
package/dist/server.d.ts CHANGED
@@ -9,11 +9,14 @@ export { Clock, FlowResult, FlowStore, recordedStepToFlowStep } from './flows/fl
9
9
  export { CompiledProgram, RecordedStep, RecordingStore } from './flows/recordings.js';
10
10
  export { CrawlAnomaly, CrawlOptions, CrawlReport, CrawlSession, crawl } from './crawl/crawl.js';
11
11
  export { DiffOptions, VisualDiffResult, VisualRect, diffPng } from './visual/visual-diff.js';
12
+ export { DomainFlowSummary, DomainGaps, DomainModel, buildDomainModel } from './domain/domain-model.js';
12
13
  export { EvalResult, Predicate, PredicateSchema, evaluatePredicate, waitForPredicate } from './events/predicate.js';
13
14
  export { FileSystemPort, createNodeFileSystem } from './project/fs-port.js';
15
+ export { FlowAssertionClassification, FlowAssertionGrade, classifyFlowAssertions } from './flows/flow-classify.js';
14
16
  export { FlowReplaySession, WaitForSignal, nearestTestid, replayFlow } from './flows/flow-replay.js';
15
17
  export { IrisDirPaths, ReadContractResult, baselinePath, ensureIrisDir, flowPath, irisDirPaths, readContract, writeContract } from './project/iris-dir.js';
16
18
  export { IrisTool } from './tools/tool-names.js';
19
+ export { MCP_MESSAGE_PATH, MCP_SSE_PATH } from './http-server.js';
17
20
  export { ProjectStore, ReadProjectResult } from './project/project-store.js';
18
21
  export { RecommendationInputs, buildSessionRecommendation } from './session/session-recommendation.js';
19
22
  export { RingBuffer } from './events/ring-buffer.js';
@@ -23,10 +26,18 @@ export { Session, SessionHealth, SessionInfo, SessionManager } from './session/s
23
26
  export { TOOLS, ToolDef, ToolDeps } from './tools/tools.js';
24
27
  export { ToolInvoker, UNKNOWN_TOOL_ERROR, createToolInvoker } from './tools/tool-invoker.js';
25
28
  export { VisualStore } from './visual/visual-store.js';
29
+ export { assertSuccess, dynamicTestids, successLabel, successToPredicate } from './flows/flow-success.js';
26
30
  export { buildReactionReport } from './events/reaction.js';
31
+ export { isAlive, isRunning, logPath, readPid, removePid, writePid } from './daemon.js';
27
32
 
28
33
  interface StartOptions {
29
34
  port?: number;
35
+ /** Bind address. Non-loopback hosts require a token. Defaults to IRIS_HOST or localhost. */
36
+ host?: string;
37
+ /** Browser/bridge pairing token. Defaults to IRIS_TOKEN. */
38
+ token?: string;
39
+ /** Browser origins allowed in addition to localhost. Defaults to IRIS_ALLOWED_ORIGINS. */
40
+ allowedOrigins?: string[];
30
41
  /** When false, skip the MCP stdio transport (used in tests). */
31
42
  mcp?: boolean;
32
43
  /** CDP endpoint for native real-input mode. Defaults to env IRIS_CDP_URL. No-op if unset. */
@@ -55,5 +66,12 @@ interface RunningServer {
55
66
  }
56
67
  /** Start the Iris bridge (browser WS endpoint) and, by default, the MCP stdio server. */
57
68
  declare function start(options?: StartOptions): Promise<RunningServer>;
69
+ /**
70
+ * Start the Iris bridge in daemon mode: a single HTTP server handles both the WebSocket
71
+ * bridge (browser SDK) and the SSE MCP transport (Claude/agent). Unlike start(), the MCP
72
+ * connection is not tied to the process lifetime — Claude reconnects across sessions while
73
+ * browser sessions persist in the daemon.
74
+ */
75
+ declare function startDaemon(options?: StartOptions): Promise<RunningServer>;
58
76
 
59
- export { type RunningServer, type StartOptions, start };
77
+ export { type RunningServer, type StartOptions, start, startDaemon };