@mosadd/mcp 3.0.0-alpha.50 → 3.0.0-alpha.51

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/bin/mcp.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createMosaddServer
4
- } from "../chunk-L4PB6A6Z.js";
4
+ } from "../chunk-BTAIZKYT.js";
5
5
  import {
6
6
  isSessionExpired,
7
7
  loadSession,
@@ -1400,7 +1400,7 @@ async function ensureLineChannelKey() {
1400
1400
  if (!identity) return null;
1401
1401
  if (identity.kind !== "agent" && identity.kind !== "robot") return null;
1402
1402
  const sb = getSupabase();
1403
- const { data: row, error: readErr } = await sb.from("channel_line_keys").select("public_key, private_key").eq("identity_id", identity.id).maybeSingle();
1403
+ const { data: row, error: readErr } = await sb.from("mosadd_channel_line_keys").select("public_key, private_key").eq("identity_id", identity.id).maybeSingle();
1404
1404
  if (readErr) return null;
1405
1405
  if (row?.private_key) {
1406
1406
  const key2 = { publicKey: fromBase642(row.public_key), privateKey: fromBase642(row.private_key) };
@@ -1413,11 +1413,11 @@ async function ensureLineChannelKey() {
1413
1413
  const { data: u } = await sb.auth.getUser();
1414
1414
  const userId = u?.user?.id;
1415
1415
  if (!userId) return null;
1416
- await sb.from("channel_line_keys").upsert(
1416
+ await sb.from("mosadd_channel_line_keys").upsert(
1417
1417
  { identity_id: identity.id, user_id: userId, public_key: exported.publicKey, private_key: exported.privateKey, key_version: 1 },
1418
1418
  { onConflict: "identity_id", ignoreDuplicates: true }
1419
1419
  );
1420
- const { data: winner, error: winnerErr } = await sb.from("channel_line_keys").select("public_key, private_key").eq("identity_id", identity.id).maybeSingle();
1420
+ const { data: winner, error: winnerErr } = await sb.from("mosadd_channel_line_keys").select("public_key, private_key").eq("identity_id", identity.id).maybeSingle();
1421
1421
  if (winnerErr || !winner?.private_key) return null;
1422
1422
  await syncPublishedKey(identity.id, winner.public_key);
1423
1423
  const key = { publicKey: fromBase642(winner.public_key), privateKey: fromBase642(winner.private_key) };
@@ -3483,7 +3483,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3483
3483
  // package.json
3484
3484
  var package_default = {
3485
3485
  name: "@mosadd/mcp",
3486
- version: "3.0.0-alpha.50",
3486
+ version: "3.0.0-alpha.51",
3487
3487
  mcpName: "io.github.hei33enberg/mosadd-mcp",
3488
3488
  description: "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions \u2014 85 tools \u2014 to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
3489
3489
  homepage: "https://github.com/Hei33enberg/mosADD-OS/tree/main/packages/mcp",
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createMosaddServer,
5
5
  defaultProviders,
6
6
  runWithSupabaseEnv
7
- } from "./chunk-L4PB6A6Z.js";
7
+ } from "./chunk-BTAIZKYT.js";
8
8
  import "./chunk-Z7WR52GE.js";
9
9
  export {
10
10
  TOOL_COUNT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mosadd/mcp",
3
- "version": "3.0.0-alpha.50",
3
+ "version": "3.0.0-alpha.51",
4
4
  "mcpName": "io.github.hei33enberg/mosadd-mcp",
5
5
  "description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions — 85 tools — to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
6
6
  "homepage": "https://github.com/Hei33enberg/mosADD-OS/tree/main/packages/mcp",
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * This module gives a LINE the same parity:
12
12
  * 1. ensureLineChannelKey() — resolves the key's identity (identities.user_id),
13
- * provisions a PERSISTENT X25519 keypair in `channel_line_keys` (RLS: only the
13
+ * provisions a PERSISTENT X25519 keypair in `mosadd_channel_line_keys` (RLS: only the
14
14
  * line's own auth user) and publishes the public half to
15
15
  * identities.signed_prekey_pub, so app-side invites wrap the group key to it.
16
16
  * Provisioning is REFUSED for human identities — their X25519 key is derived
@@ -168,7 +168,7 @@ export async function ensureLineChannelKey(): Promise<LineChannelKey | null> {
168
168
 
169
169
  const sb = getSupabase();
170
170
  const { data: row, error: readErr } = await sb
171
- .from("channel_line_keys")
171
+ .from("mosadd_channel_line_keys")
172
172
  .select("public_key, private_key")
173
173
  .eq("identity_id", identity.id)
174
174
  .maybeSingle();
@@ -189,13 +189,13 @@ export async function ensureLineChannelKey(): Promise<LineChannelKey | null> {
189
189
  const userId = u?.user?.id;
190
190
  if (!userId) return null;
191
191
  await sb
192
- .from("channel_line_keys")
192
+ .from("mosadd_channel_line_keys")
193
193
  .upsert(
194
194
  { identity_id: identity.id, user_id: userId, public_key: exported.publicKey, private_key: exported.privateKey, key_version: 1 },
195
195
  { onConflict: "identity_id", ignoreDuplicates: true },
196
196
  );
197
197
  const { data: winner, error: winnerErr } = await sb
198
- .from("channel_line_keys")
198
+ .from("mosadd_channel_line_keys")
199
199
  .select("public_key, private_key")
200
200
  .eq("identity_id", identity.id)
201
201
  .maybeSingle();