mainflow 0.43.0 → 0.44.0-alpha.2

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.
@@ -119,6 +119,11 @@ declare const mainlineSchema: z.ZodObject<{
119
119
  }>;
120
120
  target: z.ZodString;
121
121
  note: z.ZodOptional<z.ZodString>;
122
+ scope: z.ZodOptional<z.ZodObject<{
123
+ task: z.ZodOptional<z.ZodString>;
124
+ session: z.ZodOptional<z.ZodString>;
125
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ }, z.core.$strict>>;
122
127
  }, z.core.$strip>>>;
123
128
  }, z.core.$strip>;
124
129
  type Mainline = z.infer<typeof mainlineSchema>;
@@ -335,6 +340,7 @@ declare const sessionSchema: z.ZodObject<{
335
340
  depth: z.ZodOptional<z.ZodNumber>;
336
341
  summary: z.ZodOptional<z.ZodString>;
337
342
  reminderDigest: z.ZodOptional<z.ZodString>;
343
+ checkReported: z.ZodOptional<z.ZodArray<z.ZodString>>;
338
344
  archivedAt: z.ZodOptional<z.ZodString>;
339
345
  }, z.core.$strip>;
340
346
  type Session = z.infer<typeof sessionSchema>;
@@ -480,6 +486,11 @@ declare const groupSchema: z.ZodObject<{
480
486
  }>;
481
487
  target: z.ZodString;
482
488
  note: z.ZodOptional<z.ZodString>;
489
+ scope: z.ZodOptional<z.ZodObject<{
490
+ task: z.ZodOptional<z.ZodString>;
491
+ session: z.ZodOptional<z.ZodString>;
492
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
+ }, z.core.$strict>>;
483
494
  }, z.core.$strip>>>;
484
495
  }, z.core.$strip>;
485
496
  type Group = z.infer<typeof groupSchema>;
package/dist/launch.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as HubDirs } from "./index-DRpamPge.js";
1
+ import { o as HubDirs } from "./index-jq7lN8V8.js";
2
2
  import { HostOptions } from "./host.js";
3
3
  import { ServerType } from "@hono/node-server";
4
4
  //#region src/launch.d.ts
package/dist/launch.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $t as WriteError, i as hostName, l as syncHost, n as DEFAULT_UI_PORT, s as removeHostLink } from "./host-BJvqZy-i.js";
1
+ import { i as hostName, l as syncHost, n as DEFAULT_UI_PORT, rn as WriteError, s as removeHostLink } from "./host-C74j2Qox.js";
2
2
  import { t as CLI_VERSION } from "./version-Dvv4jwF1.js";
3
3
  import { existsSync, mkdirSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
4
4
  import { join, resolve } from "node:path";
@@ -273,7 +273,7 @@ async function launchUi(dirs, hub, configured, options) {
273
273
  }
274
274
  let server;
275
275
  if (!reuse) {
276
- const { serveUi } = await import("./ui-xxzmhAqF.js");
276
+ const { serveUi } = await import("./ui-qqVCewFz.js");
277
277
  server = await serveUi(dirs, choice.port);
278
278
  writeUiRecord(dirs, {
279
279
  port: choice.port,
@@ -0,0 +1,19 @@
1
+ import { a as Renumbering, i as Notice, n as OperationValue, r as OperationName, t as OperationInput } from "./index-jq7lN8V8.js";
2
+ //#region src/remote/operation.d.ts
3
+ /** What a write reports: the operation's value, and what its caller tells the user about it. */
4
+ interface Written<N extends OperationName = OperationName> {
5
+ value: OperationValue<N>;
6
+ /** Waiting in the outbox, not yet answered by the sync server; new entries in `value` have provisional ids */
7
+ queued: boolean;
8
+ /** Why nothing sends the outbox for now: no sync client runs and none could be started */
9
+ stopped?: string;
10
+ /** Why a sync client was started although one was expected to run */
11
+ restarted?: string;
12
+ /** Provisional ids the server gave to other entries, so this write's entries got the ids after the arrow */
13
+ renumbered: Renumbering[];
14
+ /** What the operation said about the write although it went through, such as a file it kept */
15
+ notices: Notice[];
16
+ }
17
+ type HubWrite = <N extends OperationName>(op: N, input: OperationInput<N>) => Promise<Written<N>>;
18
+ //#endregion
19
+ export { HubWrite as t };