flyspace-cli 0.1.34 → 0.1.35

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1861,7 +1861,7 @@ async function runAuthCmd(args) {
1861
1861
  }
1862
1862
 
1863
1863
  // ../api/src/version.ts
1864
- var CLI_VERSION = true ? "0.1.34" : null;
1864
+ var CLI_VERSION = true ? "0.1.35" : null;
1865
1865
  function isOlderVersion(a, b) {
1866
1866
  const parse = (v) => v.replace(/^v/, "").split("-")[0].split(".").map(Number);
1867
1867
  const [pa, pb] = [parse(a), parse(b)];
@@ -2471,7 +2471,7 @@ function npmEnv(target) {
2471
2471
  return nodeBin ? { ...process.env, PATH: `${nodeBin}:${process.env.PATH ?? ""}` } : process.env;
2472
2472
  }
2473
2473
  async function runUpgrade() {
2474
- const current = "0.1.34";
2474
+ const current = "0.1.35";
2475
2475
  console.log(`Current version: ${current}`);
2476
2476
  console.log("Checking for updates...\n");
2477
2477
  try {
@@ -20005,7 +20005,7 @@ async function channelNames(ids) {
20005
20005
  async function deliverPending() {
20006
20006
  const since2 = new Date(Date.now() - MAX_AGE_MINUTES * 6e4).toISOString();
20007
20007
  const graceCutoff = new Date(Date.now() - GRACE_MS).toISOString();
20008
- const { data, error: error2 } = await getSupabaseClient().from("notifications").select("id, user_id, thread_id, channel_id, kind, thread_replies (author, body)").is("delivered_at", null).is("read_at", null).gte("created_at", since2).lte("created_at", graceCutoff).order("created_at", { ascending: true }).limit(50);
20008
+ const { data, error: error2 } = await getSupabaseClient().from("notifications").select("id, user_id, thread_id, channel_id, reply_id, kind, thread_replies (author, body)").is("delivered_at", null).is("read_at", null).gte("created_at", since2).lte("created_at", graceCutoff).order("created_at", { ascending: true }).limit(50);
20009
20009
  if (error2) {
20010
20010
  console.error("[push] could not read pending notifications:", error2.message);
20011
20011
  return;
@@ -20037,7 +20037,9 @@ async function deliverPending() {
20037
20037
  await pushToUser(row.user_id, {
20038
20038
  title: row.kind === "mention" ? `${author} mentioned you in #${channel}` : `${author} replied in #${channel}`,
20039
20039
  body: preview(row.thread_replies?.body ?? ""),
20040
- url: `/chat/${row.channel_id}/${row.thread_id}`,
20040
+ // Same #m- anchor as the dashboard's messageAnchor(), so the thread
20041
+ // opens on this reply and flashes it.
20042
+ url: `/chat/${row.channel_id}/${row.thread_id}${row.reply_id ? `#m-${row.reply_id.slice(0, 8)}` : ""}`,
20041
20043
  threadId: row.thread_id,
20042
20044
  unreadCount
20043
20045
  });
@@ -20677,7 +20679,7 @@ async function main() {
20677
20679
  break;
20678
20680
  case "-v":
20679
20681
  case "--version":
20680
- printRaw("0.1.34");
20682
+ printRaw("0.1.35");
20681
20683
  break;
20682
20684
  case "-h":
20683
20685
  case "--help":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flyspace-cli",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "AI-native headless community OS",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "private": false,