@moltzap/client 2026.731.0 → 2026.731.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.
- package/dist/channel-core-enrichment.d.ts +5 -2
- package/dist/channel-core-enrichment.d.ts.map +1 -1
- package/dist/channel-core-enrichment.js +5 -6
- package/dist/channel-core-enrichment.js.map +1 -1
- package/dist/channel-core.d.ts +28 -18
- package/dist/channel-core.d.ts.map +1 -1
- package/dist/channel-core.js +24 -61
- package/dist/channel-core.js.map +1 -1
- package/dist/cli/commands/conversations.d.ts +1 -4
- package/dist/cli/commands/conversations.d.ts.map +1 -1
- package/dist/cli/commands/conversations.js +4 -8
- package/dist/cli/commands/conversations.js.map +1 -1
- package/dist/cli/commands/messages.d.ts +0 -3
- package/dist/cli/commands/messages.d.ts.map +1 -1
- package/dist/cli/commands/messages.js +1 -4
- package/dist/cli/commands/messages.js.map +1 -1
- package/dist/cli/commands/send.d.ts +10 -21
- package/dist/cli/commands/send.d.ts.map +1 -1
- package/dist/cli/commands/send.js +16 -25
- package/dist/cli/commands/send.js.map +1 -1
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +11 -13
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/index.js +0 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/local-daemon-rpc.d.ts +338 -2241
- package/dist/local-daemon-rpc.d.ts.map +1 -1
- package/dist/local-daemon-rpc.js +39 -54
- package/dist/local-daemon-rpc.js.map +1 -1
- package/dist/local-history.d.ts +0 -2
- package/dist/local-history.d.ts.map +1 -1
- package/dist/local-history.js +0 -3
- package/dist/local-history.js.map +1 -1
- package/dist/notification/__tests__/subscribe-signatures.types-check.d.ts +15 -13
- package/dist/notification/__tests__/subscribe-signatures.types-check.d.ts.map +1 -1
- package/dist/notification/__tests__/subscribe-signatures.types-check.js +5 -5
- package/dist/notification/__tests__/subscribe-signatures.types-check.js.map +1 -1
- package/dist/service-local-daemon.d.ts.map +1 -1
- package/dist/service-local-daemon.js +24 -64
- package/dist/service-local-daemon.js.map +1 -1
- package/dist/service.d.ts +29 -31
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +40 -106
- package/dist/service.js.map +1 -1
- package/dist/test-utils/channel-service-fixture.d.ts +7 -12
- package/dist/test-utils/channel-service-fixture.d.ts.map +1 -1
- package/dist/test-utils/channel-service-fixture.js +11 -49
- package/dist/test-utils/channel-service-fixture.js.map +1 -1
- package/dist/test-utils/ids.d.ts +7 -1
- package/dist/test-utils/ids.d.ts.map +1 -1
- package/dist/test-utils/ids.js +9 -0
- package/dist/test-utils/ids.js.map +1 -1
- package/dist/test-utils/index.d.ts +2 -3
- package/dist/test-utils/index.d.ts.map +1 -1
- package/dist/test-utils/index.js +2 -3
- package/dist/test-utils/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/cli/commands/contacts.d.ts +0 -10
- package/dist/cli/commands/contacts.d.ts.map +0 -1
- package/dist/cli/commands/contacts.js +0 -21
- package/dist/cli/commands/contacts.js.map +0 -1
- package/dist/service-archive-purge.d.ts +0 -36
- package/dist/service-archive-purge.d.ts.map +0 -1
- package/dist/service-archive-purge.js +0 -50
- package/dist/service-archive-purge.js.map +0 -1
|
@@ -26,7 +26,6 @@ export const messagesListHandler = (args) => Effect.gen(function* () {
|
|
|
26
26
|
// ─── CLI commands ──────────────────────────────────────────────────────────
|
|
27
27
|
/** Provides the messages list options runtime value. */
|
|
28
28
|
export const messagesListOptions = optionsFromSchema(messagesListPayload, {
|
|
29
|
-
taskId: { name: "task", description: "Task id" },
|
|
30
29
|
conversationId: {
|
|
31
30
|
name: "conversation",
|
|
32
31
|
description: "Conversation id",
|
|
@@ -34,9 +33,7 @@ export const messagesListOptions = optionsFromSchema(messagesListPayload, {
|
|
|
34
33
|
});
|
|
35
34
|
const messagesListCommand = Command.make("list", { params: messagesListOptions }, ({ params }) => runHandler(messagesListHandler(params))).pipe(Command.withDescription("List messages in a conversation"));
|
|
36
35
|
/** `moltzap messages [list]` subcommand group. */
|
|
37
|
-
export const messagesCommand = Command.make("messages", {}, () => logLines([
|
|
38
|
-
"Usage: moltzap messages list --task <id> --conversation <id> [--limit N]",
|
|
39
|
-
])).pipe(Command.withDescription("Query message history. Runs as the identity selected by the global " +
|
|
36
|
+
export const messagesCommand = Command.make("messages", {}, () => logLines(["Usage: moltzap messages list --conversation <id> [--limit N]"])).pipe(Command.withDescription("Query message history. Runs as the identity selected by the global " +
|
|
40
37
|
"--profile flag (see `moltzap --help`); visibility is scoped " +
|
|
41
38
|
"to conversations that caller participates in."), Command.withSubcommands([messagesListCommand]));
|
|
42
39
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/cli/commands/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AAC7C,OAAO,EACL,OAAO,EACP,UAAU,GAGX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,EACL,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,aAAa,CAAC;AAYjE,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAAsB,EACgC,EAAE,CACxD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACtE,KAAK,CAAC,CAAC,OAAO,CAA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AW,EAAE,iBAAiB;KAC/B;CACF,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CACtC,MAAM,EACN,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAC/B,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CACxD,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,iCAAiC,CAAC,CAAC,CAAC;AAEnE,kDAAkD;AAClD,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,GAAG,EAAE,CAC/D,QAAQ,CAAC,CAAC,8DAA8D,CAAC,CAAC,CAC3E,CAAC,IAAI,CACJ,OAAO,CAAC,eAAe,CACrB,qEAAqE;IACnE,8DAA8D;IAC9D,+CAA+C,CAClD,EACD,OAAO,CAAC,eAAe,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAC/C,CAAC"}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
import { Command } from "@effect/cli";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
2
|
import { type SendTarget as SendTargetValue } from "../../local-daemon-rpc.js";
|
|
4
3
|
import { type Transport } from "../transport.js";
|
|
5
4
|
interface SendCommandParsed {
|
|
6
5
|
readonly target: SendTargetValue;
|
|
7
6
|
readonly message: string;
|
|
8
|
-
readonly options: Schema.Schema.Type<typeof sendOptionsSchema>;
|
|
9
7
|
}
|
|
10
|
-
declare const sendOptionsSchema: Schema.SchemaClass<{
|
|
11
|
-
readonly replyToId?: import("@moltzap/protocol/conversation").MessageId | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
readonly replyToId?: string | undefined;
|
|
14
|
-
}, never>;
|
|
15
|
-
/** Provides the send options runtime value. */
|
|
16
|
-
export declare const sendOptions: import("@effect/cli/Options").Options<{
|
|
17
|
-
readonly replyToId?: import("@moltzap/protocol/conversation").MessageId | undefined;
|
|
18
|
-
}>;
|
|
19
8
|
/**
|
|
20
|
-
* `moltzap send
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* `taskId
|
|
24
|
-
*
|
|
9
|
+
* `moltzap send conv:<convId> <message>` — socket-call into the local
|
|
10
|
+
* MoltZapService to enqueue an outbound `agent/message/send` against an
|
|
11
|
+
* existing conversation. The conversation is the whole address;
|
|
12
|
+
* `task:<taskId>:<convId>` is also accepted and forwards the task label
|
|
13
|
+
* verbatim for endpoints that group by one.
|
|
25
14
|
*
|
|
26
15
|
* Identity selection is driven by the parent `@effect/cli` options
|
|
27
16
|
* wired in `cli/index.ts`:
|
|
@@ -33,8 +22,8 @@ export declare const sendOptions: import("@effect/cli/Options").Options<{
|
|
|
33
22
|
* If no profile is provided, the command uses the default local daemon socket.
|
|
34
23
|
*
|
|
35
24
|
* Examples:
|
|
36
|
-
* moltzap send
|
|
37
|
-
* moltzap --profile alice send
|
|
25
|
+
* moltzap send conv:$CID "hello" # default identity
|
|
26
|
+
* moltzap --profile alice send conv:$CID "hello" # send as alice.
|
|
38
27
|
*
|
|
39
28
|
* Default path delegates to the local channel daemon via a
|
|
40
29
|
* Unix-socket RPC; it does NOT mint its own `MoltZapAgentClient`.
|
|
@@ -47,9 +36,9 @@ export declare const sendOptions: import("@effect/cli/Options").Options<{
|
|
|
47
36
|
* participant sock as socket-client
|
|
48
37
|
* participant daemon
|
|
49
38
|
*
|
|
50
|
-
* shell->>cli: moltzap send
|
|
51
|
-
* cli->>send: handler({target, message
|
|
52
|
-
* send->>sock: command(cli/send, {target, message
|
|
39
|
+
* shell->>cli: moltzap send conv:convId msg
|
|
40
|
+
* cli->>send: handler({target, message})
|
|
41
|
+
* send->>sock: command(cli/send, {target, message})
|
|
53
42
|
* Note over sock: NodeSocket.makeNet(~/.moltzap/service.sock, 10s) — ENOENT/ECONNREFUSED → SocketRequestError "not running"
|
|
54
43
|
* sock->>daemon: NDJSON RPC — cli/send
|
|
55
44
|
* Note over daemon: LocalDaemonRpcs handler → MessagesSend → agent-client → server
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAGL,KAAK,UAAU,IAAI,eAAe,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAItE,UAAU,iBAAiB;IACzB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,OAAO,CACvC,MAAM,EACN,SAAS,EACT,KAAK,EACL,iBAAiB,CAsBlB,CAAC"}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import { Args, Command } from "@effect/cli";
|
|
2
|
-
import { Effect
|
|
3
|
-
import { localDaemonCommands,
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import { localDaemonCommands, sendTarget, } from "../../local-daemon-rpc.js";
|
|
4
4
|
import { command, runHandler } from "../transport.js";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const targetArg = Args.text({ name: "target" }).pipe(Args.withSchema(sendTarget), Args.withDescription("Target conversation as conv:<convId>, or task:<taskId>:<convId> to " +
|
|
6
|
+
"stamp a task label on the message"));
|
|
7
7
|
const messageArg = Args.text({ name: "message" }).pipe(Args.withDescription("Message text"));
|
|
8
|
-
const sendOptionsSchema = sendCommandRpc.payloadSchema.pipe(Schema.omit("target", "message"));
|
|
9
|
-
/** Provides the send options runtime value. */
|
|
10
|
-
export const sendOptions = optionsFromSchema(sendOptionsSchema, {
|
|
11
|
-
replyToId: {
|
|
12
|
-
name: "reply-to",
|
|
13
|
-
description: "Reply to a specific message",
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
8
|
/**
|
|
17
|
-
* `moltzap send
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* `taskId
|
|
21
|
-
*
|
|
9
|
+
* `moltzap send conv:<convId> <message>` — socket-call into the local
|
|
10
|
+
* MoltZapService to enqueue an outbound `agent/message/send` against an
|
|
11
|
+
* existing conversation. The conversation is the whole address;
|
|
12
|
+
* `task:<taskId>:<convId>` is also accepted and forwards the task label
|
|
13
|
+
* verbatim for endpoints that group by one.
|
|
22
14
|
*
|
|
23
15
|
* Identity selection is driven by the parent `@effect/cli` options
|
|
24
16
|
* wired in `cli/index.ts`:
|
|
@@ -30,8 +22,8 @@ export const sendOptions = optionsFromSchema(sendOptionsSchema, {
|
|
|
30
22
|
* If no profile is provided, the command uses the default local daemon socket.
|
|
31
23
|
*
|
|
32
24
|
* Examples:
|
|
33
|
-
* moltzap send
|
|
34
|
-
* moltzap --profile alice send
|
|
25
|
+
* moltzap send conv:$CID "hello" # default identity
|
|
26
|
+
* moltzap --profile alice send conv:$CID "hello" # send as alice.
|
|
35
27
|
*
|
|
36
28
|
* Default path delegates to the local channel daemon via a
|
|
37
29
|
* Unix-socket RPC; it does NOT mint its own `MoltZapAgentClient`.
|
|
@@ -44,9 +36,9 @@ export const sendOptions = optionsFromSchema(sendOptionsSchema, {
|
|
|
44
36
|
* participant sock as socket-client
|
|
45
37
|
* participant daemon
|
|
46
38
|
*
|
|
47
|
-
* shell->>cli: moltzap send
|
|
48
|
-
* cli->>send: handler({target, message
|
|
49
|
-
* send->>sock: command(cli/send, {target, message
|
|
39
|
+
* shell->>cli: moltzap send conv:convId msg
|
|
40
|
+
* cli->>send: handler({target, message})
|
|
41
|
+
* send->>sock: command(cli/send, {target, message})
|
|
50
42
|
* Note over sock: NodeSocket.makeNet(~/.moltzap/service.sock, 10s) — ENOENT/ECONNREFUSED → SocketRequestError "not running"
|
|
51
43
|
* sock->>daemon: NDJSON RPC — cli/send
|
|
52
44
|
* Note over daemon: LocalDaemonRpcs handler → MessagesSend → agent-client → server
|
|
@@ -58,12 +50,11 @@ export const sendOptions = optionsFromSchema(sendOptionsSchema, {
|
|
|
58
50
|
* `--profile` selects the per-agent daemon socket; credentials remain owned
|
|
59
51
|
* by the running MoltZapService.
|
|
60
52
|
*/
|
|
61
|
-
export const sendCommand = Command.make("send", { target: targetArg, message: messageArg
|
|
53
|
+
export const sendCommand = Command.make("send", { target: targetArg, message: messageArg }, ({ target, message }) => {
|
|
62
54
|
return runHandler(command(localDaemonCommands.send, {
|
|
63
55
|
target,
|
|
64
56
|
message,
|
|
65
|
-
...options,
|
|
66
57
|
}).pipe(Effect.flatMap((result) => Effect.log(`Message sent (id: ${result.messageId})`)), Effect.asVoid));
|
|
67
|
-
}).pipe(Command.withDescription("Send a message to
|
|
58
|
+
}).pipe(Command.withDescription("Send a message to conv:<conversationId>. " +
|
|
68
59
|
"Identity follows the global --profile flag."));
|
|
69
60
|
//# sourceMappingURL=send.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/cli/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/cli/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EACL,mBAAmB,EACnB,UAAU,GAEX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EA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YAAY,EAAE,OAAO,CAAC,OAAO,CACxC,OAAO,EACP,SAAS,EACT,KAAK,EACL,kBAAkB,CAyBnB,CAAC"}
|
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
import { Args, Command } from "@effect/cli";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
|
-
import { localDaemonCommands,
|
|
3
|
+
import { localDaemonCommands, startCommandRpc, startParticipant, } from "../../local-daemon-rpc.js";
|
|
4
4
|
import { command } from "../transport.js";
|
|
5
5
|
import { optionsFromSchema } from "../adapters.js";
|
|
6
6
|
const EXIT_CODES = {
|
|
7
7
|
SUCCESS: 0,
|
|
8
|
-
|
|
8
|
+
CREATE_FAILED: 1,
|
|
9
9
|
PARTIAL_SUCCESS: 2,
|
|
10
10
|
USAGE_ERROR: 64,
|
|
11
11
|
};
|
|
12
|
-
const startMessage = (outcome) => outcome.
|
|
13
|
-
? `Task started: ${outcome.taskId} (reusing existing conversation: ${outcome.conversationId})`
|
|
14
|
-
: `Task started: ${outcome.taskId} (conversation: ${outcome.conversationId})`;
|
|
12
|
+
const startMessage = (outcome) => `Conversation started: ${outcome.conversationId}`;
|
|
15
13
|
const logStartResult = (result) => Effect.zipRight(Effect.log(startMessage(result)), result.sentMessageId === undefined
|
|
16
14
|
? Effect.void
|
|
17
15
|
: Effect.log(`Message sent: ${result.sentMessageId}`));
|
|
18
|
-
const startCommandHandler = (args) => command(localDaemonCommands.
|
|
16
|
+
const startCommandHandler = (args) => command(localDaemonCommands.start, {
|
|
19
17
|
name: args.name,
|
|
20
18
|
participants: args.participants,
|
|
21
19
|
...(args.message === undefined ? {} : { message: args.message }),
|
|
22
20
|
...(args.appId === undefined ? {} : { appId: args.appId }),
|
|
23
21
|
}).pipe(Effect.flatMap(logStartResult), Effect.withSpan("startCommandHandler"));
|
|
24
22
|
const runStartCommand = (effect) => effect.pipe(Effect.catchTags({
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
StartUsageError: (err) => Effect.logError(err.message).pipe(Effect.zipRight(Effect.sync(() => process.exit(EXIT_CODES.USAGE_ERROR)))),
|
|
24
|
+
StartPartialFailure: (err) => Effect.zipRight(Effect.log(startMessage(err)), Effect.logError(`Error sending message: ${err.message}`).pipe(Effect.zipRight(Effect.sync(() => process.exit(EXIT_CODES.PARTIAL_SUCCESS))))),
|
|
27
25
|
}), Effect.catchAll((err) => {
|
|
28
26
|
const msg = err.message !== undefined && err.message !== ""
|
|
29
27
|
? err.message
|
|
30
28
|
: err._tag;
|
|
31
|
-
return Effect.logError(`Failed: ${msg}`).pipe(Effect.zipRight(Effect.sync(() => process.exit(EXIT_CODES.
|
|
29
|
+
return Effect.logError(`Failed: ${msg}`).pipe(Effect.zipRight(Effect.sync(() => process.exit(EXIT_CODES.CREATE_FAILED))));
|
|
32
30
|
}));
|
|
33
31
|
const nameArg = Args.text({ name: "name" }).pipe(Args.withDescription("Conversation name"));
|
|
34
32
|
const participantsArg = Args.text({ name: "participant" }).pipe(Args.withSchema(startParticipant), Args.withDescription("Participant token (for example agent:bob)."), Args.repeated);
|
|
35
|
-
const startOptionsSchema =
|
|
33
|
+
const startOptionsSchema = startCommandRpc.payloadSchema.pipe(Schema.omit("name", "participants"));
|
|
36
34
|
/** Provides the start options runtime value. */
|
|
37
35
|
export const startOptions = optionsFromSchema(startOptionsSchema, {
|
|
38
36
|
message: { description: "First message body" },
|
|
@@ -54,11 +52,11 @@ export const startCommand = Command.make("start", {
|
|
|
54
52
|
participants,
|
|
55
53
|
message: options.message,
|
|
56
54
|
appId: options.appId,
|
|
57
|
-
})).pipe(Command.withDescription("Start a
|
|
55
|
+
})).pipe(Command.withDescription("Start a conversation with named participants and optionally send the first message.\n" +
|
|
58
56
|
"\n" +
|
|
59
57
|
"Exit codes:\n" +
|
|
60
58
|
` ${EXIT_CODES.SUCCESS} success\n` +
|
|
61
|
-
` ${EXIT_CODES.
|
|
62
|
-
` ${EXIT_CODES.PARTIAL_SUCCESS}
|
|
59
|
+
` ${EXIT_CODES.CREATE_FAILED} conversation creation failed\n` +
|
|
60
|
+
` ${EXIT_CODES.PARTIAL_SUCCESS} conversation started, first message failed\n` +
|
|
63
61
|
` ${EXIT_CODES.USAGE_ERROR} usage error`));
|
|
64
62
|
//# sourceMappingURL=start.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../src/cli/commands/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAEL,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../src/cli/commands/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAEL,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GAKjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAuC,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,CAAC;IACV,aAAa,EAAE,CAAC;IAChB,eAAe,EAAE,CAAC;IAClB,WAAW,EAAE,EAAE;CACP,CAAC;AAkBX,MAAM,YAAY,GAAG,CAAC,OAErB,EAAU,EAAE,CAAC,yBAAyB,OAAO,CAAC,cAAc,EAAE,CAAC;AAEhE,MAAM,cAAc,GAAG,CAAC,MAA0B,EAAuB,EAAE,CACzE,MAAM,CAAC,QAAQ,CACb,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,EAChC,MAAM,CAAC,aAAa,KAAK,SAAS;IAChC,CAAC,CAAC,MAAM,CAAC,IAA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W,EAAE,oBAAoB,EAAE;IAC9C,KAAK,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAE;CACpE,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,IAAsB,EACiB,EAAE,CACzC,eAAe,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;AAE7C,gDAAgD;AAChD,MAAM,CAAC,MAAM,YAAY,GAKrB,OAAO,CAAC,IAAI,CACd,OAAO,EACP;IACE,IAAI,EAAE,OAAO;IACb,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,YAAY;CACtB,EACD,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,CAClC,eAAe,CAAC;IACd,IAAI;IACJ,YAAY;IACZ,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,KAAK,EAAE,OAAO,CAAC,KAAK;CACrB,CAAC,CACL,CAAC,IAAI,CACJ,OAAO,CAAC,eAAe,CACrB,uFAAuF;IACrF,IAAI;IACJ,eAAe;IACf,KAAK,UAAU,CAAC,OAAO,cAAc;IACrC,KAAK,UAAU,CAAC,aAAa,mCAAmC;IAChE,KAAK,UAAU,CAAC,eAAe,iDAAiD;IAChF,KAAK,UAAU,CAAC,WAAW,eAAe,CAC7C,CACF,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import { NodeContext, NodeRuntime } from "@effect/platform-node";
|
|
|
5
5
|
import { Config, ConfigProvider, Effect, Layer, Logger, LogLevel, Option, } from "effect";
|
|
6
6
|
import packageJson from "../../package.json" with { type: "json" };
|
|
7
7
|
import { agentsCommand } from "./commands/agents.js";
|
|
8
|
-
import { contactsCommand } from "./commands/contacts.js";
|
|
9
8
|
import { conversationsCommand, historyCommand, } from "./commands/conversations.js";
|
|
10
9
|
import { messagesCommand } from "./commands/messages.js";
|
|
11
10
|
import { registerCommand } from "./commands/register.js";
|
|
@@ -92,7 +91,6 @@ const moltzapBase = Command.make("moltzap", {
|
|
|
92
91
|
"walkthrough."), Command.withSubcommands([
|
|
93
92
|
registerCommand,
|
|
94
93
|
sendCommand,
|
|
95
|
-
contactsCommand,
|
|
96
94
|
conversationsCommand,
|
|
97
95
|
historyCommand,
|
|
98
96
|
statusCommand,
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,uEAAuE;AACvE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,MAAM,EACN,cAAc,EACd,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,WAAW,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,uEAAuE;AACvE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,MAAM,EACN,cAAc,EACd,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,WAAW,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,oBAAoB,EACpB,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAA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