@tryarcanist/cli 0.1.114 → 0.1.116

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -169,7 +169,7 @@ function saveConfig(config) {
169
169
  mode: 384
170
170
  });
171
171
  }
172
- function requireConfig(overrides = {}) {
172
+ function requireConfig(overrides) {
173
173
  const config = loadConfig(overrides);
174
174
  if (!config) {
175
175
  throw new CliError("auth", "Not logged in.", { hint: "Run `arcanist login` or set `ARCANIST_TOKEN`." });
@@ -323,7 +323,7 @@ function applyColorEnvironment(options) {
323
323
  function randomIdempotencyKey() {
324
324
  return randomUUID();
325
325
  }
326
- function normalizePromptChunk(chunk, carry = "") {
326
+ function normalizePromptChunk(chunk, carry) {
327
327
  const raw = carry + (Buffer.isBuffer(chunk) ? chunk.toString("utf8") : chunk);
328
328
  let text = "";
329
329
  let index = 0;
@@ -1317,7 +1317,7 @@ function projectMemoryRecallUsage(data, index) {
1317
1317
  returnedMemoryIds,
1318
1318
  requestedMemories,
1319
1319
  returnedMemories,
1320
- usageSource: "recall",
1320
+ usageSource: data?.usageSource === "company_recall" ? "company_recall" : "recall",
1321
1321
  ...typeof data?.intent === "string" && data.intent.trim() ? { intent: data.intent.trim() } : {},
1322
1322
  ...typeof data?.tool === "string" && data.tool.trim() ? { tool: data.tool.trim() } : {},
1323
1323
  ...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.114",
3
+ "version": "0.1.116",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {