bamboo-agents 0.1.5-dev.51.78fa2ce → 0.1.5-dev.53.8db952b
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/VERSION +1 -1
- package/dist/index.js +218 -15
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.5-dev.
|
|
1
|
+
0.1.5-dev.53.8db952b
|
package/dist/index.js
CHANGED
|
@@ -3037,7 +3037,7 @@ var VERSION;
|
|
|
3037
3037
|
var init_version = __esm({
|
|
3038
3038
|
"src/version.ts"() {
|
|
3039
3039
|
"use strict";
|
|
3040
|
-
VERSION = "0.1.5-dev.
|
|
3040
|
+
VERSION = "0.1.5-dev.53.8db952b";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -7389,6 +7389,8 @@ __export(agents_exports, {
|
|
|
7389
7389
|
CliCreateAgentRequestSchema: () => CliCreateAgentRequestSchema,
|
|
7390
7390
|
CliCreateAgentResponseSchema: () => CliCreateAgentResponseSchema,
|
|
7391
7391
|
CliTierCapSchema: () => CliTierCapSchema,
|
|
7392
|
+
CliUpdateAgentRequestSchema: () => CliUpdateAgentRequestSchema,
|
|
7393
|
+
CliUpdateAgentResponseSchema: () => CliUpdateAgentResponseSchema,
|
|
7392
7394
|
CliUploadAgentRequestSchema: () => CliUploadAgentRequestSchema,
|
|
7393
7395
|
CliUploadAgentResponseSchema: () => CliUploadAgentResponseSchema,
|
|
7394
7396
|
CreateFromCliRequestSchema: () => CreateFromCliRequestSchema,
|
|
@@ -7397,7 +7399,7 @@ __export(agents_exports, {
|
|
|
7397
7399
|
UploadClaudeMdRequestSchema: () => UploadClaudeMdRequestSchema,
|
|
7398
7400
|
UploadClaudeMdResponseSchema: () => UploadClaudeMdResponseSchema
|
|
7399
7401
|
});
|
|
7400
|
-
var SlugSchema, NameSchema, BrandIdSchema, CliAgentRowSchema, CliTierCapSchema, CliAgentsListResponseSchema, CliCreateAgentRequestSchema, CliAgentMutationResponseBase, CliCreateAgentResponseSchema, UPLOAD_MAX_BYTES, CliUploadAgentRequestSchema, CliUploadAgentResponseSchema, CliBrandRowSchema, CliBrandsListResponseSchema, CliAgentLifecycleStateSchema, CliAgentDetailSchema, CliAgentGetResponseSchema, CliAgentPauseResponseSchema, CliAgentPublishResponseSchema, CreateFromCliRequestSchema, CreateFromCliResponseSchema, UploadClaudeMdRequestSchema, UploadClaudeMdResponseSchema;
|
|
7402
|
+
var SlugSchema, NameSchema, BrandIdSchema, CliAgentRowSchema, CliTierCapSchema, CliAgentsListResponseSchema, CliCreateAgentRequestSchema, CliAgentMutationResponseBase, CliCreateAgentResponseSchema, UPLOAD_MAX_BYTES, CliUploadAgentRequestSchema, CliUploadAgentResponseSchema, CliUpdateAgentRequestSchema, CliUpdateAgentResponseSchema, CliBrandRowSchema, CliBrandsListResponseSchema, CliAgentLifecycleStateSchema, CliAgentDetailSchema, CliAgentGetResponseSchema, CliAgentPauseResponseSchema, CliAgentPublishResponseSchema, CreateFromCliRequestSchema, CreateFromCliResponseSchema, UploadClaudeMdRequestSchema, UploadClaudeMdResponseSchema;
|
|
7401
7403
|
var init_agents = __esm({
|
|
7402
7404
|
"../../src/lib/api-contracts/cli/agents.ts"() {
|
|
7403
7405
|
init_zod();
|
|
@@ -7468,6 +7470,19 @@ var init_agents = __esm({
|
|
|
7468
7470
|
claude_md_content: external_exports.string().min(1)
|
|
7469
7471
|
});
|
|
7470
7472
|
CliUploadAgentResponseSchema = CliAgentMutationResponseBase;
|
|
7473
|
+
CliUpdateAgentRequestSchema = external_exports.object({
|
|
7474
|
+
name: NameSchema.optional(),
|
|
7475
|
+
description: external_exports.string().max(2e3).optional(),
|
|
7476
|
+
template_key: external_exports.string().min(1).max(128).optional(),
|
|
7477
|
+
brand_id: BrandIdSchema.optional()
|
|
7478
|
+
}).refine(
|
|
7479
|
+
(d) => d.name !== void 0 || d.description !== void 0 || d.template_key !== void 0 || d.brand_id !== void 0,
|
|
7480
|
+
{ message: "Provide at least one field to update (name, description, template_key, brand_id)" }
|
|
7481
|
+
);
|
|
7482
|
+
CliUpdateAgentResponseSchema = external_exports.object({
|
|
7483
|
+
agent_id: external_exports.string().uuid(),
|
|
7484
|
+
status: external_exports.string().nullable()
|
|
7485
|
+
});
|
|
7471
7486
|
CliBrandRowSchema = external_exports.object({
|
|
7472
7487
|
id: external_exports.string().uuid(),
|
|
7473
7488
|
name: external_exports.string()
|
|
@@ -12284,6 +12299,30 @@ var init_onboarding_next_prompt = __esm({
|
|
|
12284
12299
|
}
|
|
12285
12300
|
});
|
|
12286
12301
|
|
|
12302
|
+
// ../../src/lib/api-contracts/cli/brand.ts
|
|
12303
|
+
var BrandUpdateRequestSchema, BrandUpdateResponseSchema, BrandEditorRequestSchema, BrandEditorResponseSchema;
|
|
12304
|
+
var init_brand = __esm({
|
|
12305
|
+
"../../src/lib/api-contracts/cli/brand.ts"() {
|
|
12306
|
+
init_zod();
|
|
12307
|
+
BrandUpdateRequestSchema = external_exports.object({
|
|
12308
|
+
website_url: external_exports.string().url().max(2048)
|
|
12309
|
+
});
|
|
12310
|
+
BrandUpdateResponseSchema = external_exports.object({
|
|
12311
|
+
brand_id: external_exports.string(),
|
|
12312
|
+
website_url: external_exports.string()
|
|
12313
|
+
});
|
|
12314
|
+
BrandEditorRequestSchema = external_exports.object({
|
|
12315
|
+
action: external_exports.enum(["add", "remove"]),
|
|
12316
|
+
user_id: external_exports.string().uuid()
|
|
12317
|
+
});
|
|
12318
|
+
BrandEditorResponseSchema = external_exports.object({
|
|
12319
|
+
brand_id: external_exports.string(),
|
|
12320
|
+
user_id: external_exports.string(),
|
|
12321
|
+
action: external_exports.enum(["add", "remove"])
|
|
12322
|
+
});
|
|
12323
|
+
}
|
|
12324
|
+
});
|
|
12325
|
+
|
|
12287
12326
|
// ../../src/lib/api-contracts/cli/context-health.ts
|
|
12288
12327
|
var ScopeKindSchema, ScopeSchema, CriterionMetricsSchema, StatusSchema, CriterionContributionSchema, CriterionResultSchema, BucketScoresSchema, ResolvedScopeSchema, GapsSchema, HealthyResponseSchema, UnavailableResponseSchema, ContextHealthResponseSchema;
|
|
12289
12328
|
var init_context_health = __esm({
|
|
@@ -12623,6 +12662,21 @@ async function unpauseCliAgent(bambooSession, agentId) {
|
|
|
12623
12662
|
const json = await res.json();
|
|
12624
12663
|
return CliAgentPauseResponseSchema.parse(json.data);
|
|
12625
12664
|
}
|
|
12665
|
+
async function updateCliAgent(bambooSession, agentId, body) {
|
|
12666
|
+
const res = await cliApiFetch(
|
|
12667
|
+
`${apiBase()}/api/v1/cli/agents/${encodeURIComponent(agentId)}`,
|
|
12668
|
+
{
|
|
12669
|
+
method: "PATCH",
|
|
12670
|
+
headers: {
|
|
12671
|
+
Authorization: `Bearer ${bambooSession}`,
|
|
12672
|
+
"Content-Type": "application/json"
|
|
12673
|
+
},
|
|
12674
|
+
body: JSON.stringify(body)
|
|
12675
|
+
}
|
|
12676
|
+
);
|
|
12677
|
+
if (!res.ok) throw await parseError(res);
|
|
12678
|
+
return CliUpdateAgentResponseSchema.parse(await res.json());
|
|
12679
|
+
}
|
|
12626
12680
|
async function publishCliAgent(bambooSession, agentId) {
|
|
12627
12681
|
const res = await cliApiFetch(
|
|
12628
12682
|
`${apiBase()}/api/v1/agents/${encodeURIComponent(agentId)}/provision`,
|
|
@@ -12694,6 +12748,36 @@ async function scaffoldSkill(bambooSession, args) {
|
|
|
12694
12748
|
const json = await res.json();
|
|
12695
12749
|
return ScaffoldSkillResponseSchema.parse(json.data);
|
|
12696
12750
|
}
|
|
12751
|
+
async function patchBrand(bambooSession, brandId, websiteUrl) {
|
|
12752
|
+
const res = await cliApiFetch(
|
|
12753
|
+
`${apiBase()}/api/v1/cli/brands/${encodeURIComponent(brandId)}`,
|
|
12754
|
+
{
|
|
12755
|
+
method: "PATCH",
|
|
12756
|
+
headers: {
|
|
12757
|
+
Authorization: `Bearer ${bambooSession}`,
|
|
12758
|
+
"Content-Type": "application/json"
|
|
12759
|
+
},
|
|
12760
|
+
body: JSON.stringify({ website_url: websiteUrl })
|
|
12761
|
+
}
|
|
12762
|
+
);
|
|
12763
|
+
if (!res.ok) throw await parseError(res);
|
|
12764
|
+
return BrandUpdateResponseSchema.parse(await res.json());
|
|
12765
|
+
}
|
|
12766
|
+
async function postBrandEditor(bambooSession, brandId, body) {
|
|
12767
|
+
const res = await cliApiFetch(
|
|
12768
|
+
`${apiBase()}/api/v1/cli/brands/${encodeURIComponent(brandId)}/editors`,
|
|
12769
|
+
{
|
|
12770
|
+
method: "POST",
|
|
12771
|
+
headers: {
|
|
12772
|
+
Authorization: `Bearer ${bambooSession}`,
|
|
12773
|
+
"Content-Type": "application/json"
|
|
12774
|
+
},
|
|
12775
|
+
body: JSON.stringify(body)
|
|
12776
|
+
}
|
|
12777
|
+
);
|
|
12778
|
+
if (!res.ok) throw await parseError(res);
|
|
12779
|
+
return BrandEditorResponseSchema.parse(await res.json());
|
|
12780
|
+
}
|
|
12697
12781
|
async function uploadClaudeMdFromCli(bambooSession, body) {
|
|
12698
12782
|
const res = await cliApiFetch(
|
|
12699
12783
|
`${apiBase()}/api/v1/cli/agents/upload-claude-md`,
|
|
@@ -12720,6 +12804,7 @@ var init_api = __esm({
|
|
|
12720
12804
|
init_billing_status();
|
|
12721
12805
|
init_agent_health();
|
|
12722
12806
|
init_onboarding_next_prompt();
|
|
12807
|
+
init_brand();
|
|
12723
12808
|
init_agents();
|
|
12724
12809
|
init_knowledge_slots();
|
|
12725
12810
|
init_knowledge_save();
|
|
@@ -13789,13 +13874,13 @@ async function runCreateFlow(ctx) {
|
|
|
13789
13874
|
console.log("");
|
|
13790
13875
|
const name = await promptStdin(" Agent name (e.g. Paid Ads Agent): ");
|
|
13791
13876
|
if (!name) return null;
|
|
13792
|
-
const
|
|
13793
|
-
if (!
|
|
13877
|
+
const brand2 = await resolveBrand(ctx);
|
|
13878
|
+
if (!brand2) return null;
|
|
13794
13879
|
console.log("");
|
|
13795
13880
|
console.log(" Creating your agent\u2026");
|
|
13796
13881
|
try {
|
|
13797
13882
|
const created = await createAgentFromCli(ctx.credentials.bamboo_session, {
|
|
13798
|
-
brand_id:
|
|
13883
|
+
brand_id: brand2.id,
|
|
13799
13884
|
name
|
|
13800
13885
|
});
|
|
13801
13886
|
console.log("");
|
|
@@ -13847,15 +13932,15 @@ async function runUploadFlow(ctx) {
|
|
|
13847
13932
|
" Name this agent (e.g. My Existing Agent): "
|
|
13848
13933
|
);
|
|
13849
13934
|
if (!name) return null;
|
|
13850
|
-
const
|
|
13851
|
-
if (!
|
|
13935
|
+
const brand2 = await resolveBrand(ctx);
|
|
13936
|
+
if (!brand2) return null;
|
|
13852
13937
|
console.log("");
|
|
13853
13938
|
console.log(" Uploading\u2026");
|
|
13854
13939
|
try {
|
|
13855
13940
|
const uploaded = await uploadClaudeMdFromCli(
|
|
13856
13941
|
ctx.credentials.bamboo_session,
|
|
13857
13942
|
{
|
|
13858
|
-
brand_id:
|
|
13943
|
+
brand_id: brand2.id,
|
|
13859
13944
|
name,
|
|
13860
13945
|
claude_md_content: content
|
|
13861
13946
|
}
|
|
@@ -16908,6 +16993,72 @@ var init_onboarding = __esm({
|
|
|
16908
16993
|
}
|
|
16909
16994
|
});
|
|
16910
16995
|
|
|
16996
|
+
// src/commands/brand.ts
|
|
16997
|
+
var brand_exports = {};
|
|
16998
|
+
__export(brand_exports, {
|
|
16999
|
+
runBrandEditor: () => runBrandEditor,
|
|
17000
|
+
runBrandUpdate: () => runBrandUpdate
|
|
17001
|
+
});
|
|
17002
|
+
async function requireSession7() {
|
|
17003
|
+
const creds = await readCredentials();
|
|
17004
|
+
if (!creds) {
|
|
17005
|
+
console.error("bamboo-agents: not signed in. Run `bamboo-agents login` first.");
|
|
17006
|
+
process.exit(1);
|
|
17007
|
+
}
|
|
17008
|
+
return creds.bamboo_session;
|
|
17009
|
+
}
|
|
17010
|
+
async function runBrandUpdate(brandId, options) {
|
|
17011
|
+
if (!brandId) {
|
|
17012
|
+
console.error("bamboo-agents: `brand update` requires a brand id.");
|
|
17013
|
+
process.exit(2);
|
|
17014
|
+
}
|
|
17015
|
+
const session = await requireSession7();
|
|
17016
|
+
let result;
|
|
17017
|
+
try {
|
|
17018
|
+
result = await patchBrand(session, brandId, options.website);
|
|
17019
|
+
} catch (err) {
|
|
17020
|
+
console.error(`bamboo-agents: brand update failed: ${err.message}`);
|
|
17021
|
+
process.exit(1);
|
|
17022
|
+
}
|
|
17023
|
+
if (options.json) {
|
|
17024
|
+
console.log(JSON.stringify(result));
|
|
17025
|
+
return;
|
|
17026
|
+
}
|
|
17027
|
+
console.log("");
|
|
17028
|
+
console.log(` \u2713 Updated brand ${result.brand_id} \u2014 website ${result.website_url}`);
|
|
17029
|
+
console.log("");
|
|
17030
|
+
}
|
|
17031
|
+
async function runBrandEditor(action, brandId, userId, options) {
|
|
17032
|
+
if (!brandId || !userId) {
|
|
17033
|
+
console.error(`bamboo-agents: \`brand editor ${action}\` requires <brand-id> <user-id>.`);
|
|
17034
|
+
process.exit(2);
|
|
17035
|
+
}
|
|
17036
|
+
const session = await requireSession7();
|
|
17037
|
+
let result;
|
|
17038
|
+
try {
|
|
17039
|
+
result = await postBrandEditor(session, brandId, { action, user_id: userId });
|
|
17040
|
+
} catch (err) {
|
|
17041
|
+
console.error(`bamboo-agents: brand editor ${action} failed: ${err.message}`);
|
|
17042
|
+
process.exit(1);
|
|
17043
|
+
}
|
|
17044
|
+
if (options.json) {
|
|
17045
|
+
console.log(JSON.stringify(result));
|
|
17046
|
+
return;
|
|
17047
|
+
}
|
|
17048
|
+
console.log("");
|
|
17049
|
+
console.log(
|
|
17050
|
+
action === "add" ? ` \u2713 Granted editor ${result.user_id} on brand ${result.brand_id}` : ` \u2713 Revoked editor ${result.user_id} on brand ${result.brand_id}`
|
|
17051
|
+
);
|
|
17052
|
+
console.log("");
|
|
17053
|
+
}
|
|
17054
|
+
var init_brand2 = __esm({
|
|
17055
|
+
"src/commands/brand.ts"() {
|
|
17056
|
+
"use strict";
|
|
17057
|
+
init_credentials();
|
|
17058
|
+
init_api();
|
|
17059
|
+
}
|
|
17060
|
+
});
|
|
17061
|
+
|
|
16911
17062
|
// src/commands/agents.ts
|
|
16912
17063
|
var agents_exports2 = {};
|
|
16913
17064
|
__export(agents_exports2, {
|
|
@@ -16915,9 +17066,10 @@ __export(agents_exports2, {
|
|
|
16915
17066
|
runAgentsGet: () => runAgentsGet,
|
|
16916
17067
|
runAgentsList: () => runAgentsList,
|
|
16917
17068
|
runAgentsPause: () => runAgentsPause,
|
|
16918
|
-
runAgentsProvision: () => runAgentsProvision
|
|
17069
|
+
runAgentsProvision: () => runAgentsProvision,
|
|
17070
|
+
runAgentsUpdate: () => runAgentsUpdate
|
|
16919
17071
|
});
|
|
16920
|
-
async function
|
|
17072
|
+
async function requireSession8(opts) {
|
|
16921
17073
|
const creds = await readCredentials();
|
|
16922
17074
|
if (!creds) {
|
|
16923
17075
|
emitError(
|
|
@@ -17004,7 +17156,7 @@ function printList(data, opts) {
|
|
|
17004
17156
|
}
|
|
17005
17157
|
async function runAgentsList(options) {
|
|
17006
17158
|
const opts = options;
|
|
17007
|
-
const session = await
|
|
17159
|
+
const session = await requireSession8(opts);
|
|
17008
17160
|
let data;
|
|
17009
17161
|
try {
|
|
17010
17162
|
data = await listCliAgents(session);
|
|
@@ -17031,7 +17183,7 @@ function printDetail(agent, opts) {
|
|
|
17031
17183
|
}
|
|
17032
17184
|
async function runAgentsGet(agentRef, options) {
|
|
17033
17185
|
const opts = options;
|
|
17034
|
-
const session = await
|
|
17186
|
+
const session = await requireSession8(opts);
|
|
17035
17187
|
const row = await resolveAgentRef(session, agentRef, opts);
|
|
17036
17188
|
let agent;
|
|
17037
17189
|
try {
|
|
@@ -17073,7 +17225,7 @@ async function resolveBrandId(session, explicit, opts) {
|
|
|
17073
17225
|
}
|
|
17074
17226
|
async function runAgentsProvision(name, options) {
|
|
17075
17227
|
const opts = options;
|
|
17076
|
-
const session = await
|
|
17228
|
+
const session = await requireSession8(opts);
|
|
17077
17229
|
const brandId = await resolveBrandId(session, options.brand, opts);
|
|
17078
17230
|
let result;
|
|
17079
17231
|
try {
|
|
@@ -17099,7 +17251,7 @@ async function runAgentsProvision(name, options) {
|
|
|
17099
17251
|
}
|
|
17100
17252
|
async function runAgentsPause(agentRef, options) {
|
|
17101
17253
|
const opts = options;
|
|
17102
|
-
const session = await
|
|
17254
|
+
const session = await requireSession8(opts);
|
|
17103
17255
|
const row = await resolveAgentRef(session, agentRef, opts);
|
|
17104
17256
|
try {
|
|
17105
17257
|
const res = await pauseCliAgent(session, row.id);
|
|
@@ -17112,9 +17264,40 @@ async function runAgentsPause(agentRef, options) {
|
|
|
17112
17264
|
);
|
|
17113
17265
|
}
|
|
17114
17266
|
}
|
|
17267
|
+
async function runAgentsUpdate(agentRef, options) {
|
|
17268
|
+
const opts = options;
|
|
17269
|
+
const session = await requireSession8(opts);
|
|
17270
|
+
const body = {};
|
|
17271
|
+
if (options.name !== void 0) body.name = options.name;
|
|
17272
|
+
if (options.description !== void 0) body.description = options.description;
|
|
17273
|
+
if (options.template !== void 0) body.template_key = options.template;
|
|
17274
|
+
if (options.brand !== void 0) body.brand_id = options.brand;
|
|
17275
|
+
if (Object.keys(body).length === 0) {
|
|
17276
|
+
emitError(
|
|
17277
|
+
{
|
|
17278
|
+
code: "nothing_to_update",
|
|
17279
|
+
message: "Provide at least one of --name, --description, --template, --brand."
|
|
17280
|
+
},
|
|
17281
|
+
opts,
|
|
17282
|
+
2
|
|
17283
|
+
);
|
|
17284
|
+
return;
|
|
17285
|
+
}
|
|
17286
|
+
const row = await resolveAgentRef(session, agentRef, opts);
|
|
17287
|
+
try {
|
|
17288
|
+
const res = await updateCliAgent(session, row.id, body);
|
|
17289
|
+
emitSuccess(res, opts, () => human(` Updated ${row.name} (${row.id}).`, opts));
|
|
17290
|
+
} catch (err) {
|
|
17291
|
+
emitError(
|
|
17292
|
+
{ code: "agent_update_failed", message: `couldn't update agent: ${err.message}` },
|
|
17293
|
+
opts,
|
|
17294
|
+
1
|
|
17295
|
+
);
|
|
17296
|
+
}
|
|
17297
|
+
}
|
|
17115
17298
|
async function runAgentsActivate(agentRef, options) {
|
|
17116
17299
|
const opts = options;
|
|
17117
|
-
const session = await
|
|
17300
|
+
const session = await requireSession8(opts);
|
|
17118
17301
|
const row = await resolveAgentRef(session, agentRef, opts);
|
|
17119
17302
|
let state = row.state;
|
|
17120
17303
|
let status = row.status;
|
|
@@ -17492,6 +17675,20 @@ onboarding.command("status").description("Composite onboarding gate (activation
|
|
|
17492
17675
|
const { runOnboardingStatus: runOnboardingStatus2 } = await Promise.resolve().then(() => (init_onboarding(), onboarding_exports));
|
|
17493
17676
|
await runOnboardingStatus2(options);
|
|
17494
17677
|
});
|
|
17678
|
+
var brand = program2.command("brand").description("Manage brand metadata + editors");
|
|
17679
|
+
brand.command("update <brand-id>").description("Update brand metadata (website URL)").requiredOption("--website <url>", "Brand website URL").option("--json", "Emit raw JSON").action(async (brandId, options) => {
|
|
17680
|
+
const { runBrandUpdate: runBrandUpdate2 } = await Promise.resolve().then(() => (init_brand2(), brand_exports));
|
|
17681
|
+
await runBrandUpdate2(brandId, options);
|
|
17682
|
+
});
|
|
17683
|
+
var brandEditor = brand.command("editor").description("Grant/revoke brand editor access (admin-only)");
|
|
17684
|
+
brandEditor.command("add <brand-id> <user-id>").description("Grant a user editor access on a brand").option("--json", "Emit raw JSON").action(async (brandId, userId, options) => {
|
|
17685
|
+
const { runBrandEditor: runBrandEditor2 } = await Promise.resolve().then(() => (init_brand2(), brand_exports));
|
|
17686
|
+
await runBrandEditor2("add", brandId, userId, options);
|
|
17687
|
+
});
|
|
17688
|
+
brandEditor.command("remove <brand-id> <user-id>").description("Revoke a user's editor access on a brand").option("--json", "Emit raw JSON").action(async (brandId, userId, options) => {
|
|
17689
|
+
const { runBrandEditor: runBrandEditor2 } = await Promise.resolve().then(() => (init_brand2(), brand_exports));
|
|
17690
|
+
await runBrandEditor2("remove", brandId, userId, options);
|
|
17691
|
+
});
|
|
17495
17692
|
var agents = program2.command("agents").description("Manage agents \u2014 list, get, provision, activate, pause");
|
|
17496
17693
|
agents.command("list").description("List agents with their lifecycle state").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(async (options) => {
|
|
17497
17694
|
const { runAgentsList: runAgentsList2 } = await Promise.resolve().then(() => (init_agents2(), agents_exports2));
|
|
@@ -17507,6 +17704,12 @@ agents.command("provision <name>").description("Create a new agent (immediately
|
|
|
17507
17704
|
await runAgentsProvision2(name, options);
|
|
17508
17705
|
}
|
|
17509
17706
|
);
|
|
17707
|
+
agents.command("update <agent>").description("Update an agent's name / description / template / brand (accepts id, slug, or name)").option("--name <name>", "New agent name").option("--description <text>", "New description").option("--template <key>", "Template key").option("--brand <id>", "Reassign to this brand (replaces the current assignment)").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(
|
|
17708
|
+
async (agent, options) => {
|
|
17709
|
+
const { runAgentsUpdate: runAgentsUpdate2 } = await Promise.resolve().then(() => (init_agents2(), agents_exports2));
|
|
17710
|
+
await runAgentsUpdate2(agent, options);
|
|
17711
|
+
}
|
|
17712
|
+
);
|
|
17510
17713
|
agents.command("activate <agent>").description("Activate an agent \u2014 unpause it (or publish a draft). Admin-only.").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(async (agent, options) => {
|
|
17511
17714
|
const { runAgentsActivate: runAgentsActivate2 } = await Promise.resolve().then(() => (init_agents2(), agents_exports2));
|
|
17512
17715
|
await runAgentsActivate2(agent, options);
|