skillar 0.2.1 → 0.3.1

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 (111) hide show
  1. package/NOTICE +280 -0
  2. package/README.md +37 -5
  3. package/dist/analysis/finding.js +8 -190
  4. package/dist/analysis/kernel.js +896 -0
  5. package/dist/analysis/tree.js +7 -154
  6. package/dist/analysis/usage.js +9 -394
  7. package/dist/api/flows.js +42 -212
  8. package/dist/api/report-kernel.js +1063 -0
  9. package/dist/api/routes.js +12 -2
  10. package/dist/catalog/fields.js +138 -146
  11. package/dist/catalog/watcher.js +7 -2
  12. package/dist/cli/init.js +45 -0
  13. package/dist/cli/main.js +76 -3
  14. package/dist/cli/private-skills.js +122 -0
  15. package/dist/cli/serve.js +15 -1
  16. package/dist/cli/sync.js +124 -0
  17. package/dist/dashboard/NOTICE +280 -0
  18. package/dist/dashboard/assets/app.js +737 -275
  19. package/dist/dashboard/assets/astryx-reset.css +407 -0
  20. package/dist/dashboard/assets/astryx.css +1077 -0
  21. package/dist/dashboard/assets/charts.css +54 -0
  22. package/dist/dashboard/assets/chunk-TPGDA2J4.js +1 -0
  23. package/dist/dashboard/assets/chunk-YLWHVDMP.js +36 -0
  24. package/dist/dashboard/assets/controls.css +207 -0
  25. package/dist/dashboard/assets/overlays.css +132 -0
  26. package/dist/dashboard/assets/p1.css +135 -0
  27. package/dist/dashboard/assets/shell.css +71 -0
  28. package/dist/dashboard/assets/skillar-theme.css +692 -0
  29. package/dist/dashboard/assets/styles.css +224 -121
  30. package/dist/dashboard/assets/tokens.css +278 -0
  31. package/dist/dashboard/assets/widgets.css +83 -0
  32. package/dist/dashboard/index.html +11 -2
  33. package/dist/dashboard/viewers/viewers.css +61 -0
  34. package/dist/ingest/attribution.js +5 -1
  35. package/dist/ingest/pipeline.js +2 -0
  36. package/dist/ingest/request-recorder.js +39 -0
  37. package/dist/mcp/dispatch.js +2 -2
  38. package/dist/mcp/http.js +43 -3
  39. package/dist/mcp/skills-extension.js +42 -15
  40. package/dist/mcp/stdio-proxy.js +24 -3
  41. package/dist/mcp/tools.js +38 -24
  42. package/dist/packs/claude-code.js +22 -11
  43. package/dist/packs/cursor.js +9 -4
  44. package/dist/packs/gemini.js +9 -4
  45. package/dist/packs/json-config.js +41 -0
  46. package/dist/packs/omo.js +15 -6
  47. package/dist/request-status.js +81 -0
  48. package/dist/search/fts.js +93 -58
  49. package/dist/search/fusion.js +49 -47
  50. package/dist/search/guidance.js +18 -6
  51. package/dist/search/index.js +291 -70
  52. package/dist/search/lexical.js +71 -63
  53. package/dist/server.js +12 -0
  54. package/dist/skills/apply.js +130 -0
  55. package/dist/skills/capture.js +54 -0
  56. package/dist/skills/cloud-plan.js +57 -0
  57. package/dist/skills/cloud.js +81 -0
  58. package/dist/skills/fs.js +133 -0
  59. package/dist/skills/package.js +734 -0
  60. package/dist/skills/plan.js +83 -0
  61. package/dist/skills/receipt.js +44 -0
  62. package/dist/skills/rollback.js +119 -0
  63. package/dist/skills/transfer.js +51 -0
  64. package/dist/store/db.js +7 -1
  65. package/dist/store/execution.js +2 -34
  66. package/dist/store/export.js +25 -4
  67. package/dist/store/migrations/007_sync.sql +49 -0
  68. package/dist/store/migrations/008_connector_commands.sql +12 -0
  69. package/dist/store/queries.js +33 -7
  70. package/dist/store/writes.js +38 -5
  71. package/dist/sync/cloud-blobs.js +175 -0
  72. package/dist/sync/cloud-commands.js +101 -0
  73. package/dist/sync/cloud-connection.js +105 -0
  74. package/dist/sync/cloud-delivery.js +114 -0
  75. package/dist/sync/cloud-documents.js +103 -0
  76. package/dist/sync/cloud-export.js +67 -0
  77. package/dist/sync/cloud-http.js +150 -0
  78. package/dist/sync/cloud-jobs.js +94 -0
  79. package/dist/sync/cloud-pending.js +143 -0
  80. package/dist/sync/cloud-prepare.js +101 -0
  81. package/dist/sync/cloud-restore.js +136 -0
  82. package/dist/sync/cloud-rollback.js +24 -0
  83. package/dist/sync/cloud-runner.js +86 -0
  84. package/dist/sync/cloud-runtime.js +293 -0
  85. package/dist/sync/cloud-schema.js +32 -0
  86. package/dist/sync/cloud-stage.js +112 -0
  87. package/dist/sync/cloud-wire.js +693 -0
  88. package/dist/sync/cloud-worker.js +57 -0
  89. package/dist/sync/cloud.js +157 -0
  90. package/dist/sync/command-apply.js +140 -0
  91. package/dist/sync/command-control.js +25 -0
  92. package/dist/sync/command-wire.js +437 -0
  93. package/dist/sync/consent.js +130 -0
  94. package/dist/sync/journal.js +43 -0
  95. package/dist/sync/outbox.js +134 -0
  96. package/dist/sync/restore-rows.js +125 -0
  97. package/dist/sync/restore.js +174 -0
  98. package/dist/sync/snapshot.js +78 -0
  99. package/dist/sync/spool-request.js +103 -0
  100. package/dist/sync/tables.js +27 -0
  101. package/dist/sync/triggers.js +34 -0
  102. package/dist/workflow/compare.js +3 -43
  103. package/docs/cloud-sync.md +94 -0
  104. package/docs/private-skills.md +75 -0
  105. package/docs/sync-p4.md +102 -0
  106. package/docs/sync-restore.md +167 -0
  107. package/package.json +18 -5
  108. package/src/store/migrations/007_sync.sql +49 -0
  109. package/src/store/migrations/008_connector_commands.sql +12 -0
  110. package/dist/dashboard/assets/chunk-5DFWNJC2.js +0 -1
  111. package/dist/dashboard/assets/chunk-S6B2HJQA.js +0 -17
@@ -0,0 +1,122 @@
1
+ import { join } from "node:path";
2
+ import { randomUUID } from "node:crypto";
3
+ import { resolveSkillarHome } from "../config.js";
4
+ import { applySkill } from "../skills/apply.js";
5
+ import { previewSkill } from "../skills/plan.js";
6
+ import { rollbackSkill } from "../skills/rollback.js";
7
+ import { previewPrivatePublication } from "../skills/cloud-plan.js";
8
+ import { pullPrivateSkill, pushPrivateSkill } from "../skills/transfer.js";
9
+ import { ensurePrivateSkillAccess } from "../skills/cloud.js";
10
+ class SkillsUsageError extends Error {
11
+ code = "usage";
12
+ }
13
+ function options(args, names, flags = [], optional = []) {
14
+ const values = new Map();
15
+ for (let index = 0; index < args.length; index++) {
16
+ const arg = args[index];
17
+ if (arg === undefined || values.has(arg))
18
+ throw new SkillsUsageError("duplicate option");
19
+ if (flags.includes(arg)) {
20
+ values.set(arg, "true");
21
+ continue;
22
+ }
23
+ if (!names.includes(arg) && !optional.includes(arg))
24
+ throw new SkillsUsageError(`unexpected argument ${arg}`);
25
+ const value = args[++index];
26
+ if (value === undefined || value === "" || value.startsWith("--"))
27
+ throw new SkillsUsageError(`${arg} needs a value`);
28
+ values.set(arg, value);
29
+ }
30
+ for (const name of names)
31
+ if (!values.has(name))
32
+ throw new SkillsUsageError(`missing ${name}`);
33
+ return values;
34
+ }
35
+ function required(values, name) {
36
+ const value = values.get(name);
37
+ if (value === undefined)
38
+ throw new SkillsUsageError(`missing ${name}`);
39
+ return value;
40
+ }
41
+ /** Local apply and explicit private transfer are separate commands and acknowledgements. */
42
+ export async function runPrivateSkills(args, io, env = process.env) {
43
+ const [command, ...rest] = args;
44
+ try {
45
+ switch (command) {
46
+ case "push-preview": {
47
+ const values = options(rest, ["--source-dir", "--plan"], [], ["--skill-id"]);
48
+ const home = resolveSkillarHome(env);
49
+ // Preview reads the current head, so the same one browser approval that
50
+ // later publishes covers it — ask once, before any cloud call.
51
+ await ensurePrivateSkillAccess(home, { write: true, io, env });
52
+ const plan = await previewPrivatePublication(home, {
53
+ sourceRoot: required(values, "--source-dir"), planPath: required(values, "--plan"),
54
+ skillId: values.get("--skill-id") ?? randomUUID(),
55
+ });
56
+ io.out(JSON.stringify({
57
+ status: "publication-preview", skillId: plan.skillId, base: plan.base, plan: required(values, "--plan"),
58
+ manifestDigest: plan.package.manifestDigest, resources: plan.package.manifest.resources,
59
+ }) + "\n");
60
+ return 0;
61
+ }
62
+ case "push": {
63
+ const values = options(rest, ["--plan"], ["--allow-private-upload"]);
64
+ const home = resolveSkillarHome(env);
65
+ // Missing connection or skills scopes: one browser approval, then the
66
+ // publish continues — no grant file, no path pasting.
67
+ await ensurePrivateSkillAccess(home, { write: true, io, env });
68
+ const result = await pushPrivateSkill(home, required(values, "--plan"), values.has("--allow-private-upload"));
69
+ io.out(JSON.stringify(result) + "\n");
70
+ return 0;
71
+ }
72
+ case "pull": {
73
+ const values = options(rest, ["--skill-id", "--output"], [], ["--version"]);
74
+ const version = values.get("--version");
75
+ const home = resolveSkillarHome(env);
76
+ await ensurePrivateSkillAccess(home, { write: false, io, env });
77
+ io.out(JSON.stringify(await pullPrivateSkill(home, {
78
+ skillId: required(values, "--skill-id"), outputPath: required(values, "--output"),
79
+ ...(version === undefined ? {} : { digest: version }),
80
+ })) + "\n");
81
+ return 0;
82
+ }
83
+ case "preview": {
84
+ const values = options(rest, ["--package", "--destination-root", "--plan"], ["--allow-overwrite"]);
85
+ const plan = await previewSkill({
86
+ packagePath: required(values, "--package"), destinationRoot: required(values, "--destination-root"),
87
+ planPath: required(values, "--plan"), allowOverwrite: values.has("--allow-overwrite"),
88
+ });
89
+ io.out(JSON.stringify({
90
+ status: "preview", root: plan.root, plan: required(values, "--plan"),
91
+ digest: plan.exported.package.manifestDigest,
92
+ files: plan.files.map((file, index) => ({
93
+ path: join(plan.root, file.path), action: file.before === null ? "create" : "overwrite",
94
+ beforeDigest: file.before?.digest ?? null,
95
+ afterDigest: plan.exported.package.manifest.resources[index]?.digest,
96
+ })),
97
+ }) + "\n");
98
+ return 0;
99
+ }
100
+ case "apply": {
101
+ const values = options(rest, ["--plan"]);
102
+ const report = await applySkill(required(values, "--plan"));
103
+ io.out(JSON.stringify(report) + "\n");
104
+ return report.status === "applied" ? 0 : 1;
105
+ }
106
+ case "rollback": {
107
+ const values = options(rest, ["--receipt"]);
108
+ const report = await rollbackSkill(required(values, "--receipt"));
109
+ io.out(JSON.stringify(report) + "\n");
110
+ return report.status === "rolled_back" ? 0 : 1;
111
+ }
112
+ default: throw new SkillsUsageError("skills needs push-preview, push, pull, preview, apply, or rollback");
113
+ }
114
+ }
115
+ catch (error) {
116
+ if (error instanceof SkillsUsageError) {
117
+ io.err(`usage: ${error.message}\n`);
118
+ return 2;
119
+ }
120
+ throw error;
121
+ }
122
+ }
package/dist/cli/serve.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from "node:child_process";
2
- import { existsSync, readFileSync, realpathSync } from "node:fs";
2
+ import { existsSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { dbPath, loadConfig, resolveSkillarHome, resolveHome } from "../config.js";
@@ -29,9 +29,20 @@ export async function runServe(opts, env, io) {
29
29
  const deps = makeCliDeps(env);
30
30
  const config = opts.port === undefined ? deps.config : { ...deps.config, port: opts.port };
31
31
  const server = await startServer(config, { skillarHome: deps.skillarHome, openStore: deps.openStore });
32
+ // Persist an explicit --port once the server is actually listening, so
33
+ // `skillar open --print` and doctor target the port the daemon runs on.
34
+ if (opts.port !== undefined && opts.port !== deps.config.port) {
35
+ writeConfigPort(deps.skillarHome, opts.port);
36
+ }
32
37
  io.err(`skillar listening on http://127.0.0.1:${server.port}\n`);
33
38
  return 0;
34
39
  }
40
+ /** Merges a port into the existing config file, preserving every other key. */
41
+ export function writeConfigPort(skillarHome, port) {
42
+ const path = join(skillarHome, "config.json");
43
+ const current = JSON.parse(readFileSync(path, "utf8"));
44
+ writeFileSync(path, JSON.stringify({ ...current, port }, null, 2) + "\n", { mode: 0o600 });
45
+ }
35
46
  const xml = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
36
47
  const unitQuote = (s) => `"${s.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
37
48
  export function serviceLabel(home, platform) {
@@ -62,6 +73,8 @@ ${args}
62
73
  </array>
63
74
  <key>EnvironmentVariables</key>
64
75
  <dict>
76
+ <key>HOME</key>
77
+ <string>${xml(ctx.home)}</string>
65
78
  <key>SKILLAR_HOME</key>
66
79
  <string>${xml(ctx.skillarHome)}</string>
67
80
  </dict>
@@ -84,6 +97,7 @@ Description=skillar local skill router
84
97
 
85
98
  [Service]
86
99
  ExecStart=${unitQuote(ctx.nodePath)} ${unitQuote(join(ctx.packageRoot, "dist", "cli", "main.js"))} serve
100
+ Environment=${unitQuote(`HOME=${ctx.home}`)}
87
101
  Environment=${unitQuote(`SKILLAR_HOME=${ctx.skillarHome}`)}
88
102
  Restart=always
89
103
  StandardOutput=append:${log}
@@ -0,0 +1,124 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { parseArgs } from "node:util";
3
+ import { dbPath, resolveSkillarHome } from "../config.js";
4
+ import { connectCloud, disconnectCloud, readConnection } from "../sync/cloud-connection.js";
5
+ import { connectCloudDeviceFlow, consentReviewNotice, markConsentNoticed } from "../sync/cloud-pending.js";
6
+ import { prepareCloudSnapshot } from "../sync/cloud-prepare.js";
7
+ import { rollbackCloud } from "../sync/cloud-rollback.js";
8
+ import { restoreCloud } from "../sync/cloud-restore.js";
9
+ import { cloudStatus, pauseCloud, runCloudStep } from "../sync/cloud.js";
10
+ import { approveSourceCommands, sourceCommandsEnabled } from "../sync/command-control.js";
11
+ export async function runSync(argv, env, io) {
12
+ const [command, ...args] = argv;
13
+ const home = resolveSkillarHome(env), source = dbPath(home);
14
+ const out = (value) => io.out(JSON.stringify(value) + "\n");
15
+ switch (command) {
16
+ case "connect": {
17
+ const { values } = parseArgs({ args, options: {
18
+ "grant-file": { type: "string" }, origin: { type: "string", default: "https://skillar.sh" },
19
+ upload: { type: "boolean", default: false }, "no-upload": { type: "boolean", default: false },
20
+ "no-open": { type: "boolean", default: false },
21
+ } });
22
+ if (values.upload && values["no-upload"])
23
+ throw new Error("sync connect takes only one of --upload or --no-upload");
24
+ if (values["grant-file"] !== undefined) {
25
+ const connected = await connectCloud(home, {
26
+ origin: values.origin, grant: readFileSync(values["grant-file"], "utf8").trim(),
27
+ });
28
+ markConsentNoticed(home, connected.deviceId);
29
+ out(connected);
30
+ return 0;
31
+ }
32
+ // Browser-approval flow; --upload/--no-upload are terminal guidance only.
33
+ out(await connectCloudDeviceFlow(home, {
34
+ origin: values.origin, uploadIntent: values.upload, open: !values["no-open"], env, io,
35
+ }));
36
+ return 0;
37
+ }
38
+ case "status": {
39
+ parseArgs({ args, options: {} });
40
+ const connection = readConnection(home);
41
+ if (connection !== null) {
42
+ const notice = consentReviewNotice(home, connection);
43
+ if (notice !== null)
44
+ io.out(`이 기기의 업로드 동의는 웹에서 관리합니다(기본은 로컬 전용): ${notice}
45
+ `);
46
+ }
47
+ out({
48
+ connected: connection !== null,
49
+ deviceId: connection?.deviceId ?? null,
50
+ commandsEnabled: sourceCommandsEnabled(home),
51
+ progress: cloudStatus(home),
52
+ });
53
+ return 0;
54
+ }
55
+ case "commands": {
56
+ const { values } = parseArgs({ args, options: {
57
+ enable: { type: "boolean", default: false }, disable: { type: "boolean", default: false },
58
+ } });
59
+ if (values.enable === values.disable)
60
+ throw new Error("sync commands needs exactly one of --enable or --disable");
61
+ approveSourceCommands(home, values.enable);
62
+ out({ commandsEnabled: sourceCommandsEnabled(home) });
63
+ return 0;
64
+ }
65
+ case "prepare":
66
+ parseArgs({ args, options: {} });
67
+ out(await prepareCloudSnapshot(home, source));
68
+ return 0;
69
+ case "run":
70
+ case "backfill": {
71
+ const { values } = parseArgs({ args, options: {
72
+ resume: { type: "boolean", default: false },
73
+ } });
74
+ {
75
+ const connection = readConnection(home);
76
+ if (connection !== null) {
77
+ const notice = consentReviewNotice(home, connection);
78
+ if (notice !== null)
79
+ io.out(`이 기기의 업로드 동의는 웹에서 관리합니다(기본은 로컬 전용): ${notice}
80
+ `);
81
+ }
82
+ }
83
+ out(await runCloudStep(home, source, {
84
+ resume: values.resume, backfill: command === "backfill",
85
+ }));
86
+ return 0;
87
+ }
88
+ case "rollback":
89
+ parseArgs({ args, options: {} });
90
+ out(await rollbackCloud(home));
91
+ return 0;
92
+ case "restore": {
93
+ const { values } = parseArgs({ args, options: {
94
+ destination: { type: "string" }, "source-domain": { type: "string" },
95
+ "snapshot-id": { type: "string" },
96
+ } });
97
+ const connection = readConnection(home);
98
+ if (connection === null)
99
+ throw new Error("not_connected");
100
+ if (values.destination === undefined || values["source-domain"] === undefined ||
101
+ values["snapshot-id"] === undefined) {
102
+ throw new Error("sync restore needs --destination, --source-domain, and --snapshot-id");
103
+ }
104
+ out(await restoreCloud(home, values.destination, {
105
+ deviceId: connection.deviceId, generation: connection.generation,
106
+ sourceDomain: values["source-domain"], snapshotId: values["snapshot-id"],
107
+ }));
108
+ return 0;
109
+ }
110
+ case "pause":
111
+ parseArgs({ args, options: {} });
112
+ pauseCloud(home);
113
+ out({ paused: true });
114
+ return 0;
115
+ case "disconnect":
116
+ parseArgs({ args, options: {} });
117
+ pauseCloud(home);
118
+ disconnectCloud(home);
119
+ out({ connected: false });
120
+ return 0;
121
+ default:
122
+ throw new Error("sync needs connect, status, commands, prepare, run, backfill, restore, pause, rollback, or disconnect");
123
+ }
124
+ }
@@ -0,0 +1,280 @@
1
+ Skillar third-party notices
2
+ ==========================
3
+
4
+ PR-8 viewers and P1 controls
5
+ ---------------------------
6
+ Langfuse MIT source SHA: 69181812b87169df157841fce1314ec96ecd2c5a.
7
+ References: web/src/components/ui/{textarea,Toaster,MarkdownView,MarkdownViewContent}.tsx,
8
+ web/src/components/design-system/{Avatar,Radio,Switch,Spinner,Codeblock,SyntaxHighlight,DateRangeInput,MultiSelectInput}/,
9
+ web/src/components/{DiffViewer.tsx,ui/TimePeriodSelect.tsx}.
10
+ Destinations: local/dashboard/foundation/{viewers,controls}/ and the matching
11
+ site consumers. Preact reimplementation; no Langfuse React or enterprise code
12
+ is shipped. Original Langfuse MIT permission notice below applies.
13
+
14
+ PrismJS 1.30.0: https://github.com/PrismJS/prism
15
+ Copyright (c) 2012 Lea Verou. Tokenizer and bundled language grammars only;
16
+ automatic DOM highlighting is disabled. No Prism HTML output is inserted.
17
+
18
+ Sonner 2.0.7: https://github.com/emilkowalski/sonner
19
+ Copyright (c) 2023 Emil Kowalski. Status SVG paths and loading-bar mechanism
20
+ used in controls/toast-icon.tsx; Sonner/React itself is not a product dependency.
21
+
22
+ MIT License (PrismJS and Sonner)
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy
25
+ of this software and associated documentation files (the "Software"), to deal
26
+ in the Software without restriction, including without limitation the rights
27
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
+ copies of the Software, and to permit persons to whom the Software is
29
+ furnished to do so, subject to the following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included in
32
+ all copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
40
+ THE SOFTWARE.
41
+
42
+ Lucide control icon paths (lucide-react 0.552.0)
43
+ ----------------------------------------------
44
+ Source: https://github.com/lucide-icons/lucide, icons check, x, search, copy,
45
+ chevron-down, minus, external-link and loader-circle. Reimplemented as Preact SVG paths in
46
+ local/dashboard/foundation/controls/icons.tsx; no React dependency is shipped.
47
+ Copyright (c) Lucide Contributors 2025. Portions derived from Feather:
48
+ Copyright (c) 2013-2023 Cole Bemis (MIT; permission text below also applies).
49
+
50
+ ISC License
51
+ Permission to use, copy, modify, and/or distribute this software for any
52
+ purpose with or without fee is hereby granted, provided that the above
53
+ copyright notice and this permission notice appear in all copies.
54
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
55
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
56
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
57
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
58
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
59
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
60
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
61
+
62
+ Langfuse semantic theme tokens
63
+ -----------------------------
64
+ PR-4 reimplements table anatomy from these MIT files at the pinned commit below:
65
+ web/src/components/table/{data-table,data-table-row-height-switch,
66
+ DataTableColumnVisibilityFilter,DataTablePagination,data-table-toolbar,
67
+ data-table-controls,FacetHeader,ColumnVisibilityHeader}.tsx,
68
+ web/src/components/ui/table.tsx.
69
+ Destination: local/dashboard/foundation/table/. Current public Demo v4.77.0
70
+ supplies measured paint. Native Preact tables and PR-1/PR-2 controls own behavior;
71
+ no React, TanStack, Radix or cmdk runtime is included. The rows-3 icon is a
72
+ Lucide path, under the ISC notice above.
73
+
74
+ PR-5 reimplements MIT widget anatomy at the pinned commit below:
75
+ web/src/components/ui/card.tsx,
76
+ web/src/features/widgets/chart-library/BigNumber.tsx,
77
+ web/src/components/design-system/charts/{BarChart/BarChart,LineChart/LineChart,HistogramChart/HistogramChart}.tsx,
78
+ web/src/components/design-system/internal/charts/{BarChartCore,SeriesChartCore,ChartTooltip}.tsx,
79
+ web/src/features/topics/TopicsEmptyState.tsx,
80
+ web/src/components/design-system/{Alert/Alert,Callout/Callout,StatusMessage/StatusMessage}.tsx.
81
+ Destination: local/dashboard/foundation/widgets/.
82
+ Charts retain Skillar's zero-baseline and missing-data semantics, with native
83
+ data-table alternatives and Preact keyboard interactions. Reference-only React
84
+ renderers are external evidence and are not shipped.
85
+
86
+ Shell anatomy is reimplemented from MIT files at the pinned commit below:
87
+ web/src/components/design-system/Tabs/Tabs.tsx,
88
+ web/src/components/ui/{sidebar,breadcrumb,command}.tsx,
89
+ web/src/components/layouts/page-header.tsx.
90
+ Destination: local/dashboard/foundation/shell/ and site/src/shell.css.
91
+ Preact, native dialogs and anchors own behavior. No React, Radix or cmdk
92
+ runtime is imported; owner target sizes and WAI-ARIA behavior override upstream.
93
+
94
+ PR-2 reimplements MIT overlay visual anatomy from this same commit:
95
+ web/src/components/design-system/Dialog/Dialog.tsx,
96
+ web/src/components/ui/{dialog,alert-dialog,sheet,dropdown-menu}.tsx.
97
+ Follow-up measurements also use
98
+ web/src/components/design-system/DropdownMenu/DropdownMenu.tsx and
99
+ web/src/components/design-system/ConfirmationDialogController/ConfirmationDialogController.tsx.
100
+ Confirm state anatomy also uses web/src/components/ui/ConfirmDialog.tsx and
101
+ web/src/components/design-system/Alert/Alert.tsx at the same pinned commit.
102
+ Approved unavailable-state measurements additionally use actual
103
+ web/src/components/design-system/ControlledDropdownMenu/ControlledDropdownMenu.tsx,
104
+ web/src/components/table/peek.tsx,
105
+ web/src/components/ObservabilityEntityDetailHeader/ObservabilityEntityDetailHeader.tsx,
106
+ and web/src/features/events/components/MobileFiltersSheet.tsx.
107
+ Destination: local/dashboard/foundation/overlays/, site/src/ui/ui.css and
108
+ local/dashboard/components/console-style.ts. Native dialog/popover and Preact
109
+ own behavior; no React, Radix or Floating UI code is imported.
110
+
111
+ PR-1 also reimplements the anatomy/variants of these MIT files at the same SHA:
112
+ web/src/components/design-system/{Button/Button,IconButton/IconButton,
113
+ Badge/Badge,Tag/Tag,Input/Input,SearchInput/SearchInput,SelectInput/SelectInput,
114
+ Checkbox/Checkbox,TextLink/TextLink,KeyboardShortcut/KeyboardShortcut,Spinner/Spinner}.tsx,
115
+ web/src/components/design-system/internal/InputControl/InputControl.tsx,
116
+ web/src/components/ui/{StatusBadge/StatusBadge,skeleton}.tsx.
117
+ Destination: local/dashboard/foundation/controls/. React, Radix and cmdk
118
+ implementations are not included; native Preact controls own behavior.
119
+ The unmodified pinned MIT React reference renderer is external-only and is not shipped.
120
+ Additional Tailwind palette values: red-50/100/800 and yellow-50/100/800.
121
+
122
+ Source: https://github.com/langfuse/langfuse
123
+ Commit: 69181812b87169df157841fce1314ec96ecd2c5a
124
+ Copied file: web/src/styles/globals.css (semantic colors, category colors,
125
+ type roles and radii). Destination: local/dashboard/foundation/tokens.css.
126
+ Changes: --lf- namespace, full CSS color values, light-dark() and html[data-theme]
127
+ integration, pixel metrics, no Tailwind utilities or resets. Control height
128
+ 32px desktop / 44px touch is Skillar policy, not an upstream guarantee.
129
+ No ee/, web/src/ee/, worker/src/ee/, packages/shared/src/server/ee/, React,
130
+ Radix, cmdk, logos or customer data were copied.
131
+
132
+ Copyright (c) 2023-2026 ClickHouse, Inc.
133
+ MIT Expat License
134
+
135
+ Permission is hereby granted, free of charge, to any person obtaining a copy
136
+ of this software and associated documentation files (the "Software"), to deal
137
+ in the Software without restriction, including without limitation the rights
138
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
139
+ copies of the Software, and to permit persons to whom the Software is
140
+ furnished to do so, subject to the following conditions:
141
+
142
+ The above copyright notice and this permission notice shall be included in all
143
+ copies or substantial portions of the Software.
144
+
145
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
146
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
147
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
148
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
149
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
150
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
151
+ SOFTWARE.
152
+
153
+ Tailwind CSS palette constants
154
+ -----------------------------
155
+ Source: https://github.com/tailwindlabs/tailwindcss/tree/v4.2.2
156
+ Copied file: packages/tailwindcss/theme.css (green-800, blue-800, orange-800,
157
+ gray-500, gray-400 only). These resolve the Langfuse JSON token references;
158
+ no Tailwind runtime, preflight, utilities or framework dependency is included.
159
+ Changes: values inlined into --lf-json-value-* light/dark colors.
160
+
161
+ Copyright (c) Tailwind Labs, Inc.
162
+ MIT License
163
+
164
+ Permission is hereby granted, free of charge, to any person obtaining a copy
165
+ of this software and associated documentation files (the "Software"), to deal
166
+ in the Software without restriction, including without limitation the rights
167
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
168
+ copies of the Software, and to permit persons to whom the Software is
169
+ furnished to do so, subject to the following conditions:
170
+
171
+ The above copyright notice and this permission notice shall be included in all
172
+ copies or substantial portions of the Software.
173
+
174
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
175
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
176
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
177
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
178
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
179
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
180
+ SOFTWARE.
181
+
182
+ IBM Plex Mono Regular
183
+ ---------------------
184
+ Source: https://static-jp.langfuse.com/_next/static/media/IBMPlexMono_Regular-s.p.3hmq2kbtvhp_o.woff2
185
+ Unmodified font embedded in foundation/tokens.css under the CSS family plexMono.
186
+ License source: https://github.com/IBM/plex/blob/master/LICENSE.txt
187
+
188
+ Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
189
+
190
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
191
+
192
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
193
+
194
+
195
+ -----------------------------------------------------------
196
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
197
+ -----------------------------------------------------------
198
+
199
+ PREAMBLE
200
+ The goals of the Open Font License (OFL) are to stimulate worldwide
201
+ development of collaborative font projects, to support the font creation
202
+ efforts of academic and linguistic communities, and to provide a free and
203
+ open framework in which fonts may be shared and improved in partnership
204
+ with others.
205
+
206
+ The OFL allows the licensed fonts to be used, studied, modified and
207
+ redistributed freely as long as they are not sold by themselves. The
208
+ fonts, including any derivative works, can be bundled, embedded,
209
+ redistributed and/or sold with any software provided that any reserved
210
+ names are not used by derivative works. The fonts and derivatives,
211
+ however, cannot be released under any other type of license. The
212
+ requirement for fonts to remain under this license does not apply
213
+ to any document created using the fonts or their derivatives.
214
+
215
+ DEFINITIONS
216
+ "Font Software" refers to the set of files released by the Copyright
217
+ Holder(s) under this license and clearly marked as such. This may
218
+ include source files, build scripts and documentation.
219
+
220
+ "Reserved Font Name" refers to any names specified as such after the
221
+ copyright statement(s).
222
+
223
+ "Original Version" refers to the collection of Font Software components as
224
+ distributed by the Copyright Holder(s).
225
+
226
+ "Modified Version" refers to any derivative made by adding to, deleting,
227
+ or substituting -- in part or in whole -- any of the components of the
228
+ Original Version, by changing formats or by porting the Font Software to a
229
+ new environment.
230
+
231
+ "Author" refers to any designer, engineer, programmer, technical
232
+ writer or other person who contributed to the Font Software.
233
+
234
+ PERMISSION & CONDITIONS
235
+ Permission is hereby granted, free of charge, to any person obtaining
236
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
237
+ redistribute, and sell modified and unmodified copies of the Font
238
+ Software, subject to the following conditions:
239
+
240
+ 1) Neither the Font Software nor any of its individual components,
241
+ in Original or Modified Versions, may be sold by itself.
242
+
243
+ 2) Original or Modified Versions of the Font Software may be bundled,
244
+ redistributed and/or sold with any software, provided that each copy
245
+ contains the above copyright notice and this license. These can be
246
+ included either as stand-alone text files, human-readable headers or
247
+ in the appropriate machine-readable metadata fields within text or
248
+ binary files as long as those fields can be easily viewed by the user.
249
+
250
+ 3) No Modified Version of the Font Software may use the Reserved Font
251
+ Name(s) unless explicit written permission is granted by the corresponding
252
+ Copyright Holder. This restriction only applies to the primary font name as
253
+ presented to the users.
254
+
255
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
256
+ Software shall not be used to promote, endorse or advertise any
257
+ Modified Version, except to acknowledge the contribution(s) of the
258
+ Copyright Holder(s) and the Author(s) or with their explicit written
259
+ permission.
260
+
261
+ 5) The Font Software, modified or unmodified, in part or in whole,
262
+ must be distributed entirely under this license, and must not be
263
+ distributed under any other license. The requirement for fonts to
264
+ remain under this license does not apply to any document created
265
+ using the Font Software.
266
+
267
+ TERMINATION
268
+ This license becomes null and void if any of the above conditions are
269
+ not met.
270
+
271
+ DISCLAIMER
272
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
273
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
274
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
275
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
276
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
277
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
278
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
279
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
280
+ OTHER DEALINGS IN THE FONT SOFTWARE.