@opencow-ai/opencow-agent-sdk 0.4.28 → 0.4.29
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.
- package/dist/cli.mjs +25 -14
- package/dist/client.js +2 -2
- package/dist/providers/shared/privacyLevel.d.ts +4 -4
- package/dist/sdk.js +2 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -20054,10 +20054,20 @@ function isEssentialTrafficOnly() {
|
|
|
20054
20054
|
return getPrivacyLevel() === "essential-traffic";
|
|
20055
20055
|
}
|
|
20056
20056
|
function getEssentialTrafficOnlyReason() {
|
|
20057
|
-
if (resolveEnvVar("DISABLE_NONESSENTIAL_TRAFFIC")) {
|
|
20058
|
-
return
|
|
20057
|
+
if (!resolveEnvVar("DISABLE_NONESSENTIAL_TRAFFIC")) {
|
|
20058
|
+
return null;
|
|
20059
20059
|
}
|
|
20060
|
-
|
|
20060
|
+
const primaryName = "OPENCOW_DISABLE_NONESSENTIAL_TRAFFIC";
|
|
20061
|
+
const legacyName = "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC";
|
|
20062
|
+
const primaryValue = getQueryEnvVar(primaryName);
|
|
20063
|
+
const legacyValue = getQueryEnvVar(legacyName);
|
|
20064
|
+
if (primaryValue && legacyValue) {
|
|
20065
|
+
return `${primaryName} and ${legacyName}`;
|
|
20066
|
+
}
|
|
20067
|
+
if (legacyValue) {
|
|
20068
|
+
return legacyName;
|
|
20069
|
+
}
|
|
20070
|
+
return primaryName;
|
|
20061
20071
|
}
|
|
20062
20072
|
var init_privacyLevel = __esm(() => {
|
|
20063
20073
|
init_state();
|
|
@@ -86008,6 +86018,7 @@ var init_managedEnvConstants = __esm(() => {
|
|
|
86008
86018
|
"MAX_THINKING_TOKENS",
|
|
86009
86019
|
"MCP_TIMEOUT",
|
|
86010
86020
|
"MCP_TOOL_TIMEOUT",
|
|
86021
|
+
"OPENCOW_DISABLE_NONESSENTIAL_TRAFFIC",
|
|
86011
86022
|
"OTEL_EXPORTER_OTLP_HEADERS",
|
|
86012
86023
|
"OTEL_EXPORTER_OTLP_LOGS_HEADERS",
|
|
86013
86024
|
"OTEL_EXPORTER_OTLP_LOGS_PROTOCOL",
|
|
@@ -86726,7 +86737,7 @@ function printStartupScreen() {
|
|
|
86726
86737
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
86727
86738
|
out.push(boxRow(sRow, W, sLen));
|
|
86728
86739
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W - 2)}╝${RESET}`);
|
|
86729
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}opencow ${RESET}${rgb(...ACCENT)}v${"0.4.
|
|
86740
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}opencow ${RESET}${rgb(...ACCENT)}v${"0.4.29"}${RESET}`);
|
|
86730
86741
|
out.push("");
|
|
86731
86742
|
process.stdout.write(out.join(`
|
|
86732
86743
|
`) + `
|
|
@@ -235172,7 +235183,7 @@ function getAnthropicEnvMetadata() {
|
|
|
235172
235183
|
function getBuildAgeMinutes() {
|
|
235173
235184
|
if (false)
|
|
235174
235185
|
;
|
|
235175
|
-
const buildTime = new Date("2026-
|
|
235186
|
+
const buildTime = new Date("2026-11-03T08:26:22.842Z").getTime();
|
|
235176
235187
|
if (isNaN(buildTime))
|
|
235177
235188
|
return;
|
|
235178
235189
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -480205,7 +480216,7 @@ function buildPrimarySection() {
|
|
|
480205
480216
|
}, undefined, false, undefined, this);
|
|
480206
480217
|
return [{
|
|
480207
480218
|
label: "Version",
|
|
480208
|
-
value: "0.4.
|
|
480219
|
+
value: "0.4.29"
|
|
480209
480220
|
}, {
|
|
480210
480221
|
label: "Session name",
|
|
480211
480222
|
value: nameValue
|
|
@@ -528285,7 +528296,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
528285
528296
|
var call58 = async () => {
|
|
528286
528297
|
return {
|
|
528287
528298
|
type: "text",
|
|
528288
|
-
value: `${"99.0.0"} (built ${"2026-
|
|
528299
|
+
value: `${"99.0.0"} (built ${"2026-11-03T08:26:22.842Z"})`
|
|
528289
528300
|
};
|
|
528290
528301
|
}, version2, version_default;
|
|
528291
528302
|
var init_version = __esm(() => {
|
|
@@ -545964,7 +545975,7 @@ function WelcomeV2() {
|
|
|
545964
545975
|
dimColor: true,
|
|
545965
545976
|
children: [
|
|
545966
545977
|
"v",
|
|
545967
|
-
"0.4.
|
|
545978
|
+
"0.4.29",
|
|
545968
545979
|
" "
|
|
545969
545980
|
]
|
|
545970
545981
|
}, undefined, true, undefined, this)
|
|
@@ -546164,7 +546175,7 @@ function WelcomeV2() {
|
|
|
546164
546175
|
dimColor: true,
|
|
546165
546176
|
children: [
|
|
546166
546177
|
"v",
|
|
546167
|
-
"0.4.
|
|
546178
|
+
"0.4.29",
|
|
546168
546179
|
" "
|
|
546169
546180
|
]
|
|
546170
546181
|
}, undefined, true, undefined, this)
|
|
@@ -546390,7 +546401,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
546390
546401
|
dimColor: true,
|
|
546391
546402
|
children: [
|
|
546392
546403
|
"v",
|
|
546393
|
-
"0.4.
|
|
546404
|
+
"0.4.29",
|
|
546394
546405
|
" "
|
|
546395
546406
|
]
|
|
546396
546407
|
}, undefined, true, undefined, this);
|
|
@@ -546644,7 +546655,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
546644
546655
|
dimColor: true,
|
|
546645
546656
|
children: [
|
|
546646
546657
|
"v",
|
|
546647
|
-
"0.4.
|
|
546658
|
+
"0.4.29",
|
|
546648
546659
|
" "
|
|
546649
546660
|
]
|
|
546650
546661
|
}, undefined, true, undefined, this);
|
|
@@ -567401,7 +567412,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
567401
567412
|
pendingHookMessages
|
|
567402
567413
|
}, renderAndRun);
|
|
567403
567414
|
}
|
|
567404
|
-
}).version("0.4.
|
|
567415
|
+
}).version("0.4.29 (OpenCow)", "-v, --version", "Output the version number");
|
|
567405
567416
|
program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
567406
567417
|
program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
567407
567418
|
if (canUserConfigureAdvisor()) {
|
|
@@ -567996,7 +568007,7 @@ if (false) {}
|
|
|
567996
568007
|
async function main2() {
|
|
567997
568008
|
const args = process.argv.slice(2);
|
|
567998
568009
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
567999
|
-
console.log(`${"0.4.
|
|
568010
|
+
console.log(`${"0.4.29"} (OpenCow)`);
|
|
568000
568011
|
return;
|
|
568001
568012
|
}
|
|
568002
568013
|
if (args.includes("--provider")) {
|
|
@@ -568096,4 +568107,4 @@ async function main2() {
|
|
|
568096
568107
|
}
|
|
568097
568108
|
main2();
|
|
568098
568109
|
|
|
568099
|
-
//# debugId=
|
|
568110
|
+
//# debugId=3D4AFE0926C15EE564756E2164756E21
|
package/dist/client.js
CHANGED
|
@@ -227383,7 +227383,7 @@ function getAnthropicEnvMetadata() {
|
|
|
227383
227383
|
function getBuildAgeMinutes() {
|
|
227384
227384
|
if (false)
|
|
227385
227385
|
;
|
|
227386
|
-
const buildTime = new Date("2026-
|
|
227386
|
+
const buildTime = new Date("2026-11-03T08:26:22.842Z").getTime();
|
|
227387
227387
|
if (isNaN(buildTime))
|
|
227388
227388
|
return;
|
|
227389
227389
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -280615,4 +280615,4 @@ export {
|
|
|
280615
280615
|
watchScheduledTasks
|
|
280616
280616
|
};
|
|
280617
280617
|
|
|
280618
|
-
//# debugId=
|
|
280618
|
+
//# debugId=0DC7328726EDA85F64756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Privacy level controls how much nonessential network traffic and telemetry
|
|
3
|
-
*
|
|
3
|
+
* OpenCow generates.
|
|
4
4
|
*
|
|
5
5
|
* Levels are ordered by restrictiveness:
|
|
6
6
|
* default < no-telemetry < essential-traffic
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* (telemetry + auto-updates, grove, release notes, model capabilities, etc.).
|
|
12
12
|
*
|
|
13
13
|
* The resolved level is the most restrictive signal from:
|
|
14
|
-
*
|
|
15
|
-
* DISABLE_TELEMETRY
|
|
14
|
+
* OPENCOW_DISABLE_NONESSENTIAL_TRAFFIC → essential-traffic
|
|
15
|
+
* DISABLE_TELEMETRY → no-telemetry
|
|
16
16
|
*/
|
|
17
17
|
type PrivacyLevel = 'default' | 'no-telemetry' | 'essential-traffic';
|
|
18
18
|
export declare function getPrivacyLevel(): PrivacyLevel;
|
|
@@ -27,7 +27,7 @@ export declare function isEssentialTrafficOnly(): boolean;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function isTelemetryDisabled(): boolean;
|
|
29
29
|
/**
|
|
30
|
-
* Returns the env var name responsible for the current essential-traffic restriction,
|
|
30
|
+
* Returns the env var name(s) responsible for the current essential-traffic restriction,
|
|
31
31
|
* or null if unrestricted. Used for user-facing "unset X to re-enable" messages.
|
|
32
32
|
*/
|
|
33
33
|
export declare function getEssentialTrafficOnlyReason(): string | null;
|
package/dist/sdk.js
CHANGED
|
@@ -227383,7 +227383,7 @@ function getAnthropicEnvMetadata() {
|
|
|
227383
227383
|
function getBuildAgeMinutes() {
|
|
227384
227384
|
if (false)
|
|
227385
227385
|
;
|
|
227386
|
-
const buildTime = new Date("2026-
|
|
227386
|
+
const buildTime = new Date("2026-11-03T08:26:22.842Z").getTime();
|
|
227387
227387
|
if (isNaN(buildTime))
|
|
227388
227388
|
return;
|
|
227389
227389
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -280615,4 +280615,4 @@ export {
|
|
|
280615
280615
|
watchScheduledTasks
|
|
280616
280616
|
};
|
|
280617
280617
|
|
|
280618
|
-
//# debugId=
|
|
280618
|
+
//# debugId=461FB770EF3F268264756E2164756E21
|
package/package.json
CHANGED