@maudecode/cowtail-cli 0.12.3 → 0.14.0
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/cowtail.js +51 -11
- package/package.json +1 -1
package/dist/cowtail.js
CHANGED
|
@@ -16445,6 +16445,7 @@ var openclawThreadRecordSchema = exports_external.object({
|
|
|
16445
16445
|
var openclawMessageRecordBaseSchema = exports_external.object({
|
|
16446
16446
|
id: nonEmptyStringSchema,
|
|
16447
16447
|
threadId: nonEmptyStringSchema,
|
|
16448
|
+
streamId: nonEmptyStringSchema.optional(),
|
|
16448
16449
|
direction: openclawMessageDirectionSchema,
|
|
16449
16450
|
authorLabel: nonEmptyStringSchema.optional(),
|
|
16450
16451
|
text: openclawMessageTextSchema,
|
|
@@ -16499,13 +16500,16 @@ var openclawPluginMessageCommandSchema = requireOpenClawRenderableContent(export
|
|
|
16499
16500
|
requestId: openclawRequestIdSchema,
|
|
16500
16501
|
idempotencyKey: openclawIdempotencyKeySchema,
|
|
16501
16502
|
sessionKey: nonEmptyStringSchema,
|
|
16503
|
+
threadId: nonEmptyStringSchema.optional(),
|
|
16504
|
+
threadHint: nonEmptyStringSchema.optional(),
|
|
16502
16505
|
title: nonEmptyStringSchema.optional(),
|
|
16503
16506
|
text: openclawMessageTextSchema,
|
|
16504
16507
|
authorLabel: nonEmptyStringSchema.optional(),
|
|
16505
16508
|
links: exports_external.array(openclawLinkSchema).default([]),
|
|
16506
16509
|
toolCalls: exports_external.array(openclawToolCallRecordSchema).default([]),
|
|
16507
16510
|
actions: exports_external.array(openclawActionDraftSchema).default([]),
|
|
16508
|
-
deliveryState: openclawDeliveryStateSchema.optional()
|
|
16511
|
+
deliveryState: openclawDeliveryStateSchema.optional(),
|
|
16512
|
+
streamId: nonEmptyStringSchema
|
|
16509
16513
|
}));
|
|
16510
16514
|
var openclawPluginMessageUpdateCommandSchema = requireOpenClawRenderableContent(exports_external.object({
|
|
16511
16515
|
type: exports_external.literal("openclaw_message_update"),
|
|
@@ -16516,8 +16520,24 @@ var openclawPluginMessageUpdateCommandSchema = requireOpenClawRenderableContent(
|
|
|
16516
16520
|
links: exports_external.array(openclawLinkSchema).optional(),
|
|
16517
16521
|
toolCalls: exports_external.array(openclawToolCallRecordSchema).optional(),
|
|
16518
16522
|
actions: exports_external.array(openclawActionDraftSchema).optional(),
|
|
16519
|
-
deliveryState: openclawDeliveryStateSchema.optional()
|
|
16523
|
+
deliveryState: openclawDeliveryStateSchema.optional(),
|
|
16524
|
+
streamId: nonEmptyStringSchema
|
|
16520
16525
|
}));
|
|
16526
|
+
var openclawMessageStreamSnapshotCommandBaseSchema = exports_external.object({
|
|
16527
|
+
type: exports_external.literal("openclaw_message_stream_snapshot"),
|
|
16528
|
+
requestId: openclawRequestIdSchema,
|
|
16529
|
+
streamId: nonEmptyStringSchema,
|
|
16530
|
+
sessionKey: nonEmptyStringSchema,
|
|
16531
|
+
threadId: nonEmptyStringSchema,
|
|
16532
|
+
text: openclawMessageTextSchema,
|
|
16533
|
+
links: exports_external.array(openclawLinkSchema).default([]),
|
|
16534
|
+
toolCalls: exports_external.array(openclawToolCallRecordSchema).default([]),
|
|
16535
|
+
isFinal: exports_external.boolean(),
|
|
16536
|
+
snapshotSequence: exports_external.number().int().nonnegative(),
|
|
16537
|
+
updatedAt: timestampSchema
|
|
16538
|
+
});
|
|
16539
|
+
var openclawMessageStreamSnapshotCommandSchema = requireOpenClawRenderableContent(openclawMessageStreamSnapshotCommandBaseSchema);
|
|
16540
|
+
var openclawMessageStreamSnapshotServerMessageSchema = requireOpenClawRenderableContent(openclawMessageStreamSnapshotCommandBaseSchema.omit({ requestId: true }));
|
|
16521
16541
|
var openclawIosNewThreadCommandSchema = exports_external.object({
|
|
16522
16542
|
type: exports_external.literal("ios_new_thread"),
|
|
16523
16543
|
requestId: openclawRequestIdSchema,
|
|
@@ -16576,6 +16596,7 @@ var openclawActionResultCommandSchema = exports_external.object({
|
|
|
16576
16596
|
var openclawRealtimeClientMessageSchema = exports_external.union([
|
|
16577
16597
|
openclawPluginMessageCommandSchema,
|
|
16578
16598
|
openclawPluginMessageUpdateCommandSchema,
|
|
16599
|
+
openclawMessageStreamSnapshotCommandSchema,
|
|
16579
16600
|
openclawIosNewThreadCommandSchema,
|
|
16580
16601
|
openclawIosReplyCommandSchema,
|
|
16581
16602
|
openclawIosActionCommandSchema,
|
|
@@ -16585,11 +16606,18 @@ var openclawRealtimeClientMessageSchema = exports_external.union([
|
|
|
16585
16606
|
openclawSessionBoundCommandSchema,
|
|
16586
16607
|
openclawActionResultCommandSchema
|
|
16587
16608
|
]);
|
|
16609
|
+
var openclawRealtimeAckPayloadSchema = exports_external.object({
|
|
16610
|
+
threadId: nonEmptyStringSchema.optional(),
|
|
16611
|
+
messageId: nonEmptyStringSchema.optional(),
|
|
16612
|
+
dropped: exports_external.literal(true).optional(),
|
|
16613
|
+
duplicate: exports_external.literal(true).optional(),
|
|
16614
|
+
reason: nonEmptyStringSchema.optional()
|
|
16615
|
+
});
|
|
16588
16616
|
var openclawRealtimeAckSchema = exports_external.object({
|
|
16589
16617
|
type: exports_external.literal("ack"),
|
|
16590
16618
|
requestId: openclawRequestIdSchema,
|
|
16591
16619
|
sequence: openclawSequenceSchema.optional(),
|
|
16592
|
-
payload:
|
|
16620
|
+
payload: openclawRealtimeAckPayloadSchema.optional()
|
|
16593
16621
|
});
|
|
16594
16622
|
var openclawRealtimeErrorSchema = exports_external.object({
|
|
16595
16623
|
type: exports_external.literal("realtime_error"),
|
|
@@ -16598,6 +16626,7 @@ var openclawRealtimeErrorSchema = exports_external.object({
|
|
|
16598
16626
|
});
|
|
16599
16627
|
var openclawRealtimeServerMessageSchema = exports_external.union([
|
|
16600
16628
|
openclawEventEnvelopeSchema,
|
|
16629
|
+
openclawMessageStreamSnapshotServerMessageSchema,
|
|
16601
16630
|
openclawRealtimeAckSchema,
|
|
16602
16631
|
openclawRealtimeErrorSchema
|
|
16603
16632
|
]);
|
|
@@ -16637,6 +16666,13 @@ var openclawEventReplayResponseSchema = exports_external.object({
|
|
|
16637
16666
|
ok: exports_external.literal(true),
|
|
16638
16667
|
events: exports_external.array(openclawEventEnvelopeSchema)
|
|
16639
16668
|
});
|
|
16669
|
+
var openclawPushNotificationPayloadSchema = exports_external.object({
|
|
16670
|
+
kind: exports_external.literal("openclaw"),
|
|
16671
|
+
version: exports_external.literal(1),
|
|
16672
|
+
threadId: nonEmptyStringSchema,
|
|
16673
|
+
messageId: nonEmptyStringSchema,
|
|
16674
|
+
url: nonEmptyStringSchema.optional()
|
|
16675
|
+
});
|
|
16640
16676
|
// ../protocol/src/fixes.ts
|
|
16641
16677
|
var fixScopeSchema = exports_external.enum(fixScopes);
|
|
16642
16678
|
var fixCreateRequestSchema = exports_external.object({
|
|
@@ -16692,11 +16728,12 @@ var healthResponseSchema = exports_external.object({
|
|
|
16692
16728
|
storageUnit: nonEmptyStringSchema
|
|
16693
16729
|
});
|
|
16694
16730
|
// ../protocol/src/push.ts
|
|
16731
|
+
var pushEnvironmentSchema = exports_external.enum(["development", "production"]);
|
|
16695
16732
|
var pushRegisterRequestSchema = exports_external.object({
|
|
16696
16733
|
identityToken: nonEmptyStringSchema,
|
|
16697
16734
|
deviceToken: nonEmptyStringSchema,
|
|
16698
16735
|
platform: nonEmptyStringSchema.optional(),
|
|
16699
|
-
environment:
|
|
16736
|
+
environment: pushEnvironmentSchema.optional(),
|
|
16700
16737
|
deviceName: nonEmptyStringSchema.optional()
|
|
16701
16738
|
});
|
|
16702
16739
|
var pushRegisterResponseSchema = exports_external.object({
|
|
@@ -16705,6 +16742,7 @@ var pushRegisterResponseSchema = exports_external.object({
|
|
|
16705
16742
|
id: nonEmptyStringSchema
|
|
16706
16743
|
});
|
|
16707
16744
|
var pushUnregisterRequestSchema = exports_external.object({
|
|
16745
|
+
identityToken: nonEmptyStringSchema,
|
|
16708
16746
|
deviceToken: nonEmptyStringSchema
|
|
16709
16747
|
});
|
|
16710
16748
|
var pushUnregisterResponseSchema = exports_external.object({
|
|
@@ -16728,6 +16766,7 @@ var pushResultSchema = exports_external.object({
|
|
|
16728
16766
|
userId: nonEmptyStringSchema,
|
|
16729
16767
|
sent: exports_external.number().int().nonnegative(),
|
|
16730
16768
|
failed: exports_external.number().int().nonnegative(),
|
|
16769
|
+
skipped: exports_external.number().int().nonnegative().default(0),
|
|
16731
16770
|
results: exports_external.array(jsonObjectSchema)
|
|
16732
16771
|
});
|
|
16733
16772
|
// ../protocol/src/responses.ts
|
|
@@ -16748,7 +16787,8 @@ var usersListEntrySchema = exports_external.object({
|
|
|
16748
16787
|
enabledDeviceCount: exports_external.number().int().nonnegative()
|
|
16749
16788
|
});
|
|
16750
16789
|
var userDeviceSchema = exports_external.object({
|
|
16751
|
-
|
|
16790
|
+
id: nonEmptyStringSchema,
|
|
16791
|
+
deviceTokenPreview: nonEmptyStringSchema,
|
|
16752
16792
|
platform: nonEmptyStringSchema,
|
|
16753
16793
|
environment: nonEmptyStringSchema,
|
|
16754
16794
|
enabled: exports_external.boolean(),
|
|
@@ -17262,7 +17302,7 @@ class AlertCreateCommand extends JsonCommand {
|
|
|
17262
17302
|
if (!payloadResult.success) {
|
|
17263
17303
|
throw validationError(formatIssueList(payloadResult.error.issues));
|
|
17264
17304
|
}
|
|
17265
|
-
const response = createResponseSchema.parse(await postJson("/api/alerts", payloadResult.data));
|
|
17305
|
+
const response = createResponseSchema.parse(await postJson("/api/alerts", payloadResult.data, { requireServiceAuth: true }));
|
|
17266
17306
|
this.printSuccess(`Created alert ${response.id}`, response);
|
|
17267
17307
|
}
|
|
17268
17308
|
}
|
|
@@ -17281,7 +17321,7 @@ class AlertDeleteCommand extends JsonCommand {
|
|
|
17281
17321
|
});
|
|
17282
17322
|
async execute() {
|
|
17283
17323
|
const id = requireNonEmptyString(this.id, "id");
|
|
17284
|
-
const response = okResponseSchema.parse(await deleteJson(`/api/alerts/${encodeURIComponent(id)}
|
|
17324
|
+
const response = okResponseSchema.parse(await deleteJson(`/api/alerts/${encodeURIComponent(id)}`, { requireServiceAuth: true }));
|
|
17285
17325
|
this.printSuccess(`Deleted alert ${id}`, response);
|
|
17286
17326
|
}
|
|
17287
17327
|
}
|
|
@@ -17689,7 +17729,7 @@ class FixCreateCommand extends JsonCommand {
|
|
|
17689
17729
|
if (!payloadResult.success) {
|
|
17690
17730
|
throw validationError(formatIssueList(payloadResult.error.issues));
|
|
17691
17731
|
}
|
|
17692
|
-
const response = createResponseSchema.parse(await postJson("/api/fixes", payloadResult.data));
|
|
17732
|
+
const response = createResponseSchema.parse(await postJson("/api/fixes", payloadResult.data, { requireServiceAuth: true }));
|
|
17693
17733
|
this.printSuccess(`Created fix ${response.id}`, response);
|
|
17694
17734
|
}
|
|
17695
17735
|
}
|
|
@@ -17708,7 +17748,7 @@ class FixDeleteCommand extends JsonCommand {
|
|
|
17708
17748
|
});
|
|
17709
17749
|
async execute() {
|
|
17710
17750
|
const id = requireNonEmptyString(this.id, "id");
|
|
17711
|
-
const response = okResponseSchema.parse(await deleteJson(`/api/fixes/${encodeURIComponent(id)}
|
|
17751
|
+
const response = okResponseSchema.parse(await deleteJson(`/api/fixes/${encodeURIComponent(id)}`, { requireServiceAuth: true }));
|
|
17712
17752
|
this.printSuccess(`Deleted fix ${id}`, response);
|
|
17713
17753
|
}
|
|
17714
17754
|
}
|
|
@@ -18004,7 +18044,7 @@ class UsersDevicesCommand extends JsonCommand {
|
|
|
18004
18044
|
this.printLine(`No enabled devices for ${userId}`);
|
|
18005
18045
|
return;
|
|
18006
18046
|
}
|
|
18007
|
-
this.printLine(response.devices.map((device) => `${device.
|
|
18047
|
+
this.printLine(response.devices.map((device) => `${device.id} ${device.deviceTokenPreview} ${device.platform}/${device.environment} ${formatOptionalText(device.deviceName)} lastSeen=${formatTimestamp(device.lastSeenAt)}`).join(`
|
|
18008
18048
|
`));
|
|
18009
18049
|
}
|
|
18010
18050
|
}
|
|
@@ -18059,7 +18099,7 @@ import { tmpdir } from "node:os";
|
|
|
18059
18099
|
import { basename, dirname, join as join2 } from "node:path";
|
|
18060
18100
|
|
|
18061
18101
|
// src/lib/version.ts
|
|
18062
|
-
var rawVersion = "v0.
|
|
18102
|
+
var rawVersion = "v0.14.0"?.trim() || "dev";
|
|
18063
18103
|
var cowtailVersionLabel = rawVersion === "dev" || rawVersion.startsWith("v") ? rawVersion : `v${rawVersion}`;
|
|
18064
18104
|
|
|
18065
18105
|
// src/lib/update.ts
|