@agentronics/sdk 0.1.0

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.
@@ -0,0 +1,2 @@
1
+ export{P as init}from'./chunk-DKDVADEU.js';import'./chunk-5BS4OAQA.js';//# sourceMappingURL=init-only.js.map
2
+ //# sourceMappingURL=init-only.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"init-only.js"}
package/dist/lite.cjs ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';var c=()=>{if(typeof navigator>"u")return null;let t=navigator.modelContext;return t&&typeof t=="object"?t:null},o=async(t={})=>{let{pollMs:e=500}=t,n=Date.now();for(;;){let i=c();if(i)return l(i);if(Date.now()-n>=e)return null;await new Promise(s=>setTimeout(s,50));}},l=t=>({class:"webmcp",trust:"detected",confidence:1,vendor:t.vendor??t.client??null,userAgent:typeof navigator>"u"?null:navigator.userAgent,detectionVersion:"2026.04",signals:{webmcp:true,toolCount:Array.isArray(t.tools)?t.tools.length:0}});var r="agtx_pk_",p="agtx_sk_",u=({publishableKey:t,siteId:e="default",debug:n=false})=>{if(t.startsWith(p))throw new Error("A secret key was passed to Agentronics lite init(). Browser code must use a publishable key (agtx_pk_*).");if(!t.startsWith(r))throw new Error(`Agentronics lite init() expected a key starting with "${r}".`);return Object.freeze({publishableKey:t,siteId:e,debug:n,detectWebMcp:o})},g="0.1.0-lite";exports.VERSION=g;exports.detectWebMcp=o;exports.init=u;//# sourceMappingURL=lite.cjs.map
2
+ //# sourceMappingURL=lite.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/detection/webmcp.ts","../src/lite.ts"],"names":["readModelContext","value","detectWebMcp","options","pollMs","start","ctx","buildIdentity","resolve","PUBLISHABLE_KEY_PREFIX","SECRET_KEY_PREFIX","init","publishableKey","siteId","debug","VERSION"],"mappings":"aAQA,IAAMA,EAAmB,IAA+B,CACtD,GAAI,OAAO,UAAc,GAAA,CA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AACE,EAAe,UAAA,CAAWH,CAAsB,EACnD,MAAM,IAAI,KAAA,CAAM,CAAA,sDAAA,EAAyDA,CAAsB,CAAA,EAAA,CAAI,CAAA,CAGrG,OAAO,MAAA,CAAO,MAAA,CAAO,CACnB,cAAA,CAAAG,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,MAAAC,CAAAA,CACA,YAAA,CAAAZ,CACF,CAAC,CACH,EAKaa,CAAAA,CAAU","file":"lite.cjs","sourcesContent":["import type { AgentIdentity } from '@agentronics/protocol'\n\ninterface ModelContextLike {\n client?: string\n vendor?: string\n tools?: unknown[]\n}\n\nconst readModelContext = (): ModelContextLike | null => {\n if (typeof navigator === 'undefined') return null\n const value = (navigator as unknown as { modelContext?: ModelContextLike }).modelContext\n return value && typeof value === 'object' ? value : null\n}\n\nexport interface DetectWebMcpOptions {\n /**\n * Some extensions inject `navigator.modelContext` after first paint. Poll for this many\n * milliseconds before giving up. Set to 0 to read synchronously and return immediately.\n */\n pollMs?: number\n}\n\nexport const detectWebMcp = async (\n options: DetectWebMcpOptions = {}\n): Promise<AgentIdentity | null> => {\n const { pollMs = 500 } = options\n const start = Date.now()\n\n while (true) {\n const ctx = readModelContext()\n if (ctx) return buildIdentity(ctx)\n if (Date.now() - start >= pollMs) return null\n await new Promise((resolve) => setTimeout(resolve, 50))\n }\n}\n\nconst buildIdentity = (ctx: ModelContextLike): AgentIdentity => ({\n class: 'webmcp',\n trust: 'detected',\n confidence: 1,\n vendor: ctx.vendor ?? ctx.client ?? null,\n userAgent: typeof navigator === 'undefined' ? null : navigator.userAgent,\n detectionVersion: '2026.04',\n signals: {\n webmcp: true,\n toolCount: Array.isArray(ctx.tools) ? ctx.tools.length : 0,\n },\n})\n","import type { AgentIdentity } from '@agentronics/protocol'\nimport { detectWebMcp, type DetectWebMcpOptions } from './detection/webmcp.js'\n\nconst PUBLISHABLE_KEY_PREFIX = 'agtx_pk_'\nconst SECRET_KEY_PREFIX = 'agtx_sk_'\n\nexport interface LiteInitOptions {\n publishableKey: string\n siteId?: string\n debug?: boolean\n}\n\nexport interface LiteAgentronicsClient {\n readonly publishableKey: string\n readonly siteId: string\n readonly debug: boolean\n detectWebMcp(options?: DetectWebMcpOptions): Promise<AgentIdentity | null>\n}\n\nexport const init = ({\n publishableKey,\n siteId = 'default',\n debug = false,\n}: LiteInitOptions): LiteAgentronicsClient => {\n if (publishableKey.startsWith(SECRET_KEY_PREFIX)) {\n throw new Error(\n 'A secret key was passed to Agentronics lite init(). Browser code must use a publishable key (agtx_pk_*).'\n )\n }\n if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)) {\n throw new Error(`Agentronics lite init() expected a key starting with \"${PUBLISHABLE_KEY_PREFIX}\".`)\n }\n\n return Object.freeze({\n publishableKey,\n siteId,\n debug,\n detectWebMcp,\n })\n}\n\nexport { detectWebMcp } from './detection/webmcp.js'\nexport type { DetectWebMcpOptions } from './detection/webmcp.js'\n\nexport const VERSION = '0.1.0-lite'\n"]}
@@ -0,0 +1,20 @@
1
+ import { AgentIdentity } from '@agentronics/protocol';
2
+ import { D as DetectWebMcpOptions } from './webmcp-C4ikhM4g.cjs';
3
+ export { d as detectWebMcp } from './webmcp-C4ikhM4g.cjs';
4
+
5
+ interface LiteInitOptions {
6
+ publishableKey: string;
7
+ siteId?: string;
8
+ debug?: boolean;
9
+ }
10
+ interface LiteAgentronicsClient {
11
+ readonly publishableKey: string;
12
+ readonly siteId: string;
13
+ readonly debug: boolean;
14
+ detectWebMcp(options?: DetectWebMcpOptions): Promise<AgentIdentity | null>;
15
+ }
16
+ declare const init: ({ publishableKey, siteId, debug, }: LiteInitOptions) => LiteAgentronicsClient;
17
+
18
+ declare const VERSION = "0.1.0-lite";
19
+
20
+ export { DetectWebMcpOptions, type LiteAgentronicsClient, type LiteInitOptions, VERSION, init };
package/dist/lite.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { AgentIdentity } from '@agentronics/protocol';
2
+ import { D as DetectWebMcpOptions } from './webmcp-C4ikhM4g.js';
3
+ export { d as detectWebMcp } from './webmcp-C4ikhM4g.js';
4
+
5
+ interface LiteInitOptions {
6
+ publishableKey: string;
7
+ siteId?: string;
8
+ debug?: boolean;
9
+ }
10
+ interface LiteAgentronicsClient {
11
+ readonly publishableKey: string;
12
+ readonly siteId: string;
13
+ readonly debug: boolean;
14
+ detectWebMcp(options?: DetectWebMcpOptions): Promise<AgentIdentity | null>;
15
+ }
16
+ declare const init: ({ publishableKey, siteId, debug, }: LiteInitOptions) => LiteAgentronicsClient;
17
+
18
+ declare const VERSION = "0.1.0-lite";
19
+
20
+ export { DetectWebMcpOptions, type LiteAgentronicsClient, type LiteInitOptions, VERSION, init };
@@ -0,0 +1,2 @@
1
+ var Agentronics=(function(exports){'use strict';var c=()=>{if(typeof navigator>"u")return null;let t=navigator.modelContext;return t&&typeof t=="object"?t:null},o=async(t={})=>{let{pollMs:e=500}=t,n=Date.now();for(;;){let i=c();if(i)return l(i);if(Date.now()-n>=e)return null;await new Promise(s=>setTimeout(s,50));}},l=t=>({class:"webmcp",trust:"detected",confidence:1,vendor:t.vendor??t.client??null,userAgent:typeof navigator>"u"?null:navigator.userAgent,detectionVersion:"2026.04",signals:{webmcp:true,toolCount:Array.isArray(t.tools)?t.tools.length:0}});var r="agtx_pk_",p="agtx_sk_",u=({publishableKey:t,siteId:e="default",debug:n=false})=>{if(t.startsWith(p))throw new Error("A secret key was passed to Agentronics lite init(). Browser code must use a publishable key (agtx_pk_*).");if(!t.startsWith(r))throw new Error(`Agentronics lite init() expected a key starting with "${r}".`);return Object.freeze({publishableKey:t,siteId:e,debug:n,detectWebMcp:o})},g="0.1.0-lite";exports.VERSION=g;exports.detectWebMcp=o;exports.init=u;return exports;})({});//# sourceMappingURL=lite.global.js.map
2
+ //# sourceMappingURL=lite.global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/detection/webmcp.ts","../src/lite.ts"],"names":["readModelContext","value","detectWebMcp","options","pollMs","start","ctx","buildIdentity","res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A,CAAAC,CAAAA,CAAQ,KACV,CAAA,GAA8C,CAC5C,GAAIF,CAAAA,CAAe,UAAA,CAAWF,CAAiB,EAC7C,MAAM,IAAI,KAAA,CACR,0GACF,EAEF,GAAI,CAACE,EAAe,UAAA,CAAWH,CAAsB,EACnD,MAAM,IAAI,KAAA,CAAM,CAAA,sDAAA,EAAyDA,CAAsB,CAAA,EAAA,CAAI,CAAA,CAGrG,OAAO,MAAA,CAAO,MAAA,CAAO,CACnB,cAAA,CAAAG,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,MAAAC,CAAAA,CACA,YAAA,CAAAZ,CACF,CAAC,CACH,EAKaa,CAAAA,CAAU","file":"lite.global.js","sourcesContent":["import type { AgentIdentity } from '@agentronics/protocol'\n\ninterface ModelContextLike {\n client?: string\n vendor?: string\n tools?: unknown[]\n}\n\nconst readModelContext = (): ModelContextLike | null => {\n if (typeof navigator === 'undefined') return null\n const value = (navigator as unknown as { modelContext?: ModelContextLike }).modelContext\n return value && typeof value === 'object' ? value : null\n}\n\nexport interface DetectWebMcpOptions {\n /**\n * Some extensions inject `navigator.modelContext` after first paint. Poll for this many\n * milliseconds before giving up. Set to 0 to read synchronously and return immediately.\n */\n pollMs?: number\n}\n\nexport const detectWebMcp = async (\n options: DetectWebMcpOptions = {}\n): Promise<AgentIdentity | null> => {\n const { pollMs = 500 } = options\n const start = Date.now()\n\n while (true) {\n const ctx = readModelContext()\n if (ctx) return buildIdentity(ctx)\n if (Date.now() - start >= pollMs) return null\n await new Promise((resolve) => setTimeout(resolve, 50))\n }\n}\n\nconst buildIdentity = (ctx: ModelContextLike): AgentIdentity => ({\n class: 'webmcp',\n trust: 'detected',\n confidence: 1,\n vendor: ctx.vendor ?? ctx.client ?? null,\n userAgent: typeof navigator === 'undefined' ? null : navigator.userAgent,\n detectionVersion: '2026.04',\n signals: {\n webmcp: true,\n toolCount: Array.isArray(ctx.tools) ? ctx.tools.length : 0,\n },\n})\n","import type { AgentIdentity } from '@agentronics/protocol'\nimport { detectWebMcp, type DetectWebMcpOptions } from './detection/webmcp.js'\n\nconst PUBLISHABLE_KEY_PREFIX = 'agtx_pk_'\nconst SECRET_KEY_PREFIX = 'agtx_sk_'\n\nexport interface LiteInitOptions {\n publishableKey: string\n siteId?: string\n debug?: boolean\n}\n\nexport interface LiteAgentronicsClient {\n readonly publishableKey: string\n readonly siteId: string\n readonly debug: boolean\n detectWebMcp(options?: DetectWebMcpOptions): Promise<AgentIdentity | null>\n}\n\nexport const init = ({\n publishableKey,\n siteId = 'default',\n debug = false,\n}: LiteInitOptions): LiteAgentronicsClient => {\n if (publishableKey.startsWith(SECRET_KEY_PREFIX)) {\n throw new Error(\n 'A secret key was passed to Agentronics lite init(). Browser code must use a publishable key (agtx_pk_*).'\n )\n }\n if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)) {\n throw new Error(`Agentronics lite init() expected a key starting with \"${PUBLISHABLE_KEY_PREFIX}\".`)\n }\n\n return Object.freeze({\n publishableKey,\n siteId,\n debug,\n detectWebMcp,\n })\n}\n\nexport { detectWebMcp } from './detection/webmcp.js'\nexport type { DetectWebMcpOptions } from './detection/webmcp.js'\n\nexport const VERSION = '0.1.0-lite'\n"]}
package/dist/lite.js ADDED
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-5BS4OAQA.js';export{a as detectWebMcp}from'./chunk-5BS4OAQA.js';var i="agtx_pk_",r="agtx_sk_",c=({publishableKey:t,siteId:n="default",debug:o=false})=>{if(t.startsWith(r))throw new Error("A secret key was passed to Agentronics lite init(). Browser code must use a publishable key (agtx_pk_*).");if(!t.startsWith(i))throw new Error(`Agentronics lite init() expected a key starting with "${i}".`);return Object.freeze({publishableKey:t,siteId:n,debug:o,detectWebMcp:a})},p="0.1.0-lite";export{p as VERSION,c as init};//# sourceMappingURL=lite.js.map
2
+ //# sourceMappingURL=lite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lite.ts"],"names":["PUBLISHABLE_KEY_PREFIX","SECRET_KEY_PREFIX","init","publishableKey","siteId","debug","detectWebMcp","VERSION"],"mappings":"uFAGA,IAAMA,CAAAA,CAAyB,UAAA,CACzBC,CAAAA,CAAoB,UAAA,CAebC,CAAAA,CAAO,CAAC,CACnB,cAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CAAS,SAAA,CACT,MAAAC,CAAAA,CAAQ,KACV,CAAA,GAA8C,CAC5C,GAAIF,CAAAA,CAAe,UAAA,CAAWF,CAAiB,CAAA,CAC7C,MAAM,IAAI,KAAA,CACR,0GACF,CAAA,CAEF,GAAI,CAACE,CAAAA,CAAe,UAAA,CAAWH,CAAsB,CAAA,CACnD,MAAM,IAAI,KAAA,CAAM,CAAA,sDAAA,EAAyDA,CAAsB,CAAA,EAAA,CAAI,CAAA,CAGrG,OAAO,MAAA,CAAO,OAAO,CACnB,cAAA,CAAAG,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAC,CACH,CAAA,CAKaC,CAAAA,CAAU","file":"lite.js","sourcesContent":["import type { AgentIdentity } from '@agentronics/protocol'\nimport { detectWebMcp, type DetectWebMcpOptions } from './detection/webmcp.js'\n\nconst PUBLISHABLE_KEY_PREFIX = 'agtx_pk_'\nconst SECRET_KEY_PREFIX = 'agtx_sk_'\n\nexport interface LiteInitOptions {\n publishableKey: string\n siteId?: string\n debug?: boolean\n}\n\nexport interface LiteAgentronicsClient {\n readonly publishableKey: string\n readonly siteId: string\n readonly debug: boolean\n detectWebMcp(options?: DetectWebMcpOptions): Promise<AgentIdentity | null>\n}\n\nexport const init = ({\n publishableKey,\n siteId = 'default',\n debug = false,\n}: LiteInitOptions): LiteAgentronicsClient => {\n if (publishableKey.startsWith(SECRET_KEY_PREFIX)) {\n throw new Error(\n 'A secret key was passed to Agentronics lite init(). Browser code must use a publishable key (agtx_pk_*).'\n )\n }\n if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)) {\n throw new Error(`Agentronics lite init() expected a key starting with \"${PUBLISHABLE_KEY_PREFIX}\".`)\n }\n\n return Object.freeze({\n publishableKey,\n siteId,\n debug,\n detectWebMcp,\n })\n}\n\nexport { detectWebMcp } from './detection/webmcp.js'\nexport type { DetectWebMcpOptions } from './detection/webmcp.js'\n\nexport const VERSION = '0.1.0-lite'\n"]}
@@ -0,0 +1,12 @@
1
+ import { AgentIdentity } from '@agentronics/protocol';
2
+
3
+ interface DetectWebMcpOptions {
4
+ /**
5
+ * Some extensions inject `navigator.modelContext` after first paint. Poll for this many
6
+ * milliseconds before giving up. Set to 0 to read synchronously and return immediately.
7
+ */
8
+ pollMs?: number;
9
+ }
10
+ declare const detectWebMcp: (options?: DetectWebMcpOptions) => Promise<AgentIdentity | null>;
11
+
12
+ export { type DetectWebMcpOptions as D, detectWebMcp as d };
@@ -0,0 +1,12 @@
1
+ import { AgentIdentity } from '@agentronics/protocol';
2
+
3
+ interface DetectWebMcpOptions {
4
+ /**
5
+ * Some extensions inject `navigator.modelContext` after first paint. Poll for this many
6
+ * milliseconds before giving up. Set to 0 to read synchronously and return immediately.
7
+ */
8
+ pollMs?: number;
9
+ }
10
+ declare const detectWebMcp: (options?: DetectWebMcpOptions) => Promise<AgentIdentity | null>;
11
+
12
+ export { type DetectWebMcpOptions as D, detectWebMcp as d };
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@agentronics/sdk",
3
+ "version": "0.1.0",
4
+ "description": "Browser SDK for the Agentronics governance layer.",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ },
16
+ "./lite": {
17
+ "types": "./dist/lite.d.ts",
18
+ "import": "./dist/lite.js",
19
+ "require": "./dist/lite.cjs"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md"
25
+ ],
26
+ "dependencies": {
27
+ "@agentronics/protocol": "0.1.0"
28
+ },
29
+ "devDependencies": {
30
+ "@size-limit/preset-small-lib": "^11.1.6",
31
+ "happy-dom": "^15.11.7",
32
+ "size-limit": "^11.1.6",
33
+ "tsup": "^8.3.5",
34
+ "typescript": "^5.7.2",
35
+ "vitest": "^2.1.8",
36
+ "@agentronics/tsconfig": "0.0.0",
37
+ "@agentronics/eslint-config": "0.0.0",
38
+ "@agentronics/tsup-config": "0.0.0"
39
+ },
40
+ "size-limit": [
41
+ {
42
+ "name": "Agentronics.init reachable graph (esm, brotli)",
43
+ "path": "dist/init-only.js",
44
+ "limit": "25 KB"
45
+ },
46
+ {
47
+ "name": "lite (esm, gzipped)",
48
+ "path": "dist/lite.js",
49
+ "limit": "8 KB"
50
+ },
51
+ {
52
+ "name": "full (esm, gzipped)",
53
+ "path": "dist/index.js",
54
+ "limit": "30 KB"
55
+ }
56
+ ],
57
+ "publishConfig": {
58
+ "access": "public"
59
+ },
60
+ "scripts": {
61
+ "build": "tsup",
62
+ "dev": "tsup --watch",
63
+ "test": "vitest run",
64
+ "typecheck": "tsc --noEmit",
65
+ "lint": "eslint src",
66
+ "size": "size-limit",
67
+ "clean": "rm -rf dist .turbo"
68
+ }
69
+ }