@theagilemonkeys/facility 0.7.8 → 0.7.10
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/package.json +1 -1
- package/src/platform-admin.mjs +5 -3
- package/src/platform.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theagilemonkeys/facility",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.10",
|
|
4
4
|
"description": "Run an AI crew on your GitHub repo: agents that plan before building, build to your standard, verify on a provisioned environment, and never merge their own work.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
package/src/platform-admin.mjs
CHANGED
|
@@ -105,7 +105,7 @@ const ADMIN_FLAGS = {
|
|
|
105
105
|
],
|
|
106
106
|
conversations: ["agent", "title", ...WRITE_FLAGS],
|
|
107
107
|
github: ["query", "state", "cursor", "agent", "limit", "repo", ...WRITE_FLAGS],
|
|
108
|
-
providers: ["provider", "name", "secret", "base-url", ...PAGE_FLAGS, ...WRITE_FLAGS],
|
|
108
|
+
providers: ["provider", "name", "secret", "auth-mode", "base-url", ...PAGE_FLAGS, ...WRITE_FLAGS],
|
|
109
109
|
budgets: ["id", "scope", "project", "agent", "period", "limit-cents", "mode", "enabled", ...PAGE_FLAGS, ...WRITE_FLAGS],
|
|
110
110
|
registry: [
|
|
111
111
|
"kind",
|
|
@@ -233,7 +233,7 @@ const ADMIN_SUBCOMMAND_FLAGS = {
|
|
|
233
233
|
providers: {
|
|
234
234
|
__default: [...PAGE_FLAGS],
|
|
235
235
|
list: [...PAGE_FLAGS],
|
|
236
|
-
create: ["provider", "name", "secret", "base-url", ...WRITE_FLAGS],
|
|
236
|
+
create: ["provider", "name", "secret", "auth-mode", "base-url", ...WRITE_FLAGS],
|
|
237
237
|
delete: ["yes"],
|
|
238
238
|
},
|
|
239
239
|
budgets: {
|
|
@@ -722,9 +722,10 @@ async function github(args, ctx, flags) {
|
|
|
722
722
|
async function providers(args, ctx, flags) {
|
|
723
723
|
const sub = args[0] || "list";
|
|
724
724
|
if (sub === "list") {
|
|
725
|
-
return list(ctx, await ctx.api("GET", "/v1/providers", { query: pageQuery(flags) }), ["id", "provider", "name", "base URL"], (row) => [
|
|
725
|
+
return list(ctx, await ctx.api("GET", "/v1/providers", { query: pageQuery(flags) }), ["id", "provider", "auth", "name", "base URL"], (row) => [
|
|
726
726
|
row.id,
|
|
727
727
|
row.provider,
|
|
728
|
+
row.authMode,
|
|
728
729
|
row.name,
|
|
729
730
|
row.baseUrl,
|
|
730
731
|
]);
|
|
@@ -740,6 +741,7 @@ async function providers(args, ctx, flags) {
|
|
|
740
741
|
provider,
|
|
741
742
|
name,
|
|
742
743
|
secret,
|
|
744
|
+
authMode: stringFlag(flags["auth-mode"]),
|
|
743
745
|
baseUrl: stringFlag(flags["base-url"]),
|
|
744
746
|
},
|
|
745
747
|
}),
|
package/src/platform.mjs
CHANGED
|
@@ -1601,7 +1601,7 @@ const PLATFORM_FORMS = {
|
|
|
1601
1601
|
roles: ["roles list", "roles create --name <name> --permissions <a,b> [--description <text>]", "roles update <role-id> --description|--permissions <value>", "roles delete <role-id> --yes"],
|
|
1602
1602
|
repos: ["repos list <project>", "repos connect <project> --repo <owner/name> [--branch <name>]", "repos create <project> --repo <owner/name> [--private <true|false>] [--auto-init <true|false>]", "repos disconnect <project> <repo-id> --yes", "repos verify <repo-id>", "repos adopt <repo-id>"],
|
|
1603
1603
|
agents: ["agents list <project>", "agents status <project>", "agents create <project> --name <name> --engine <engine> --contract <item-id> [configuration flags]", "agents update <project> <agent-id> [configuration flags]", "agents delete <project> <agent-id> --yes"],
|
|
1604
|
-
providers: ["providers list", "providers create --provider <provider> --name <name> --secret <secret> [--base-url <url>]", "providers delete <provider-id> --yes"],
|
|
1604
|
+
providers: ["providers list", "providers create --provider <provider> --name <name> --secret <secret> [--auth-mode <api_key|oauth>] [--base-url <url>]", "providers delete <provider-id> --yes"],
|
|
1605
1605
|
budgets: ["budgets list", "budgets get <budget-id>", "budgets set [<budget-id>] --scope <scope> --period <period> --limit-cents <n> --mode <mode>", "budgets delete <budget-id> --yes"],
|
|
1606
1606
|
registry: ["registry list [--kind <kind>] [--scope <scope>] [--project <id>]", "registry get <item-id>", "registry create --scope <scope> --kind <kind> --name <name> --content|--content-file <value>", "registry version <item-id> --content|--content-file <value> [--changelog <text>]", "registry publish <version-id>", "registry deprecate <version-id>"],
|
|
1607
1607
|
sandboxes: ["sandboxes list", "sandboxes create --name <name> --driver <driver> --image <image> [configuration flags]", "sandboxes update <profile-id> [configuration flags]", "sandboxes delete <profile-id> --yes"],
|