Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Key every cached OK test task on what its tests load (#5071)
Nick Gomez5c709d374d62
diff --git a/knip.config.ts b/knip.config.tsindex 9cf70e257..acfdfd1c4 100644--- a/knip.config.ts+++ b/knip.config.ts@@ -143,11 +143,15 @@ export default {'packages/server': {entry: ['src/**/*.test.ts', 'src/parse-worker.ts'],project: 'src/**',- ignoreDependencies: ['@types/shell-quote'],+ ignoreDependencies: [+ '@types/shell-quote',+ ],},'packages/cli': {entry: ['src/**/*.test.ts', 'scripts/*.ts', 'tests/**/*.ts', 'src/parse-worker.ts'],- ignoreDependencies: ['yjs'],+ ignoreDependencies: [+ 'yjs',+ ],},'packages/desktop': {entry: [diff --git a/packages/app/tests/integration/bug3-source-mode-writeback.test.ts b/packages/app/tests/integration/bug3-source-mode-writeback.test.tsindex 8a60e5826..a28cc2b18 100644--- a/packages/app/tests/integration/bug3-source-mode-writeback.test.ts+++ b/packages/app/tests/integration/bug3-source-mode-writeback.test.ts@@ -1,3 +1,4 @@+import { readFileSync } from 'node:fs';import { join } from 'node:path';import { setTimeout as wait } from 'node:timers/promises';diff --git a/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts b/packages/app/tests/integration/indented-jsx-byte-sacred.test.tsindex 6fcdc23f2..4fc2c11f9 100644--- a/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts+++ b/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts@@ -1,3 +1,4 @@+import { setTimeout as wait } from 'node:timers/promises';import { normalizeBridge } from '@inkeep/open-knowledge-core';import { updateYFragment } from '@tiptap/y-tiptap';diff --git a/packages/app/tests/integration/interior-edit-freshness.test.ts b/packages/app/tests/integration/interior-edit-freshness.test.tsindex 40b5cdfd6..9f2f6feb6 100644--- a/packages/app/tests/integration/interior-edit-freshness.test.ts+++ b/packages/app/tests/integration/interior-edit-freshness.test.ts@@ -1,3 +1,4 @@+import { setTimeout as wait } from 'node:timers/promises';import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';import { afterAll, beforeAll, describe, expect, test } from 'vitest';diff --git a/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts b/packages/app/tests/integration/keystroke-cadence-danger-space.test.tsindex 93666af70..2a085742b 100644--- a/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts+++ b/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts@@ -1,3 +1,4 @@+import { setTimeout as wait } from 'node:timers/promises';import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';import { afterAll, beforeAll, describe, expect, test } from 'vitest';diff --git a/packages/app/tests/integration/producer-guard-wiring.test.ts b/packages/app/tests/integration/producer-guard-wiring.test.tsindex 867598d34..878d5196b 100644--- a/packages/app/tests/integration/producer-guard-wiring.test.ts+++ b/packages/app/tests/integration/producer-guard-wiring.test.ts@@ -1,3 +1,4 @@+import { setTimeout as wait } from 'node:timers/promises';import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';import { afterAll, beforeAll, describe, expect, test } from 'vitest';diff --git a/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts b/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.tsindex 0970ac12f..4ada3cf26 100644--- a/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts+++ b/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts@@ -1,3 +1,4 @@+import { randomUUID } from 'node:crypto';import { afterEach, describe, expect, test } from 'vitest';import { agentWriteMd, createTestServer, type TestServer } from './test-harness';diff --git a/packages/app/tests/integration/qa-045-restore-after-gc.test.ts b/packages/app/tests/integration/qa-045-restore-after-gc.test.tsindex b632185e1..cbe2b705f 100644--- a/packages/app/tests/integration/qa-045-restore-after-gc.test.ts+++ b/packages/app/tests/integration/qa-045-restore-after-gc.test.ts@@ -1,3 +1,4 @@+import { execFileSync } from 'node:child_process';import { randomUUID } from 'node:crypto';import { join } from 'node:path';diff --git a/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts b/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.tsindex c530ce4ba..89bc9b4d9 100644--- a/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts+++ b/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts@@ -1,3 +1,4 @@+import { randomUUID } from 'node:crypto';import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';import type * as Y from 'yjs';diff --git a/packages/app/tests/integration/undo-after-rollback.test.ts b/packages/app/tests/integration/undo-after-rollback.test.tsindex d3767adc9..a78aeb0e4 100644--- a/packages/app/tests/integration/undo-after-rollback.test.ts+++ b/packages/app/tests/integration/undo-after-rollback.test.ts@@ -1,3 +1,4 @@+import { ROLLBACK_ORIGIN } from '@inkeep/open-knowledge-server';import { afterAll, beforeAll, describe, expect, test } from 'vitest';import * as Y from 'yjs';diff --git a/packages/app/tests/integration/undo-recycle-reset.test.ts b/packages/app/tests/integration/undo-recycle-reset.test.tsindex b076f955c..e7cc69c3f 100644--- a/packages/app/tests/integration/undo-recycle-reset.test.ts+++ b/packages/app/tests/integration/undo-recycle-reset.test.ts@@ -1,3 +1,4 @@+import { writeFileSync } from 'node:fs';import { join } from 'node:path';import { setTimeout as wait } from 'node:timers/promises';diff --git a/packages/app/tests/integration/undo-rederive-survival.test.ts b/packages/app/tests/integration/undo-rederive-survival.test.tsindex 7935e35f8..9ddcd0730 100644--- a/packages/app/tests/integration/undo-rederive-survival.test.ts+++ b/packages/app/tests/integration/undo-rederive-survival.test.ts@@ -1,3 +1,4 @@+import { prependFrontmatter } from '@inkeep/open-knowledge-core';import { Plugin, PluginKey } from '@tiptap/pm/state';import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';diff --git a/packages/core/src/bridge/compose.ts b/packages/core/src/bridge/compose.tsindex f4cc8a286..2a597ec3d 100644--- a/packages/core/src/bridge/compose.ts+++ b/packages/core/src/bridge/compose.ts@@ -1,3 +1,4 @@+import { prependFrontmatter, stripFrontmatter } from '../extensions/frontmatter.ts';export type ComposeAdjustment = 'none' | 'body' | 'frontmatter' | 'unresolved';diff --git a/packages/core/src/bridge/doc-boundary-space.ts b/packages/core/src/bridge/doc-boundary-space.tsindex 8fb428b90..01ef76a9f 100644--- a/packages/core/src/bridge/doc-boundary-space.ts+++ b/packages/core/src/bridge/doc-boundary-space.ts@@ -1,3 +1,4 @@+import { FRONTMATTER_RE, stripFrontmatter } from '../extensions/frontmatter.ts';import { carriedEdgeEmpties, type DocEdgeEmpties } from '../markdown/doc-edge-blank-runs.ts';diff --git a/packages/core/src/markdown/comment-promoter.ts b/packages/core/src/markdown/comment-promoter.tsindex fc267cbea..fb0ba5a7c 100644--- a/packages/core/src/markdown/comment-promoter.ts+++ b/packages/core/src/markdown/comment-promoter.ts@@ -1,3 +1,4 @@+import type { Nodes, Paragraph, PhrasingContent, Root, RootContent, Text } from 'mdast';import { SKIP, visit } from 'unist-util-visit';import type { VFile } from 'vfile';diff --git a/packages/core/src/markdown/merged-walker.ts b/packages/core/src/markdown/merged-walker.tsindex bfd7e3109..fa3cfcd86 100644--- a/packages/core/src/markdown/merged-walker.ts+++ b/packages/core/src/markdown/merged-walker.ts@@ -1,3 +1,4 @@+import type { Nodes, Parent, Root } from 'mdast';import { SKIP, visit } from 'unist-util-visit';import type { VFile } from 'vfile';diff --git a/packages/core/src/markdown/safe-url.ts b/packages/core/src/markdown/safe-url.tsindex 4d3250d3a..8be632ba4 100644--- a/packages/core/src/markdown/safe-url.ts+++ b/packages/core/src/markdown/safe-url.ts@@ -1,3 +1,4 @@+export const SAFE_URL_SCHEMES = ['https', 'http', 'mailto', 'tel', 'ftp', 'sms'] as const;const SCHEME_ALT = SAFE_URL_SCHEMES.map((s) => `${s}:`).join('|');diff --git a/packages/native-config/turbo.json b/packages/native-config/turbo.jsonindex 538f0d6cd..ecb409a08 100644--- a/packages/native-config/turbo.json+++ b/packages/native-config/turbo.json@@ -2,7 +2,14 @@"extends": ["//"],"tasks": {"build": {- "inputs": ["Cargo.toml", "Cargo.lock", "build.rs", "src/**/*.rs", "package.json"],+ "inputs": [+ "Cargo.toml",+ "Cargo.lock",+ "build.rs",+ "src/**/*.rs",+ "package.json",+ "scripts/build.mjs"+ ],"outputs": ["index.js", "index.d.ts", "*.node"]},"test": {diff --git a/turbo.json b/turbo.jsonindex 093eebc14..b9439ce33 100644--- a/turbo.json+++ b/turbo.json@@ -88,40 +88,19 @@"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.json",- "src/**/*.css",- "tests/contract/**/*.ts",- "vitest.config.ts",- "vite.dedupe.ts",- "tests/lingui-macro-shim.tsx",- "tests/integration/idb-preload.ts",- "../../test-support/*.ts",- "../test-support/*.ts",- "../app/package.json",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../../oxlint.config.ts",- "../../lint-plugins/**"+ "../../lint-plugins/**",+ "$TURBO_ROOT$/packages/desktop/src/main/menu.ts",+ "$TURBO_ROOT$/packages/desktop/src/main/dialog-helpers.ts",+ "$TURBO_ROOT$/packages/desktop/src/main/menu-translator.ts"]},"@inkeep/open-knowledge-docs#test": {"dependsOn": ["^build", "build"],"cache": true,- "inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.json",- "content/**",- "_snippets/**",- "next.config.ts",- "source.config.ts",- "microfrontends.json",- "postcss.config.ts",- "tsconfig.json",- "vitest.config.ts",- "vitest.*.config.mts",- "../test-support/*.ts"- ]+ "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/test-support/**"]},"@inkeep/open-knowledge-server#test": {"dependsOn": ["^build"],@@ -139,14 +118,8 @@"dependsOn": ["^build", "build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.json",- "tests/contract/**/*.ts",- "scripts/**/*.ts",- "scripts/**/*.mjs",- "vitest.config.ts",- "../../test-support/*.ts",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","$TURBO_ROOT$/scripts/read-jsonc.mjs"]},@@ -159,7 +132,7 @@"!README.md","../../oxlint.config.ts","../../lint-plugins/**",- "../../test-support/**",+ "$TURBO_ROOT$/test-support/**","../../.github/scripts/smoke-packaged-dmg.mjs","../../scripts/verify-native-config-in-packaged-dmg.mjs","../../scripts/verify-keyring-in-packaged-dmg.mjs",@@ -170,20 +143,16 @@"../app/postcss.config.ts","../app/*.html","../app/src/**",- "!../app/src/**/*.md"+ "!../app/src/**/*.md",+ "$TURBO_ROOT$/.github/scripts/dmg-mount.mjs"]},"@inkeep/md-conformance#test": {"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.json",- "tests/contract/**/*.ts",- "corpora/**/*.json",- "vitest.config.ts",- "../../test-support/*.ts",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../server/src/**/*.ts","../../oxlint.config.ts","../../lint-plugins/**"@@ -192,39 +161,14 @@"@inkeep/open-knowledge-core#test": {"dependsOn": ["^build"],"cache": true,- "inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.json",- "src/**/*.css",- "tests/contract/**/*.ts",- "scripts/**/*.mjs",- "scripts/**/*.test.ts",- "package.json",- "vitest.config.ts",- "vite.dedupe.ts",- "tests/lingui-macro-shim.tsx",- "tests/integration/idb-preload.ts",- "../../test-support/**"- ]+ "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/test-support/**"]},"test:dom": {"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "tests/dom/**/*.ts",- "tests/dom/**/*.tsx",- "tests/stress/_helpers/**/*.ts",- "tests/*.test-helper.ts",- "tests/integration/test-harness.ts",- "vitest.dom.config.ts",- "vitest.config.ts",- "vite.dedupe.ts",- "tests/lingui-macro-shim.tsx",- "tests/integration/idb-preload.ts",- "../../test-support/*.ts",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../core/src/**/*.ts","../server/src/**/*.ts","../md-conformance/src/**/*.ts",@@ -236,134 +180,76 @@"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.css",- "tests/**/*.ts",- "tests/**/*.tsx",- "tests/meta/**/*.json",- "scripts/**",- "playwright.config.ts",- "vitest.integration.config.ts",- "vitest.config.ts",- "vite.config.ts",- "vite.dedupe.ts",- "vite.react-babel.ts",- "../../test-support/**",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../server/src/**/*.ts","../core/src/**/*.ts","../desktop/tests/**/*.{ts,tsx}","../md-conformance/src/**/*.{ts,tsx,mjs,json,md}",- "tests/lint-plugins/**/*.{mjs,json,md}",- "src/lint-plugins/**/*.{mjs,json,md}",- "../server/src/lint-plugins/**/*.{tsx,mjs,json,md}","../../biome.jsonc","../../lint-plugins/**",- "../../oxlint.config.ts"+ "../../oxlint.config.ts",+ "$TURBO_ROOT$/packages/cli/src/**",+ "$TURBO_ROOT$/packages/cli/package.json"]},"test:integration:shard1": {"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.css",- "tests/**/*.ts",- "tests/**/*.tsx",- "tests/meta/**/*.json",- "scripts/**",- "playwright.config.ts",- "vitest.integration.config.ts",- "vitest.config.ts",- "vite.config.ts",- "vite.dedupe.ts",- "vite.react-babel.ts",- "../../test-support/**",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../server/src/**/*.ts","../core/src/**/*.ts","../desktop/tests/**/*.{ts,tsx}","../md-conformance/src/**/*.{ts,tsx,mjs,json,md}",- "tests/lint-plugins/**/*.{mjs,json,md}",- "src/lint-plugins/**/*.{mjs,json,md}",- "../server/src/lint-plugins/**/*.{tsx,mjs,json,md}","../../biome.jsonc","../../lint-plugins/**",- "../../oxlint.config.ts"+ "../../oxlint.config.ts",+ "$TURBO_ROOT$/packages/cli/src/**",+ "$TURBO_ROOT$/packages/cli/package.json"]},"test:integration:shard2": {"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.css",- "tests/**/*.ts",- "tests/**/*.tsx",- "tests/meta/**/*.json",- "scripts/**",- "playwright.config.ts",- "vitest.integration.config.ts",- "vitest.config.ts",- "vite.config.ts",- "vite.dedupe.ts",- "vite.react-babel.ts",- "../../test-support/**",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../server/src/**/*.ts","../core/src/**/*.ts","../desktop/tests/**/*.{ts,tsx}","../md-conformance/src/**/*.{ts,tsx,mjs,json,md}",- "tests/lint-plugins/**/*.{mjs,json,md}",- "src/lint-plugins/**/*.{mjs,json,md}",- "../server/src/lint-plugins/**/*.{tsx,mjs,json,md}","../../biome.jsonc","../../lint-plugins/**",- "../../oxlint.config.ts"+ "../../oxlint.config.ts",+ "$TURBO_ROOT$/packages/cli/src/**",+ "$TURBO_ROOT$/packages/cli/package.json"]},"test:integration:shard3": {"dependsOn": ["^build"],"cache": true,"inputs": [- "src/**/*.ts",- "src/**/*.tsx",- "src/**/*.css",- "tests/**/*.ts",- "tests/**/*.tsx",- "tests/meta/**/*.json",- "scripts/**",- "playwright.config.ts",- "vitest.integration.config.ts",- "vitest.config.ts",- "vite.config.ts",- "vite.dedupe.ts",- "vite.react-babel.ts",- "../../test-support/**",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../server/src/**/*.ts","../core/src/**/*.ts","../desktop/tests/**/*.{ts,tsx}","../md-conformance/src/**/*.{ts,tsx,mjs,json,md}",- "tests/lint-plugins/**/*.{mjs,json,md}",- "src/lint-plugins/**/*.{mjs,json,md}",- "../server/src/lint-plugins/**/*.{tsx,mjs,json,md}","../../biome.jsonc","../../lint-plugins/**",- "../../oxlint.config.ts"+ "../../oxlint.config.ts",+ "$TURBO_ROOT$/packages/cli/src/**",+ "$TURBO_ROOT$/packages/cli/package.json"]},"test:conversion": {"dependsOn": ["^build"],"cache": true,"inputs": [- "src/editor/**/*.ts",- "src/editor/**/*.tsx",- "tests/conversion/**/*.ts",- "tests/integration/**/*.ts",- "vitest.config.ts",- "vite.dedupe.ts",- "tests/lingui-macro-shim.tsx",- "../../test-support/*.ts",+ "$TURBO_DEFAULT$",+ "$TURBO_ROOT$/test-support/**","../core/src/**/*.ts","../server/src/**/*.ts"]@@ -391,7 +277,7 @@"vite.dedupe.ts","tests/lingui-macro-shim.tsx","tests/integration/idb-preload.ts",- "../../test-support/*.ts",+ "$TURBO_ROOT$/test-support/**","../core/src/**/*.ts"]},@@ -416,12 +302,7 @@"test:perf:regression:unit": {"dependsOn": [],"cache": true,- "inputs": [- "tests/perf/regression-gate.ts",- "tests/perf/regression-gate.test.ts",- "vitest.config.ts",- "../../test-support/*.ts"- ]+ "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/test-support/**"]},"test:perf:regression": {"dependsOn": [],@@ -439,27 +320,12 @@"test:health:unit": {"dependsOn": [],"cache": true,- "inputs": [- "src/metrics/parse-health.ts",- "src/markdown/**/*.ts",- "src/extensions/**/*.ts",- "tests/health/parse-health-gate.ts",- "tests/health/parse-health-gate.test.ts",- "vitest.config.ts",- "../../test-support/*.ts"- ]+ "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/test-support/**"]},"test:health": {"dependsOn": [],"cache": true,- "inputs": [- "src/metrics/parse-health.ts",- "src/markdown/**/*.ts",- "src/extensions/**/*.ts",- "src/markdown/fixtures/**",- "tests/health/parse-health-gate.ts",- "tests/health/baseline.json"- ]+ "inputs": ["$TURBO_DEFAULT$"]},"test:perf:sessions": {"dependsOn": [],