@ours.network/mcp 0.17.0 → 0.18.0-nightly.2

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/contacts.js CHANGED
@@ -1,2 +1 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
1
  function r(t){let n=new Map;for(let e of t)n.set(e.name,(n.get(e.name)??0)+1);return n}function a(t){let n=r(t);return t.map(e=>`\u2022 ${e.name} \u2014 ${e.container_id}${e.rootTag??""}${e.degradedQueued!==void 0?` \u2014 \u26A0 keys pending restore (${e.degradedQueued} queued)`:""}${(n.get(e.name)??0)>1?" \u2014 \u26A0 DUPLICATE NAME: sends to this name abort; address by container id, repair with rename_contact":""}${e.renamedFrom!==void 0?` \u2014 \u26A0 renamed on import (two contacts were named "${e.renamedFrom}"; do NOT assume the one keeping the bare name is the live one \u2014 verify by container id, settle with rename_contact)`:""}`)}export{a as buildContactLines,r as duplicateNameCounts};
package/dist/push.js ADDED
@@ -0,0 +1 @@
1
+ function t(n,s,o){let e;try{e=n()}catch(r){o(s,r);return}e&&typeof e.then=="function"&&e.then(void 0,r=>o(s,r))}function i(n,s,o,e){t(()=>n.sendLoggingMessage({level:"info",logger:"ours",data:o}),"sendLoggingMessage",e),t(()=>n.server.sendResourceUpdated({uri:s}),"sendResourceUpdated",e)}export{i as pushInboxNotifications};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ours.network/mcp",
3
- "version": "0.17.0",
4
- "description": "MCP server daemon for ours one native ADAPT wrapper hosting N self-sovereign identities, exposing secure agent-to-agent messaging tools over HTTP (Streamable HTTP). Run `ours-mcp start`.",
3
+ "version": "0.18.0-nightly.2",
4
+ "description": "MCP adapter for the shared ours daemon, with application-local identity bookkeeping and secure agent-to-agent messaging tools over stdio.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",
7
7
  "author": "Adapt Toolkit",
@@ -40,19 +40,14 @@
40
40
  "build": "node build.mjs",
41
41
  "build:dev": "OURS_BUILD_DEV=1 node build.mjs",
42
42
  "build:tsc": "tsc -p tsconfig.json",
43
- "dev": "tsx src/cli.ts serve",
44
- "dev:stdio": "OURS_TRANSPORT=stdio tsx src/index.ts",
45
- "start": "node dist/cli.js start",
46
- "stop": "node dist/cli.js stop",
47
- "status": "node dist/cli.js status",
48
- "serve": "node dist/cli.js serve",
43
+ "dev": "tsx src/cli.ts proxy",
49
44
  "prepublishOnly": "node build.mjs",
50
45
  "typecheck": "tsc -p tsconfig.json --noEmit",
51
- "test": "bash ../../scripts/test-receipts-mufl.sh && bash ../../scripts/test-notifications-mufl.sh && bash ../../scripts/test-contact-uniqueness-mufl.sh && bash ../../scripts/test-temp-remove-me-mufl.sh && node test/contact-lines.test.mjs && node test/loopback-bind.test.mjs && node test/lease-binding.test.mjs && node test/proxy-request-failback.test.mjs && node test/proxy-exit-on-stdin-eof.test.mjs && node test/proxy-dead-stderr.test.mjs && node test/session-restore.test.mjs && node test/env-bind-identity.test.mjs && node test/daemon-restart-resume.test.mjs && node test/sse-keepalive.test.mjs && node test/version-advisory.test.mjs && node test/files-helpers.test.mjs && node test/inbox-encryption.test.mjs && node test/validate-name.test.mjs && node test/port-visibility.test.mjs && node test/notify-http-api.test.mjs && node test/file-save-stream.test.mjs && node test/unread-http-api.test.mjs && node test/create-root-cli.test.mjs && node test/session-reaper.test.mjs && node test/mig1867-verify.test.mjs && node test/single-root-policy.test.mjs && node test/pre137-blob-import-regression.test.mjs && node test/transcribe-detect.test.mjs && node test/transcribe-stt.test.mjs && node test/voice-status-cli.test.mjs && node test/process-state.test.mjs && node test/voice-setup-config.test.mjs && node test/voice-setup-cli.test.mjs && node test/startup-progress.test.mjs && node test/startup-cli.test.mjs && node test/contact-uniqueness-daemon.test.mjs && node test/contact-uniqueness-import.test.mjs && node test/contact-uniqueness-book.test.mjs && node test/invite-modes.test.mjs && node test/temp-identities.test.mjs"
46
+ "test": "node test/application-identities.test.mjs && node test/cli-delegation.test.mjs && node test/sdk-pin.test.mjs && node test/skill-tool-vocabulary.test.mjs && node test/inbox-push.test.mjs && node test/contact-lines.test.mjs"
52
47
  },
53
48
  "dependencies": {
54
- "@adapt-toolkit/sdk": "0.10.12",
55
- "@adapt-toolkit/sdk-native": "0.10.12"
49
+ "@ours.network/cli": "1.0.1",
50
+ "@ours.network/sdk": "2.0.1"
56
51
  },
57
52
  "devDependencies": {
58
53
  "@modelcontextprotocol/sdk": "^1.0.4",
package/dist/files.js DELETED
@@ -1,2 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- import{basename as e,extname as a}from"node:path";var p={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".bmp":"image/bmp",".ico":"image/x-icon",".pdf":"application/pdf",".txt":"text/plain",".md":"text/markdown",".json":"application/json",".csv":"text/csv",".html":"text/html",".xml":"application/xml",".zip":"application/zip",".gz":"application/gzip",".tar":"application/x-tar",".mp3":"audio/mpeg",".wav":"audio/wav",".mp4":"video/mp4",".mov":"video/quicktime"};function m(i){return p[a(i).toLowerCase()]??"application/octet-stream"}function o(i){let t=e(i).replace(/[^A-Za-z0-9._-]/g,"_");return t.length?t.slice(0,200):"file"}export{m as mimeFromExt,o as sanitizeFilename};
package/dist/inbox.js DELETED
@@ -1,2 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- var i=new Set(["e2e_app_recv","migration_deferred_flush"]);function a(e){let n=new Set;for(let t of e){if(!t||typeof t!="object")continue;let r=t.event;if(typeof r!="string"||!i.has(r))continue;let s=t.wire_id;typeof s=="string"&&s.length>0&&n.add(s)}return n}function o(e,n){return e&&n.has(e)?"e2e":"legacy"}function g(e,n){let t=o(e.wire_id,n);return{msg_id:e.msg_id,wire_id:e.wire_id,from:{id:e.sender_id,name:e.sender_name},encryption:t,transport:t==="e2e"?"double_ratchet":"legacy_box",text:e.text,date:e.date,status:e.status,reply_to:e.reply_to}}function d(e,n){let t=e.map(r=>g(r,n));return{count:t.length,messages:t}}export{d as buildMessagesPayload,a as e2eWireIdsFromEvents,o as encryptionFor,g as toMessageJson};