@assemblyline-agents/x 3.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/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/auth.d.ts +3 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +30 -0
- package/dist/auth.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/operations.d.ts +3 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +108 -0
- package/dist/operations.js.map +1 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Assembly Line 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,68 @@
|
|
|
1
|
+
# @assemblyline-agents/x
|
|
2
|
+
|
|
3
|
+
Official Assembly Line direct X API connection plugin. It calls X API v2 from
|
|
4
|
+
the runtime host and does not use MCP.
|
|
5
|
+
|
|
6
|
+
## Install and configure
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
assembly-line add x agent
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This creates `connections/x.ts`:
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { defineXConnection } from "@assemblyline-agents/x";
|
|
16
|
+
|
|
17
|
+
export default defineXConnection({
|
|
18
|
+
// Reviewed reads and publishing are enabled by default.
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Create a confidential OAuth 2.0 App in the
|
|
23
|
+
[X Developer Console](https://developer.x.com/en/portal/dashboard). Enable User
|
|
24
|
+
authentication with Authorization Code + PKCE, then set:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
X_API_CLIENT_ID=your_client_id
|
|
28
|
+
X_API_CLIENT_SECRET=your_client_secret
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Register the exact Assembly Line callback URL in the X App. It is the public
|
|
32
|
+
runtime origin followed by `/assembly-line/connections/callback`. Set
|
|
33
|
+
`X_API_REDIRECT_URI` only when the connection should override the runtime's
|
|
34
|
+
derived callback URL.
|
|
35
|
+
|
|
36
|
+
The full reviewed surface requests `bookmark.read`, `tweet.read`, `tweet.write`,
|
|
37
|
+
`users.read`, and `offline.access`. The host uses PKCE, authenticates the
|
|
38
|
+
confidential client at X's token endpoint, and stores refreshable user grants
|
|
39
|
+
outside agent files and model context.
|
|
40
|
+
|
|
41
|
+
## Reviewed surface
|
|
42
|
+
|
|
43
|
+
Read tools return the connected account and its private bookmarks. Bookmark
|
|
44
|
+
pages include author, referenced-post, note-post, article, and media context.
|
|
45
|
+
The only write tool creates a text post or reply, with an optional provider
|
|
46
|
+
reply setting. Arbitrary X mutations, bookmark changes, post deletion, and
|
|
47
|
+
media upload remain unavailable until they receive an explicit tool contract
|
|
48
|
+
and access classification.
|
|
49
|
+
|
|
50
|
+
Use the read-only preset to hide publishing and omit `tweet.write` from OAuth:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
export default defineXConnection({ access: "read-only" });
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Use `access: "approval-required"` to require approval for each post or reply.
|
|
57
|
+
X API reads may be metered, so callers should avoid unnecessary repeated
|
|
58
|
+
bookmark scans.
|
|
59
|
+
|
|
60
|
+
Official references:
|
|
61
|
+
|
|
62
|
+
- [OAuth 2.0 Authorization Code with PKCE](https://docs.x.com/fundamentals/authentication/oauth-2-0/authorization-code)
|
|
63
|
+
- [Get bookmarks](https://docs.x.com/x-api/users/get-bookmarks)
|
|
64
|
+
- [Create a post](https://docs.x.com/x-api/posts/create-post)
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
MIT
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACrC,MAAM,2BAA2B,CAAC;AAKnC,wBAAgB,MAAM,CAAC,MAAM,EAAE,+BAA+B,GAAG,SAAS,GAAG,wBAAwB,CAoBpG"}
|
package/dist/auth.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineOAuthAuthorization } from "@assemblyline-agents/core";
|
|
2
|
+
const READ_SCOPES = ["bookmark.read", "tweet.read", "users.read", "offline.access"];
|
|
3
|
+
const WRITE_SCOPES = ["bookmark.read", "tweet.read", "tweet.write", "users.read", "offline.access"];
|
|
4
|
+
export function xOAuth(access) {
|
|
5
|
+
return ({ env }) => {
|
|
6
|
+
const clientId = env.X_API_CLIENT_ID?.trim();
|
|
7
|
+
const clientSecret = env.X_API_CLIENT_SECRET?.trim();
|
|
8
|
+
const redirectUri = env.X_API_REDIRECT_URI?.trim();
|
|
9
|
+
if (!clientId || !clientSecret) {
|
|
10
|
+
throw new Error("X OAuth requires X_API_CLIENT_ID and X_API_CLIENT_SECRET.");
|
|
11
|
+
}
|
|
12
|
+
return defineOAuthAuthorization({
|
|
13
|
+
displayName: "X",
|
|
14
|
+
authorizeUrl: "https://x.com/i/oauth2/authorize",
|
|
15
|
+
tokenUrl: "https://api.x.com/2/oauth2/token",
|
|
16
|
+
clientId,
|
|
17
|
+
clientSecret,
|
|
18
|
+
scopes: writesEnabled(access) ? [...WRITE_SCOPES] : [...READ_SCOPES],
|
|
19
|
+
...(redirectUri ? { redirectUri } : {}),
|
|
20
|
+
tokenEndpointAuthMethod: "client_secret_basic",
|
|
21
|
+
pkce: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function writesEnabled(access) {
|
|
26
|
+
if (access === "read-only")
|
|
27
|
+
return false;
|
|
28
|
+
return typeof access !== "object" || access.write !== false;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=auth.js.map
|
package/dist/auth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAGzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,GAAG,CAAC,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAU,CAAC;AAC7F,MAAM,YAAY,GAAG,CAAC,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,CAAU,CAAC;AAE7G,MAAM,UAAU,MAAM,CAAC,MAAmD;IACxE,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;QACjB,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC;QAC7C,MAAM,YAAY,GAAG,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,CAAC;QACrD,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,EAAE,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,QAAQ,IAAI,CAAC,YAAY,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;QAC/E,CAAC;QACD,OAAO,wBAAwB,CAAC;YAC9B,WAAW,EAAE,GAAG;YAChB,YAAY,EAAE,kCAAkC;YAChD,QAAQ,EAAE,kCAAkC;YAC5C,QAAQ;YACR,YAAY;YACZ,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;YACpE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,uBAAuB,EAAE,qBAAqB;YAC9C,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,MAAmD;IACxE,IAAI,MAAM,KAAK,WAAW;QAAE,OAAO,KAAK,CAAC;IACzC,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC;AAC9D,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ConnectionAuthDefinition, type HttpApiPluginConnectionOptions } from "@assemblyline-agents/core";
|
|
2
|
+
export interface XConnectionOptions extends Omit<HttpApiPluginConnectionOptions, "auth" | "operations"> {
|
|
3
|
+
auth?: ConnectionAuthDefinition | false;
|
|
4
|
+
}
|
|
5
|
+
export declare function defineXConnection(options?: XConnectionOptions): import("@assemblyline-agents/core").HttpApiConnectionDefinition;
|
|
6
|
+
export declare const assemblyLinePlugin: 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,EAIL,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAMnC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,GAAG,YAAY,CAAC;IACrG,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,kBAAuB,mEAOjE;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { connectionPluginMetadata, defineHttpApiPluginConnection, definePlugin } from "@assemblyline-agents/core";
|
|
2
|
+
import { xOAuth } from "./auth.js";
|
|
3
|
+
import { X_OPERATIONS } from "./operations.js";
|
|
4
|
+
const PLUGIN = connectionPluginMetadata("x");
|
|
5
|
+
export function defineXConnection(options = {}) {
|
|
6
|
+
const { auth, ...connection } = options;
|
|
7
|
+
return defineHttpApiPluginConnection(PLUGIN, {
|
|
8
|
+
...connection,
|
|
9
|
+
operations: X_OPERATIONS,
|
|
10
|
+
auth: auth === false ? false : auth ?? xOAuth(options.access)
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export const assemblyLinePlugin = definePlugin({ connections: [PLUGIN] });
|
|
14
|
+
//# 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,6BAA6B,EAC7B,YAAY,EAGb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,GAAG,wBAAwB,CAAC,GAAG,CAAE,CAAC;AAM9C,MAAM,UAAU,iBAAiB,CAAC,UAA8B,EAAE;IAChE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,GAAG,OAAO,CAAC;IACxC,OAAO,6BAA6B,CAAC,MAAM,EAAE;QAC3C,GAAG,UAAU;QACb,UAAU,EAAE,YAAY;QACxB,IAAI,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;KAC9D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAc,MAAM,2BAA2B,CAAC;AA2CxF,eAAO,MAAM,YAAY,EAAE,0BAA0B,EAkDpD,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
const POST_ID_PATTERN = "^[0-9]{1,19}$";
|
|
2
|
+
const BOOKMARK_TWEET_FIELDS = [
|
|
3
|
+
"article",
|
|
4
|
+
"attachments",
|
|
5
|
+
"author_id",
|
|
6
|
+
"conversation_id",
|
|
7
|
+
"created_at",
|
|
8
|
+
"edit_history_tweet_ids",
|
|
9
|
+
"entities",
|
|
10
|
+
"lang",
|
|
11
|
+
"note_tweet",
|
|
12
|
+
"possibly_sensitive",
|
|
13
|
+
"referenced_tweets",
|
|
14
|
+
"withheld"
|
|
15
|
+
].join(",");
|
|
16
|
+
const BOOKMARK_EXPANSIONS = [
|
|
17
|
+
"author_id",
|
|
18
|
+
"attachments.media_keys",
|
|
19
|
+
"referenced_tweets.id",
|
|
20
|
+
"referenced_tweets.id.author_id",
|
|
21
|
+
"referenced_tweets.id.attachments.media_keys"
|
|
22
|
+
].join(",");
|
|
23
|
+
const BOOKMARK_MEDIA_FIELDS = [
|
|
24
|
+
"alt_text",
|
|
25
|
+
"duration_ms",
|
|
26
|
+
"height",
|
|
27
|
+
"media_key",
|
|
28
|
+
"preview_image_url",
|
|
29
|
+
"type",
|
|
30
|
+
"url",
|
|
31
|
+
"variants",
|
|
32
|
+
"width"
|
|
33
|
+
].join(",");
|
|
34
|
+
const X_USER_FIELDS = "id,name,profile_image_url,protected,username,verified";
|
|
35
|
+
const postIdSchema = (description) => ({
|
|
36
|
+
type: "string",
|
|
37
|
+
pattern: POST_ID_PATTERN,
|
|
38
|
+
description
|
|
39
|
+
});
|
|
40
|
+
export const X_OPERATIONS = [
|
|
41
|
+
{
|
|
42
|
+
name: "x_get_authenticated_user",
|
|
43
|
+
description: "Get the id, name, username, and profile details of the connected X account.",
|
|
44
|
+
method: "GET",
|
|
45
|
+
path: "/users/me",
|
|
46
|
+
parameters: [constantQuery("user.fields", X_USER_FIELDS)]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "x_list_bookmarks",
|
|
50
|
+
description: "List private bookmarked posts for the connected X account. The user id must match x_get_authenticated_user. Continue with pagination_token when next_token is returned.",
|
|
51
|
+
method: "GET",
|
|
52
|
+
path: "/users/{id}/bookmarks",
|
|
53
|
+
parameters: [
|
|
54
|
+
path("id", "Authenticated X user id returned by x_get_authenticated_user."),
|
|
55
|
+
query("max_results", { type: "integer", minimum: 1, maximum: 100 }),
|
|
56
|
+
query("pagination_token", { type: "string", minLength: 1, description: "Opaque next_token returned by X." }),
|
|
57
|
+
constantQuery("tweet.fields", BOOKMARK_TWEET_FIELDS),
|
|
58
|
+
constantQuery("expansions", BOOKMARK_EXPANSIONS),
|
|
59
|
+
constantQuery("media.fields", BOOKMARK_MEDIA_FIELDS),
|
|
60
|
+
constantQuery("user.fields", X_USER_FIELDS)
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "x_create_post",
|
|
65
|
+
description: "Publish a text post or reply from the connected X account.",
|
|
66
|
+
method: "POST",
|
|
67
|
+
path: "/tweets",
|
|
68
|
+
body: {
|
|
69
|
+
contentType: "application/json",
|
|
70
|
+
field: "body",
|
|
71
|
+
schema: objectSchema({
|
|
72
|
+
text: {
|
|
73
|
+
type: "string",
|
|
74
|
+
minLength: 1,
|
|
75
|
+
maxLength: 25_000,
|
|
76
|
+
description: "Post text. X applies the connected account's product-specific character limit."
|
|
77
|
+
},
|
|
78
|
+
reply: objectSchema({
|
|
79
|
+
in_reply_to_tweet_id: postIdSchema("Post id to reply to.")
|
|
80
|
+
}, ["in_reply_to_tweet_id"]),
|
|
81
|
+
reply_settings: {
|
|
82
|
+
type: "string",
|
|
83
|
+
enum: ["following", "mentionedUsers", "subscribers", "verified"],
|
|
84
|
+
description: "Optional restriction on who may reply to this post."
|
|
85
|
+
}
|
|
86
|
+
}, ["text"]),
|
|
87
|
+
required: true
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
function path(name, description) {
|
|
92
|
+
return { name, in: "path", required: true, schema: postIdSchema(description) };
|
|
93
|
+
}
|
|
94
|
+
function query(name, schema) {
|
|
95
|
+
return { name, in: "query", schema };
|
|
96
|
+
}
|
|
97
|
+
function constantQuery(name, value) {
|
|
98
|
+
return { name, in: "query", value };
|
|
99
|
+
}
|
|
100
|
+
function objectSchema(properties, required = []) {
|
|
101
|
+
return {
|
|
102
|
+
type: "object",
|
|
103
|
+
properties,
|
|
104
|
+
...(required.length > 0 ? { required } : {}),
|
|
105
|
+
additionalProperties: false
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=operations.js.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,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC;AAC1F,CAAC;AAED,SAAS,KAAK,CAAC,IAAY,EAAE,MAAkB;IAC7C,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAgB,EAAE,MAAM,EAAE,CAAC;AAChD,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,KAAa;IAChD,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAgB,EAAE,KAAK,EAAE,CAAC;AAC/C,CAAC;AAED,SAAS,YAAY,CAAC,UAAsC,EAAE,WAAqB,EAAE;IACnF,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,UAAU;QACV,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5C,oBAAoB,EAAE,KAAK;KAC5B,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@assemblyline-agents/x",
|
|
3
|
+
"version": "3.0.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": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"description": "Official Assembly Line direct X API connection plugin.",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=22.19.0"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/jasonbadeaux/assembly-line.git",
|
|
25
|
+
"directory": "packages/x"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/jasonbadeaux/assembly-line/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/jasonbadeaux/assembly-line#readme",
|
|
31
|
+
"author": "Assembly Line contributors",
|
|
32
|
+
"keywords": [
|
|
33
|
+
"assembly-line",
|
|
34
|
+
"ai",
|
|
35
|
+
"agents",
|
|
36
|
+
"x",
|
|
37
|
+
"social",
|
|
38
|
+
"oauth",
|
|
39
|
+
"connection",
|
|
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
|
+
}
|