flyspace-cli 0.1.37 → 0.1.39

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.
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __flyspaceCreateRequire } from 'node:module';
3
+ const require = __flyspaceCreateRequire(import.meta.url);
2
4
  import {
3
5
  getSupabaseClient
4
- } from "./chunk-GYHCSGMJ.js";
6
+ } from "./chunk-F5CXKDZV.js";
5
7
 
6
8
  // src/store/chat-admin-store.ts
7
9
  async function listChannels(profile) {
@@ -1,4 +1,37 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __flyspaceCreateRequire } from 'node:module';
3
+ const require = __flyspaceCreateRequire(import.meta.url);
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
12
+ }) : x)(function(x) {
13
+ if (typeof require !== "undefined") return require.apply(this, arguments);
14
+ throw Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
2
35
 
3
36
  // ../api/src/store/supabase-client.ts
4
37
  var client;
@@ -182,8 +215,9 @@ function sweepScratchDir(now = Date.now()) {
182
215
  var AGENT_AUTHOR = "agent";
183
216
  var SYNCED_BOT_AUTHOR = "Bot";
184
217
  var LEGACY_BOT_AUTHOR = "Custie";
218
+ var SUPPORT_BOT_AUTHOR = "Flyspace Support";
185
219
  var NON_HUMAN_AUTHORS = new Set(
186
- [AGENT_AUTHOR, SYNCED_BOT_AUTHOR, LEGACY_BOT_AUTHOR].map((a) => a.toLowerCase())
220
+ [AGENT_AUTHOR, SYNCED_BOT_AUTHOR, LEGACY_BOT_AUTHOR, SUPPORT_BOT_AUTHOR].map((a) => a.toLowerCase())
187
221
  );
188
222
  function isHumanAuthor(author) {
189
223
  return !NON_HUMAN_AUTHORS.has(author.toLowerCase());
@@ -427,6 +461,9 @@ async function createThread(supabase, channelId, text, title) {
427
461
  }
428
462
 
429
463
  export {
464
+ __require,
465
+ __commonJS,
466
+ __toESM,
430
467
  setSupabaseClient,
431
468
  setSupabaseClientFactory,
432
469
  hasSupabaseCredentials,
@@ -440,6 +477,7 @@ export {
440
477
  sweepScratchDir,
441
478
  AGENT_AUTHOR,
442
479
  SYNCED_BOT_AUTHOR,
480
+ SUPPORT_BOT_AUTHOR,
443
481
  isHumanAuthor,
444
482
  getR2Client,
445
483
  getR2Bucket,
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __flyspaceCreateRequire } from 'node:module';
3
+ const require = __flyspaceCreateRequire(import.meta.url);
2
4
  import {
3
5
  AGENT_AUTHOR,
4
6
  SYNCED_BOT_AUTHOR,
@@ -14,7 +16,7 @@ import {
14
16
  setSupabaseClientFactory,
15
17
  sweepScratchDir,
16
18
  syncPostToDashboard
17
- } from "./chunk-GYHCSGMJ.js";
19
+ } from "./chunk-F5CXKDZV.js";
18
20
 
19
21
  // src/index.ts
20
22
  import { execFile, spawn as spawn4 } from "child_process";
@@ -2226,6 +2228,16 @@ var featureFlags = {
2226
2228
  title: "Agent memory",
2227
2229
  description: "Channel memory the agent reads every turn, saved by the agent and picked up from idle threads, with a Memory tab and an undo chip. While on, Claude's built-in auto memory is switched off so the two can be compared; turning this off keeps every memory.",
2228
2230
  stage: "beta"
2231
+ },
2232
+ support_bot: {
2233
+ title: "Support bot",
2234
+ description: "Mention @support in any thread to get an answer from the Flyspace docs. The bot reads that thread (and only that thread) and sends it to an AI model.",
2235
+ stage: "beta"
2236
+ },
2237
+ autocomplete: {
2238
+ title: "Autocomplete",
2239
+ description: "Gray inline suggestions in the message composer that continue what you are typing, based on the channel. Press Tab to accept, Esc to dismiss. Your draft is sent to an AI model.",
2240
+ stage: "beta"
2229
2241
  }
2230
2242
  };
2231
2243
  var featureFlagIds = Object.keys(featureFlags);