proofdeck 0.0.0-stage → 0.1.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.
- package/LICENSE +201 -0
- package/NOTICE +23 -0
- package/README.md +152 -2
- package/README.zh-CN.md +152 -0
- package/bin/proofdeck.js +191 -0
- package/board/LICENSE +201 -0
- package/board/README.md +473 -0
- package/board/README.zh-CN.md +424 -0
- package/board/dist/_chk.db-shm +0 -0
- package/board/dist/_chk.db-wal +0 -0
- package/board/dist/adapters.d.ts +40 -0
- package/board/dist/adapters.d.ts.map +1 -0
- package/board/dist/adapters.js +124 -0
- package/board/dist/adapters.js.map +1 -0
- package/board/dist/board.d.ts +628 -0
- package/board/dist/board.d.ts.map +1 -0
- package/board/dist/board.js +2767 -0
- package/board/dist/board.js.map +1 -0
- package/board/dist/cli.d.ts +3 -0
- package/board/dist/cli.d.ts.map +1 -0
- package/board/dist/cli.js +1663 -0
- package/board/dist/cli.js.map +1 -0
- package/board/dist/config.d.ts +57 -0
- package/board/dist/config.d.ts.map +1 -0
- package/board/dist/config.js +99 -0
- package/board/dist/config.js.map +1 -0
- package/board/dist/db.d.ts +9 -0
- package/board/dist/db.d.ts.map +1 -0
- package/board/dist/db.js +506 -0
- package/board/dist/db.js.map +1 -0
- package/board/dist/git.d.ts +35 -0
- package/board/dist/git.d.ts.map +1 -0
- package/board/dist/git.js +147 -0
- package/board/dist/git.js.map +1 -0
- package/board/dist/index.d.ts +18 -0
- package/board/dist/index.d.ts.map +1 -0
- package/board/dist/index.js +13 -0
- package/board/dist/index.js.map +1 -0
- package/board/dist/mcp-config.d.ts +26 -0
- package/board/dist/mcp-config.d.ts.map +1 -0
- package/board/dist/mcp-config.js +88 -0
- package/board/dist/mcp-config.js.map +1 -0
- package/board/dist/mcp.d.ts +3 -0
- package/board/dist/mcp.d.ts.map +1 -0
- package/board/dist/mcp.js +949 -0
- package/board/dist/mcp.js.map +1 -0
- package/board/dist/quickstart.d.ts +75 -0
- package/board/dist/quickstart.d.ts.map +1 -0
- package/board/dist/quickstart.js +156 -0
- package/board/dist/quickstart.js.map +1 -0
- package/board/dist/serve.d.ts +10 -0
- package/board/dist/serve.d.ts.map +1 -0
- package/board/dist/serve.js +445 -0
- package/board/dist/serve.js.map +1 -0
- package/board/dist/signing.d.ts +18 -0
- package/board/dist/signing.d.ts.map +1 -0
- package/board/dist/signing.js +26 -0
- package/board/dist/signing.js.map +1 -0
- package/board/dist/sync.d.ts +49 -0
- package/board/dist/sync.d.ts.map +1 -0
- package/board/dist/sync.js +158 -0
- package/board/dist/sync.js.map +1 -0
- package/board/dist/types.d.ts +359 -0
- package/board/dist/types.d.ts.map +1 -0
- package/board/dist/types.js +20 -0
- package/board/dist/types.js.map +1 -0
- package/board/docs/adr/0001-shared-worktree-collision.md +102 -0
- package/board/docs/adr/0001-shared-worktree-collision.zh-CN.md +90 -0
- package/board/docs/attribution.md +123 -0
- package/board/docs/attribution.zh-CN.md +104 -0
- package/board/docs/development-workflow.md +81 -0
- package/board/docs/development-workflow.zh-CN.md +75 -0
- package/board/docs/diagrams/banner.png +0 -0
- package/board/docs/diagrams/banner.svg +1 -0
- package/board/docs/diagrams/before-after.png +0 -0
- package/board/docs/diagrams/before-after.svg +1 -0
- package/board/docs/diagrams/governance-chain.png +0 -0
- package/board/docs/diagrams/governance-chain.svg +1 -0
- package/board/docs/diagrams/value-flow.png +0 -0
- package/board/docs/diagrams/value-flow.svg +1 -0
- package/board/docs/entry-point.md +81 -0
- package/board/docs/entry-point.zh-CN.md +65 -0
- package/board/docs/kanban.png +0 -0
- package/board/docs/octoryn-mark.png +0 -0
- package/board/docs/registry-metadata.md +34 -0
- package/board/docs/registry-metadata.zh-CN.md +30 -0
- package/board/package.json +87 -0
- package/config.example.json +72 -0
- package/daemon.js +1148 -0
- package/docs/assets/demo.gif +0 -0
- package/docs/assets/logo-512.png +0 -0
- package/docs/assets/logo.svg +31 -0
- package/docs/assets/social-preview.png +0 -0
- package/docs/demo-run.mjs +61 -0
- package/docs/render-demo.py +94 -0
- package/docs/render-logo.py +101 -0
- package/docs/task-book.md +58 -0
- package/e2e/verify-acceptance.mjs +150 -0
- package/e2e/verify-antifraud.mjs +128 -0
- package/e2e/verify-caps.mjs +46 -0
- package/e2e/verify-checkpoint.mjs +208 -0
- package/e2e/verify-firstclass.mjs +110 -0
- package/e2e/verify-judge.mjs +52 -0
- package/e2e/verify-lease.mjs +95 -0
- package/e2e/verify-replay.mjs +92 -0
- package/e2e/verify-resilience.mjs +323 -0
- package/e2e/verify-review.mjs +86 -0
- package/e2e/verify-scheduling.mjs +110 -0
- package/e2e/verify-schema-evolution.mjs +107 -0
- package/e2e/verify-sla-digest.mjs +105 -0
- package/guard.js +97 -0
- package/lib/adapters/codex.js +206 -0
- package/lib/billing-convert.js +57 -0
- package/lib/board.js +46 -0
- package/lib/caps.js +35 -0
- package/lib/checkpoint.js +130 -0
- package/lib/gating.js +218 -0
- package/lib/guard-core.mjs +108 -0
- package/lib/http.js +161 -0
- package/lib/judge.js +89 -0
- package/lib/lease.js +93 -0
- package/lib/notify.js +56 -0
- package/lib/platform.js +120 -0
- package/lib/replay.js +68 -0
- package/lib/review.js +40 -0
- package/lib/runner.js +152 -0
- package/lib/schedule.js +59 -0
- package/lib/sla.js +42 -0
- package/lib/spans.js +36 -0
- package/lib/starve.js +43 -0
- package/lib/store.js +109 -0
- package/lib/supply.js +101 -0
- package/lib/usage.js +103 -0
- package/lib/verify.js +223 -0
- package/lib/watchdog-core.mjs +68 -0
- package/lib/watchdog-worker.mjs +75 -0
- package/package.json +55 -4
- package/scripts/run-daemon.sh +18 -0
- package/scripts/run-e2e.mjs +39 -0
package/bin/proofdeck.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// ProofDeck CLI — v0.1: init / daemon / status.
|
|
3
|
+
//
|
|
4
|
+
// init scaffold a project dir (daemon.config.json, .proofdeck board dir,
|
|
5
|
+
// control.token, workdirs/) and print the next steps
|
|
6
|
+
// daemon run the orchestration daemon against the current project dir
|
|
7
|
+
// (PROOFDECK_BASE=cwd; config from ./daemon.config.json)
|
|
8
|
+
// status one-shot board snapshot (head, task counts, verify counts)
|
|
9
|
+
//
|
|
10
|
+
// The package is self-contained: the vendored board lives next to this file
|
|
11
|
+
// (../board), so no extra downloads are needed after `npm i proofdeck`.
|
|
12
|
+
import { existsSync, mkdirSync, copyFileSync, writeFileSync, readFileSync } from "node:fs";
|
|
13
|
+
import { join, dirname, resolve } from "node:path";
|
|
14
|
+
import { fileURLToPath } from "node:url";
|
|
15
|
+
import { spawn } from "node:child_process";
|
|
16
|
+
import { randomBytes } from "node:crypto";
|
|
17
|
+
import net from "node:net";
|
|
18
|
+
|
|
19
|
+
const PKG_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
20
|
+
const BOARD_PKG = join(PKG_ROOT, "board");
|
|
21
|
+
const EXAMPLE = join(PKG_ROOT, "config.example.json");
|
|
22
|
+
|
|
23
|
+
const say = (m = "") => console.log(m);
|
|
24
|
+
const ok = (m) => console.log("✅ " + m);
|
|
25
|
+
const warn = (m) => console.log("⚠️ " + m);
|
|
26
|
+
|
|
27
|
+
function usage() {
|
|
28
|
+
say(`ProofDeck — verification-first task board & orchestrator for coding-agent fleets
|
|
29
|
+
|
|
30
|
+
Usage:
|
|
31
|
+
proofdeck init [dir] Scaffold a project dir (default: current)
|
|
32
|
+
proofdeck daemon Run the daemon for the current project dir
|
|
33
|
+
proofdeck status Show board head / task / verify counts
|
|
34
|
+
proofdeck assign <key> <agent> Queue a task card to an agent face
|
|
35
|
+
proofdeck --version Print version
|
|
36
|
+
|
|
37
|
+
Docs: https://github.com/kumu314/proofdeck`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function findFreePort(start = 8790, tries = 20) {
|
|
41
|
+
return new Promise((res) => {
|
|
42
|
+
const srv = net.createServer();
|
|
43
|
+
srv.once("error", () => (tries-- > 0 ? res(findFreePort(start + 1, tries)) : res(start)));
|
|
44
|
+
srv.once("listening", () => srv.close(() => res(start)));
|
|
45
|
+
srv.listen(start, "127.0.0.1");
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function cmdInit(args) {
|
|
50
|
+
const dir = resolve(args[0] ?? ".");
|
|
51
|
+
const cfgPath = join(dir, "daemon.config.json");
|
|
52
|
+
if (existsSync(cfgPath) && !args.includes("--force")) {
|
|
53
|
+
warn(`${cfgPath} already exists — refusing to overwrite (pass --force to replace)`);
|
|
54
|
+
return 1;
|
|
55
|
+
}
|
|
56
|
+
mkdirSync(dir, { recursive: true });
|
|
57
|
+
|
|
58
|
+
const cfg = JSON.parse(readFileSync(EXAMPLE, "utf8"));
|
|
59
|
+
// Point the vendored board at the packaged copy so init works from anywhere.
|
|
60
|
+
cfg.board.package = BOARD_PKG.replace(/\\/g, "/");
|
|
61
|
+
cfg.board.dir = "./.proofdeck";
|
|
62
|
+
|
|
63
|
+
// Per-face workdirs up front: agents spawn with -C <workdir>; a missing dir
|
|
64
|
+
// kills the face with os error 3 before it can say anything (dogfood finding).
|
|
65
|
+
const faces = Object.entries(cfg.agents ?? {});
|
|
66
|
+
for (const [name, face] of faces) {
|
|
67
|
+
if (face.workdir) face.workdir = join(dir, "workdirs", name).replace(/\\/g, "/");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Free control-plane port: a fixed 8790 collides with any other ProofDeck on
|
|
71
|
+
// the machine (dogfood finding).
|
|
72
|
+
const port = findFreePort(cfg.http?.port ?? 8790);
|
|
73
|
+
return Promise.resolve(port).then((free) => {
|
|
74
|
+
if (cfg.http) cfg.http.port = free;
|
|
75
|
+
cfg.runtime ??= {};
|
|
76
|
+
cfg.runtime.autoAssign = true; // open+auto-flagged tasks queue to their face automatically
|
|
77
|
+
|
|
78
|
+
writeFileSync(cfgPath, JSON.stringify(cfg, null, 2) + "\n");
|
|
79
|
+
|
|
80
|
+
mkdirSync(join(dir, ".proofdeck"), { recursive: true });
|
|
81
|
+
mkdirSync(join(dir, "briefs"), { recursive: true });
|
|
82
|
+
for (const [name] of faces) mkdirSync(join(dir, "workdirs", name), { recursive: true });
|
|
83
|
+
const tokenPath = join(dir, "control.token");
|
|
84
|
+
if (!existsSync(tokenPath)) writeFileSync(tokenPath, randomBytes(24).toString("hex") + "\n");
|
|
85
|
+
|
|
86
|
+
// starter task book: the pointer-style brief with a ```bridge fence
|
|
87
|
+
const brief = join(dir, "briefs", "my-first-task.md");
|
|
88
|
+
if (!existsSync(brief)) {
|
|
89
|
+
writeFileSync(brief, [
|
|
90
|
+
"Write hello.md in the workspace containing the single line: it works.",
|
|
91
|
+
"",
|
|
92
|
+
"```bridge",
|
|
93
|
+
'{ "auto": "yes", "risk": "low", "impact": "low" }',
|
|
94
|
+
"```",
|
|
95
|
+
"",
|
|
96
|
+
].join("\n"));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ok(`scaffolded ${dir} (control port: ${free})`);
|
|
100
|
+
say(` daemon.config.json ← edit agents.* to point at your CLI(s)`);
|
|
101
|
+
say(` briefs/my-first-task.md ← starter task book (pointer-style)`);
|
|
102
|
+
say(` .proofdeck/ ← board lives here (one SQLite file + audit chain)`);
|
|
103
|
+
say(` control.token ← local control-plane credential`);
|
|
104
|
+
say("");
|
|
105
|
+
say("Next:");
|
|
106
|
+
say(" 1) edit daemon.config.json — set agents.codex.script to your agent CLI");
|
|
107
|
+
say(" 2) define the task card (see briefs/my-first-task.md + docs/task-book.md):");
|
|
108
|
+
say(` description: "任务书:${join(dir, "briefs", "my-first-task.md").replace(/\\\\/g, "/")}"`);
|
|
109
|
+
say(" 3) proofdeck daemon (or: node daemon.js daemon.config.json)");
|
|
110
|
+
say(" 4) proofdeck assign my-first-task codex — or let autoAssign queue it");
|
|
111
|
+
say(" 5) proofdeck status — watch the verify gate work");
|
|
112
|
+
return 0;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
async function cmdAssign(args) {
|
|
118
|
+
const [key, agent] = args;
|
|
119
|
+
if (!key || !agent) { warn("usage: proofdeck assign <key> <agent>"); return 1; }
|
|
120
|
+
const cfgPath = join(process.cwd(), "daemon.config.json");
|
|
121
|
+
if (!existsSync(cfgPath)) { warn(`no daemon.config.json in ${process.cwd()}`); return 1; }
|
|
122
|
+
const cfg = JSON.parse(readFileSync(cfgPath, "utf8"));
|
|
123
|
+
const boardDir = resolve(process.cwd(), cfg.board.dir ?? ".proofdeck");
|
|
124
|
+
const pkg = cfg.board.package ?? BOARD_PKG;
|
|
125
|
+
const { Board } = await import(new URL("file://" + join(resolve(pkg), "dist", "board.js").replace(/\\/g, "/")).href);
|
|
126
|
+
const b = Board.open({ boardDir, agent: cfg.board.identity ?? "bridge" });
|
|
127
|
+
try {
|
|
128
|
+
b.assign(cfg.board.identity ?? "bridge", key, agent);
|
|
129
|
+
ok(`queued ${key} → ${agent}`);
|
|
130
|
+
} finally { try { b.close(); } catch { } }
|
|
131
|
+
return 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
async function cmdDaemon() {
|
|
135
|
+
const cfgPath = join(process.cwd(), "daemon.config.json");
|
|
136
|
+
if (!existsSync(cfgPath)) {
|
|
137
|
+
warn(`no daemon.config.json in ${process.cwd()} — run: proofdeck init`);
|
|
138
|
+
return 1;
|
|
139
|
+
}
|
|
140
|
+
const child = spawn(process.execPath, [join(PKG_ROOT, "daemon.js"), cfgPath], {
|
|
141
|
+
cwd: process.cwd(),
|
|
142
|
+
stdio: "inherit",
|
|
143
|
+
env: { ...process.env, PROOFDECK_BASE: process.cwd() },
|
|
144
|
+
});
|
|
145
|
+
// Long-running: hold the CLI until the daemon exits, then propagate its code.
|
|
146
|
+
return await new Promise((r) => child.on("exit", (code) => r(code ?? 0)));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
async function cmdStatus() {
|
|
150
|
+
const cfgPath = join(process.cwd(), "daemon.config.json");
|
|
151
|
+
if (!existsSync(cfgPath)) {
|
|
152
|
+
warn(`no daemon.config.json in ${process.cwd()} — run: proofdeck init`);
|
|
153
|
+
return 1;
|
|
154
|
+
}
|
|
155
|
+
const cfg = JSON.parse(readFileSync(cfgPath, "utf8"));
|
|
156
|
+
const boardDir = resolve(process.cwd(), cfg.board.dir ?? ".proofdeck");
|
|
157
|
+
const pkg = cfg.board.package ?? BOARD_PKG;
|
|
158
|
+
const { Board } = await import(new URL("file://" + join(resolve(pkg), "dist", "board.js").replace(/\\/g, "/")).href);
|
|
159
|
+
const b = Board.open({ boardDir, agent: cfg.board.identity ?? "bridge" });
|
|
160
|
+
try {
|
|
161
|
+
const head = b.head();
|
|
162
|
+
const cards = b.listTaskCards();
|
|
163
|
+
const byStatus = {};
|
|
164
|
+
let verified = 0, withAcc = 0;
|
|
165
|
+
for (const c of cards) {
|
|
166
|
+
const t = c.task || {};
|
|
167
|
+
byStatus[t.status] = (byStatus[t.status] || 0) + 1;
|
|
168
|
+
if (t.acceptance != null) withAcc++;
|
|
169
|
+
}
|
|
170
|
+
const chain = b.verifyChain ? b.verifyChain() : null;
|
|
171
|
+
const events = b.timeline(2000);
|
|
172
|
+
verified = events.filter((e) => e.kind === "verify").length;
|
|
173
|
+
say(`board ${boardDir}`);
|
|
174
|
+
say(`head seq ${head.seq} chain ${chain?.ok ? "OK (anchored)" : "?"}${chain?.brokenAtSeq != null ? ` BROKEN @ ${chain.brokenAtSeq}` : ""}`);
|
|
175
|
+
say(`tasks ${cards.length} total — ${Object.entries(byStatus).map(([k, v]) => k + " " + v).join(" / ")}`);
|
|
176
|
+
say(`accept ${withAcc} task(s) carry acceptance verify events: ${verified}`);
|
|
177
|
+
} finally { try { b.close(); } catch { } }
|
|
178
|
+
return 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const [cmd, ...rest] = process.argv.slice(2);
|
|
182
|
+
if (!cmd || cmd === "-h" || cmd === "--help") { usage(); process.exit(0); }
|
|
183
|
+
else if (cmd === "--version" || cmd === "-v") {
|
|
184
|
+
const pkg = JSON.parse(readFileSync(join(PKG_ROOT, "package.json"), "utf8"));
|
|
185
|
+
console.log(pkg.version);
|
|
186
|
+
process.exit(0);
|
|
187
|
+
} else if (cmd === "init") process.exit(await cmdInit(rest));
|
|
188
|
+
else if (cmd === "assign") process.exit(await cmdAssign(rest));
|
|
189
|
+
else if (cmd === "daemon") process.exit(await cmdDaemon());
|
|
190
|
+
else if (cmd === "status") process.exit(await cmdStatus());
|
|
191
|
+
else { warn(`unknown command: ${cmd}`); usage(); process.exit(1); }
|
package/board/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Octoryn
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|