@assemblyline-agents/soundcloud 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 SoundCloud connection plugin.
4
4
 
5
- It connects agents to SoundCloud through its public API: the package exports `defineSoundCloudConnection(options)`, an OpenAPI-backed connection that turns SoundCloud API operations into agent tools, plus an `assemblyLinePlugin` module so the Assembly Line CLI and compiler can discover the plugin's connection metadata.
5
+ The selected plugin turns reviewed SoundCloud OpenAPI operations into agent tools.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- npm install @assemblyline-agents/soundcloud
10
+ assembly-line add soundcloud agent
11
11
  ```
12
12
 
13
13
  ## Part of Assembly Line
@@ -0,0 +1,47 @@
1
+ {
2
+ "kind": "soundcloud",
3
+ "role": "connection",
4
+ "packageName": "@assemblyline-agents/soundcloud",
5
+ "helper": "defineSoundCloudConnection",
6
+ "protocol": "openapi",
7
+ "provider": "soundcloud",
8
+ "description": "SoundCloud tracks, playlists, users, likes, follows, reposts, and comments through the official API.",
9
+ "defaultSpec": "https://developers.soundcloud.com/docs/api/explorer/api.json",
10
+ "defaultBaseUrl": "https://api.soundcloud.com",
11
+ "capabilities": [
12
+ "openapi",
13
+ "oauth",
14
+ "live-tools"
15
+ ],
16
+ "scopes": [],
17
+ "subject": "user",
18
+ "tools": {
19
+ "block": [
20
+ "post_tracks"
21
+ ]
22
+ },
23
+ "readToolPatterns": [
24
+ "regex:^get_"
25
+ ],
26
+ "writeToolPatterns": [
27
+ "regex:^(post|put|patch|delete)_"
28
+ ],
29
+ "setup": [
30
+ {
31
+ "kind": "connection",
32
+ "name": "soundcloud-developer-configuration",
33
+ "required": true,
34
+ "message": "Register a SoundCloud application and set SOUNDCLOUD_CLIENT_ID and SOUNDCLOUD_CLIENT_SECRET. Assembly Line handles OAuth 2.1 PKCE; the developer owns the app and redirect URI."
35
+ }
36
+ ],
37
+ "requiredConfig": [
38
+ "SOUNDCLOUD_CLIENT_ID"
39
+ ],
40
+ "optionalConfig": [
41
+ "SOUNDCLOUD_REDIRECT_URI"
42
+ ],
43
+ "requiredCredentials": [
44
+ "SOUNDCLOUD_CLIENT_SECRET"
45
+ ],
46
+ "optionalCredentials": []
47
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ "connections": {
3
+ "soundcloud": {
4
+ "contract": "./ai.assemblyline/connections/soundcloud.json",
5
+ "definition": "@assemblyline-agents/soundcloud",
6
+ "factory": "defineSoundCloudConnection"
7
+ }
8
+ }
9
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAInC,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC;IAC/F,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,2BAA2B,oIAM9E;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAInC,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC;IAC/F,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,2BAA2B,oIAM9E;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- import { connectionPluginMetadata, defineOAuthAuthorization, defineOpenAPIPluginConnection, definePlugin } from "@assemblyline-agents/core";
2
- const PLUGIN = connectionPluginMetadata("soundcloud");
1
+ import connectionContract_soundcloud from "../ai.assemblyline/connections/soundcloud.json" with { type: "json" };
2
+ import { defineOAuthAuthorization, defineOpenAPIPluginConnection, definePlugin } from "@assemblyline-agents/core";
3
+ const PLUGIN = connectionContract_soundcloud;
3
4
  export function defineSoundCloudConnection(options) {
4
5
  const { auth, ...connection } = options;
5
6
  return defineOpenAPIPluginConnection(PLUGIN, {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,6BAA6B,EAC7B,YAAY,EAGb,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,GAAG,wBAAwB,CAAC,YAAY,CAAE,CAAC;AAMvD,MAAM,UAAU,0BAA0B,CAAC,OAAoC;IAC7E,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,GAAG,OAAO,CAAC;IACxC,OAAO,6BAA6B,CAAC,MAAM,EAAE;QAC3C,GAAG,UAAU;QACb,IAAI,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,EAAE;KACzD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAE1E,SAAS,eAAe;IACtB,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACvC,MAAM,QAAQ,GAAG,MAAM,CAAC,oBAAoB,EAAE,IAAI,EAAE,CAAC;QACrD,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,GAAG,CAAC,0BAA0B,EAAE;YACrE,OAAO,EAAE,wCAAwC;YACjD,QAAQ,EAAE,aAAa;SACx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E,WAAW,EAAE,EAAE,EAAE;QACvC,MAAM,QAAQ,GAAG,MAAM,CAAC,oBAAoB,EAAE,IAAI,EAAE,CAAC;QACrD,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,GAAG,CAAC,0BAA0B,EAAE;YACrE,OAAO,EAAE,wCAAwC;YACjD,QAAQ,EAAE,aAAa;SACxB,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,CAAC,uBAAuB,EAAE,IAAI,EAAE,CAAC;QAC3D,IAAI,CAAC,QAAQ,IAAI,CAAC,YAAY,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;QAClG,CAAC;QACD,OAAO,wBAAwB,CAAC;YAC9B,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE,yCAAyC;YACvD,QAAQ,EAAE,2CAA2C;YACrD,QAAQ;YACR,YAAY;YACZ,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,OAAO;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyline-agents/soundcloud",
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 SoundCloud 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": "soundcloud",
4
+ "version": "6.0.0",
5
+ "description": "Official Assembly Line SoundCloud connection plugin.",
6
+ "extensions": {
7
+ "ai.assemblyline": {
8
+ "entry": "./ai.assemblyline/index.cjs"
9
+ }
10
+ }
11
+ }