claudekit-cli 3.35.0-dev.5 → 3.35.0-dev.6

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.
Files changed (2) hide show
  1. package/dist/index.js +31 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9163,6 +9163,7 @@ var init_provider_registry = __esm(() => {
9163
9163
  "claude-code": {
9164
9164
  name: "claude-code",
9165
9165
  displayName: "Claude Code",
9166
+ subagents: "full",
9166
9167
  agents: {
9167
9168
  projectPath: ".claude/agents",
9168
9169
  globalPath: join(home, ".claude/agents"),
@@ -9214,6 +9215,7 @@ var init_provider_registry = __esm(() => {
9214
9215
  opencode: {
9215
9216
  name: "opencode",
9216
9217
  displayName: "OpenCode",
9218
+ subagents: "full",
9217
9219
  agents: {
9218
9220
  projectPath: ".opencode/agents",
9219
9221
  globalPath: join(home, ".config/opencode/agents"),
@@ -9264,6 +9266,7 @@ var init_provider_registry = __esm(() => {
9264
9266
  "github-copilot": {
9265
9267
  name: "github-copilot",
9266
9268
  displayName: "GitHub Copilot",
9269
+ subagents: "full",
9267
9270
  agents: {
9268
9271
  projectPath: ".github/agents",
9269
9272
  globalPath: null,
@@ -9304,6 +9307,7 @@ var init_provider_registry = __esm(() => {
9304
9307
  codex: {
9305
9308
  name: "codex",
9306
9309
  displayName: "Codex",
9310
+ subagents: "partial",
9307
9311
  agents: {
9308
9312
  projectPath: "AGENTS.md",
9309
9313
  globalPath: join(home, ".codex/AGENTS.md"),
@@ -9353,6 +9357,7 @@ var init_provider_registry = __esm(() => {
9353
9357
  cursor: {
9354
9358
  name: "cursor",
9355
9359
  displayName: "Cursor",
9360
+ subagents: "full",
9356
9361
  agents: {
9357
9362
  projectPath: ".cursor/rules",
9358
9363
  globalPath: join(home, ".cursor/rules"),
@@ -9392,6 +9397,7 @@ var init_provider_registry = __esm(() => {
9392
9397
  roo: {
9393
9398
  name: "roo",
9394
9399
  displayName: "Roo Code",
9400
+ subagents: "full",
9395
9401
  agents: {
9396
9402
  projectPath: ".roomodes",
9397
9403
  globalPath: join(home, ".roo/custom_modes.yaml"),
@@ -9433,6 +9439,7 @@ var init_provider_registry = __esm(() => {
9433
9439
  kilo: {
9434
9440
  name: "kilo",
9435
9441
  displayName: "Kilo Code",
9442
+ subagents: "full",
9436
9443
  agents: {
9437
9444
  projectPath: ".kilocodemodes",
9438
9445
  globalPath: join(home, ".kilocode/custom_modes.yaml"),
@@ -9474,6 +9481,7 @@ var init_provider_registry = __esm(() => {
9474
9481
  windsurf: {
9475
9482
  name: "windsurf",
9476
9483
  displayName: "Windsurf",
9484
+ subagents: "none",
9477
9485
  agents: {
9478
9486
  projectPath: ".windsurf/rules",
9479
9487
  globalPath: join(home, ".codeium/windsurf/rules"),
@@ -9524,6 +9532,7 @@ var init_provider_registry = __esm(() => {
9524
9532
  goose: {
9525
9533
  name: "goose",
9526
9534
  displayName: "Goose",
9535
+ subagents: "full",
9527
9536
  agents: {
9528
9537
  projectPath: "AGENTS.md",
9529
9538
  globalPath: null,
@@ -9563,6 +9572,7 @@ var init_provider_registry = __esm(() => {
9563
9572
  "gemini-cli": {
9564
9573
  name: "gemini-cli",
9565
9574
  displayName: "Gemini CLI",
9575
+ subagents: "planned",
9566
9576
  agents: {
9567
9577
  projectPath: "AGENTS.md",
9568
9578
  globalPath: join(home, ".gemini/GEMINI.md"),
@@ -9610,6 +9620,7 @@ var init_provider_registry = __esm(() => {
9610
9620
  amp: {
9611
9621
  name: "amp",
9612
9622
  displayName: "Amp",
9623
+ subagents: "full",
9613
9624
  agents: {
9614
9625
  projectPath: "AGENTS.md",
9615
9626
  globalPath: join(home, ".config/AGENTS.md"),
@@ -9650,6 +9661,7 @@ var init_provider_registry = __esm(() => {
9650
9661
  antigravity: {
9651
9662
  name: "antigravity",
9652
9663
  displayName: "Antigravity",
9664
+ subagents: "full",
9653
9665
  agents: {
9654
9666
  projectPath: ".agent/rules",
9655
9667
  globalPath: join(home, ".gemini/antigravity"),
@@ -9699,6 +9711,7 @@ var init_provider_registry = __esm(() => {
9699
9711
  cline: {
9700
9712
  name: "cline",
9701
9713
  displayName: "Cline",
9714
+ subagents: "full",
9702
9715
  agents: {
9703
9716
  projectPath: ".clinerules",
9704
9717
  globalPath: null,
@@ -9737,6 +9750,7 @@ var init_provider_registry = __esm(() => {
9737
9750
  openhands: {
9738
9751
  name: "openhands",
9739
9752
  displayName: "OpenHands",
9753
+ subagents: "full",
9740
9754
  agents: {
9741
9755
  projectPath: ".openhands/skills",
9742
9756
  globalPath: join(home, ".openhands/skills"),
@@ -9901,14 +9915,18 @@ function stripClaudeRefs(content, options2) {
9901
9915
  result = result.split(`
9902
9916
  `).filter((line) => !line.includes(".claude/hooks/")).join(`
9903
9917
  `);
9904
- const delegationPatterns = [
9905
- /^.*\bdelegate\s+to\s+`[^`]+`\s+agent.*$/gim,
9906
- /^.*\bspawn.*agent.*$/gim,
9907
- /^.*\buse.*subagent.*$/gim,
9908
- /^.*\bactivate.*skill.*$/gim
9909
- ];
9910
- for (const pattern of delegationPatterns) {
9911
- result = result.replace(pattern, "");
9918
+ const subagentSupport = options2?.provider ? providers[options2.provider].subagents : "none";
9919
+ const preserveDelegation = subagentSupport !== "none";
9920
+ if (!preserveDelegation) {
9921
+ const delegationPatterns = [
9922
+ /^.*\bdelegate\s+to\s+`[^`]+`\s+agent.*$/gim,
9923
+ /^.*\bspawn.*agent.*$/gim,
9924
+ /^.*\buse.*subagent.*$/gim,
9925
+ /^.*\bactivate.*skill.*$/gim
9926
+ ];
9927
+ for (const pattern of delegationPatterns) {
9928
+ result = result.replace(pattern, "");
9929
+ }
9912
9930
  }
9913
9931
  const lines = result.split(`
9914
9932
  `);
@@ -9921,7 +9939,10 @@ function stripClaudeRefs(content, options2) {
9921
9939
  if (headingMatch) {
9922
9940
  const level = headingMatch[1].length;
9923
9941
  const title = headingMatch[2];
9924
- if (/hook/i.test(title) || /agent\s+team/i.test(title) || /SendMessage|TaskCreate|TaskUpdate/i.test(title)) {
9942
+ const isHookSection = /hook/i.test(title);
9943
+ const isClaudeApiSection = /SendMessage|TaskCreate|TaskUpdate/i.test(title);
9944
+ const isAgentTeamSection = /agent\s+team/i.test(title);
9945
+ if (isHookSection || isClaudeApiSection || !preserveDelegation && isAgentTeamSection) {
9925
9946
  skipUntilHeading = true;
9926
9947
  skipHeadingLevel = level;
9927
9948
  removedSections.push(title.trim());
@@ -48809,7 +48830,7 @@ var package_default;
48809
48830
  var init_package = __esm(() => {
48810
48831
  package_default = {
48811
48832
  name: "claudekit-cli",
48812
- version: "3.35.0-dev.5",
48833
+ version: "3.35.0-dev.6",
48813
48834
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
48814
48835
  type: "module",
48815
48836
  repository: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.35.0-dev.5",
3
+ "version": "3.35.0-dev.6",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {