replicas-cli 0.3.147 → 0.3.149
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/dist/index.cjs +33 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23054,6 +23054,7 @@ var createChatRequestSchema = external_exports.object({
|
|
|
23054
23054
|
title: external_exports.string().min(1).optional(),
|
|
23055
23055
|
parentChatId: external_exports.string().uuid().optional(),
|
|
23056
23056
|
forkSourceChatId: external_exports.string().uuid().optional(),
|
|
23057
|
+
pullRequestNotesPath: external_exports.string().min(1).optional(),
|
|
23057
23058
|
sideChat: external_exports.boolean().optional(),
|
|
23058
23059
|
clientRequestId: external_exports.string().min(1).max(128).optional()
|
|
23059
23060
|
}).refine((request) => !request.sideChat || request.forkSourceChatId !== void 0 && request.parentChatId === request.forkSourceChatId, {
|
|
@@ -29042,7 +29043,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
29042
29043
|
});
|
|
29043
29044
|
|
|
29044
29045
|
// ../shared/src/cli-version.ts
|
|
29045
|
-
var CLI_VERSION = "0.3.
|
|
29046
|
+
var CLI_VERSION = "0.3.149";
|
|
29046
29047
|
|
|
29047
29048
|
// ../shared/src/version.ts
|
|
29048
29049
|
function compareVersions(v1, v2) {
|
|
@@ -29512,10 +29513,37 @@ var HOSTED_COMPOSIO_PLUGINS = HOSTED_COMPOSIO_PLUGIN_DEFINITIONS.map(
|
|
|
29512
29513
|
description: `Use ${name} tools from workspace agents.`
|
|
29513
29514
|
})
|
|
29514
29515
|
);
|
|
29516
|
+
var READ_ONLY_SCOPES = {
|
|
29517
|
+
gmail: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/contacts.readonly", "https://www.googleapis.com/auth/contacts.other.readonly", "https://www.googleapis.com/auth/gmail.readonly"],
|
|
29518
|
+
googledocs: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/documents.readonly"],
|
|
29519
|
+
googledrive: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],
|
|
29520
|
+
googlesheets: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/spreadsheets.readonly"],
|
|
29521
|
+
googleslides: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/presentations.readonly"],
|
|
29522
|
+
googlecalendar: ["https://www.googleapis.com/auth/calendar.readonly"],
|
|
29523
|
+
googletasks: ["https://www.googleapis.com/auth/tasks.readonly"],
|
|
29524
|
+
googlesearch: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/webmasters.readonly"],
|
|
29525
|
+
googleanalytics: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/analytics.readonly"],
|
|
29526
|
+
youtube: ["https://www.googleapis.com/auth/youtube.readonly"],
|
|
29527
|
+
outlook: ["User.Read", "Mail.Read", "MailboxSettings.Read", "Calendars.Read", "Contacts.Read", "offline_access"],
|
|
29528
|
+
onedrive: ["Files.Read.All", "Sites.Read.All", "offline_access"],
|
|
29529
|
+
microsoftteams: ["User.Read", "Team.ReadBasic.All", "Channel.ReadBasic.All", "ChannelMessage.Read.All", "Chat.Read", "Chat.ReadBasic", "ChatMessage.Read", "People.Read.All", "TeamsActivity.Read", "offline_access"],
|
|
29530
|
+
jira: ["read:jira-work", "read:jira-user", "read:servicedesk-request", "read:servicemanagement-insight-objects", "read:sprint:jira-software", "read:board-scope:jira-software", "read:project:jira", "read:issue-type-scheme:jira", "offline_access"],
|
|
29531
|
+
confluence: ["read:space-details:confluence", "read:audit-log:confluence", "read:page:confluence", "read:blogpost:confluence", "read:whiteboard:confluence", "read:comment:confluence", "read:content.restriction:confluence", "read:content.metadata:confluence", "read:inlinetask:confluence", "read:task:confluence", "offline_access"],
|
|
29532
|
+
pagerduty: ["read"],
|
|
29533
|
+
zendesk: ["read"],
|
|
29534
|
+
gong: ["api:calls:read:basic", "api:calls:read:extensive", "api:calls:read:transcript", "api:calls:read:media-url", "api:users:read", "api:stats:interaction", "api:stats:scorecards", "api:stats:user-actions", "api:stats:user-actions:detailed", "api:settings:scorecards:read", "api:settings:trackers:read", "api:library:read", "api:tasks:read", "api:flows:read", "api:workspaces:read", "api:crm:get-objects", "api:crm:schema", "api:crm:integrations:read", "api:call-outcomes:read", "api:permission-profile:read", "api:logs:read"],
|
|
29535
|
+
figma: ["current_user:read", "file_content:read", "file_comments:read", "file_metadata:read", "file_versions:read", "projects:read", "library_assets:read", "library_content:read", "team_library_content:read", "webhooks:read"],
|
|
29536
|
+
airtable: ["data.records:read", "data.recordComments:read", "schema.bases:read", "user.email:read"],
|
|
29537
|
+
todoist: ["data:read"],
|
|
29538
|
+
dropbox: ["openid", "email", "profile", "account_info.read", "files.metadata.read", "files.content.read", "file_requests.read", "sharing.read", "contacts.read"],
|
|
29539
|
+
canva: ["profile:read", "asset:read", "brandtemplate:content:read", "brandtemplate:meta:read", "comment:read", "design:content:read", "design:meta:read", "folder:read"],
|
|
29540
|
+
facebook: ["public_profile", "email", "pages_show_list", "pages_read_engagement", "pages_read_user_content", "read_insights"],
|
|
29541
|
+
instagram: ["instagram_business_basic", "instagram_business_manage_insights"]
|
|
29542
|
+
};
|
|
29515
29543
|
var PLUGIN_CATALOG = [
|
|
29516
29544
|
...EXPLICIT_PLUGIN_CATALOG,
|
|
29517
29545
|
...HOSTED_COMPOSIO_PLUGINS
|
|
29518
|
-
];
|
|
29546
|
+
].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
|
|
29519
29547
|
|
|
29520
29548
|
// ../shared/src/routes/user.ts
|
|
29521
29549
|
var PROFILE_AVATAR_MAX_SIZE_BYTES = 5 * 1024 * 1024;
|
|
@@ -33199,7 +33227,7 @@ async function pluginsListCommand(options) {
|
|
|
33199
33227
|
for (const plugin of plugins2) {
|
|
33200
33228
|
const connections = environment2.filter((connection) => connection.pluginId === plugin.id);
|
|
33201
33229
|
if (!options.all && connections.length === 0) continue;
|
|
33202
|
-
const status = connections.map((connection) => `${connection.status}${connection.accountLabel ? ` (${connection.accountLabel})` : ""}`).join(", ");
|
|
33230
|
+
const status = connections.map((connection) => `${connection.status}${connection.readOnly ? " read-only" : ""}${connection.accountLabel ? ` (${connection.accountLabel})` : ""}`).join(", ");
|
|
33203
33231
|
console.log(`${plugin.id} ${plugin.authType} ${status || "-"} ${plugin.name}`);
|
|
33204
33232
|
}
|
|
33205
33233
|
});
|
|
@@ -33207,7 +33235,7 @@ async function pluginsListCommand(options) {
|
|
|
33207
33235
|
async function pluginsOAuthCommand(pluginId, options) {
|
|
33208
33236
|
const response = await orgAuthenticatedFetch(
|
|
33209
33237
|
await pluginsPath(options, `/${pluginId}/oauth/start`),
|
|
33210
|
-
{ method: "POST" }
|
|
33238
|
+
{ method: "POST", body: { readOnly: options.readOnly === true } }
|
|
33211
33239
|
);
|
|
33212
33240
|
output(response, ({ authorizationUrl }) => console.log(authorizationUrl));
|
|
33213
33241
|
}
|
|
@@ -35586,7 +35614,7 @@ repos.command("branches <name-or-id>").description("List branches of a repositor
|
|
|
35586
35614
|
repos.action(run(repositoriesListCommand));
|
|
35587
35615
|
var plugins = program.command("plugins").description("Connect plugins (organization-wide, or to one environment with --env)");
|
|
35588
35616
|
plugins.command("list").description("List connected plugins").option("-e, --env <env>", "Environment name or ID").option("-a, --all", "Include plugins that are not connected").action(run(pluginsListCommand));
|
|
35589
|
-
plugins.command("oauth <pluginId>").description("Start an OAuth connection and print the URL to open").option("-e, --env <env>", "Environment name or ID").action(run(pluginsOAuthCommand));
|
|
35617
|
+
plugins.command("oauth <pluginId>").description("Start an OAuth connection and print the URL to open").option("-e, --env <env>", "Environment name or ID").option("--read-only", "Request read-only access, for plugins that support it").action(run(pluginsOAuthCommand));
|
|
35590
35618
|
plugins.command("connect <pluginId>").description("Connect a plugin with credentials: replicas plugins connect posthog -s apiKey=... -s region=us").option("-e, --env <env>", "Environment name or ID").option("-s, --set <key=value>", "Credential field (repeatable)", collect, []).action(run(pluginsConnectCommand));
|
|
35591
35619
|
plugins.command("disconnect <pluginId>").description("Disconnect a plugin").option("-e, --env <env>", "Environment name or ID").option("-c, --connection <connectionId>", "Disconnect only this connection").action(run(pluginsDisconnectCommand));
|
|
35592
35620
|
var skills = program.command("skills").description("Organization skills learned from users");
|