oh-my-openagent 5.1.38 → 5.1.40
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/index.js +206 -187
- package/dist/cli-node/index.js +206 -187
- package/dist/index.js +183 -171
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/skills/git-master/SKILL.md +1 -1
- package/dist/skills/ulw-plan/SKILL.md +1 -1
- package/dist/skills/ulw-plan/references/full-workflow.md +5 -4
- package/dist/tui.js +29 -22
- package/package.json +15 -14
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +8 -2
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +157 -151
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +157 -151
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +5 -4
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/omo-codex/plugin/skills/git-master/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +5 -4
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +179 -168
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/shared-skills/skills/git-master/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +5 -4
package/dist/cli/index.js
CHANGED
|
@@ -2132,7 +2132,7 @@ var package_default;
|
|
|
2132
2132
|
var init_package = __esm(() => {
|
|
2133
2133
|
package_default = {
|
|
2134
2134
|
name: "oh-my-opencode",
|
|
2135
|
-
version: "5.1.
|
|
2135
|
+
version: "5.1.40",
|
|
2136
2136
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
2137
2137
|
main: "./dist/index.js",
|
|
2138
2138
|
types: "dist/index.d.ts",
|
|
@@ -2309,7 +2309,7 @@ var init_package = __esm(() => {
|
|
|
2309
2309
|
},
|
|
2310
2310
|
devDependencies: {
|
|
2311
2311
|
"@clack/prompts": "^1.8.1",
|
|
2312
|
-
"@code-yeongyu/senpi": "2026.10.19",
|
|
2312
|
+
"@code-yeongyu/senpi": "2026.10.19-2",
|
|
2313
2313
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
2314
2314
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
2315
2315
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -2350,6 +2350,7 @@ var init_package = __esm(() => {
|
|
|
2350
2350
|
"@opentui/core": "^0.5.11",
|
|
2351
2351
|
"@opentui/keymap": "^0.5.11",
|
|
2352
2352
|
"@types/js-yaml": "^4.0.9",
|
|
2353
|
+
"@types/node": "26.6.2",
|
|
2353
2354
|
"@types/picomatch": "^4.0.3",
|
|
2354
2355
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
2355
2356
|
"@typescript/typescript6": "6.0.2",
|
|
@@ -2369,18 +2370,18 @@ var init_package = __esm(() => {
|
|
|
2369
2370
|
typescript: "^7.0.2"
|
|
2370
2371
|
},
|
|
2371
2372
|
optionalDependencies: {
|
|
2372
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
2373
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
2374
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
2375
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
2376
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
2377
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
2378
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
2379
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
2380
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
2381
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
2382
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
2383
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
2373
|
+
"oh-my-opencode-darwin-arm64": "5.1.40",
|
|
2374
|
+
"oh-my-opencode-darwin-x64": "5.1.40",
|
|
2375
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.40",
|
|
2376
|
+
"oh-my-opencode-linux-arm64": "5.1.40",
|
|
2377
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.40",
|
|
2378
|
+
"oh-my-opencode-linux-x64": "5.1.40",
|
|
2379
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.40",
|
|
2380
|
+
"oh-my-opencode-linux-x64-musl": "5.1.40",
|
|
2381
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.40",
|
|
2382
|
+
"oh-my-opencode-windows-arm64": "5.1.40",
|
|
2383
|
+
"oh-my-opencode-windows-x64": "5.1.40",
|
|
2384
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.40"
|
|
2384
2385
|
},
|
|
2385
2386
|
overrides: {
|
|
2386
2387
|
hono: "^4.13.8",
|
|
@@ -76780,17 +76781,23 @@ var init_computer = __esm(() => {
|
|
|
76780
76781
|
});
|
|
76781
76782
|
|
|
76782
76783
|
// packages/omo-config-core/src/schema/git-master.ts
|
|
76783
|
-
var OmoGitMasterSettingsShape, OmoGitMasterSettingsLayerSchema, OmoGitMasterSettingsSchema;
|
|
76784
|
+
var GIT_ENV_ASSIGNMENT_PATTERN, GitEnvPrefixSchema, OmoGitMasterSettingsShape, OmoGitMasterSettingsLayerSchema, OmoGitMasterSettingsSchema;
|
|
76784
76785
|
var init_git_master = __esm(() => {
|
|
76785
76786
|
init_zod();
|
|
76787
|
+
GIT_ENV_ASSIGNMENT_PATTERN = /^(?:[A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)(?: [A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)*$/;
|
|
76788
|
+
GitEnvPrefixSchema = string2().refine((value) => value === "" || GIT_ENV_ASSIGNMENT_PATTERN.test(value), {
|
|
76789
|
+
message: 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"'
|
|
76790
|
+
});
|
|
76786
76791
|
OmoGitMasterSettingsShape = {
|
|
76787
76792
|
commit_footer: union([boolean2(), string2()]),
|
|
76788
|
-
include_co_authored_by: boolean2()
|
|
76793
|
+
include_co_authored_by: boolean2(),
|
|
76794
|
+
git_env_prefix: GitEnvPrefixSchema
|
|
76789
76795
|
};
|
|
76790
76796
|
OmoGitMasterSettingsLayerSchema = object(OmoGitMasterSettingsShape).partial().strict();
|
|
76791
76797
|
OmoGitMasterSettingsSchema = OmoGitMasterSettingsLayerSchema.extend({
|
|
76792
76798
|
commit_footer: union([boolean2(), string2()]).default(false),
|
|
76793
|
-
include_co_authored_by: boolean2().default(false)
|
|
76799
|
+
include_co_authored_by: boolean2().default(false),
|
|
76800
|
+
git_env_prefix: GitEnvPrefixSchema.default("GIT_MASTER=1")
|
|
76794
76801
|
}).strict();
|
|
76795
76802
|
});
|
|
76796
76803
|
|
|
@@ -82525,6 +82532,163 @@ var init_event_id = __esm(() => {
|
|
|
82525
82532
|
fallbackEventId = createUuidV7Generator();
|
|
82526
82533
|
});
|
|
82527
82534
|
|
|
82535
|
+
// packages/telemetry-core/src/machine-id.ts
|
|
82536
|
+
import { createHash as createHash5 } from "crypto";
|
|
82537
|
+
import os4 from "os";
|
|
82538
|
+
function getDefaultTelemetryOsProvider() {
|
|
82539
|
+
return os4;
|
|
82540
|
+
}
|
|
82541
|
+
function getTelemetryDistinctId(machineIdPrefix, osProvider = getDefaultTelemetryOsProvider()) {
|
|
82542
|
+
return createHash5("sha256").update(`${machineIdPrefix}${osProvider.hostname()}`).digest("hex");
|
|
82543
|
+
}
|
|
82544
|
+
var init_machine_id = () => {};
|
|
82545
|
+
|
|
82546
|
+
// packages/telemetry-core/src/injected-client.ts
|
|
82547
|
+
function isTelemetryClientEnabled(input) {
|
|
82548
|
+
const env = input.env ?? process.env;
|
|
82549
|
+
return !shouldDisableTelemetry({ env, productEnvPrefix: input.product.productEnvPrefix }) && hasTelemetryApiKey(env, input.product.defaultApiKey);
|
|
82550
|
+
}
|
|
82551
|
+
function createTelemetryClient(input) {
|
|
82552
|
+
if (!isTelemetryClientEnabled(input)) {
|
|
82553
|
+
return NO_OP_CLIENT;
|
|
82554
|
+
}
|
|
82555
|
+
const transport = createTransport(input);
|
|
82556
|
+
if (transport === null) {
|
|
82557
|
+
return NO_OP_CLIENT;
|
|
82558
|
+
}
|
|
82559
|
+
const sharedProperties = getSharedProperties(input);
|
|
82560
|
+
return {
|
|
82561
|
+
enabled: true,
|
|
82562
|
+
trackActive: ({ dayUTC, distinctId, reason }) => {
|
|
82563
|
+
try {
|
|
82564
|
+
transport.capture({
|
|
82565
|
+
distinctId,
|
|
82566
|
+
event: input.product.eventName,
|
|
82567
|
+
properties: {
|
|
82568
|
+
...sharedProperties,
|
|
82569
|
+
$process_person_profile: false,
|
|
82570
|
+
day_utc: dayUTC,
|
|
82571
|
+
reason
|
|
82572
|
+
}
|
|
82573
|
+
});
|
|
82574
|
+
} catch (error) {
|
|
82575
|
+
input.diagnostics?.({
|
|
82576
|
+
event: "telemetry_capture_failed",
|
|
82577
|
+
source: input.source,
|
|
82578
|
+
error,
|
|
82579
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
82580
|
+
});
|
|
82581
|
+
}
|
|
82582
|
+
},
|
|
82583
|
+
flush: async () => {
|
|
82584
|
+
if (transport.flush === undefined) {
|
|
82585
|
+
return;
|
|
82586
|
+
}
|
|
82587
|
+
await transport.flush();
|
|
82588
|
+
},
|
|
82589
|
+
shutdown: async () => {
|
|
82590
|
+
try {
|
|
82591
|
+
await transport.shutdown();
|
|
82592
|
+
} catch (error) {
|
|
82593
|
+
input.diagnostics?.({
|
|
82594
|
+
event: "telemetry_shutdown_failed",
|
|
82595
|
+
source: input.source,
|
|
82596
|
+
error,
|
|
82597
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
82598
|
+
});
|
|
82599
|
+
}
|
|
82600
|
+
}
|
|
82601
|
+
};
|
|
82602
|
+
}
|
|
82603
|
+
function createTransport(input) {
|
|
82604
|
+
const env = input.env ?? process.env;
|
|
82605
|
+
const factory = input.transportFactory;
|
|
82606
|
+
try {
|
|
82607
|
+
return factory(getTelemetryApiKey(env, input.product.defaultApiKey), {
|
|
82608
|
+
enableExceptionAutocapture: false,
|
|
82609
|
+
enableLocalEvaluation: false,
|
|
82610
|
+
strictLocalEvaluation: true,
|
|
82611
|
+
disableRemoteConfig: true,
|
|
82612
|
+
flushAt: 1,
|
|
82613
|
+
flushInterval: 0,
|
|
82614
|
+
host: getTelemetryHost(env, input.product.defaultHost),
|
|
82615
|
+
disableGeoip: input.product.disableGeoip ?? false,
|
|
82616
|
+
...input.product.transportOptions
|
|
82617
|
+
});
|
|
82618
|
+
} catch (error) {
|
|
82619
|
+
input.diagnostics?.({
|
|
82620
|
+
event: "telemetry_posthog_init_failed",
|
|
82621
|
+
source: input.source,
|
|
82622
|
+
error,
|
|
82623
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
82624
|
+
});
|
|
82625
|
+
return null;
|
|
82626
|
+
}
|
|
82627
|
+
}
|
|
82628
|
+
function getSharedProperties(input) {
|
|
82629
|
+
const osProvider = input.osProvider ?? getDefaultTelemetryOsProvider();
|
|
82630
|
+
const cpuInfo = getSafeCpuInfo(osProvider, input);
|
|
82631
|
+
return {
|
|
82632
|
+
platform: input.product.platform,
|
|
82633
|
+
product_name: input.product.productName,
|
|
82634
|
+
package_name: input.product.packageName,
|
|
82635
|
+
package_version: input.product.packageVersion,
|
|
82636
|
+
runtime: "bun",
|
|
82637
|
+
runtime_version: process.versions.bun ?? process.version,
|
|
82638
|
+
source: input.source,
|
|
82639
|
+
$os: osProvider.platform(),
|
|
82640
|
+
$os_version: osProvider.release(),
|
|
82641
|
+
os_arch: osProvider.arch(),
|
|
82642
|
+
os_type: osProvider.type(),
|
|
82643
|
+
cpu_count: cpuInfo.count,
|
|
82644
|
+
cpu_model: cpuInfo.model,
|
|
82645
|
+
total_memory_gb: Math.round(osProvider.totalmem() / 1024 / 1024 / 1024),
|
|
82646
|
+
locale: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
82647
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
82648
|
+
shell: process.env.SHELL,
|
|
82649
|
+
ci: Boolean(process.env.CI),
|
|
82650
|
+
terminal: process.env.TERM_PROGRAM,
|
|
82651
|
+
...input.product.additionalProperties
|
|
82652
|
+
};
|
|
82653
|
+
}
|
|
82654
|
+
function getSafeCpuInfo(osProvider, input) {
|
|
82655
|
+
try {
|
|
82656
|
+
const cpuInfo = osProvider.cpus();
|
|
82657
|
+
return {
|
|
82658
|
+
count: cpuInfo.length,
|
|
82659
|
+
model: cpuInfo[0]?.model
|
|
82660
|
+
};
|
|
82661
|
+
} catch (error) {
|
|
82662
|
+
input.diagnostics?.({
|
|
82663
|
+
event: "telemetry_cpu_info_unavailable",
|
|
82664
|
+
source: "shared",
|
|
82665
|
+
error,
|
|
82666
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
82667
|
+
});
|
|
82668
|
+
return {
|
|
82669
|
+
count: 0,
|
|
82670
|
+
model: undefined
|
|
82671
|
+
};
|
|
82672
|
+
}
|
|
82673
|
+
}
|
|
82674
|
+
var NO_OP_CLIENT;
|
|
82675
|
+
var init_injected_client = __esm(() => {
|
|
82676
|
+
init_env();
|
|
82677
|
+
init_machine_id();
|
|
82678
|
+
NO_OP_CLIENT = {
|
|
82679
|
+
enabled: false,
|
|
82680
|
+
trackActive: () => {
|
|
82681
|
+
return;
|
|
82682
|
+
},
|
|
82683
|
+
flush: async () => {
|
|
82684
|
+
return;
|
|
82685
|
+
},
|
|
82686
|
+
shutdown: async () => {
|
|
82687
|
+
return;
|
|
82688
|
+
}
|
|
82689
|
+
};
|
|
82690
|
+
});
|
|
82691
|
+
|
|
82528
82692
|
// node_modules/.bun/posthog-node@5.52.4/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
82529
82693
|
import { dirname as dirname18, posix as posix7, sep as sep7 } from "path";
|
|
82530
82694
|
function createModulerModifier() {
|
|
@@ -91898,18 +92062,7 @@ var init_index_node = __esm(() => {
|
|
|
91898
92062
|
};
|
|
91899
92063
|
});
|
|
91900
92064
|
|
|
91901
|
-
// packages/telemetry-core/src/
|
|
91902
|
-
import { createHash as createHash5 } from "crypto";
|
|
91903
|
-
import os4 from "os";
|
|
91904
|
-
function getDefaultTelemetryOsProvider() {
|
|
91905
|
-
return os4;
|
|
91906
|
-
}
|
|
91907
|
-
function getTelemetryDistinctId(machineIdPrefix, osProvider = getDefaultTelemetryOsProvider()) {
|
|
91908
|
-
return createHash5("sha256").update(`${machineIdPrefix}${osProvider.hostname()}`).digest("hex");
|
|
91909
|
-
}
|
|
91910
|
-
var init_machine_id = () => {};
|
|
91911
|
-
|
|
91912
|
-
// packages/telemetry-core/src/posthog-client.ts
|
|
92065
|
+
// packages/telemetry-core/src/posthog-transport.ts
|
|
91913
92066
|
class PostHogTelemetryTransport {
|
|
91914
92067
|
#client;
|
|
91915
92068
|
constructor(apiKey, options) {
|
|
@@ -91928,161 +92081,21 @@ class PostHogTelemetryTransport {
|
|
|
91928
92081
|
function createDefaultPostHogTransport(apiKey, options) {
|
|
91929
92082
|
return new PostHogTelemetryTransport(apiKey, options);
|
|
91930
92083
|
}
|
|
91931
|
-
|
|
91932
|
-
const env = input.env ?? process.env;
|
|
91933
|
-
return !shouldDisableTelemetry({ env, productEnvPrefix: input.product.productEnvPrefix }) && hasTelemetryApiKey(env, input.product.defaultApiKey);
|
|
91934
|
-
}
|
|
91935
|
-
function createTelemetryClient(input) {
|
|
91936
|
-
if (!isTelemetryClientEnabled(input)) {
|
|
91937
|
-
return NO_OP_CLIENT;
|
|
91938
|
-
}
|
|
91939
|
-
const transport = createTransport(input);
|
|
91940
|
-
if (transport === null) {
|
|
91941
|
-
return NO_OP_CLIENT;
|
|
91942
|
-
}
|
|
91943
|
-
const sharedProperties = getSharedProperties(input);
|
|
91944
|
-
return {
|
|
91945
|
-
enabled: true,
|
|
91946
|
-
trackActive: ({ dayUTC, distinctId, reason }) => {
|
|
91947
|
-
try {
|
|
91948
|
-
transport.capture({
|
|
91949
|
-
distinctId,
|
|
91950
|
-
event: input.product.eventName,
|
|
91951
|
-
properties: {
|
|
91952
|
-
...sharedProperties,
|
|
91953
|
-
$process_person_profile: false,
|
|
91954
|
-
day_utc: dayUTC,
|
|
91955
|
-
reason
|
|
91956
|
-
}
|
|
91957
|
-
});
|
|
91958
|
-
} catch (error) {
|
|
91959
|
-
input.diagnostics?.({
|
|
91960
|
-
event: "telemetry_capture_failed",
|
|
91961
|
-
source: input.source,
|
|
91962
|
-
error,
|
|
91963
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
91964
|
-
});
|
|
91965
|
-
}
|
|
91966
|
-
},
|
|
91967
|
-
flush: async () => {
|
|
91968
|
-
if (transport.flush === undefined) {
|
|
91969
|
-
return;
|
|
91970
|
-
}
|
|
91971
|
-
await transport.flush();
|
|
91972
|
-
},
|
|
91973
|
-
shutdown: async () => {
|
|
91974
|
-
try {
|
|
91975
|
-
await transport.shutdown();
|
|
91976
|
-
} catch (error) {
|
|
91977
|
-
input.diagnostics?.({
|
|
91978
|
-
event: "telemetry_shutdown_failed",
|
|
91979
|
-
source: input.source,
|
|
91980
|
-
error,
|
|
91981
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
91982
|
-
});
|
|
91983
|
-
}
|
|
91984
|
-
}
|
|
91985
|
-
};
|
|
91986
|
-
}
|
|
91987
|
-
function createTransport(input) {
|
|
91988
|
-
const env = input.env ?? process.env;
|
|
91989
|
-
const factory = input.transportFactory ?? createDefaultPostHogTransport;
|
|
91990
|
-
try {
|
|
91991
|
-
return factory(getTelemetryApiKey(env, input.product.defaultApiKey), {
|
|
91992
|
-
enableExceptionAutocapture: false,
|
|
91993
|
-
enableLocalEvaluation: false,
|
|
91994
|
-
strictLocalEvaluation: true,
|
|
91995
|
-
disableRemoteConfig: true,
|
|
91996
|
-
flushAt: 1,
|
|
91997
|
-
flushInterval: 0,
|
|
91998
|
-
host: getTelemetryHost(env, input.product.defaultHost),
|
|
91999
|
-
disableGeoip: input.product.disableGeoip ?? false,
|
|
92000
|
-
...input.product.transportOptions
|
|
92001
|
-
});
|
|
92002
|
-
} catch (error) {
|
|
92003
|
-
input.diagnostics?.({
|
|
92004
|
-
event: "telemetry_posthog_init_failed",
|
|
92005
|
-
source: input.source,
|
|
92006
|
-
error,
|
|
92007
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
92008
|
-
});
|
|
92009
|
-
return null;
|
|
92010
|
-
}
|
|
92011
|
-
}
|
|
92012
|
-
function getSharedProperties(input) {
|
|
92013
|
-
const osProvider = input.osProvider ?? getDefaultTelemetryOsProvider();
|
|
92014
|
-
const cpuInfo = getSafeCpuInfo(osProvider, input);
|
|
92015
|
-
return {
|
|
92016
|
-
platform: input.product.platform,
|
|
92017
|
-
product_name: input.product.productName,
|
|
92018
|
-
package_name: input.product.packageName,
|
|
92019
|
-
package_version: input.product.packageVersion,
|
|
92020
|
-
runtime: "bun",
|
|
92021
|
-
runtime_version: process.versions.bun ?? process.version,
|
|
92022
|
-
source: input.source,
|
|
92023
|
-
$os: osProvider.platform(),
|
|
92024
|
-
$os_version: osProvider.release(),
|
|
92025
|
-
os_arch: osProvider.arch(),
|
|
92026
|
-
os_type: osProvider.type(),
|
|
92027
|
-
cpu_count: cpuInfo.count,
|
|
92028
|
-
cpu_model: cpuInfo.model,
|
|
92029
|
-
total_memory_gb: Math.round(osProvider.totalmem() / 1024 / 1024 / 1024),
|
|
92030
|
-
locale: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
92031
|
-
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
92032
|
-
shell: process.env.SHELL,
|
|
92033
|
-
ci: Boolean(process.env.CI),
|
|
92034
|
-
terminal: process.env.TERM_PROGRAM,
|
|
92035
|
-
...input.product.additionalProperties
|
|
92036
|
-
};
|
|
92037
|
-
}
|
|
92038
|
-
function getSafeCpuInfo(osProvider, input) {
|
|
92039
|
-
try {
|
|
92040
|
-
const cpuInfo = osProvider.cpus();
|
|
92041
|
-
return {
|
|
92042
|
-
count: cpuInfo.length,
|
|
92043
|
-
model: cpuInfo[0]?.model
|
|
92044
|
-
};
|
|
92045
|
-
} catch (error) {
|
|
92046
|
-
input.diagnostics?.({
|
|
92047
|
-
event: "telemetry_cpu_info_unavailable",
|
|
92048
|
-
source: "shared",
|
|
92049
|
-
error,
|
|
92050
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
92051
|
-
});
|
|
92052
|
-
return {
|
|
92053
|
-
count: 0,
|
|
92054
|
-
model: undefined
|
|
92055
|
-
};
|
|
92056
|
-
}
|
|
92057
|
-
}
|
|
92058
|
-
var NO_OP_CLIENT;
|
|
92059
|
-
var init_posthog_client = __esm(() => {
|
|
92084
|
+
var init_posthog_transport = __esm(() => {
|
|
92060
92085
|
init_index_node();
|
|
92061
|
-
init_env();
|
|
92062
|
-
init_machine_id();
|
|
92063
|
-
NO_OP_CLIENT = {
|
|
92064
|
-
enabled: false,
|
|
92065
|
-
trackActive: () => {
|
|
92066
|
-
return;
|
|
92067
|
-
},
|
|
92068
|
-
flush: async () => {
|
|
92069
|
-
return;
|
|
92070
|
-
},
|
|
92071
|
-
shutdown: async () => {
|
|
92072
|
-
return;
|
|
92073
|
-
}
|
|
92074
|
-
};
|
|
92075
92086
|
});
|
|
92076
92087
|
|
|
92077
92088
|
// packages/telemetry-core/src/events.ts
|
|
92078
|
-
var
|
|
92079
|
-
|
|
92080
|
-
|
|
92081
|
-
|
|
92082
|
-
|
|
92083
|
-
|
|
92084
|
-
|
|
92085
|
-
|
|
92089
|
+
var init_events = () => {};
|
|
92090
|
+
|
|
92091
|
+
// packages/telemetry-core/src/posthog-client.ts
|
|
92092
|
+
function createTelemetryClient2(input) {
|
|
92093
|
+
return createTelemetryClient({ ...input, transportFactory: input.transportFactory ?? createDefaultPostHogTransport });
|
|
92094
|
+
}
|
|
92095
|
+
var init_posthog_client = __esm(() => {
|
|
92096
|
+
init_injected_client();
|
|
92097
|
+
init_posthog_transport();
|
|
92098
|
+
init_posthog_transport();
|
|
92086
92099
|
});
|
|
92087
92100
|
|
|
92088
92101
|
// packages/telemetry-core/src/record-daily-active.ts
|
|
@@ -92106,7 +92119,7 @@ var package_default2;
|
|
|
92106
92119
|
var init_package2 = __esm(() => {
|
|
92107
92120
|
package_default2 = {
|
|
92108
92121
|
name: "@oh-my-opencode/omo-codex",
|
|
92109
|
-
version: "5.1.
|
|
92122
|
+
version: "5.1.40",
|
|
92110
92123
|
type: "module",
|
|
92111
92124
|
private: true,
|
|
92112
92125
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -92236,7 +92249,7 @@ function resolveActivityStateProvider(options) {
|
|
|
92236
92249
|
return () => getPostHogActivityCaptureState(options.now ?? new Date);
|
|
92237
92250
|
}
|
|
92238
92251
|
function createPostHogClient(source, options = {}) {
|
|
92239
|
-
const client =
|
|
92252
|
+
const client = createTelemetryClient2({
|
|
92240
92253
|
diagnostics: writeTelemetryDiagnostic2,
|
|
92241
92254
|
env: options.env ?? process.env,
|
|
92242
92255
|
osProvider: options.osProvider ?? resolveOsProvider(),
|
|
@@ -99405,6 +99418,12 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
|
|
|
99405
99418
|
join63("extensions", "omo-memory-doctor.js"),
|
|
99406
99419
|
join63("extensions", "omo-memory-memfs.js"),
|
|
99407
99420
|
join63("extensions", "omo-memory-palace.js"),
|
|
99421
|
+
join63("extensions", "omo-session-history.js"),
|
|
99422
|
+
join63("extensions", "omo-recall-store.js"),
|
|
99423
|
+
join63("extensions", "omo-telemetry-posthog.js"),
|
|
99424
|
+
join63("extensions", "omo-memory-sync.js"),
|
|
99425
|
+
join63("extensions", "loro_wasm_bg.wasm"),
|
|
99426
|
+
join63("extensions", "CaseFolding.txt"),
|
|
99408
99427
|
join63("extensions", "omo-thread-client.js"),
|
|
99409
99428
|
join63("extensions", "assets.generated.json"),
|
|
99410
99429
|
join63("extensions", "omo-member.js"),
|
|
@@ -103734,21 +103753,21 @@ var GoalConfigSchema = object({
|
|
|
103734
103753
|
});
|
|
103735
103754
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
103736
103755
|
init_zod();
|
|
103737
|
-
var
|
|
103756
|
+
var GIT_ENV_ASSIGNMENT_PATTERN2 = /^(?:[A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)(?: [A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)*$/;
|
|
103738
103757
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
103739
103758
|
function isValidGitEnvPrefix(value) {
|
|
103740
103759
|
if (value === "") {
|
|
103741
103760
|
return true;
|
|
103742
103761
|
}
|
|
103743
|
-
return
|
|
103762
|
+
return GIT_ENV_ASSIGNMENT_PATTERN2.test(value);
|
|
103744
103763
|
}
|
|
103745
|
-
var
|
|
103764
|
+
var GitEnvPrefixSchema2 = string2().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
103746
103765
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
103747
103766
|
init_zod();
|
|
103748
103767
|
var GitMasterConfigSchema = object({
|
|
103749
103768
|
commit_footer: union([boolean2(), string2()]).default(false),
|
|
103750
103769
|
include_co_authored_by: boolean2().default(false),
|
|
103751
|
-
git_env_prefix:
|
|
103770
|
+
git_env_prefix: GitEnvPrefixSchema2
|
|
103752
103771
|
});
|
|
103753
103772
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
103754
103773
|
init_zod();
|
|
@@ -106014,7 +106033,7 @@ function createPostHogClient2(source, options = {}) {
|
|
|
106014
106033
|
if (shouldDisablePostHog(env, options.configEnabled)) {
|
|
106015
106034
|
return NO_OP_POSTHOG2;
|
|
106016
106035
|
}
|
|
106017
|
-
const client =
|
|
106036
|
+
const client = createTelemetryClient2({
|
|
106018
106037
|
diagnostics: logTelemetryDiagnostic,
|
|
106019
106038
|
env: createCoreCompatibleTelemetryEnv(env),
|
|
106020
106039
|
osProvider: resolveOsProvider2(),
|