@jive-ai/cli 0.0.41 → 0.0.43

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.mjs +8 -2
  2. package/package.json +3 -6
package/dist/index.mjs CHANGED
@@ -3444,7 +3444,7 @@ async function createGraphQLClient() {
3444
3444
 
3445
3445
  //#endregion
3446
3446
  //#region package.json
3447
- var version = "0.0.41";
3447
+ var version = "0.0.43";
3448
3448
 
3449
3449
  //#endregion
3450
3450
  //#region src/runner/index.ts
@@ -3559,6 +3559,7 @@ var TaskRunner = class {
3559
3559
  environmentVariables
3560
3560
  betaFlags
3561
3561
  permissionMode
3562
+ secrets
3562
3563
  }
3563
3564
  }
3564
3565
  }
@@ -3590,6 +3591,7 @@ var TaskRunner = class {
3590
3591
  permissionMode: data.taskContext.permissionMode,
3591
3592
  settings: {
3592
3593
  model: data.taskContext.settings.model,
3594
+ secrets: data.taskContext.settings.secrets,
3593
3595
  environmentVariables: data.taskContext.settings.environmentVariables,
3594
3596
  betaFlags: data.taskContext.settings.betaFlags,
3595
3597
  permissionMode: data.taskContext.settings.permissionMode
@@ -3852,11 +3854,15 @@ async function queryClaude(prompt, mcpServer, opts) {
3852
3854
  const credentials = await getCredentials();
3853
3855
  if (!credentials?.anthropicApiKey) throw new Error("Anthropic API key not found in credentials JSON");
3854
3856
  process.env.ANTHROPIC_API_KEY = credentials.anthropicApiKey;
3855
- const { model: defaultModel, environmentVariables, betaFlags } = task.getSettings();
3857
+ const { model: defaultModel, environmentVariables, betaFlags, secrets } = task.getSettings();
3856
3858
  for (const [key, value$1] of Object.entries(environmentVariables)) process.env[key] = value$1;
3859
+ if (secrets) for (const [key, value$1] of Object.entries(secrets)) process.env[key] = value$1;
3857
3860
  debugLog(`[Task ${task.id}] Querying Claude with permission mode: ${permissionMode}`);
3858
3861
  debugLog(`[Task ${task.id}] Using model: ${defaultModel}`);
3859
3862
  if (Object.keys(environmentVariables).length > 0) debugLog(`[Task ${task.id}] Environment variables: ${Object.keys(environmentVariables).join(", ")}`);
3863
+ else debugLog(`[Task ${task.id}] No environment variables applied`);
3864
+ if (secrets && Object.keys(secrets).length > 0) debugLog(`[Task ${task.id}] Secrets applied: ${Object.keys(secrets).join(", ")}`);
3865
+ else debugLog(`[Task ${task.id}] No secrets applied`);
3860
3866
  if (betaFlags.length > 0) debugLog(`[Task ${task.id}] Beta flags: ${betaFlags.join(", ")}`);
3861
3867
  return query({
3862
3868
  prompt,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@jive-ai/cli",
4
- "version": "0.0.41",
4
+ "version": "0.0.43",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "dist",
@@ -15,11 +15,8 @@
15
15
  "test": "echo \"Error: no test specified\" && exit 1",
16
16
  "typecheck": "tsc --noEmit",
17
17
  "build": "tsdown && npm pack && npm install -g jive-ai-cli-*.tgz",
18
- "docker:build": "touch jive-ai-cli-0.0.0.tgz && docker build -t jiveai/task:latest . && rm -f jive-ai-cli-*.tgz",
19
- "docker:build:local": "docker rmi jiveai/task:$npm_package_version jiveai/task:latest; bun run build && docker build --no-cache --build-arg USE_LOCAL=true -t jiveai/task:latest -t jiveai/task:$npm_package_version .",
20
- "docker:build:public": "touch jive-ai-cli-0.0.0.tgz && docker buildx build --platform linux/amd64 -t jiveai/task:latest -t jiveai/task:$npm_package_version . && rm -f jive-ai-cli-*.tgz",
21
- "docker:push": "docker buildx build --platform linux/amd64 --push -t jiveai/task:latest -t jiveai/task:$npm_package_version .",
22
- "docker:publish": "touch jive-ai-cli-0.0.0.tgz && docker buildx build --platform linux/amd64 --push -t jiveai/task:latest -t jiveai/task:$npm_package_version . && rm -f jive-ai-cli-*.tgz",
18
+ "docker:build": "bun run build && .docker/build.sh",
19
+ "docker:push": ".docker/build.sh --push",
23
20
  "prepublishOnly": "npm run typecheck && npm run build"
24
21
  },
25
22
  "author": "",