bitfab-cli 0.2.483 → 0.2.485

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 +24 -13
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ try {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ } catch (e) {
12
+ throw mod = 0, e;
13
+ }
10
14
  };
11
15
  var __export = (target, all) => {
12
16
  for (var name in all)
@@ -31126,7 +31130,7 @@ var semver2 = __toESM(require_semver2(), 1);
31126
31130
 
31127
31131
  // ../bitfab-plugin-lib/dist/bakedSdkVersions.js
31128
31132
  var BAKED_SDK_VERSIONS = {
31129
- typescript: "0.68.6",
31133
+ typescript: "0.68.7",
31130
31134
  python: "0.68.6",
31131
31135
  ruby: "0.67.1",
31132
31136
  go: "0.67.2"
@@ -31890,7 +31894,7 @@ async function runUpdate(currentVersion, platform2, mode = "all") {
31890
31894
  }
31891
31895
  }
31892
31896
 
31893
- // ../node_modules/.pnpm/@agent-flows+core@0.1.1_zod@4.6.7/node_modules/@agent-flows/core/dist/commands.js
31897
+ // ../node_modules/.pnpm/@agent-flows+core@0.1.2_zod@4.6.7/node_modules/@agent-flows/core/dist/commands.js
31894
31898
  function defineCommandCatalog(catalog) {
31895
31899
  return {
31896
31900
  defineCommands(defs) {
@@ -31912,7 +31916,7 @@ function defineCommandCatalog(catalog) {
31912
31916
  };
31913
31917
  }
31914
31918
 
31915
- // ../node_modules/.pnpm/@agent-flows+core@0.1.1_zod@4.6.7/node_modules/@agent-flows/core/dist/schema.js
31919
+ // ../node_modules/.pnpm/@agent-flows+core@0.1.2_zod@4.6.7/node_modules/@agent-flows/core/dist/schema.js
31916
31920
  var StepIdRef = external_exports.string().regex(/^[a-z0-9-]+\/[a-z0-9-]+$/, {
31917
31921
  message: "Step references must use the form 'phase-id/step-id'"
31918
31922
  });
@@ -32605,7 +32609,7 @@ function targetableFields(flow) {
32605
32609
  return out;
32606
32610
  }
32607
32611
 
32608
- // ../node_modules/.pnpm/@agent-flows+core@0.1.1_zod@4.6.7/node_modules/@agent-flows/core/dist/mermaid.js
32612
+ // ../node_modules/.pnpm/@agent-flows+core@0.1.2_zod@4.6.7/node_modules/@agent-flows/core/dist/mermaid.js
32609
32613
  function diagramValue(value, target) {
32610
32614
  const resolved = resolvePerTarget(value, target ?? "default");
32611
32615
  if (resolved !== void 0 || typeof value !== "object" || value === null) {
@@ -32815,7 +32819,7 @@ function describeFlow(flow, target) {
32815
32819
  return lines.join("\n");
32816
32820
  }
32817
32821
 
32818
- // ../node_modules/.pnpm/@agent-flows+core@0.1.1_zod@4.6.7/node_modules/@agent-flows/core/dist/render.js
32822
+ // ../node_modules/.pnpm/@agent-flows+core@0.1.2_zod@4.6.7/node_modules/@agent-flows/core/dist/render.js
32819
32823
  function s(value, target, label) {
32820
32824
  return resolveTargetableString(value, target, label);
32821
32825
  }
@@ -33875,7 +33879,7 @@ function ensureTrailingNewline(text2) {
33875
33879
  `;
33876
33880
  }
33877
33881
 
33878
- // ../node_modules/.pnpm/@agent-flows+core@0.1.1_zod@4.6.7/node_modules/@agent-flows/core/dist/kit.js
33882
+ // ../node_modules/.pnpm/@agent-flows+core@0.1.2_zod@4.6.7/node_modules/@agent-flows/core/dist/kit.js
33879
33883
  var NAME_RE = /^[a-z][a-z0-9-]*$/;
33880
33884
  function createFlowKit(config4) {
33881
33885
  const targetNames = Object.keys(config4.targets);
@@ -34007,7 +34011,7 @@ function resolveOutputPath(output2, file2) {
34007
34011
  return `${dirname(skillDir)}/${basename(skillDir)}-${file2.slug}/${basename(main2)}`;
34008
34012
  }
34009
34013
 
34010
- // ../node_modules/.pnpm/@agent-flows+core@0.1.1_zod@4.6.7/node_modules/@agent-flows/core/dist/targets.js
34014
+ // ../node_modules/.pnpm/@agent-flows+core@0.1.2_zod@4.6.7/node_modules/@agent-flows/core/dist/targets.js
34011
34015
  function formatAllowedTools(allowedTools) {
34012
34016
  return `[${allowedTools.map((t) => JSON.stringify(t)).join(", ")}]`;
34013
34017
  }
@@ -34058,6 +34062,13 @@ var ASK_USER_QUESTION_TOKENS = {
34058
34062
  askVerbCap: "Use `AskUserQuestion`",
34059
34063
  askNoun: "AskUserQuestion"
34060
34064
  };
34065
+ var ASK_QUESTION_FALLBACK = "in plain text with lettered options";
34066
+ var CURSOR_ASK_QUESTION_TOKENS = {
34067
+ askUser: `with \`AskQuestion\` (or ${ASK_QUESTION_FALLBACK} if it is not available) `,
34068
+ askVerb: `use \`AskQuestion\` (or, if it is not available, ask ${ASK_QUESTION_FALLBACK})`,
34069
+ askVerbCap: `Use \`AskQuestion\` (or, if it is not available, ask ${ASK_QUESTION_FALLBACK})`,
34070
+ askNoun: "AskQuestion"
34071
+ };
34061
34072
  var PLAIN_PROMPT_TOKENS = {
34062
34073
  askUser: "",
34063
34074
  askVerb: "ask the user",
@@ -34095,7 +34106,7 @@ function cursor(options) {
34095
34106
  // biome-ignore lint/suspicious/noTemplateCurlyInString: shell variable rendered into skill markdown
34096
34107
  pluginRoot: "${CURSOR_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}",
34097
34108
  pluginDirLookup: "",
34098
- ...ASK_USER_QUESTION_TOKENS,
34109
+ ...CURSOR_ASK_QUESTION_TOKENS,
34099
34110
  ...options.tokens
34100
34111
  },
34101
34112
  mcpPrefix: options.mcpPrefix ?? (options.mcpServer !== void 0 ? `mcp__${options.mcpServer}__` : ""),
@@ -34791,7 +34802,7 @@ var setupFlow = bitfabKit.defineFlow({
34791
34802
  getTemplate: { kind: "mcp", name: "get_template" },
34792
34803
  saveTemplate: { kind: "mcp", name: "save_template" }
34793
34804
  },
34794
- intro: `{{#ask-user-question}}**Always use \`AskUserQuestion\` when asking questions or presenting choices** (one exception: a step that explicitly says its answer is free-form, such as asking which file or function to instrument once the user has said they know, asks in plain chat and waits, because a menu there would stand between the user and the answer only they hold). Never print a question as text and wait.{{/ask-user-question}}{{^ask-user-question}}**When the flow branches, always present the options clearly and wait for the user's answer before proceeding.** Number or letter the options so the user can pick by reference.{{/ask-user-question}} Rules:
34805
+ intro: `{{#ask-user-question}}**Always {{askVerb}} when asking questions or presenting choices** (one exception: a step that explicitly says its answer is free-form, such as asking which file or function to instrument once the user has said they know, asks in plain chat and waits, because a menu there would stand between the user and the answer only they hold). Never print a question as text and wait.{{/ask-user-question}}{{^ask-user-question}}**When the flow branches, always present the options clearly and wait for the user's answer before proceeding.** Number or letter the options so the user can pick by reference.{{/ask-user-question}} Rules:
34795
34806
  - Recommend an option first, explain why in one line
34796
34807
  - Present 2-5 concrete options
34797
34808
  - One decision per question, never batch
@@ -34894,7 +34905,7 @@ If the block prints \`ERROR: Bitfab plugin not installed\`, the user hasn't inst
34894
34905
 
34895
34906
  2. **Present the plan verbatim** to the user, in the same format above.
34896
34907
 
34897
- 3. **{{#ask-user-question}}AskUserQuestion{{/ask-user-question}}{{^ask-user-question}}Ask the user{{/ask-user-question}}** with exactly two options:
34908
+ 3. **{{askVerbCap}}** with exactly two options:
34898
34909
  - **"Apply refactor"**: proceed to write the changes
34899
34910
  - **"Cancel"**: return to the previous {{askNoun}} (Instrument's workflow-selection (a)/(b)/(c), or Replay's non-replayable-root three-option prompt) so the user can pick a different resolution
34900
34911
 
@@ -35072,7 +35083,7 @@ Save the answer (replace \`CONSENT\` with \`true\` or \`false\`):
35072
35083
  id: "overview",
35073
35084
  kind: "action",
35074
35085
  title: "Explain the primitives, and in `explain` mode the modes too",
35075
- body: `Render the block below **verbatim** as a single message, as formatted markdown (do **not** wrap it in a code fence, do **not** reword it, and do **not** add a summary or an ASCII diagram). This is the education the rest of setup depends on: a user who does not understand \`withTrace\`, \`withNode\`, and \`replay\` cannot make the capture and replay decisions instrumentation asks of them. Do **not** authenticate, scan the codebase, {{#ask-user-question}}use AskUserQuestion{{/ask-user-question}}{{^ask-user-question}}ask any questions{{/ask-user-question}}, or edit anything here, in either mode.
35086
+ body: `Render the block below **verbatim** as a single message, as formatted markdown (do **not** wrap it in a code fence, do **not** reword it, and do **not** add a summary or an ASCII diagram). This is the education the rest of setup depends on: a user who does not understand \`withTrace\`, \`withNode\`, and \`replay\` cannot make the capture and replay decisions instrumentation asks of them. Do **not** authenticate, scan the codebase, {{#ask-user-question}}use {{askNoun}}{{/ask-user-question}}{{^ask-user-question}}ask any questions{{/ask-user-question}}, or edit anything here, in either mode.
35076
35087
 
35077
35088
  \`\`\`markdown
35078
35089
  **Purpose**
@@ -36958,7 +36969,7 @@ var setupV2Flow = bitfabKit.defineFlow({
36958
36969
  },
36959
36970
  intro: `Run the selected setup mode entirely in this terminal.
36960
36971
 
36961
- - Use AskUserQuestion for every user choice or clarification; never print a question and wait.
36972
+ - {{askVerbCap}} for every user choice or clarification; never print a question and wait.
36962
36973
  - Recommend one option first and ask one decision at a time.
36963
36974
  - Take agent-decision branches only from directly observed repository or Bitfab state.
36964
36975
  - Render diffs, diagnostics, and templates inline. Product UI review is not part of this flow.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitfab-cli",
3
- "version": "0.2.483",
3
+ "version": "0.2.485",
4
4
  "description": "Install and configure the Bitfab plugin in Claude Code, Codex, or Cursor, or the Bitfab skill pack in Amp (Alpha).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -44,14 +44,14 @@
44
44
  "node": ">=18.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "@anthropic-ai/claude-agent-sdk": "^0.3.296",
47
+ "@anthropic-ai/claude-agent-sdk": "^0.3.307",
48
48
  "@clack/prompts": "^1.8.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^26.6.5",
52
52
  "bitfab-plugin-lib": "workspace:*",
53
- "tsup": "^8.5.1",
53
+ "tsup": "^9.0.0",
54
54
  "typescript": "^7.0.2",
55
- "vitest": "^5.0.4"
55
+ "vitest": "^5.0.5"
56
56
  }
57
57
  }