replicas-cli 0.3.47 → 0.3.49

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/index.cjs +138 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22507,6 +22507,99 @@ var modelsDevCatalogSchema = external_exports.record(external_exports.string(),
22507
22507
  }))
22508
22508
  }));
22509
22509
 
22510
+ // ../shared/src/languages.ts
22511
+ var EXT_TO_LANGUAGE = {
22512
+ ".ts": "typescript",
22513
+ ".tsx": "tsx",
22514
+ ".mts": "typescript",
22515
+ ".cts": "typescript",
22516
+ ".js": "javascript",
22517
+ ".jsx": "jsx",
22518
+ ".mjs": "javascript",
22519
+ ".cjs": "javascript",
22520
+ ".py": "python",
22521
+ ".pyw": "python",
22522
+ ".pyi": "python",
22523
+ ".rs": "rust",
22524
+ ".go": "go",
22525
+ ".rb": "ruby",
22526
+ ".rake": "ruby",
22527
+ ".java": "java",
22528
+ ".kt": "kotlin",
22529
+ ".kts": "kotlin",
22530
+ ".scala": "scala",
22531
+ ".swift": "swift",
22532
+ ".m": "objectivec",
22533
+ ".mm": "objectivec",
22534
+ ".c": "c",
22535
+ ".cpp": "cpp",
22536
+ ".cc": "cpp",
22537
+ ".cxx": "cpp",
22538
+ ".h": "c",
22539
+ ".hpp": "cpp",
22540
+ ".hh": "cpp",
22541
+ ".hxx": "cpp",
22542
+ ".cs": "csharp",
22543
+ ".vb": "vbnet",
22544
+ ".fs": "fsharp",
22545
+ ".php": "php",
22546
+ ".phtml": "php",
22547
+ ".css": "css",
22548
+ ".scss": "scss",
22549
+ ".sass": "sass",
22550
+ ".less": "less",
22551
+ ".html": "html",
22552
+ ".htm": "html",
22553
+ ".vue": "vue",
22554
+ ".svelte": "svelte",
22555
+ ".xml": "xml",
22556
+ ".svg": "xml",
22557
+ ".json": "json",
22558
+ ".json5": "json5",
22559
+ ".yaml": "yaml",
22560
+ ".yml": "yaml",
22561
+ ".toml": "toml",
22562
+ ".ini": "ini",
22563
+ ".md": "markdown",
22564
+ ".markdown": "markdown",
22565
+ ".mmd": "mermaid",
22566
+ ".mermaid": "mermaid",
22567
+ ".sql": "sql",
22568
+ ".sh": "bash",
22569
+ ".bash": "bash",
22570
+ ".zsh": "bash",
22571
+ ".fish": "bash",
22572
+ ".dockerfile": "dockerfile",
22573
+ ".graphql": "graphql",
22574
+ ".proto": "protobuf",
22575
+ ".r": "r",
22576
+ ".lua": "lua",
22577
+ ".dart": "dart",
22578
+ ".zig": "zig",
22579
+ ".ex": "elixir",
22580
+ ".exs": "elixir",
22581
+ ".erl": "erlang",
22582
+ ".hs": "haskell",
22583
+ ".ml": "ocaml",
22584
+ ".clj": "clojure",
22585
+ ".cljs": "clojure",
22586
+ ".pl": "perl",
22587
+ ".perl": "perl",
22588
+ ".elm": "elm",
22589
+ ".lisp": "lisp"
22590
+ };
22591
+ function detectLanguageByPath(filePath) {
22592
+ const dot = filePath.lastIndexOf(".");
22593
+ if (dot === -1) {
22594
+ const basename = filePath.split("/").pop() ?? "";
22595
+ if (basename === "Dockerfile") return "dockerfile";
22596
+ if (basename === "Makefile") return "makefile";
22597
+ return null;
22598
+ }
22599
+ const ext = filePath.slice(dot).toLowerCase();
22600
+ return EXT_TO_LANGUAGE[ext] ?? null;
22601
+ }
22602
+
22510
22603
  // ../shared/src/engine/types.ts
22511
22604
  var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
22512
22605
  var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
@@ -22816,7 +22909,7 @@ var CANVAS_KIND_BY_EXTENSION = {
22816
22909
  function classifyCanvasFilename(filename) {
22817
22910
  const idx = filename.lastIndexOf(".");
22818
22911
  const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
22819
- return CANVAS_KIND_BY_EXTENSION[ext] ?? { kind: "other", mimeType: "application/octet-stream" };
22912
+ return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
22820
22913
  }
22821
22914
 
22822
22915
  // ../shared/src/chat-fork.ts
@@ -25297,6 +25390,8 @@ Use this when:
25297
25390
  - The user asks to inspect Vanta controls, tests, evidence, vendors, risks, or compliance data
25298
25391
  - The user asks to query or update a connected turbopuffer namespace
25299
25392
  - The user asks for PlanetScale organizations, databases, branches, or Insights data
25393
+ - The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
25394
+ - The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
25300
25395
  - The user asks to analyze text with Pangram`;
25301
25396
  var REFERENCE9 = `# Plugins
25302
25397
 
@@ -25393,6 +25488,29 @@ const databases = await replicas.planetscale.request('/organizations/acme/databa
25393
25488
 
25394
25489
  OAuth scopes control permitted operations. Confirm mutations before using POST, PUT, PATCH, or DELETE.
25395
25490
 
25491
+ ## Sazabi
25492
+
25493
+ Sazabi is a native OAuth integration. Its MCP server has two tools: \`search\` finds an operation and \`execute\` runs it. Replicas refreshes access tokens server-side:
25494
+
25495
+ \`\`\`ts
25496
+ const hits = await replicas.sazabi.call('search', { query: 'log query', namespace: 'sazabi' });
25497
+ const schema = await replicas.sazabi.call('search', { query: 'sazabi/logs.ask', namespace: 'sazabi', includeInputSchema: true });
25498
+ const answer = await replicas.sazabi.call('execute', { name: 'sazabi/logs.ask', arguments: { question: 'Why did checkout 500 in the last hour?' } });
25499
+ \`\`\`
25500
+
25501
+ Copy each hit's \`name\` into \`execute\` and match its input schema. Agent runs that outlive \`execute\` return a run ID; poll it with \`sazabi/runs.get\`. Calls act as the user who connected Sazabi, with that user's read and write access, so confirm mutations first. See [Sazabi's MCP reference](https://docs.sazabi.com/reference/mcp-server).
25502
+
25503
+ ## Kondo
25504
+
25505
+ Kondo is a native OAuth integration for the user's LinkedIn inbox. List its MCP tools first, since Kondo adds tools over time, then call one by name:
25506
+
25507
+ \`\`\`ts
25508
+ const { tools } = await replicas.kondo.tools();
25509
+ const inboxes = await replicas.kondo.call('list_inboxes');
25510
+ \`\`\`
25511
+
25512
+ Calls reach LinkedIn through Kondo in the user's browser: if they fail or time out, ask the user to keep Kondo open in exactly one tab. Label tools take ids from \`list_inboxes\`. \`set_chat_draft\` only fills the compose box; never say a message was sent. See [Kondo's LinkedIn guide](https://www.trykondo.com/skills/kondo-linkedin.md).
25513
+
25396
25514
  ## Vercel
25397
25515
 
25398
25516
  Vercel is a native access-token integration. Pass a relative path from the Vercel REST API, including a \`teamId\` query parameter for team-owned resources:
@@ -28449,7 +28567,7 @@ var headlessAgentRequestSchema = external_exports.object({
28449
28567
  });
28450
28568
 
28451
28569
  // ../shared/src/cli-version.ts
28452
- var CLI_VERSION = "0.3.47";
28570
+ var CLI_VERSION = "0.3.49";
28453
28571
 
28454
28572
  // ../shared/src/version.ts
28455
28573
  function compareVersions(v1, v2) {
@@ -28732,6 +28850,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
28732
28850
  name: "PlanetScale",
28733
28851
  description: "Manage organizations, databases, branches, deploy requests, and Insights."
28734
28852
  },
28853
+ {
28854
+ id: "sazabi",
28855
+ backend: "native",
28856
+ toolkit: "sazabi",
28857
+ authType: "oauth",
28858
+ category: "data",
28859
+ name: "Sazabi",
28860
+ description: "Query logs, investigate issues, and run the Sazabi observability agent."
28861
+ },
28735
28862
  {
28736
28863
  id: "stripe",
28737
28864
  backend: "composio",
@@ -28741,6 +28868,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
28741
28868
  name: "Stripe",
28742
28869
  description: "Manage customers, payments, invoices, subscriptions, and balances."
28743
28870
  },
28871
+ {
28872
+ id: "kondo",
28873
+ backend: "native",
28874
+ toolkit: "kondo",
28875
+ authType: "oauth",
28876
+ category: "business",
28877
+ name: "Kondo",
28878
+ description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
28879
+ },
28744
28880
  {
28745
28881
  id: "lightfield",
28746
28882
  backend: "native",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.47",
3
+ "version": "0.3.49",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {