oh-my-opencode 5.0.0-beta.23 → 5.0.0-beta.25
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 +141 -184
- package/dist/cli-node/index.js +141 -184
- package/dist/index.js +1508 -1567
- package/dist/skills/debugging/SKILL.md +0 -2
- package/dist/skills/debugging/references/methodology/00-setup.md +0 -12
- package/dist/skills/debugging/references/methodology/02-investigate.md +0 -21
- package/dist/skills/debugging/references/runtimes/go.md +1 -15
- package/dist/skills/debugging/references/runtimes/native-binary.md +0 -38
- package/dist/skills/debugging/references/runtimes/node.md +0 -25
- package/dist/skills/debugging/references/runtimes/python.md +0 -13
- package/dist/skills/debugging/references/runtimes/rust.md +0 -41
- package/dist/tools/delegate-task/types.d.ts +0 -3
- package/dist/tui.js +0 -25
- package/package.json +15 -18
- package/packages/lsp-core/src/index.ts +0 -1
- package/packages/lsp-core/src/lsp/client-wrapper.ts +5 -25
- package/packages/lsp-core/src/lsp/client.ts +0 -26
- package/packages/lsp-core/src/lsp/connection.ts +0 -16
- package/packages/lsp-core/src/lsp/constants.ts +0 -1
- package/packages/lsp-core/src/lsp/manager.ts +1 -34
- package/packages/lsp-core/src/lsp/server-definitions.ts +0 -29
- package/packages/lsp-core/src/lsp/server-installation.ts +27 -200
- package/packages/lsp-core/src/lsp/server-resolution.ts +5 -18
- package/packages/lsp-core/src/lsp/transport.ts +0 -9
- package/packages/lsp-core/src/lsp/types.ts +0 -8
- package/packages/lsp-core/src/tool-surface.test.ts +1 -13
- package/packages/lsp-core/src/tools/definitions.ts +0 -14
- package/packages/lsp-core/src/tools/index.ts +0 -1
- package/packages/lsp-core/src/tools/types.ts +0 -10
- package/packages/lsp-daemon/dist/cli.js +144 -432
- package/packages/lsp-daemon/dist/client.d.ts +0 -10
- package/packages/lsp-daemon/dist/client.js +107 -401
- package/packages/lsp-daemon/dist/daemon-client.d.ts +0 -1
- package/packages/lsp-daemon/dist/daemon-client.js +0 -3
- package/packages/lsp-daemon/dist/index.js +107 -395
- package/packages/lsp-tools-mcp/dist/cli.js +99 -384
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +0 -53
- package/packages/lsp-tools-mcp/dist/mcp.js +99 -384
- package/packages/lsp-tools-mcp/dist/tools.js +99 -385
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +2 -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/codegraph/dist/cli.js +35 -69
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +2 -21
- package/packages/omo-codex/plugin/components/codegraph/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 +3 -3
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +121 -404
- 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/dist/cli.js +3 -3
- 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/rules/src/post-compact-budget.ts +3 -3
- package/packages/omo-codex/plugin/components/rules/test/post-compact-budget.test.ts +4 -4
- 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 +15 -30
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +15 -30
- 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/ulw-execute-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- 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-codegraph-init-guidance.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/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-checking-codegraph-bootstrap.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-checking-ulw-execute-continuation.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/model-catalog.json +3 -3
- package/packages/omo-codex/plugin/package-lock.json +13 -13
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/catalog.mjs +3 -3
- package/packages/omo-codex/plugin/skills/debugging/SKILL.md +0 -2
- package/packages/omo-codex/plugin/skills/debugging/references/methodology/00-setup.md +0 -12
- package/packages/omo-codex/plugin/skills/debugging/references/methodology/02-investigate.md +0 -21
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/go.md +1 -15
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/native-binary.md +0 -38
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/node.md +0 -25
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/python.md +0 -13
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/rust.md +0 -41
- package/packages/omo-codex/plugin/test/aggregate-model-catalog.test.mjs +1 -1
- package/packages/omo-codex/plugin/test/auto-update.test.mjs +2 -2
- package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +8 -8
- package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +2 -2
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +23 -38
- package/packages/shared-skills/skills/debugging/SKILL.md +0 -2
- package/packages/shared-skills/skills/debugging/references/methodology/00-setup.md +0 -12
- package/packages/shared-skills/skills/debugging/references/methodology/02-investigate.md +0 -21
- package/packages/shared-skills/skills/debugging/references/runtimes/go.md +1 -15
- package/packages/shared-skills/skills/debugging/references/runtimes/native-binary.md +0 -38
- package/packages/shared-skills/skills/debugging/references/runtimes/node.md +0 -25
- package/packages/shared-skills/skills/debugging/references/runtimes/python.md +0 -13
- package/packages/shared-skills/skills/debugging/references/runtimes/rust.md +0 -41
- package/dist/skills/debugging/references/scripts/dap.mjs +0 -267
- package/dist/skills/debugging/references/scripts/dap.test.ts +0 -86
- package/dist/skills/debugging/references/scripts/fixture-adapter.mjs +0 -59
- package/dist/skills/debugging/references/tools/dap.md +0 -103
- package/dist/skills/debugging/references/tools/frida.md +0 -193
- package/packages/lsp-core/src/lsp/format-document.test.ts +0 -143
- package/packages/lsp-core/src/lsp/format-document.ts +0 -90
- package/packages/lsp-core/src/lsp/manager-max-clients.test.ts +0 -151
- package/packages/lsp-core/src/lsp/server-installation.test.ts +0 -376
- package/packages/lsp-core/src/lsp/server-resolution-local-binary.test.ts +0 -170
- package/packages/lsp-core/src/tools/format.test.ts +0 -56
- package/packages/lsp-core/src/tools/format.ts +0 -56
- package/packages/omo-codex/plugin/skills/debugging/references/scripts/dap.mjs +0 -267
- package/packages/omo-codex/plugin/skills/debugging/references/scripts/fixture-adapter.mjs +0 -59
- package/packages/omo-codex/plugin/skills/debugging/references/tools/dap.md +0 -103
- package/packages/omo-codex/plugin/skills/debugging/references/tools/frida.md +0 -193
- package/packages/shared-skills/skills/debugging/references/scripts/dap.mjs +0 -267
- package/packages/shared-skills/skills/debugging/references/scripts/dap.test.ts +0 -86
- package/packages/shared-skills/skills/debugging/references/scripts/fixture-adapter.mjs +0 -59
- package/packages/shared-skills/skills/debugging/references/tools/dap.md +0 -103
- package/packages/shared-skills/skills/debugging/references/tools/frida.md +0 -193
|
@@ -23,7 +23,6 @@ var DEFAULT_MAX_DIRECTORY_FILES = 50;
|
|
|
23
23
|
var REQUEST_TIMEOUT_MS = 15000;
|
|
24
24
|
var INIT_TIMEOUT_MS = 60000;
|
|
25
25
|
var IDLE_TIMEOUT_MS = 5 * 60000;
|
|
26
|
-
var MAX_RESIDENT_CLIENTS = 6;
|
|
27
26
|
var REAPER_INTERVAL_MS = 60000;
|
|
28
27
|
var STOP_HARD_KILL_TIMEOUT_MS = 5000;
|
|
29
28
|
var STOP_SIGKILL_GRACE_MS = 1000;
|
|
@@ -616,7 +615,6 @@ class LspClientTransport {
|
|
|
616
615
|
this.diagnosticsStore = new Map;
|
|
617
616
|
this.workspaceApplyEditHandler = null;
|
|
618
617
|
this.diagnosticPullSupported = false;
|
|
619
|
-
this.documentFormattingSupported = false;
|
|
620
618
|
this.requestTimeoutMs = timeouts.requestTimeoutMs ?? REQUEST_TIMEOUT_MS;
|
|
621
619
|
this.initializeTimeoutMs = timeouts.initializeTimeoutMs ?? INIT_TIMEOUT_MS;
|
|
622
620
|
}
|
|
@@ -638,12 +636,6 @@ class LspClientTransport {
|
|
|
638
636
|
isDiagnosticPullSupported() {
|
|
639
637
|
return this.diagnosticPullSupported;
|
|
640
638
|
}
|
|
641
|
-
setDocumentFormattingSupported(supported) {
|
|
642
|
-
this.documentFormattingSupported = supported;
|
|
643
|
-
}
|
|
644
|
-
isDocumentFormattingSupported() {
|
|
645
|
-
return this.documentFormattingSupported;
|
|
646
|
-
}
|
|
647
639
|
handlePublishDiagnostics(params) {
|
|
648
640
|
this.diagnosticsStore.set(params.uri, [...params.diagnostics]);
|
|
649
641
|
}
|
|
@@ -857,14 +849,6 @@ function supportsDiagnosticPull(capabilities) {
|
|
|
857
849
|
return false;
|
|
858
850
|
return Object.hasOwn(capabilities, "diagnosticProvider");
|
|
859
851
|
}
|
|
860
|
-
function supportsDocumentFormatting(capabilities) {
|
|
861
|
-
if (capabilities === undefined)
|
|
862
|
-
return false;
|
|
863
|
-
const provider = capabilities.documentFormattingProvider;
|
|
864
|
-
if (provider === undefined || provider === null || provider === false)
|
|
865
|
-
return false;
|
|
866
|
-
return provider === true || typeof provider === "object";
|
|
867
|
-
}
|
|
868
852
|
|
|
869
853
|
class LspClientConnection extends LspClientTransport {
|
|
870
854
|
async initialize() {
|
|
@@ -881,7 +865,6 @@ class LspClientConnection extends LspClientTransport {
|
|
|
881
865
|
references: {},
|
|
882
866
|
documentSymbol: { hierarchicalDocumentSymbolSupport: true },
|
|
883
867
|
publishDiagnostics: {},
|
|
884
|
-
formatting: { dynamicRegistration: false },
|
|
885
868
|
rename: {
|
|
886
869
|
prepareSupport: true,
|
|
887
870
|
prepareSupportDefaultBehavior: 1
|
|
@@ -923,7 +906,6 @@ class LspClientConnection extends LspClientTransport {
|
|
|
923
906
|
initializationOptions: this.server.initialization
|
|
924
907
|
}, { timeoutMs: this.initializeTimeoutMs });
|
|
925
908
|
this.setDiagnosticPullSupported(supportsDiagnosticPull(result?.capabilities));
|
|
926
|
-
this.setDocumentFormattingSupported(supportsDocumentFormatting(result?.capabilities));
|
|
927
909
|
await this.sendNotification("initialized", {});
|
|
928
910
|
await this.sendNotification("workspace/didChangeConfiguration", {
|
|
929
911
|
settings: { json: { validate: { enable: true } } }
|
|
@@ -2518,18 +2500,6 @@ class LspClient extends LspClientConnection {
|
|
|
2518
2500
|
textDocument: { uri: pathToFileURL3(absPath).href }
|
|
2519
2501
|
}, options);
|
|
2520
2502
|
}
|
|
2521
|
-
async formatDocument(filePath, options, signal) {
|
|
2522
|
-
if (!this.isDocumentFormattingSupported())
|
|
2523
|
-
return null;
|
|
2524
|
-
const absPath = this.resolveWorkspacePath(filePath);
|
|
2525
|
-
await this.openFile(absPath);
|
|
2526
|
-
const requestOptions = signal === undefined ? {} : { signal };
|
|
2527
|
-
const edits = await this.sendRequest("textDocument/formatting", {
|
|
2528
|
-
textDocument: { uri: pathToFileURL3(absPath).href },
|
|
2529
|
-
options
|
|
2530
|
-
}, requestOptions);
|
|
2531
|
-
return edits ?? [];
|
|
2532
|
-
}
|
|
2533
2503
|
async workspaceSymbols(query, signal) {
|
|
2534
2504
|
const options = signal === undefined ? {} : { signal };
|
|
2535
2505
|
return this.sendRequest("workspace/symbol", { query }, options);
|
|
@@ -2782,7 +2752,6 @@ class LspManager {
|
|
|
2782
2752
|
this.disposed = false;
|
|
2783
2753
|
this.idleTimeoutMs = options.idleTimeoutMs ?? IDLE_TIMEOUT_MS;
|
|
2784
2754
|
this.initTimeoutMs = options.initTimeoutMs ?? INIT_TIMEOUT_MS;
|
|
2785
|
-
this.maxResidentClients = options.maxResidentClients ?? MAX_RESIDENT_CLIENTS;
|
|
2786
2755
|
this.reaperIntervalMs = options.reaperIntervalMs ?? REAPER_INTERVAL_MS;
|
|
2787
2756
|
this.clientFactory = options.clientFactory ?? ((root, server) => new LspClient(root, server));
|
|
2788
2757
|
this.now = options.now ?? (() => Date.now());
|
|
@@ -2816,26 +2785,6 @@ class LspManager {
|
|
|
2816
2785
|
}
|
|
2817
2786
|
}
|
|
2818
2787
|
}
|
|
2819
|
-
evictForAdmission() {
|
|
2820
|
-
while (this.clients.size >= this.maxResidentClients) {
|
|
2821
|
-
const victim = this.leastRecentlyUsedIdleClient();
|
|
2822
|
-
if (!victim)
|
|
2823
|
-
return;
|
|
2824
|
-
this.clients.delete(victim.key);
|
|
2825
|
-
stopClientBestEffort(victim.managed.client);
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
leastRecentlyUsedIdleClient() {
|
|
2829
|
-
let candidate = null;
|
|
2830
|
-
for (const [key, managed] of this.clients) {
|
|
2831
|
-
if (managed.refCount > 0 || managed.pendingWaiters > 0 || managed.isInitializing)
|
|
2832
|
-
continue;
|
|
2833
|
-
if (candidate === null || managed.lastUsedAt < candidate.managed.lastUsedAt) {
|
|
2834
|
-
candidate = { key, managed };
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
return candidate;
|
|
2838
|
-
}
|
|
2839
2788
|
async tryDeleteIfOrphaned(key, managed) {
|
|
2840
2789
|
if (managed.refCount === 0 && managed.pendingWaiters === 0 && !managed.isInitializing && this.clients.get(key) === managed) {
|
|
2841
2790
|
this.clients.delete(key);
|
|
@@ -2882,7 +2831,6 @@ class LspManager {
|
|
|
2882
2831
|
managed.lastUsedAt = this.now();
|
|
2883
2832
|
return managed.client;
|
|
2884
2833
|
}
|
|
2885
|
-
this.evictForAdmission();
|
|
2886
2834
|
const client = this.clientFactory(root, server);
|
|
2887
2835
|
const initStartedAt = this.now();
|
|
2888
2836
|
const initPromise = (async () => {
|
|
@@ -2945,7 +2893,6 @@ class LspManager {
|
|
|
2945
2893
|
const key = this.getKey(root, server.id);
|
|
2946
2894
|
if (this.clients.has(key))
|
|
2947
2895
|
return;
|
|
2948
|
-
this.evictForAdmission();
|
|
2949
2896
|
const client = this.clientFactory(root, server);
|
|
2950
2897
|
const initStartedAt = this.now();
|
|
2951
2898
|
const initPromise = (async () => {
|