Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/musher/src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
private readonly _toolsets: Map<string, ToolsetHandle>;
private readonly _agentSpecs: Map<string, AgentSpecHandle>;

constructor(metadata: BundleResolveOutput, contents: Map<string, Buffer>) {

Check warning on line 34 in packages/musher/src/bundle.ts

View workflow job for this annotation

GitHub Actions / check (20)

lint/complexity/noExcessiveCognitiveComplexity

Excessive complexity of 18 detected (max: 15).

Check warning on line 34 in packages/musher/src/bundle.ts

View workflow job for this annotation

GitHub Actions / check (24)

lint/complexity/noExcessiveCognitiveComplexity

Excessive complexity of 18 detected (max: 15).

Check warning on line 34 in packages/musher/src/bundle.ts

View workflow job for this annotation

GitHub Actions / check (22)

lint/complexity/noExcessiveCognitiveComplexity

Excessive complexity of 18 detected (max: 15).
this.metadata = metadata;
this.version = metadata.version;
this.ref = BundleRef.parse(metadata.ref);
Expand Down Expand Up @@ -88,7 +88,7 @@
this._toolsets.set(name, new ToolsetHandle(name, fh));
break;
}
case "agent_definition": {
case "agent_spec": {
const name = baseFileName(fh.logicalPath);
this._agentSpecs.set(name, new AgentSpecHandle(name, fh));
break;
Expand Down
2 changes: 1 addition & 1 deletion packages/musher/src/handles/agent-spec-handle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* AgentSpecHandle — wraps a single agent_definition asset.
* AgentSpecHandle — wraps a single agent_spec asset.
*/

import type { FileHandle } from "./file-handle.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/musher/src/schemas/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const BundleVisibility = z.enum(["private", "public"]);
export const BundleVersionState = z.enum(["published", "yanked"]);

export const AssetType = z.enum([
"agent_definition",
"agent_spec",
"skill",
"tool_config",
"prompt",
Expand Down
2 changes: 1 addition & 1 deletion packages/musher/tests/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function makeManifest(): BundleResolveOutput {
{
assetId: "asset-005",
logicalPath: "agents/main.yaml",
assetType: "agent_definition",
assetType: "agent_spec",
contentSha256: sha(AGENT_CONTENT),
sizeBytes: AGENT_CONTENT.length,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/musher/tests/handles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe("ToolsetHandle", () => {

describe("AgentSpecHandle", () => {
it("wraps a single file", () => {
const fh = new FileHandle("agent.yaml", "agent_definition", "x", 4, Buffer.from("name"));
const fh = new FileHandle("agent.yaml", "agent_spec", "x", 4, Buffer.from("name"));
const spec = new AgentSpecHandle("agent", fh);

expect(spec.name).toBe("agent");
Expand Down
Loading