negotium 0.6.4 → 0.6.6

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.
@@ -14,7 +14,10 @@ export interface RunArchiverTurnParams {
14
14
  rawArchivePaths?: string[];
15
15
  /** Number of messages in the archive — gates the MIN threshold. */
16
16
  messageCount: number;
17
- /** Deleted topics update the #General memory hub; active idle snapshots do not. */
17
+ /**
18
+ * Both update the #General memory hub the same way; only the prompt and the
19
+ * fallback completion text differ ("deleted" vs. "snapshotted").
20
+ */
18
21
  mode?: "deleted-topic" | "active-topic";
19
22
  /** Override the archiver agent backend (default: maestro). */
20
23
  agent?: AgentKind;
@@ -6,5 +6,15 @@ export declare const FROM_SELF_SCHEDULE = "self-schedule";
6
6
  export declare const RESERVED_TOPIC_NAMES: ReadonlySet<string>;
7
7
  /** Legacy shared General id. New General rooms use per-user UUIDs. */
8
8
  export declare const GENERAL_TOPIC_ID = "general";
9
+ /**
10
+ * Sanitized log name every private General resolves to.
11
+ *
12
+ * `general` is reserved above, so a manager room is the only room that can
13
+ * produce it — which is what lets conversation storage qualify just that one
14
+ * file per owner instead of namespacing the whole directory.
15
+ */
16
+ export declare const MANAGER_TOPIC_LOG_NAME = "general";
17
+ /** The principal a standalone node runs as when no hub names another. */
18
+ export declare const NODE_LOCAL_USER_ID = "local";
9
19
  /** Internal topic name for the forum manager session (General topic). */
10
20
  export declare const TOPIC_MANAGER = "__manager__";
@@ -83,6 +83,14 @@ export interface RuntimeGatewayManagerTopic {
83
83
  role: "owner" | "member";
84
84
  }>;
85
85
  }
86
+ export interface RuntimeGatewayDeletedMessage {
87
+ id: string;
88
+ topicId: string;
89
+ authorId: string;
90
+ text: string;
91
+ deleted: true;
92
+ createdAt: string;
93
+ }
86
94
  export interface RuntimeGatewayCronJob {
87
95
  id: string;
88
96
  name: string;
@@ -157,6 +165,7 @@ export declare class RuntimeGatewayClient {
157
165
  submitTurn(input: RuntimeGatewayTurnInput): Promise<RuntimeGatewayTurnAcknowledgement>;
158
166
  deriveTopic(topicId: string, input: RuntimeGatewayTopicDeriveInput): Promise<RuntimeGatewayDerivedTopic>;
159
167
  ensureManagerTopic(userId: string): Promise<RuntimeGatewayManagerTopic>;
168
+ deleteMessage(topicId: string, messageId: string, actorUserId: string, allowAdmin?: boolean): Promise<RuntimeGatewayDeletedMessage>;
160
169
  private cronRequest;
161
170
  listCronScripts(): Promise<string[]>;
162
171
  listCronJobs(userId: string, actorUserId: string, actorIsAdmin?: boolean): Promise<RuntimeGatewayCronJob[]>;
@@ -7,6 +7,9 @@ import type { AgentKind, UnifiedEvent } from "../types";
7
7
  * {DATA_DIR}/conversations/{sanitizedTopicName}.jsonl
8
8
  * {DATA_DIR}/conversations/{sanitizedTopicName}.active.jsonl
9
9
  *
10
+ * A private General is the one room several users may hold at once, so its
11
+ * pair is qualified with the owner — see {@link topicFilename}.
12
+ *
10
13
  * The first file is append-only and retains every yielded UnifiedEvent for
11
14
  * archive and teardown. The optional active file is a replaceable provider
12
15
  * projection: compaction writes its summary there and later turns append to
@@ -1 +1 @@
1
- export declare const NEGOTIUM_VERSION = "0.6.4";
1
+ export declare const NEGOTIUM_VERSION = "0.6.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negotium",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
5
  "description": "Install the Negotium multi-agent runtime and CLI with one package",
6
6
  "license": "Apache-2.0",