@larkup/cli 0.2.1 → 0.2.3

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.
@@ -3,7 +3,7 @@ import {
3
3
  getAnalyticsSummary,
4
4
  readUsageEvents,
5
5
  trackUsageEvent
6
- } from "./chunk-7XN2G4CW.js";
6
+ } from "./chunk-ZJLA4SIG.js";
7
7
  import "./chunk-3RG5ZIWI.js";
8
8
  export {
9
9
  estimateCost,
@@ -90,7 +90,7 @@ var FALLBACK_REGISTRY = {
90
90
  name: "Video & Audio",
91
91
  description: "Index video and audio files with transcription and frame analysis.",
92
92
  category: "media",
93
- version: "0.1.0",
93
+ version: "0.2.0",
94
94
  pricing: "free",
95
95
  emoji: "\u{1F3AC}",
96
96
  icon: "Film",
@@ -171,7 +171,7 @@ var FALLBACK_REGISTRY = {
171
171
  name: "Document Editor",
172
172
  description: "AI-powered form filling and document editing with Canvas-style live preview.",
173
173
  category: "utility",
174
- version: "0.1.0",
174
+ version: "0.2.1",
175
175
  pricing: "free",
176
176
  emoji: "\u{1F4DD}",
177
177
  icon: "FileEdit",
@@ -12,7 +12,7 @@ import net from "net";
12
12
 
13
13
  // ../../packages/core/src/types.ts
14
14
  var DEFAULT_CONFIG = {
15
- projectName: "my-rag",
15
+ projectName: "my-larkup",
16
16
  embeddingProvider: "openai",
17
17
  embeddingApiKey: "",
18
18
  embeddingModelId: "openai/text-embedding-3-small",
package/dist/index.js CHANGED
@@ -11,12 +11,12 @@ import {
11
11
  runWithServer,
12
12
  setActiveServer,
13
13
  trackUsageEvent
14
- } from "./chunk-7XN2G4CW.js";
14
+ } from "./chunk-ZJLA4SIG.js";
15
15
  import {
16
16
  getAllTools,
17
17
  getToolById,
18
18
  invalidateRegistryCache
19
- } from "./chunk-NH7TTMXS.js";
19
+ } from "./chunk-SWHRNA3E.js";
20
20
  import {
21
21
  __require
22
22
  } from "./chunk-3RG5ZIWI.js";
@@ -27,7 +27,7 @@ import { Command } from "commander";
27
27
  // package.json
28
28
  var package_default = {
29
29
  name: "@larkup/cli",
30
- version: "0.2.1",
30
+ version: "0.2.3",
31
31
  publishConfig: {
32
32
  access: "public"
33
33
  },
@@ -1367,7 +1367,7 @@ const server = createServer(async (req, res) => {
1367
1367
  <head>
1368
1368
  <meta charset="utf-8" />
1369
1369
  <meta name="viewport" content="width=device-width, initial-scale=1" />
1370
- <title>\${${JSON.stringify(config.projectName)}} \u2014 RAG Server</title>
1370
+ <title>\${${JSON.stringify(config.projectName)}} \u2014 Larkup Server</title>
1371
1371
  <link rel="icon" href="/favicon2.ico" type="image/x-icon" />
1372
1372
  <link rel="preconnect" href="https://fonts.googleapis.com">
1373
1373
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@@ -1402,7 +1402,7 @@ const server = createServer(async (req, res) => {
1402
1402
  <div class="container">
1403
1403
  <div class="badge"><span class="dot"></span> Server Online</div>
1404
1404
  <h1>\${${JSON.stringify(config.projectName)}}</h1>
1405
- <p class="subtitle">Your RAG retrieval server is live and ready to accept queries.<br/>Powered by <strong style="color:#000000">Larkup</strong></p>
1405
+ <p class="subtitle">Your Larkup Server is ready.<br/>Powered by <strong style="color:#df9c20">Larkup</strong></p>
1406
1406
  <div class="actions">
1407
1407
  <a href="/reference" class="btn btn-primary">
1408
1408
  <svg class="icon" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>
@@ -1908,9 +1908,7 @@ const server = createServer(async (req, res) => {
1908
1908
  return send(res, 404, { error: "Not found" })
1909
1909
  })
1910
1910
 
1911
- server.listen(PORT, () => {
1912
- console.log(\`[${config.projectName}] RAG server listening on :\${PORT}\`)
1913
- })
1911
+ server.listen(PORT)
1914
1912
  `;
1915
1913
  }
1916
1914
  function demoSource() {
@@ -4224,7 +4222,7 @@ async function embedTexts(config, texts) {
4224
4222
  values: texts
4225
4223
  });
4226
4224
  const totalTokens = texts.reduce((acc, t) => acc + Math.ceil(t.length / 4), 0);
4227
- const { trackUsageEvent: trackUsageEvent2, estimateCost: estimateCost2 } = await import("./analytics-store-GE6UT5LA.js");
4225
+ const { trackUsageEvent: trackUsageEvent2, estimateCost: estimateCost2 } = await import("./analytics-store-VOKLZYUM.js");
4228
4226
  void trackUsageEvent2({
4229
4227
  type: "embedding",
4230
4228
  embeddingModelId: config.embeddingModelId,
@@ -4295,7 +4293,7 @@ async function createAdapter(config, onRateLimit) {
4295
4293
  }
4296
4294
  case "lancedb":
4297
4295
  default: {
4298
- const { LanceDBAdapter } = await import("./lancedb-ZXGPDC7O.js");
4296
+ const { LanceDBAdapter } = await import("./lancedb-ITW7V3K5.js");
4299
4297
  return new LanceDBAdapter({
4300
4298
  mode: overrides.mode,
4301
4299
  dbPath: overrides.dbPath,
@@ -3,7 +3,16 @@ import "./chunk-3RG5ZIWI.js";
3
3
  // ../../packages/vector-stores/src/adapters/lancedb.ts
4
4
  import path from "path";
5
5
  import fs from "fs/promises";
6
- import * as lancedb from "@lancedb/lancedb";
6
+ var lancedbModule = null;
7
+ async function getLanceDB() {
8
+ if (!lancedbModule) {
9
+ lancedbModule = await import(
10
+ /* turbopackIgnore: true */
11
+ "@lancedb/lancedb"
12
+ );
13
+ }
14
+ return lancedbModule;
15
+ }
7
16
  var LanceDBAdapter = class {
8
17
  constructor(config) {
9
18
  this.config = config;
@@ -15,6 +24,7 @@ var LanceDBAdapter = class {
15
24
  tableName;
16
25
  async connect() {
17
26
  if (this.conn) return this.conn;
27
+ const lancedb = await getLanceDB();
18
28
  if (this.config.mode === "cloud") {
19
29
  if (!this.config.uri || !this.config.apiKey) {
20
30
  throw new Error("LanceDB Cloud requires both a URI and an API key.");
@@ -6,7 +6,7 @@ import {
6
6
  getToolById,
7
7
  getToolsWithCapability,
8
8
  invalidateRegistryCache
9
- } from "./chunk-NH7TTMXS.js";
9
+ } from "./chunk-SWHRNA3E.js";
10
10
  import "./chunk-3RG5ZIWI.js";
11
11
  export {
12
12
  buildRegistry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,9 +28,9 @@
28
28
  "cli-table3": "^0.6.5",
29
29
  "commander": "^15.0.0",
30
30
  "zod": "^4.4.3",
31
- "@larkup/core": "0.2.0",
32
- "@larkup/marketplace": "0.1.1",
33
- "@larkup/vector-stores": "0.1.21"
31
+ "@larkup/vector-stores": "0.1.22",
32
+ "@larkup/marketplace": "0.1.3",
33
+ "@larkup/core": "0.2.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8.0.0",