@automagik/omni 2.260421.4 → 2.260421.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.
- package/dist/__tests__/mock-api.d.ts +2 -0
- package/dist/__tests__/mock-api.d.ts.map +1 -1
- package/dist/commands/react.d.ts.map +1 -1
- package/dist/index.js +13 -8
- package/dist/server/index.js +191 -78796
- package/package.json +13 -10
- package/dist/server/davey.linux-x64-gnu.node +0 -0
- package/dist/server/davey.linux-x64-musl.node +0 -0
|
@@ -37,6 +37,8 @@ interface StreamEventRow {
|
|
|
37
37
|
}
|
|
38
38
|
export declare function seedStreamEvent(overrides?: Partial<StreamEventRow>): StreamEventRow;
|
|
39
39
|
export declare function clearStreamedEvents(): void;
|
|
40
|
+
export declare function getLastSendReactionBody<T = unknown>(): T | null;
|
|
41
|
+
export declare function clearLastSendReactionBody(): void;
|
|
40
42
|
interface MockApiHandle {
|
|
41
43
|
url: string;
|
|
42
44
|
port: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-api.d.ts","sourceRoot":"","sources":["../../src/__tests__/mock-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,YAAY,4BAA4B,CAAC;AAwUtD;;;;;GAKG;AACH,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE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MAAM,IAAI,CAAC;CACnB;AAID;;;;GAIG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC,CA+B3D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAIlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/commands/react.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/commands/react.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,wBAAgB,kBAAkB,IAAI,OAAO,CAgD5C"}
|
package/dist/index.js
CHANGED
|
@@ -113804,7 +113804,7 @@ import { fileURLToPath } from "url";
|
|
|
113804
113804
|
// package.json
|
|
113805
113805
|
var package_default = {
|
|
113806
113806
|
name: "@automagik/omni",
|
|
113807
|
-
version: "2.260421.
|
|
113807
|
+
version: "2.260421.6",
|
|
113808
113808
|
description: "LLM-optimized CLI for Omni",
|
|
113809
113809
|
type: "module",
|
|
113810
113810
|
bin: {
|
|
@@ -113824,15 +113824,18 @@ var package_default = {
|
|
|
113824
113824
|
test: "bun test",
|
|
113825
113825
|
"test:integration": "RUN_INTEGRATION_TESTS=1 bun test",
|
|
113826
113826
|
clean: "rm -rf dist db",
|
|
113827
|
-
"build:server": "bun build src/bundled-server-entry.ts --outdir dist/server --entry-naming 'index.[ext]' --asset-naming '[name].[ext]' --target bun --external @anthropic-ai/claude-agent-sdk",
|
|
113827
|
+
"build:server": "bun build src/bundled-server-entry.ts --outdir dist/server --entry-naming 'index.[ext]' --asset-naming '[name].[ext]' --target bun --external @anthropic-ai/claude-agent-sdk --external @snazzah/davey --external libsodium-wrappers --external opusscript",
|
|
113828
113828
|
"build:migrations": "rm -rf db/drizzle && mkdir -p db && cp -r ../db/drizzle db/drizzle",
|
|
113829
113829
|
prepack: "bun run build && bun run build:server && bun run build:migrations"
|
|
113830
113830
|
},
|
|
113831
113831
|
dependencies: {
|
|
113832
113832
|
"@anthropic-ai/claude-agent-sdk": "^0.2.62",
|
|
113833
113833
|
"@sentry/bun": "^10.43.0",
|
|
113834
|
+
"@snazzah/davey": "^0.1.11",
|
|
113834
113835
|
chalk: "^5.4.0",
|
|
113835
113836
|
commander: "^13.1.0",
|
|
113837
|
+
"libsodium-wrappers": "^0.7.15",
|
|
113838
|
+
opusscript: "^0.1.1",
|
|
113836
113839
|
ora: "^8.1.1",
|
|
113837
113840
|
"qrcode-terminal": "^0.12.0"
|
|
113838
113841
|
},
|
|
@@ -123278,14 +123281,16 @@ function createReactCommand() {
|
|
|
123278
123281
|
if (!ctx.chatId) {
|
|
123279
123282
|
return error("No chat in context. Set OMNI_CHAT, use --chat, or run: omni open <contact>");
|
|
123280
123283
|
}
|
|
123281
|
-
const messageId = await resolveReplyTo(options.message);
|
|
123282
|
-
if (!messageId) {
|
|
123283
|
-
return error("No message to react to. Set OMNI_MESSAGE, use --message <id>, or ensure context has a trigger message.");
|
|
123284
|
-
}
|
|
123285
123284
|
try {
|
|
123285
|
+
const instanceId = await resolveInstanceId(ctx.instanceId);
|
|
123286
|
+
const chatId = await resolveRecipient(ctx.chatId);
|
|
123287
|
+
const messageId = await resolveReplyTo(options.message);
|
|
123288
|
+
if (!messageId) {
|
|
123289
|
+
return error("No message to react to. Set OMNI_MESSAGE, use --message <id>, or ensure context has a trigger message.");
|
|
123290
|
+
}
|
|
123286
123291
|
const result = await client.messages.sendReaction({
|
|
123287
|
-
instanceId
|
|
123288
|
-
to:
|
|
123292
|
+
instanceId,
|
|
123293
|
+
to: chatId,
|
|
123289
123294
|
messageId,
|
|
123290
123295
|
emoji
|
|
123291
123296
|
});
|