mainflow 0.43.0-alpha.4 → 0.44.0-alpha.1

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,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 };
@@ -1,7 +1,7 @@
1
- import { I as configSchema, tt as repoPaths } from "./dist-D5rZ0MQH.js";
2
- import { $ as loadConfig, $t as WriteError, A as transcriptPath, D as readNotices$1, E as parseWarn, Jt as hubPath, L as attributeTrace, Nt as hubAtRoot, O as loadSessions, Q as HubError, Qt as DATA_DIR, R as traceTranscript, T as markNoticesHandled, Zt as ConflictError, _ as ARCHIVE_KINDS, a as openInApp, et as loadHub, ft as readYaml, it as linksInto, k as readSession, nt as dependencyGraph, ot as refIndex, qt as dataFile, rt as mainlineEdges, st as remoteMembers, tt as sectionText, u as groupPlan, v as setArchivedMany, w as HANDLED_FILE, z as transcriptTitle } from "./host-BJvqZy-i.js";
1
+ import { I as configSchema, tt as repoPaths } from "./dist-CXrUfRQp.js";
2
+ import { A as transcriptPath, D as readNotices$1, E as parseWarn, It as hubAtRoot, L as attributeTrace, O as loadSessions, Q as HubError, Qt as hubPath, R as traceTranscript, T as markNoticesHandled, Xt as dataFile, _ as ARCHIVE_KINDS, a as openInApp, at as mainlineEdges, ct as refIndex, et as loadConfig, it as dependencyGraph, k as readSession, lt as remoteMembers, mt as readYaml, nn as DATA_DIR, ot as linksInto, rn as WriteError, rt as sectionText, tn as ConflictError, tt as loadHub, u as groupPlan, v as setArchivedMany, w as HANDLED_FILE, z as transcriptTitle } from "./host-C74j2Qox.js";
3
3
  import { t as listProgress } from "./progress-1BfPg2zN.js";
4
- import { C as readRemote, F as syncPaths, N as SYNC_DIR, P as isSynced, S as watchTree, _ as DaemonUnavailable, b as readDaemon, n as hubWriter, r as writtenLines, s as remoteMode, v as callDaemon } from "./operation-BhBbGauo.js";
4
+ import { C as readRemote, F as syncPaths, N as SYNC_DIR, P as isSynced, S as watchTree, _ as DaemonUnavailable, b as readDaemon, n as hubWriter, r as writtenLines, s as remoteMode, v as callDaemon } from "./operation-BmCeGKHw.js";
5
5
  import { t as CLI_VERSION } from "./version-Dvv4jwF1.js";
6
6
  import { readUiRecord, realRoot } from "./launch.js";
7
7
  import { createRequire } from "node:module";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainflow",
3
- "version": "0.43.0-alpha.4",
3
+ "version": "0.44.0-alpha.1",
4
4
  "description": "本機多 AI 協作的主脈絡任務管理:CLI 與介面",
5
5
  "license": "MIT",
6
6
  "type": "module",