@absolutejs/agent 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.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -0
  3. package/dist/a2a.d.ts +1 -0
  4. package/dist/a2a.js +6 -0
  5. package/dist/a2a.js.map +10 -0
  6. package/dist/actions.d.ts +1 -0
  7. package/dist/actions.js +6 -0
  8. package/dist/actions.js.map +10 -0
  9. package/dist/auth.d.ts +1 -0
  10. package/dist/auth.js +6 -0
  11. package/dist/auth.js.map +10 -0
  12. package/dist/conformance.d.ts +1 -0
  13. package/dist/conformance.js +6 -0
  14. package/dist/conformance.js.map +10 -0
  15. package/dist/control.d.ts +1 -0
  16. package/dist/control.js +6 -0
  17. package/dist/control.js.map +10 -0
  18. package/dist/discovery.d.ts +1 -0
  19. package/dist/discovery.js +6 -0
  20. package/dist/discovery.js.map +10 -0
  21. package/dist/inbox.d.ts +1 -0
  22. package/dist/inbox.js +6 -0
  23. package/dist/inbox.js.map +10 -0
  24. package/dist/index.d.ts +38 -0
  25. package/dist/index.js +78 -0
  26. package/dist/index.js.map +10 -0
  27. package/dist/manifest.d.ts +1 -0
  28. package/dist/manifest.js +64 -0
  29. package/dist/manifest.js.map +10 -0
  30. package/dist/manifest.json +51 -0
  31. package/dist/mcp.d.ts +1 -0
  32. package/dist/mcp.js +6 -0
  33. package/dist/mcp.js.map +10 -0
  34. package/dist/memory.d.ts +1 -0
  35. package/dist/memory.js +6 -0
  36. package/dist/memory.js.map +10 -0
  37. package/dist/policy.d.ts +1 -0
  38. package/dist/policy.js +6 -0
  39. package/dist/policy.js.map +10 -0
  40. package/dist/runtime.d.ts +1 -0
  41. package/dist/runtime.js +6 -0
  42. package/dist/runtime.js.map +10 -0
  43. package/dist/sandbox.d.ts +1 -0
  44. package/dist/sandbox.js +6 -0
  45. package/dist/sandbox.js.map +10 -0
  46. package/dist/trust.d.ts +1 -0
  47. package/dist/trust.js +6 -0
  48. package/dist/trust.js.map +10 -0
  49. package/dist/wallet.d.ts +1 -0
  50. package/dist/wallet.js +6 -0
  51. package/dist/wallet.js.map +10 -0
  52. package/package.json +153 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alex Kahn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @absolutejs/agent
2
+
3
+ The production-grade, provider-neutral agent stack for AbsoluteJS.
4
+
5
+ This is the cohesive entry point, not another agent runtime. Each engine remains
6
+ independently installable and replaceable; this package provides one documented
7
+ golden path, typed subpath exports, production-readiness checks, and an
8
+ AbsoluteJS manifest that lets coding agents discover the whole stack.
9
+
10
+ ```ts
11
+ import { assertProductionReady, defineAgentStack } from "@absolutejs/agent";
12
+ import { createAgentRuntime } from "@absolutejs/agent/runtime";
13
+ import { createAgency } from "@absolutejs/agent/actions";
14
+
15
+ const stack = defineAgentStack([
16
+ { capability: "durability", instance: runtime, name: "runtime" },
17
+ { capability: "authorization", instance: agency, name: "actions" },
18
+ ] as const);
19
+
20
+ await assertProductionReady(stack); // fails until every production concern is wired
21
+ ```
22
+
23
+ ## Stable subpaths
24
+
25
+ - `@absolutejs/agent/auth` — native auth.md registration, ID-JAG, scoped delegation
26
+ - `@absolutejs/agent/actions` — approvals, leases, receipts, kill switches, handoffs
27
+ - `@absolutejs/agent/runtime` — durable runs, checkpoints, budgets, effects
28
+ - `@absolutejs/agent/sandbox` — deny-by-default HTTP, filesystem, and process grants
29
+ - `@absolutejs/agent/trust` — provenance, taint propagation, safe context and sinks
30
+ - `@absolutejs/agent/memory` — scoped, authorized, erasable durable memory
31
+ - `@absolutejs/agent/inbox` — verified webhooks, schedules, retries, dead letters
32
+ - `@absolutejs/agent/discovery` — signed well-known documents, cards, text, sitemaps, registry
33
+ - `@absolutejs/agent/mcp` and `/a2a` — open interoperability transports
34
+ - `@absolutejs/agent/policy` — versioned policy and AuthZEN adapters
35
+ - `@absolutejs/agent/wallet` — reservations, idempotent settlement, spending policy
36
+ - `@absolutejs/agent/control` — operator inventory, revoke, restore, kill switches
37
+ - `@absolutejs/agent/conformance` — adversarial protocol and action suites
38
+
39
+ The package deliberately does not introduce an Absolute-only wire protocol.
40
+ Applications expose standard MCP, A2A, OAuth, RFC 9728/RFC 8414, auth.md, and
41
+ AuthZEN surfaces while Absolute supplies provider-neutral implementation seams.
package/dist/a2a.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/a2a";
package/dist/a2a.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/a2a.ts
3
+ export * from "@absolutejs/a2a";
4
+
5
+ //# debugId=403C1C69819BC51564756E2164756E21
6
+ //# sourceMappingURL=a2a.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/a2a.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/a2a\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "403C1C69819BC51564756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agency";
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/actions.ts
3
+ export * from "@absolutejs/agency";
4
+
5
+ //# debugId=A280C5CD9E78AED364756E2164756E21
6
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/actions.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agency\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "A280C5CD9E78AED364756E2164756E21",
9
+ "names": []
10
+ }
package/dist/auth.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/auth/agents";
package/dist/auth.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/auth.ts
3
+ export * from "@absolutejs/auth/agents";
4
+
5
+ //# debugId=20B374E0F320429864756E2164756E21
6
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/auth.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/auth/agents\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "20B374E0F320429864756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-conformance";
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/conformance.ts
3
+ export * from "@absolutejs/agent-conformance";
4
+
5
+ //# debugId=0FF425F2E983A5BB64756E2164756E21
6
+ //# sourceMappingURL=conformance.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/conformance.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-conformance\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "0FF425F2E983A5BB64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-control";
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/control.ts
3
+ export * from "@absolutejs/agent-control";
4
+
5
+ //# debugId=CF5349D2B06A481064756E2164756E21
6
+ //# sourceMappingURL=control.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/control.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-control\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "CF5349D2B06A481064756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-discovery";
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/discovery.ts
3
+ export * from "@absolutejs/agent-discovery";
4
+
5
+ //# debugId=F1A7589B0F88FF7964756E2164756E21
6
+ //# sourceMappingURL=discovery.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/discovery.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-discovery\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "F1A7589B0F88FF7964756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-inbox";
package/dist/inbox.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/inbox.ts
3
+ export * from "@absolutejs/agent-inbox";
4
+
5
+ //# debugId=F3386531D3FD7D9664756E2164756E21
6
+ //# sourceMappingURL=inbox.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/inbox.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-inbox\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "F3386531D3FD7D9664756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,38 @@
1
+ export declare const AGENT_STACK_PACKAGES: {
2
+ readonly a2a: "@absolutejs/a2a";
3
+ readonly actions: "@absolutejs/agency";
4
+ readonly auth: "@absolutejs/auth";
5
+ readonly conformance: "@absolutejs/agent-conformance";
6
+ readonly control: "@absolutejs/agent-control";
7
+ readonly discovery: "@absolutejs/agent-discovery";
8
+ readonly inbox: "@absolutejs/agent-inbox";
9
+ readonly mcp: "@absolutejs/mcp";
10
+ readonly memory: "@absolutejs/agent-memory";
11
+ readonly policy: "@absolutejs/policy";
12
+ readonly runtime: "@absolutejs/agent-runtime";
13
+ readonly sandbox: "@absolutejs/agent-sandbox";
14
+ readonly trust: "@absolutejs/agent-trust";
15
+ readonly wallet: "@absolutejs/wallet";
16
+ };
17
+ export declare const PRODUCTION_AGENT_CAPABILITIES: readonly ["identity", "authorization", "durability", "sandbox", "trust", "memory", "triggers", "discovery", "interoperability", "spend", "operations", "conformance"];
18
+ export type ProductionAgentCapability = (typeof PRODUCTION_AGENT_CAPABILITIES)[number];
19
+ export type AgentStackComponent<Instance = unknown> = {
20
+ capability: ProductionAgentCapability;
21
+ instance: Instance;
22
+ name: string;
23
+ productionReady?: () => boolean | Promise<boolean>;
24
+ };
25
+ export type AgentStack<Components extends readonly AgentStackComponent[]> = {
26
+ components: Components;
27
+ get: <Name extends Components[number]["name"]>(name: Name) => Extract<Components[number], {
28
+ name: Name;
29
+ }>["instance"];
30
+ readiness: () => Promise<AgentStackReadiness>;
31
+ };
32
+ export type AgentStackReadiness = {
33
+ capabilities: Record<ProductionAgentCapability, boolean>;
34
+ missing: ProductionAgentCapability[];
35
+ ready: boolean;
36
+ };
37
+ export declare const defineAgentStack: <const Components extends readonly AgentStackComponent[]>(components: Components) => AgentStack<Components>;
38
+ export declare const assertProductionReady: (stack: Pick<AgentStack<readonly AgentStackComponent[]>, "readiness">) => Promise<AgentStackReadiness>;
package/dist/index.js ADDED
@@ -0,0 +1,78 @@
1
+ // @bun
2
+ // src/index.ts
3
+ var AGENT_STACK_PACKAGES = {
4
+ a2a: "@absolutejs/a2a",
5
+ actions: "@absolutejs/agency",
6
+ auth: "@absolutejs/auth",
7
+ conformance: "@absolutejs/agent-conformance",
8
+ control: "@absolutejs/agent-control",
9
+ discovery: "@absolutejs/agent-discovery",
10
+ inbox: "@absolutejs/agent-inbox",
11
+ mcp: "@absolutejs/mcp",
12
+ memory: "@absolutejs/agent-memory",
13
+ policy: "@absolutejs/policy",
14
+ runtime: "@absolutejs/agent-runtime",
15
+ sandbox: "@absolutejs/agent-sandbox",
16
+ trust: "@absolutejs/agent-trust",
17
+ wallet: "@absolutejs/wallet"
18
+ };
19
+ var PRODUCTION_AGENT_CAPABILITIES = [
20
+ "identity",
21
+ "authorization",
22
+ "durability",
23
+ "sandbox",
24
+ "trust",
25
+ "memory",
26
+ "triggers",
27
+ "discovery",
28
+ "interoperability",
29
+ "spend",
30
+ "operations",
31
+ "conformance"
32
+ ];
33
+ var readinessOf = async (components) => {
34
+ const capabilities = Object.fromEntries(PRODUCTION_AGENT_CAPABILITIES.map((capability) => [capability, false]));
35
+ for (const component of components) {
36
+ if (await component.productionReady?.() === false)
37
+ continue;
38
+ capabilities[component.capability] = true;
39
+ }
40
+ const missing = PRODUCTION_AGENT_CAPABILITIES.filter((capability) => !capabilities[capability]);
41
+ return { capabilities, missing, ready: missing.length === 0 };
42
+ };
43
+ var defineAgentStack = (components) => {
44
+ const names = new Set;
45
+ for (const component of components) {
46
+ if (names.has(component.name)) {
47
+ throw new Error(`Duplicate agent stack component: ${component.name}`);
48
+ }
49
+ names.add(component.name);
50
+ }
51
+ return {
52
+ components,
53
+ get: (name) => {
54
+ const component = components.find((candidate) => candidate.name === name);
55
+ if (component === undefined) {
56
+ throw new Error(`Unknown agent stack component: ${String(name)}`);
57
+ }
58
+ return component.instance;
59
+ },
60
+ readiness: () => readinessOf(components)
61
+ };
62
+ };
63
+ var assertProductionReady = async (stack) => {
64
+ const readiness = await stack.readiness();
65
+ if (!readiness.ready) {
66
+ throw new Error(`Agent stack is missing production capabilities: ${readiness.missing.join(", ")}`);
67
+ }
68
+ return readiness;
69
+ };
70
+ export {
71
+ defineAgentStack,
72
+ assertProductionReady,
73
+ PRODUCTION_AGENT_CAPABILITIES,
74
+ AGENT_STACK_PACKAGES
75
+ };
76
+
77
+ //# debugId=6BD1E9FB95B9592F64756E2164756E21
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": [
5
+ "export const AGENT_STACK_PACKAGES = {\n a2a: \"@absolutejs/a2a\",\n actions: \"@absolutejs/agency\",\n auth: \"@absolutejs/auth\",\n conformance: \"@absolutejs/agent-conformance\",\n control: \"@absolutejs/agent-control\",\n discovery: \"@absolutejs/agent-discovery\",\n inbox: \"@absolutejs/agent-inbox\",\n mcp: \"@absolutejs/mcp\",\n memory: \"@absolutejs/agent-memory\",\n policy: \"@absolutejs/policy\",\n runtime: \"@absolutejs/agent-runtime\",\n sandbox: \"@absolutejs/agent-sandbox\",\n trust: \"@absolutejs/agent-trust\",\n wallet: \"@absolutejs/wallet\",\n} as const;\n\nexport const PRODUCTION_AGENT_CAPABILITIES = [\n \"identity\",\n \"authorization\",\n \"durability\",\n \"sandbox\",\n \"trust\",\n \"memory\",\n \"triggers\",\n \"discovery\",\n \"interoperability\",\n \"spend\",\n \"operations\",\n \"conformance\",\n] as const;\n\nexport type ProductionAgentCapability =\n (typeof PRODUCTION_AGENT_CAPABILITIES)[number];\n\nexport type AgentStackComponent<Instance = unknown> = {\n capability: ProductionAgentCapability;\n instance: Instance;\n name: string;\n productionReady?: () => boolean | Promise<boolean>;\n};\n\nexport type AgentStack<Components extends readonly AgentStackComponent[]> = {\n components: Components;\n get: <Name extends Components[number][\"name\"]>(\n name: Name,\n ) => Extract<Components[number], { name: Name }>[\"instance\"];\n readiness: () => Promise<AgentStackReadiness>;\n};\n\nexport type AgentStackReadiness = {\n capabilities: Record<ProductionAgentCapability, boolean>;\n missing: ProductionAgentCapability[];\n ready: boolean;\n};\n\nconst readinessOf = async (\n components: readonly AgentStackComponent[],\n): Promise<AgentStackReadiness> => {\n const capabilities = Object.fromEntries(\n PRODUCTION_AGENT_CAPABILITIES.map((capability) => [capability, false]),\n ) as Record<ProductionAgentCapability, boolean>;\n for (const component of components) {\n if ((await component.productionReady?.()) === false) continue;\n capabilities[component.capability] = true;\n }\n const missing = PRODUCTION_AGENT_CAPABILITIES.filter(\n (capability) => !capabilities[capability],\n );\n\n return { capabilities, missing, ready: missing.length === 0 };\n};\n\nexport const defineAgentStack = <\n const Components extends readonly AgentStackComponent[],\n>(\n components: Components,\n): AgentStack<Components> => {\n const names = new Set<string>();\n for (const component of components) {\n if (names.has(component.name)) {\n throw new Error(`Duplicate agent stack component: ${component.name}`);\n }\n names.add(component.name);\n }\n\n return {\n components,\n get: (name) => {\n const component = components.find((candidate) => candidate.name === name);\n if (component === undefined) {\n throw new Error(`Unknown agent stack component: ${String(name)}`);\n }\n\n return component.instance as Extract<\n Components[number],\n { name: typeof name }\n >[\"instance\"];\n },\n readiness: () => readinessOf(components),\n };\n};\n\nexport const assertProductionReady = async (\n stack: Pick<AgentStack<readonly AgentStackComponent[]>, \"readiness\">,\n) => {\n const readiness = await stack.readiness();\n if (!readiness.ready) {\n throw new Error(\n `Agent stack is missing production capabilities: ${readiness.missing.join(\", \")}`,\n );\n }\n\n return readiness;\n};\n"
6
+ ],
7
+ "mappings": ";;AAAO,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EACL,SAAS;AAAA,EACT,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,EACX,OAAO;AAAA,EACP,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,IAAM,gCAAgC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AA0BA,IAAM,cAAc,OAClB,eACiC;AAAA,EACjC,MAAM,eAAe,OAAO,YAC1B,8BAA8B,IAAI,CAAC,eAAe,CAAC,YAAY,KAAK,CAAC,CACvE;AAAA,EACA,WAAW,aAAa,YAAY;AAAA,IAClC,IAAK,MAAM,UAAU,kBAAkB,MAAO;AAAA,MAAO;AAAA,IACrD,aAAa,UAAU,cAAc;AAAA,EACvC;AAAA,EACA,MAAM,UAAU,8BAA8B,OAC5C,CAAC,eAAe,CAAC,aAAa,WAChC;AAAA,EAEA,OAAO,EAAE,cAAc,SAAS,OAAO,QAAQ,WAAW,EAAE;AAAA;AAGvD,IAAM,mBAAmB,CAG9B,eAC2B;AAAA,EAC3B,MAAM,QAAQ,IAAI;AAAA,EAClB,WAAW,aAAa,YAAY;AAAA,IAClC,IAAI,MAAM,IAAI,UAAU,IAAI,GAAG;AAAA,MAC7B,MAAM,IAAI,MAAM,oCAAoC,UAAU,MAAM;AAAA,IACtE;AAAA,IACA,MAAM,IAAI,UAAU,IAAI;AAAA,EAC1B;AAAA,EAEA,OAAO;AAAA,IACL;AAAA,IACA,KAAK,CAAC,SAAS;AAAA,MACb,MAAM,YAAY,WAAW,KAAK,CAAC,cAAc,UAAU,SAAS,IAAI;AAAA,MACxE,IAAI,cAAc,WAAW;AAAA,QAC3B,MAAM,IAAI,MAAM,kCAAkC,OAAO,IAAI,GAAG;AAAA,MAClE;AAAA,MAEA,OAAO,UAAU;AAAA;AAAA,IAKnB,WAAW,MAAM,YAAY,UAAU;AAAA,EACzC;AAAA;AAGK,IAAM,wBAAwB,OACnC,UACG;AAAA,EACH,MAAM,YAAY,MAAM,MAAM,UAAU;AAAA,EACxC,IAAI,CAAC,UAAU,OAAO;AAAA,IACpB,MAAM,IAAI,MACR,mDAAmD,UAAU,QAAQ,KAAK,IAAI,GAChF;AAAA,EACF;AAAA,EAEA,OAAO;AAAA;",
8
+ "debugId": "6BD1E9FB95B9592F64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export declare const manifest: import("@absolutejs/manifest").PackageManifest<Record<string, never>, never>;
@@ -0,0 +1,64 @@
1
+ // @bun
2
+ // src/manifest.ts
3
+ import { defineManifest, toolFactory } from "@absolutejs/manifest";
4
+ import { Type } from "@sinclair/typebox";
5
+ var tool = toolFactory();
6
+ var manifest = defineManifest()({
7
+ contract: 2,
8
+ identity: {
9
+ accent: "#111827",
10
+ category: "ai",
11
+ description: "The discoverable production agent stack for AbsoluteJS: auth.md identity and delegation, policy-gated actions, durable execution, sandboxing, trust, scoped memory, triggers, MCP, A2A, spend controls, operations, and conformance.",
12
+ docsUrl: "https://github.com/absolutejs/agent",
13
+ name: "@absolutejs/agent",
14
+ tagline: "Build agents that can safely act, persist, pay, and be found."
15
+ },
16
+ settings: Type.Object({}),
17
+ tools: {
18
+ inspect_agent_stack: tool.workspace({
19
+ annotations: { readOnlyHint: true },
20
+ capabilities: ["read", "glob"],
21
+ description: "Inspect an AbsoluteJS project for the production agent stack and report missing safety or discoverability packages.",
22
+ input: Type.Object({}),
23
+ handler: async (_input, workspace) => {
24
+ const packageFiles = await workspace.glob?.("**/package.json") ?? [];
25
+ const packageFile = packageFiles.find((file) => !file.includes("node_modules"));
26
+ if (packageFile === undefined)
27
+ return "No package.json found.";
28
+ const source = await workspace.read(packageFile) ?? "";
29
+ if (source.includes('"@absolutejs/agent"')) {
30
+ return "The @absolutejs/agent production stack is installed.";
31
+ }
32
+ const expected = [
33
+ "@absolutejs/auth",
34
+ "@absolutejs/agency",
35
+ "@absolutejs/agent-runtime",
36
+ "@absolutejs/agent-sandbox",
37
+ "@absolutejs/agent-trust",
38
+ "@absolutejs/agent-discovery",
39
+ "@absolutejs/agent-conformance"
40
+ ];
41
+ const missing = expected.filter((name) => !source.includes(name));
42
+ return missing.length === 0 ? "Core production agent packages are present." : `Missing production agent packages: ${missing.join(", ")}`;
43
+ }
44
+ })
45
+ },
46
+ wiring: [
47
+ {
48
+ description: "Import the typed stack composer and add each production capability explicitly.",
49
+ id: "default",
50
+ server: {
51
+ code: "defineAgentStack([])",
52
+ imports: [{ from: "@absolutejs/agent", names: ["defineAgentStack"] }],
53
+ placement: "module-scope"
54
+ },
55
+ title: "Production agent stack"
56
+ }
57
+ ]
58
+ });
59
+ export {
60
+ manifest
61
+ };
62
+
63
+ //# debugId=A0EDF2A9C444780B64756E2164756E21
64
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/manifest.ts"],
4
+ "sourcesContent": [
5
+ "import { defineManifest, toolFactory } from \"@absolutejs/manifest\";\nimport { Type } from \"@sinclair/typebox\";\n\nconst tool = toolFactory<never>();\n\nexport const manifest = defineManifest<Record<string, never>, never>()({\n contract: 2,\n identity: {\n accent: \"#111827\",\n category: \"ai\",\n description:\n \"The discoverable production agent stack for AbsoluteJS: auth.md identity and delegation, policy-gated actions, durable execution, sandboxing, trust, scoped memory, triggers, MCP, A2A, spend controls, operations, and conformance.\",\n docsUrl: \"https://github.com/absolutejs/agent\",\n name: \"@absolutejs/agent\",\n tagline: \"Build agents that can safely act, persist, pay, and be found.\",\n },\n settings: Type.Object({}),\n tools: {\n inspect_agent_stack: tool.workspace({\n annotations: { readOnlyHint: true },\n capabilities: [\"read\", \"glob\"],\n description:\n \"Inspect an AbsoluteJS project for the production agent stack and report missing safety or discoverability packages.\",\n input: Type.Object({}),\n handler: async (_input, workspace) => {\n const packageFiles = (await workspace.glob?.(\"**/package.json\")) ?? [];\n const packageFile = packageFiles.find(\n (file) => !file.includes(\"node_modules\"),\n );\n if (packageFile === undefined) return \"No package.json found.\";\n const source = (await workspace.read(packageFile)) ?? \"\";\n if (source.includes('\"@absolutejs/agent\"')) {\n return \"The @absolutejs/agent production stack is installed.\";\n }\n const expected = [\n \"@absolutejs/auth\",\n \"@absolutejs/agency\",\n \"@absolutejs/agent-runtime\",\n \"@absolutejs/agent-sandbox\",\n \"@absolutejs/agent-trust\",\n \"@absolutejs/agent-discovery\",\n \"@absolutejs/agent-conformance\",\n ];\n const missing = expected.filter((name) => !source.includes(name));\n\n return missing.length === 0\n ? \"Core production agent packages are present.\"\n : `Missing production agent packages: ${missing.join(\", \")}`;\n },\n }),\n },\n wiring: [\n {\n description:\n \"Import the typed stack composer and add each production capability explicitly.\",\n id: \"default\",\n server: {\n code: \"defineAgentStack([])\",\n imports: [{ from: \"@absolutejs/agent\", names: [\"defineAgentStack\"] }],\n placement: \"module-scope\",\n },\n title: \"Production agent stack\",\n },\n ],\n});\n"
6
+ ],
7
+ "mappings": ";;AAAA;AACA;AAEA,IAAM,OAAO,YAAmB;AAEzB,IAAM,WAAW,eAA6C,EAAE;AAAA,EACrE,UAAU;AAAA,EACV,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,aACE;AAAA,IACF,SAAS;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA,UAAU,KAAK,OAAO,CAAC,CAAC;AAAA,EACxB,OAAO;AAAA,IACL,qBAAqB,KAAK,UAAU;AAAA,MAClC,aAAa,EAAE,cAAc,KAAK;AAAA,MAClC,cAAc,CAAC,QAAQ,MAAM;AAAA,MAC7B,aACE;AAAA,MACF,OAAO,KAAK,OAAO,CAAC,CAAC;AAAA,MACrB,SAAS,OAAO,QAAQ,cAAc;AAAA,QACpC,MAAM,eAAgB,MAAM,UAAU,OAAO,iBAAiB,KAAM,CAAC;AAAA,QACrE,MAAM,cAAc,aAAa,KAC/B,CAAC,SAAS,CAAC,KAAK,SAAS,cAAc,CACzC;AAAA,QACA,IAAI,gBAAgB;AAAA,UAAW,OAAO;AAAA,QACtC,MAAM,SAAU,MAAM,UAAU,KAAK,WAAW,KAAM;AAAA,QACtD,IAAI,OAAO,SAAS,qBAAqB,GAAG;AAAA,UAC1C,OAAO;AAAA,QACT;AAAA,QACA,MAAM,WAAW;AAAA,UACf;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM,UAAU,SAAS,OAAO,CAAC,SAAS,CAAC,OAAO,SAAS,IAAI,CAAC;AAAA,QAEhE,OAAO,QAAQ,WAAW,IACtB,gDACA,sCAAsC,QAAQ,KAAK,IAAI;AAAA;AAAA,IAE/D,CAAC;AAAA,EACH;AAAA,EACA,QAAQ;AAAA,IACN;AAAA,MACE,aACE;AAAA,MACF,IAAI;AAAA,MACJ,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,SAAS,CAAC,EAAE,MAAM,qBAAqB,OAAO,CAAC,kBAAkB,EAAE,CAAC;AAAA,QACpE,WAAW;AAAA,MACb;AAAA,MACA,OAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC;",
8
+ "debugId": "A0EDF2A9C444780B64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "contract": 2,
3
+ "identity": {
4
+ "accent": "#111827",
5
+ "category": "ai",
6
+ "description": "The discoverable production agent stack for AbsoluteJS: auth.md identity and delegation, policy-gated actions, durable execution, sandboxing, trust, scoped memory, triggers, MCP, A2A, spend controls, operations, and conformance.",
7
+ "docsUrl": "https://github.com/absolutejs/agent",
8
+ "name": "@absolutejs/agent",
9
+ "tagline": "Build agents that can safely act, persist, pay, and be found."
10
+ },
11
+ "settings": {
12
+ "type": "object",
13
+ "properties": {}
14
+ },
15
+ "wiring": [
16
+ {
17
+ "description": "Import the typed stack composer and add each production capability explicitly.",
18
+ "id": "default",
19
+ "server": {
20
+ "code": "defineAgentStack([])",
21
+ "imports": [
22
+ {
23
+ "from": "@absolutejs/agent",
24
+ "names": [
25
+ "defineAgentStack"
26
+ ]
27
+ }
28
+ ],
29
+ "placement": "module-scope"
30
+ },
31
+ "title": "Production agent stack"
32
+ }
33
+ ],
34
+ "tools": {
35
+ "inspect_agent_stack": {
36
+ "annotations": {
37
+ "readOnlyHint": true
38
+ },
39
+ "capabilities": [
40
+ "read",
41
+ "glob"
42
+ ],
43
+ "description": "Inspect an AbsoluteJS project for the production agent stack and report missing safety or discoverability packages.",
44
+ "input": {
45
+ "type": "object",
46
+ "properties": {}
47
+ },
48
+ "kind": "workspace"
49
+ }
50
+ }
51
+ }
package/dist/mcp.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/mcp";
package/dist/mcp.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/mcp.ts
3
+ export * from "@absolutejs/mcp";
4
+
5
+ //# debugId=557AA27F61D3D47164756E2164756E21
6
+ //# sourceMappingURL=mcp.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/mcp.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/mcp\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "557AA27F61D3D47164756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-memory";
package/dist/memory.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/memory.ts
3
+ export * from "@absolutejs/agent-memory";
4
+
5
+ //# debugId=D6FABE809E790BC364756E2164756E21
6
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/memory.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-memory\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "D6FABE809E790BC364756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/policy";
package/dist/policy.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/policy.ts
3
+ export * from "@absolutejs/policy";
4
+
5
+ //# debugId=494C32106451E54764756E2164756E21
6
+ //# sourceMappingURL=policy.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/policy.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/policy\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "494C32106451E54764756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-runtime";
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/runtime.ts
3
+ export * from "@absolutejs/agent-runtime";
4
+
5
+ //# debugId=9BE71837CC5C8B3364756E2164756E21
6
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/runtime.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-runtime\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "9BE71837CC5C8B3364756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-sandbox";
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/sandbox.ts
3
+ export * from "@absolutejs/agent-sandbox";
4
+
5
+ //# debugId=99A6B754E5DF783B64756E2164756E21
6
+ //# sourceMappingURL=sandbox.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/sandbox.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-sandbox\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "99A6B754E5DF783B64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/agent-trust";
package/dist/trust.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/trust.ts
3
+ export * from "@absolutejs/agent-trust";
4
+
5
+ //# debugId=5AA4A3C04097B67F64756E2164756E21
6
+ //# sourceMappingURL=trust.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/trust.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/agent-trust\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "5AA4A3C04097B67F64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1 @@
1
+ export * from "@absolutejs/wallet";
package/dist/wallet.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/wallet.ts
3
+ export * from "@absolutejs/wallet";
4
+
5
+ //# debugId=79110D15F004C4F464756E2164756E21
6
+ //# sourceMappingURL=wallet.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/wallet.ts"],
4
+ "sourcesContent": [
5
+ "export * from \"@absolutejs/wallet\";\n"
6
+ ],
7
+ "mappings": ";;AAAA;",
8
+ "debugId": "79110D15F004C4F464756E2164756E21",
9
+ "names": []
10
+ }
package/package.json ADDED
@@ -0,0 +1,153 @@
1
+ {
2
+ "name": "@absolutejs/agent",
3
+ "version": "0.1.0",
4
+ "description": "The production-grade, provider-neutral agent stack for AbsoluteJS: auth, actions, runtime, sandboxing, trust, memory, inbox, discovery, MCP, A2A, policy, wallet limits, controls, and conformance.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Alex Kahn",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/absolutejs/agent.git"
11
+ },
12
+ "homepage": "https://github.com/absolutejs/agent",
13
+ "bugs": {
14
+ "url": "https://github.com/absolutejs/agent/issues"
15
+ },
16
+ "main": "./dist/index.js",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js",
23
+ "default": "./dist/index.js"
24
+ },
25
+ "./a2a": {
26
+ "types": "./dist/a2a.d.ts",
27
+ "import": "./dist/a2a.js",
28
+ "default": "./dist/a2a.js"
29
+ },
30
+ "./actions": {
31
+ "types": "./dist/actions.d.ts",
32
+ "import": "./dist/actions.js",
33
+ "default": "./dist/actions.js"
34
+ },
35
+ "./auth": {
36
+ "types": "./dist/auth.d.ts",
37
+ "import": "./dist/auth.js",
38
+ "default": "./dist/auth.js"
39
+ },
40
+ "./conformance": {
41
+ "types": "./dist/conformance.d.ts",
42
+ "import": "./dist/conformance.js",
43
+ "default": "./dist/conformance.js"
44
+ },
45
+ "./control": {
46
+ "types": "./dist/control.d.ts",
47
+ "import": "./dist/control.js",
48
+ "default": "./dist/control.js"
49
+ },
50
+ "./discovery": {
51
+ "types": "./dist/discovery.d.ts",
52
+ "import": "./dist/discovery.js",
53
+ "default": "./dist/discovery.js"
54
+ },
55
+ "./inbox": {
56
+ "types": "./dist/inbox.d.ts",
57
+ "import": "./dist/inbox.js",
58
+ "default": "./dist/inbox.js"
59
+ },
60
+ "./mcp": {
61
+ "types": "./dist/mcp.d.ts",
62
+ "import": "./dist/mcp.js",
63
+ "default": "./dist/mcp.js"
64
+ },
65
+ "./memory": {
66
+ "types": "./dist/memory.d.ts",
67
+ "import": "./dist/memory.js",
68
+ "default": "./dist/memory.js"
69
+ },
70
+ "./policy": {
71
+ "types": "./dist/policy.d.ts",
72
+ "import": "./dist/policy.js",
73
+ "default": "./dist/policy.js"
74
+ },
75
+ "./runtime": {
76
+ "types": "./dist/runtime.d.ts",
77
+ "import": "./dist/runtime.js",
78
+ "default": "./dist/runtime.js"
79
+ },
80
+ "./sandbox": {
81
+ "types": "./dist/sandbox.d.ts",
82
+ "import": "./dist/sandbox.js",
83
+ "default": "./dist/sandbox.js"
84
+ },
85
+ "./trust": {
86
+ "types": "./dist/trust.d.ts",
87
+ "import": "./dist/trust.js",
88
+ "default": "./dist/trust.js"
89
+ },
90
+ "./wallet": {
91
+ "types": "./dist/wallet.d.ts",
92
+ "import": "./dist/wallet.js",
93
+ "default": "./dist/wallet.js"
94
+ },
95
+ "./manifest": {
96
+ "types": "./dist/manifest.d.ts",
97
+ "import": "./dist/manifest.js",
98
+ "default": "./dist/manifest.js"
99
+ },
100
+ "./manifest.json": "./dist/manifest.json"
101
+ },
102
+ "files": [
103
+ "dist",
104
+ "README.md",
105
+ "LICENSE"
106
+ ],
107
+ "publishConfig": {
108
+ "access": "public"
109
+ },
110
+ "scripts": {
111
+ "build": "rm -rf dist && bun build src/*.ts --outdir dist --root src --target=bun --sourcemap --external '@absolutejs/*' --external '@sinclair/typebox' && tsc -p tsconfig.build.json && absolute-manifest emit",
112
+ "typecheck": "tsc --noEmit",
113
+ "test": "bun test",
114
+ "format": "prettier --write \"./**/*.{ts,json,md,yml}\"",
115
+ "check:package": "bun run typecheck && bun run test && bun run build",
116
+ "release": "bun run format && bun run check:package && npm publish --access public"
117
+ },
118
+ "dependencies": {
119
+ "@absolutejs/a2a": "^0.1.0",
120
+ "@absolutejs/agency": "^0.4.0",
121
+ "@absolutejs/agent-conformance": "^0.3.0",
122
+ "@absolutejs/agent-control": "^0.1.0",
123
+ "@absolutejs/agent-discovery": "^0.1.0",
124
+ "@absolutejs/agent-inbox": "^0.1.0",
125
+ "@absolutejs/agent-memory": "^0.1.0",
126
+ "@absolutejs/agent-runtime": "^0.1.0",
127
+ "@absolutejs/agent-sandbox": "^0.1.0",
128
+ "@absolutejs/agent-trust": "^0.1.0",
129
+ "@absolutejs/auth": "^0.55.0",
130
+ "@absolutejs/manifest": "^0.3.0",
131
+ "@absolutejs/mcp": "^0.9.0",
132
+ "@absolutejs/policy": "^0.2.0",
133
+ "@absolutejs/wallet": "^0.3.0",
134
+ "@sinclair/typebox": "^0.34.0"
135
+ },
136
+ "devDependencies": {
137
+ "@types/bun": "^1.3.14",
138
+ "prettier": "^3.8.3",
139
+ "typescript": "^5.9.0"
140
+ },
141
+ "keywords": [
142
+ "absolutejs",
143
+ "agents",
144
+ "ai-agents",
145
+ "agentic",
146
+ "mcp",
147
+ "a2a",
148
+ "auth.md"
149
+ ],
150
+ "absolutejs": {
151
+ "manifestContract": 2
152
+ }
153
+ }