bamboo-agents 0.1.7-dev.85.44cc015 → 0.1.7-dev.87.b63312a
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 +2 -67
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.7-dev.
|
|
1
|
+
0.1.7-dev.87.b63312a
|
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.7-dev.
|
|
3040
|
+
VERSION = "0.1.7-dev.87.b63312a";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -13515,22 +13515,6 @@ async function updateSkillFromRegistry(bambooSession, agentId, skillName) {
|
|
|
13515
13515
|
const json = await res.json();
|
|
13516
13516
|
return SkillSubscriptionsResponseSchema.parse(json.data);
|
|
13517
13517
|
}
|
|
13518
|
-
async function scaffoldSkill(bambooSession, args) {
|
|
13519
|
-
const res = await cliApiFetch(
|
|
13520
|
-
`${apiBase()}/api/v1/orgs/me/skills/scaffold`,
|
|
13521
|
-
{
|
|
13522
|
-
method: "POST",
|
|
13523
|
-
headers: {
|
|
13524
|
-
Authorization: `Bearer ${bambooSession}`,
|
|
13525
|
-
"Content-Type": "application/json"
|
|
13526
|
-
},
|
|
13527
|
-
body: JSON.stringify(args)
|
|
13528
|
-
}
|
|
13529
|
-
);
|
|
13530
|
-
if (!res.ok) throw await parseError(res);
|
|
13531
|
-
const json = await res.json();
|
|
13532
|
-
return ScaffoldSkillResponseSchema.parse(json.data);
|
|
13533
|
-
}
|
|
13534
13518
|
async function patchBrand(bambooSession, brandId, websiteUrl) {
|
|
13535
13519
|
const res = await cliApiFetch(
|
|
13536
13520
|
`${apiBase()}/api/v1/cli/brands/${encodeURIComponent(brandId)}`,
|
|
@@ -13664,7 +13648,7 @@ async function postRecEpisode(bambooSession, body) {
|
|
|
13664
13648
|
const json = await res.json();
|
|
13665
13649
|
return CliRecEpisodeResponseSchema.parse(json);
|
|
13666
13650
|
}
|
|
13667
|
-
var PROD_DEFAULT_BASE, DEV_DEFAULT_BASE, REQUEST_TIMEOUT_MS, ApiError, OAuthRelinkStartResponseSchema, ProvisionWorkspaceResponseSchema, FirstAutoInstalledAgentResponseSchema, SkillCatalogEntrySchema, SkillCatalogResponseSchema, SkillSubscriptionsResponseSchema
|
|
13651
|
+
var PROD_DEFAULT_BASE, DEV_DEFAULT_BASE, REQUEST_TIMEOUT_MS, ApiError, OAuthRelinkStartResponseSchema, ProvisionWorkspaceResponseSchema, FirstAutoInstalledAgentResponseSchema, SkillCatalogEntrySchema, SkillCatalogResponseSchema, SkillSubscriptionsResponseSchema;
|
|
13668
13652
|
var init_api = __esm({
|
|
13669
13653
|
"src/lib/api.ts"() {
|
|
13670
13654
|
"use strict";
|
|
@@ -13735,9 +13719,6 @@ var init_api = __esm({
|
|
|
13735
13719
|
SkillSubscriptionsResponseSchema = external_exports.object({
|
|
13736
13720
|
subscriptions: external_exports.array(external_exports.string())
|
|
13737
13721
|
});
|
|
13738
|
-
ScaffoldSkillResponseSchema = external_exports.object({
|
|
13739
|
-
skill_name: external_exports.string()
|
|
13740
|
-
});
|
|
13741
13722
|
}
|
|
13742
13723
|
});
|
|
13743
13724
|
|
|
@@ -17519,7 +17500,6 @@ var init_skills_local = __esm({
|
|
|
17519
17500
|
var skills_exports = {};
|
|
17520
17501
|
__export(skills_exports, {
|
|
17521
17502
|
runSkillsApply: () => runSkillsApply,
|
|
17522
|
-
runSkillsCreate: () => runSkillsCreate,
|
|
17523
17503
|
runSkillsGet: () => runSkillsGet,
|
|
17524
17504
|
runSkillsList: () => runSkillsList,
|
|
17525
17505
|
runSkillsSubscribe: () => runSkillsSubscribe,
|
|
@@ -17783,45 +17763,6 @@ async function runSubscribeOp(action, agentIdentifier, skillName) {
|
|
|
17783
17763
|
console.log(" git -C $(bamboo-agents status) pull");
|
|
17784
17764
|
console.log("");
|
|
17785
17765
|
}
|
|
17786
|
-
async function runSkillsCreate(skillName, options = {}) {
|
|
17787
|
-
return withFreshWorkspace(async () => runSkillsCreateImpl(skillName, options));
|
|
17788
|
-
}
|
|
17789
|
-
async function runSkillsCreateImpl(skillName, options = {}) {
|
|
17790
|
-
if (!skillName || !skillName.trim()) {
|
|
17791
|
-
console.error("bamboo-agents: skills create requires a skill name.");
|
|
17792
|
-
console.error("Example: bamboo-agents skills create analyze-creative");
|
|
17793
|
-
process.exit(2);
|
|
17794
|
-
}
|
|
17795
|
-
if (!/^[a-z0-9][a-z0-9-]*$/.test(skillName.trim())) {
|
|
17796
|
-
console.error(
|
|
17797
|
-
"bamboo-agents: skill name must be kebab-case (lowercase + dashes)."
|
|
17798
|
-
);
|
|
17799
|
-
process.exit(2);
|
|
17800
|
-
}
|
|
17801
|
-
const bambooSession = await requireSession2();
|
|
17802
|
-
let result;
|
|
17803
|
-
try {
|
|
17804
|
-
result = await scaffoldSkill(bambooSession, {
|
|
17805
|
-
skill_name: skillName.trim(),
|
|
17806
|
-
category: options.category,
|
|
17807
|
-
description: options.description
|
|
17808
|
-
});
|
|
17809
|
-
} catch (err) {
|
|
17810
|
-
console.error(
|
|
17811
|
-
`bamboo-agents: could not scaffold ${skillName}: ${err.message}`
|
|
17812
|
-
);
|
|
17813
|
-
process.exit(1);
|
|
17814
|
-
}
|
|
17815
|
-
console.log("");
|
|
17816
|
-
console.log(` Scaffolded ${result.skill_name}.`);
|
|
17817
|
-
console.log("");
|
|
17818
|
-
console.log(
|
|
17819
|
-
` Edit skills/${result.skill_name}/SKILL.md in your workspace clone:`
|
|
17820
|
-
);
|
|
17821
|
-
console.log(" git -C $(bamboo-agents status) pull");
|
|
17822
|
-
console.log(` $EDITOR skills/${result.skill_name}/SKILL.md`);
|
|
17823
|
-
console.log("");
|
|
17824
|
-
}
|
|
17825
17766
|
async function runSkillsUpdate(agentIdentifier, skillName) {
|
|
17826
17767
|
return withFreshWorkspace(
|
|
17827
17768
|
async () => runSkillsUpdateImpl(agentIdentifier, skillName)
|
|
@@ -20057,12 +19998,6 @@ skills.command("unsubscribe <agent> <skill-name>").description("Unsubscribe an a
|
|
|
20057
19998
|
const { runSkillsUnsubscribe: runSkillsUnsubscribe2 } = await Promise.resolve().then(() => (init_skills(), skills_exports));
|
|
20058
19999
|
await runSkillsUnsubscribe2(agent, skillName);
|
|
20059
20000
|
});
|
|
20060
|
-
skills.command("create <skill-name>").description("Scaffold a new org-custom skill in your workspace").option("--category <category>", "Optional category label (e.g. analysis)").option("--description <description>", "Optional one-line description").option("--no-sync", "Skip the auto-sync git pull on this command").action(
|
|
20061
|
-
async (skillName, options) => {
|
|
20062
|
-
const { runSkillsCreate: runSkillsCreate2 } = await Promise.resolve().then(() => (init_skills(), skills_exports));
|
|
20063
|
-
await runSkillsCreate2(skillName, options);
|
|
20064
|
-
}
|
|
20065
|
-
);
|
|
20066
20001
|
skills.command("update <agent> <skill-name>").description("Update an installed skill from the bamboo registry").option("--no-sync", "Skip the auto-sync git pull on this command").action(async (agent, skillName) => {
|
|
20067
20002
|
const { runSkillsUpdate: runSkillsUpdate2 } = await Promise.resolve().then(() => (init_skills(), skills_exports));
|
|
20068
20003
|
await runSkillsUpdate2(agent, skillName);
|