@assemblyline-agents/soundcloud 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OpenEve contributors
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,19 @@
1
+ # @assemblyline-agents/soundcloud
2
+
3
+ Official Assembly Line SoundCloud connection plugin.
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 `openevePlugin` module so the Assembly Line CLI and compiler can discover the plugin's connection metadata. A bundled skill under `skills/` teaches agents how to use the connection's tools.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @assemblyline-agents/soundcloud
11
+ ```
12
+
13
+ ## Part of Assembly Line
14
+
15
+ This package is part of [Assembly Line](https://github.com/jasonbadeaux/openeve), a vendor-neutral, filesystem-first framework for durable AI agents. See the developer documentation in [docs/developers/](https://github.com/jasonbadeaux/openeve/tree/main/docs/developers) for setup, agent authoring, and deployment guides.
16
+
17
+ ## License
18
+
19
+ MIT
@@ -0,0 +1,7 @@
1
+ import { type ConnectionAuthDefinition, type OpenAPIPluginConnectionOptions } from "@assemblyline-agents/core";
2
+ export interface SoundCloudConnectionOptions extends Omit<OpenAPIPluginConnectionOptions, "auth"> {
3
+ auth?: ConnectionAuthDefinition | false;
4
+ }
5
+ export declare function defineSoundCloudConnection(options: SoundCloudConnectionOptions): import("@assemblyline-agents/core").OpenAPIConnectionDefinition;
6
+ export declare const openevePlugin: import("@assemblyline-agents/core").PluginModule;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,mEAM9E;AAED,eAAO,MAAM,aAAa,kDAA0C,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ import { connectionPluginMetadata, defineOAuthAuthorization, defineOpenAPIPluginConnection, definePlugin } from "@assemblyline-agents/core";
2
+ const PLUGIN = connectionPluginMetadata("soundcloud");
3
+ export function defineSoundCloudConnection(options) {
4
+ const { auth, ...connection } = options;
5
+ return defineOpenAPIPluginConnection(PLUGIN, {
6
+ ...connection,
7
+ auth: auth === false ? false : auth ?? soundCloudOAuth()
8
+ });
9
+ }
10
+ export const openevePlugin = definePlugin({ connections: [PLUGIN] });
11
+ function soundCloudOAuth() {
12
+ return ({ env }) => {
13
+ const clientId = env.SOUNDCLOUD_CLIENT_ID?.trim();
14
+ const clientSecret = env.SOUNDCLOUD_CLIENT_SECRET?.trim();
15
+ const redirectUri = env.SOUNDCLOUD_REDIRECT_URI?.trim();
16
+ if (!clientId || !clientSecret) {
17
+ throw new Error("SoundCloud OAuth requires SOUNDCLOUD_CLIENT_ID and SOUNDCLOUD_CLIENT_SECRET.");
18
+ }
19
+ return defineOAuthAuthorization({
20
+ displayName: "SoundCloud",
21
+ authorizeUrl: "https://secure.soundcloud.com/authorize",
22
+ tokenUrl: "https://secure.soundcloud.com/oauth/token",
23
+ clientId,
24
+ clientSecret,
25
+ ...(redirectUri ? { redirectUri } : {}),
26
+ pkce: true,
27
+ tokenType: "OAuth"
28
+ });
29
+ };
30
+ }
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,aAAa,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAErE,SAAS,eAAe;IACtB,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;QACjB,MAAM,QAAQ,GAAG,GAAG,CAAC,oBAAoB,EAAE,IAAI,EAAE,CAAC;QAClD,MAAM,YAAY,GAAG,GAAG,CAAC,wBAAwB,EAAE,IAAI,EAAE,CAAC;QAC1D,MAAM,WAAW,GAAG,GAAG,CAAC,uBAAuB,EAAE,IAAI,EAAE,CAAC;QACxD,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 ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@assemblyline-agents/soundcloud",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "dependencies": {
12
+ "@assemblyline-agents/core": "0.1.0"
13
+ },
14
+ "description": "Official OpenEve SoundCloud connection plugin.",
15
+ "files": [
16
+ "dist",
17
+ "skills"
18
+ ],
19
+ "engines": {
20
+ "node": ">=22.19.0"
21
+ },
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/jasonbadeaux/openeve.git",
26
+ "directory": "packages/soundcloud"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/jasonbadeaux/openeve/issues"
30
+ },
31
+ "homepage": "https://github.com/jasonbadeaux/openeve#readme",
32
+ "author": "OpenEve contributors",
33
+ "keywords": [
34
+ "openeve",
35
+ "ai",
36
+ "agents",
37
+ "soundcloud",
38
+ "music",
39
+ "audio",
40
+ "plugin"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc -p tsconfig.json",
47
+ "check": "tsc -p tsconfig.json --noEmit"
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: soundcloud
3
+ description: Search and manage configured SoundCloud tracks, playlists, users, likes, follows, reposts, and comments.
4
+ ---
5
+ # SoundCloud
6
+
7
+ Use the `soundcloud` connection to search and inspect tracks, playlists, users, and the authenticated account. Resolve the current resource before proposing a mutation.
8
+
9
+ The deployment owner registers the SoundCloud application and supplies its client ID, client secret, and exact redirect URI. OAuth tokens remain host-side. The scaffold starts read-only; playlist edits, likes, follows, reposts, comments, metadata changes, and deletes require write access with the configured approval gate.
10
+
11
+ Direct track upload is not exposed by the initial plugin because SoundCloud requires multipart binary transfer. Do not work around that boundary by placing audio data or credentials in prompts.