@assemblyline-agents/agentcash 5.0.9 → 6.0.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.
package/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Official Assembly Line AgentCash connection plugin.
4
4
 
5
- It connects agents to AgentCash, giving them access to pay-per-call x402/MPP APIs through AgentCash's MCP server. The package exports `defineAgentCashConnection(options)` to declare the connection in an agent definition and an `assemblyLinePlugin` module so the Assembly Line CLI and compiler can discover the plugin's connection metadata.
5
+ The selected plugin exposes pay-per-call x402/MPP APIs through AgentCash's MCP server.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- npm install @assemblyline-agents/agentcash
10
+ assembly-line add agentcash agent
11
11
  ```
12
12
 
13
13
  ## Part of Assembly Line
@@ -0,0 +1,42 @@
1
+ {
2
+ "kind": "agentcash",
3
+ "role": "connection",
4
+ "packageName": "@assemblyline-agents/agentcash",
5
+ "helper": "defineAgentCashConnection",
6
+ "protocol": "mcp",
7
+ "transport": "http",
8
+ "provider": "agentcash",
9
+ "description": "Paid API discovery, schema, balance, and request tools through an AgentCash MCP bridge.",
10
+ "urlEnv": "AGENTCASH_MCP_URL",
11
+ "tokenEnv": "AGENTCASH_MCP_BRIDGE_TOKEN",
12
+ "tokenRequired": true,
13
+ "capabilities": [
14
+ "mcp",
15
+ "live-tools",
16
+ "streamable-http"
17
+ ],
18
+ "scopes": [],
19
+ "subject": "workspace",
20
+ "readToolPatterns": [
21
+ "regex:(^|[-_])(search|read|list|fetch|get|retrieve|query|lookup|find|describe|details?|discover)([-_]|$)"
22
+ ],
23
+ "writeToolPatterns": [
24
+ "regex:(^|[-_])(add|append|archive|assign|book|buy|cancel|checkout|close|complete|create|delete|draft|duplicate|edit|execute|insert|invite|kick|link|merge|modify|move|mutate|open|pay|post|publish|purchase|push|react|reaction|remove|rename|reply|reserve|resolve|reopen|run|schedule|send|set|share|submit|transfer|transition|unassign|unlink|update|upload|write)([-_]|$)"
25
+ ],
26
+ "setup": [
27
+ {
28
+ "kind": "connection",
29
+ "name": "agentcash-developer-configuration",
30
+ "required": true,
31
+ "message": "Configure AgentCash credentials, OAuth application, or MCP bridge for this deployment."
32
+ }
33
+ ],
34
+ "requiredConfig": [
35
+ "AGENTCASH_MCP_URL"
36
+ ],
37
+ "optionalConfig": [],
38
+ "requiredCredentials": [
39
+ "AGENTCASH_MCP_BRIDGE_TOKEN"
40
+ ],
41
+ "optionalCredentials": []
42
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ "connections": {
3
+ "agentcash": {
4
+ "contract": "./ai.assemblyline/connections/agentcash.json",
5
+ "definition": "@assemblyline-agents/agentcash",
6
+ "factory": "defineAgentCashConnection"
7
+ }
8
+ }
9
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqE,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE/I,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,CAAC;AACpE,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,0IAAwD;AACrI,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2C,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAErH,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,CAAC;AACpE,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,0IAAwD;AACrI,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- import { connectionPluginMetadata, defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
2
- const PLUGIN = connectionPluginMetadata("agentcash");
1
+ import connectionContract_agentcash from "../ai.assemblyline/connections/agentcash.json" with { type: "json" };
2
+ import { defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
3
+ const PLUGIN = connectionContract_agentcash;
3
4
  export function defineAgentCashConnection(options) { return defineMcpPluginConnection(PLUGIN, options); }
4
5
  export const assemblyLinePlugin = definePlugin({ connections: [PLUGIN] });
5
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,YAAY,EAAmC,MAAM,2BAA2B,CAAC;AAC/I,MAAM,MAAM,GAAG,wBAAwB,CAAC,WAAW,CAAE,CAAC;AAEtD,MAAM,UAAU,yBAAyB,CAAC,OAAmC,IAAI,OAAO,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACrI,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC/G,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAmC,MAAM,2BAA2B,CAAC;AACrH,MAAM,MAAM,GAAG,4BAAmE,CAAC;AAEnF,MAAM,UAAU,yBAAyB,CAAC,OAAmC,IAAI,OAAO,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACrI,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyline-agents/agentcash",
3
- "version": "5.0.9",
3
+ "version": "6.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -9,11 +9,13 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "@assemblyline-agents/core": "5.0.9"
12
+ "@assemblyline-agents/core": "6.0.0"
13
13
  },
14
14
  "description": "Official Assembly Line AgentCash connection plugin.",
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "plugin.json",
18
+ "ai.assemblyline"
17
19
  ],
18
20
  "engines": {
19
21
  "node": ">=22.19.0"
package/plugin.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "agentcash",
4
+ "version": "6.0.0",
5
+ "description": "Official Assembly Line AgentCash connection plugin.",
6
+ "extensions": {
7
+ "ai.assemblyline": {
8
+ "entry": "./ai.assemblyline/index.cjs"
9
+ }
10
+ }
11
+ }