@alook/cli 0.1.18 → 0.1.19
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/index.js +27 -0
- package/dist/session-runner.js +27 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17731,6 +17731,7 @@ __export(exports_community_schema, {
|
|
|
17731
17731
|
communityServerFolderItem: () => communityServerFolderItem,
|
|
17732
17732
|
communityServerFolder: () => communityServerFolder,
|
|
17733
17733
|
communityServer: () => communityServer,
|
|
17734
|
+
communityReadStateRevision: () => communityReadStateRevision,
|
|
17734
17735
|
communityReadState: () => communityReadState,
|
|
17735
17736
|
communityReaction: () => communityReaction,
|
|
17736
17737
|
communityPin: () => communityPin,
|
|
@@ -17895,6 +17896,10 @@ var communityReadState = sqliteTable("community_read_state", {
|
|
|
17895
17896
|
lastReadMessageId: text("last_read_message_id"),
|
|
17896
17897
|
lastReadSeq: integer2("last_read_seq").notNull().default(0)
|
|
17897
17898
|
}, (t) => [index("idx_read_state_user").on(t.userId)]);
|
|
17899
|
+
var communityReadStateRevision = sqliteTable("community_read_state_revision", {
|
|
17900
|
+
userId: text("user_id").primaryKey().references(() => user.id, { onDelete: "cascade" }),
|
|
17901
|
+
revision: integer2("revision").notNull().default(0)
|
|
17902
|
+
});
|
|
17898
17903
|
var communityReaction = sqliteTable("community_reaction", {
|
|
17899
17904
|
id: text("id").primaryKey().$defaultFn(() => nanoid3()),
|
|
17900
17905
|
messageId: text("message_id").notNull().references(() => communityMessage.id, { onDelete: "cascade" }),
|
|
@@ -18488,6 +18493,24 @@ var communityUnreadBumpSchema = exports_external.strictObject({
|
|
|
18488
18493
|
railChannelId: string4.optional(),
|
|
18489
18494
|
isMention: exports_external.boolean().optional()
|
|
18490
18495
|
});
|
|
18496
|
+
var readStateEnvelopeFields = {
|
|
18497
|
+
revision: exports_external.number().int().positive(),
|
|
18498
|
+
inboxChanged: exports_external.literal(true)
|
|
18499
|
+
};
|
|
18500
|
+
var communityReadStateAdvancedSchema = exports_external.strictObject({
|
|
18501
|
+
type: exports_external.literal("community:read_state.advanced"),
|
|
18502
|
+
...readStateEnvelopeFields
|
|
18503
|
+
});
|
|
18504
|
+
var communityInboxChangedSchema = exports_external.strictObject({
|
|
18505
|
+
type: exports_external.literal("community:inbox.changed"),
|
|
18506
|
+
...readStateEnvelopeFields,
|
|
18507
|
+
reason: exports_external.enum([
|
|
18508
|
+
"read_all",
|
|
18509
|
+
"mention_read_all",
|
|
18510
|
+
"mention_dismiss",
|
|
18511
|
+
"notification_policy"
|
|
18512
|
+
])
|
|
18513
|
+
});
|
|
18491
18514
|
var communityPresenceUpdateSchema = exports_external.strictObject({
|
|
18492
18515
|
type: exports_external.literal("community:presence.update"),
|
|
18493
18516
|
userId: string4,
|
|
@@ -18583,6 +18606,8 @@ var CommunityWsEventDiscriminatedSchema = exports_external.discriminatedUnion("t
|
|
|
18583
18606
|
communityInviteCreateSchema,
|
|
18584
18607
|
communityMentionCreateSchema,
|
|
18585
18608
|
communityUnreadBumpSchema,
|
|
18609
|
+
communityReadStateAdvancedSchema,
|
|
18610
|
+
communityInboxChangedSchema,
|
|
18586
18611
|
communityPresenceUpdateSchema,
|
|
18587
18612
|
communityStatusUpdateSchema,
|
|
18588
18613
|
communityMachineCreatedSchema,
|
|
@@ -18627,6 +18652,8 @@ var WS_EVENTS = {
|
|
|
18627
18652
|
INVITE_CREATE: "community:invite.create",
|
|
18628
18653
|
MENTION_CREATE: "community:mention.create",
|
|
18629
18654
|
UNREAD_BUMP: "community:unread.bump",
|
|
18655
|
+
READ_STATE_ADVANCED: "community:read_state.advanced",
|
|
18656
|
+
INBOX_CHANGED: "community:inbox.changed",
|
|
18630
18657
|
PRESENCE_UPDATE: "community:presence.update",
|
|
18631
18658
|
STATUS_UPDATE: "community:status.update",
|
|
18632
18659
|
MACHINE_CREATED: "community:machine.created",
|
package/dist/session-runner.js
CHANGED
|
@@ -17636,6 +17636,7 @@ __export(exports_community_schema, {
|
|
|
17636
17636
|
communityServerFolderItem: () => communityServerFolderItem,
|
|
17637
17637
|
communityServerFolder: () => communityServerFolder,
|
|
17638
17638
|
communityServer: () => communityServer,
|
|
17639
|
+
communityReadStateRevision: () => communityReadStateRevision,
|
|
17639
17640
|
communityReadState: () => communityReadState,
|
|
17640
17641
|
communityReaction: () => communityReaction,
|
|
17641
17642
|
communityPin: () => communityPin,
|
|
@@ -17800,6 +17801,10 @@ var communityReadState = sqliteTable("community_read_state", {
|
|
|
17800
17801
|
lastReadMessageId: text("last_read_message_id"),
|
|
17801
17802
|
lastReadSeq: integer2("last_read_seq").notNull().default(0)
|
|
17802
17803
|
}, (t) => [index("idx_read_state_user").on(t.userId)]);
|
|
17804
|
+
var communityReadStateRevision = sqliteTable("community_read_state_revision", {
|
|
17805
|
+
userId: text("user_id").primaryKey().references(() => user.id, { onDelete: "cascade" }),
|
|
17806
|
+
revision: integer2("revision").notNull().default(0)
|
|
17807
|
+
});
|
|
17803
17808
|
var communityReaction = sqliteTable("community_reaction", {
|
|
17804
17809
|
id: text("id").primaryKey().$defaultFn(() => nanoid3()),
|
|
17805
17810
|
messageId: text("message_id").notNull().references(() => communityMessage.id, { onDelete: "cascade" }),
|
|
@@ -18393,6 +18398,24 @@ var communityUnreadBumpSchema = exports_external.strictObject({
|
|
|
18393
18398
|
railChannelId: string4.optional(),
|
|
18394
18399
|
isMention: exports_external.boolean().optional()
|
|
18395
18400
|
});
|
|
18401
|
+
var readStateEnvelopeFields = {
|
|
18402
|
+
revision: exports_external.number().int().positive(),
|
|
18403
|
+
inboxChanged: exports_external.literal(true)
|
|
18404
|
+
};
|
|
18405
|
+
var communityReadStateAdvancedSchema = exports_external.strictObject({
|
|
18406
|
+
type: exports_external.literal("community:read_state.advanced"),
|
|
18407
|
+
...readStateEnvelopeFields
|
|
18408
|
+
});
|
|
18409
|
+
var communityInboxChangedSchema = exports_external.strictObject({
|
|
18410
|
+
type: exports_external.literal("community:inbox.changed"),
|
|
18411
|
+
...readStateEnvelopeFields,
|
|
18412
|
+
reason: exports_external.enum([
|
|
18413
|
+
"read_all",
|
|
18414
|
+
"mention_read_all",
|
|
18415
|
+
"mention_dismiss",
|
|
18416
|
+
"notification_policy"
|
|
18417
|
+
])
|
|
18418
|
+
});
|
|
18396
18419
|
var communityPresenceUpdateSchema = exports_external.strictObject({
|
|
18397
18420
|
type: exports_external.literal("community:presence.update"),
|
|
18398
18421
|
userId: string4,
|
|
@@ -18488,6 +18511,8 @@ var CommunityWsEventDiscriminatedSchema = exports_external.discriminatedUnion("t
|
|
|
18488
18511
|
communityInviteCreateSchema,
|
|
18489
18512
|
communityMentionCreateSchema,
|
|
18490
18513
|
communityUnreadBumpSchema,
|
|
18514
|
+
communityReadStateAdvancedSchema,
|
|
18515
|
+
communityInboxChangedSchema,
|
|
18491
18516
|
communityPresenceUpdateSchema,
|
|
18492
18517
|
communityStatusUpdateSchema,
|
|
18493
18518
|
communityMachineCreatedSchema,
|
|
@@ -18532,6 +18557,8 @@ var WS_EVENTS = {
|
|
|
18532
18557
|
INVITE_CREATE: "community:invite.create",
|
|
18533
18558
|
MENTION_CREATE: "community:mention.create",
|
|
18534
18559
|
UNREAD_BUMP: "community:unread.bump",
|
|
18560
|
+
READ_STATE_ADVANCED: "community:read_state.advanced",
|
|
18561
|
+
INBOX_CHANGED: "community:inbox.changed",
|
|
18535
18562
|
PRESENCE_UPDATE: "community:presence.update",
|
|
18536
18563
|
STATUS_UPDATE: "community:status.update",
|
|
18537
18564
|
MACHINE_CREATED: "community:machine.created",
|