@celsoft/coordinator 0.0.0 → 0.1.0
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/CHANGELOG.md +11 -0
- package/README.md +107 -0
- package/THIRD_PARTY_NOTICES.md +2005 -0
- package/agents/console.md +20 -0
- package/agents/free.md +110 -0
- package/build/0-JP6XL6LB.js +17 -0
- package/build/1-A52YZWNS.js +17 -0
- package/build/2-CLH2NM6F.js +32 -0
- package/build/3-4N467IB6.js +45 -0
- package/build/4-WL5H4LUW.js +29 -0
- package/build/_layout.svelte-KPUSX7LQ.js +27 -0
- package/build/_page.svelte-22H56UR6.js +7972 -0
- package/build/_page.svelte-CVWUNRQC.js +135 -0
- package/build/_page.svelte-LTZXBHMT.js +57 -0
- package/build/_server.ts-3KVBYN6P.js +20 -0
- package/build/_server.ts-3POPKVEM.js +47 -0
- package/build/_server.ts-5735T2V5.js +31 -0
- package/build/_server.ts-5VXGNWV2.js +38 -0
- package/build/_server.ts-645KP7WP.js +42 -0
- package/build/_server.ts-A3AA24Z2.js +28 -0
- package/build/_server.ts-CITUOEM6.js +58 -0
- package/build/_server.ts-I7HMTPOA.js +25 -0
- package/build/_server.ts-M5BQ4LLX.js +30 -0
- package/build/_server.ts-OB4O27HF.js +683 -0
- package/build/_server.ts-OJT7HE7M.js +15 -0
- package/build/_server.ts-OYGWVLZM.js +12 -0
- package/build/_server.ts-T75UVMQP.js +38 -0
- package/build/_server.ts-WYZYNHUZ.js +28 -0
- package/build/_server.ts-Z26EB47B.js +486 -0
- package/build/chunk-4CIG53L5.js +33 -0
- package/build/chunk-BJTJS3XY.js +338 -0
- package/build/chunk-F2CNWJZM.js +14 -0
- package/build/chunk-HGYE3UTU.js +416 -0
- package/build/chunk-KAYW2W7H.js +1311 -0
- package/build/chunk-LFP3UPCM.js +10 -0
- package/build/chunk-M44JEFEH.js +62 -0
- package/build/chunk-MC5AGLMY.js +39 -0
- package/build/chunk-NCZ77J5E.js +19798 -0
- package/build/chunk-NVNLDPUJ.js +2122 -0
- package/build/chunk-PDCON4KS.js +494 -0
- package/build/chunk-Q4OQNY5M.js +25 -0
- package/build/chunk-QCUOR2U5.js +75 -0
- package/build/chunk-R6RYZZWA.js +46 -0
- package/build/chunk-SOJTASZC.js +51 -0
- package/build/chunk-SU26PJVX.js +410 -0
- package/build/chunk-U5BSBG4R.js +506 -0
- package/build/chunk-UEKOZGRO.js +37 -0
- package/build/chunk-W6EFUWJ2.js +9 -0
- package/build/chunk-WOPREK6Q.js +117 -0
- package/build/chunk-WWJ3F4QS.js +127 -0
- package/build/chunk-ZGZJEEE3.js +1091 -0
- package/build/client/_app/immutable/assets/0.BGa5ZNDM.css +1 -0
- package/build/client/_app/immutable/chunks/BUrrLYDt.js +2 -0
- package/build/client/_app/immutable/chunks/BgFr_EyZ.js +4 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js +82 -0
- package/build/client/_app/immutable/chunks/C8qZab0y.js +56 -0
- package/build/client/_app/immutable/chunks/C90fLsA5.js +4 -0
- package/build/client/_app/immutable/chunks/CRzLMJPS.js +1 -0
- package/build/client/_app/immutable/chunks/DLT1iIlz.js +2 -0
- package/build/client/_app/immutable/chunks/pIrVVOVY.js +2 -0
- package/build/client/_app/immutable/entry/app.0DERehLW.js +3 -0
- package/build/client/_app/immutable/entry/payload.DSmR2FwN.js +2 -0
- package/build/client/_app/immutable/entry/start.B7srFiqh.js +3 -0
- package/build/client/_app/immutable/nodes/0.aD9vJoxR.js +2 -0
- package/build/client/_app/immutable/nodes/1.Br4FL91i.js +2 -0
- package/build/client/_app/immutable/nodes/2.vl6OYfu3.js +8 -0
- package/build/client/_app/immutable/nodes/3.VYqJOLAF.js +2 -0
- package/build/client/_app/immutable/nodes/4.jF9UVlFN.js +2 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/apple-touch-icon.png +0 -0
- package/build/client/favicon.ico +0 -0
- package/build/client/favicon.svg +48 -0
- package/build/client/icon-192.png +0 -0
- package/build/client/icon-512.png +0 -0
- package/build/client/icon-maskable-512.png +0 -0
- package/build/client/icon.svg +44 -0
- package/build/client/manifest.webmanifest +15 -0
- package/build/error.svelte-JXZDY65F.js +51 -0
- package/build/handler.js +716 -0
- package/build/hooks.server-34IMHRKC.js +43 -0
- package/build/instance-NP3FJIWW.js +2967 -0
- package/client/client.mjs +28 -0
- package/client/hooks.mjs +7 -0
- package/client/register.mjs +5 -0
- package/dist/cli.js +62826 -0
- package/dist/port.js +36691 -0
- package/package.json +20 -1
- package/skills/agents/.claude-plugin/plugin.json +5 -0
- package/skills/agents/hooks/hooks.json +1 -0
- package/skills/agents/hooks/register.ts +57 -0
- package/skills/agents/skills/bus-work/SKILL.md +66 -0
- package/skills/agents/skills/plan/SKILL.md +98 -0
- package/skills/console/.claude-plugin/plugin.json +5 -0
- package/skills/console/hooks/hooks.json +1 -0
- package/skills/console/hooks/register.ts +10 -0
- package/skills/console/skills/bus/SKILL.md +61 -0
- package/skills/default/.claude-plugin/plugin.json +5 -0
- package/skills/default/skills/git-workflow/SKILL.md +294 -0
- package/skills/default/skills/git-workflow/mise-tasks/_lib.sh +107 -0
- package/skills/default/skills/git-workflow/mise-tasks/clone +36 -0
- package/skills/default/skills/git-workflow/mise-tasks/repo-list +8 -0
- package/skills/default/skills/git-workflow/mise-tasks/unpushed +26 -0
- package/skills/default/skills/git-workflow/mise-tasks/worktree-add +60 -0
- package/skills/default/skills/github/SKILL.md +208 -0
- package/skills/default/skills/github/scripts/gh-org +196 -0
- package/skills/default/skills/plan-page/SKILL.md +300 -0
- package/skills/default/skills/plan-page/assets/index.html +854 -0
- package/skills/default/skills/plan-page/scripts/inline +46 -0
- package/skills/default/skills/plan-page/scripts/stage +26 -0
- package/skills/default/skills/secrets/SKILL.md +134 -0
- package/skills/default/skills/secrets/scripts/secrets-check +87 -0
- package/skills/default/skills/writing-style/SKILL.md +45 -0
- package/skills/extra/.claude-plugin/plugin.json +5 -0
- package/skills/extra/skills/artifacts/SKILL.md +52 -0
- package/skills/extra/skills/github-actions/SKILL.md +78 -0
- package/skills/extra/skills/github-actions/scan +32 -0
- package/skills/extra/skills/markdown-review/SKILL.md +70 -0
- package/skills/extra/skills/markdown-review/assets/index.html +201 -0
- package/skills/extra/skills/markdown-review/scripts/stage +36 -0
- package/skills/extra/skills/mise-usage/SKILL.md +155 -0
- package/skills/extra/skills/plugin-authoring/SKILL.md +317 -0
- package/skills/extra/skills/project-conventions/SKILL.md +64 -0
- package/skills/extra/skills/questions/SKILL.md +156 -0
- package/skills/extra/skills/questions/assets/index.html +376 -0
- package/skills/extra/skills/questions/scripts/stage +26 -0
- package/skills/extra/skills/serve/SKILL.md +165 -0
- package/skills/extra/skills/serve/scripts/serve +268 -0
- package/skills/extra/skills/serve/scripts/server.py +345 -0
- package/skills/extra/skills/skill-dependencies/SKILL.md +65 -0
- package/skills/extra/skills/skill-maintenance/SKILL.md +101 -0
- package/skills/extra/skills/ticketing/SKILL.md +125 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
answer
|
|
4
|
+
} from "./chunk-R6RYZZWA.js";
|
|
5
|
+
import "./chunk-PDCON4KS.js";
|
|
6
|
+
import "./chunk-SU26PJVX.js";
|
|
7
|
+
import "./chunk-HGYE3UTU.js";
|
|
8
|
+
import "./chunk-NCZ77J5E.js";
|
|
9
|
+
import "./chunk-LFP3UPCM.js";
|
|
10
|
+
|
|
11
|
+
// build/server/entries/endpoints/cleanup.json/_server.ts.js
|
|
12
|
+
var GET = (event) => answer(event, () => event.locals.served.system.cleanup.preview(event.url.searchParams.get("s") ?? ""));
|
|
13
|
+
export {
|
|
14
|
+
GET
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import "./chunk-LFP3UPCM.js";
|
|
3
|
+
|
|
4
|
+
// build/server/entries/endpoints/docs/doc.js/_server.ts.js
|
|
5
|
+
var doc_default = "// The coordinator's document script, served at /docs/doc.js. A document loads it to reach the coordinator's page around it:\n// coordinator.context() resolves to what the bus knows of the document: itself, its repo, its issue, and its slot\n// coordinator.on('change', fn) calls fn with the context whenever any of it changes, and returns a function that stops it\n// coordinator.act(type, body) asks to send message, issue_comment, or issue_plan as the user; the coordinator shows the\n// user exactly what, and resolves to the bus's answer once they confirm, or rejects\n// It talks to the page around the document by postMessage; outside the coordinator, each call rejects.\n(() => {\n const PROTOCOL = 'coordinator-doc/1';\n const framed = window.parent !== window;\n const pending = new Map();\n const listeners = new Set();\n let next = 0;\n let last = null;\n\n window.addEventListener('message', (event) => {\n if (event.source !== window.parent) return;\n const m = event.data;\n if (!m || m.protocol !== PROTOCOL) return;\n if (m.op === 'change') {\n last = m.context;\n for (const fn of listeners) fn(m.context);\n return;\n }\n const p = pending.get(m.id);\n if (!p) return;\n pending.delete(m.id);\n if (m.error) p.reject(new Error(m.error));\n else p.resolve(m.result);\n });\n\n function ask(op, payload) {\n if (!framed) return Promise.reject(new Error('open this document through the coordinator to reach it'));\n const id = ++next;\n return new Promise((resolve, reject) => {\n pending.set(id, { resolve, reject });\n window.parent.postMessage({ protocol: PROTOCOL, id, op, ...payload }, '*');\n });\n }\n\n window.coordinator = Object.freeze({\n context: () => (last ? Promise.resolve(last) : ask('context', {}).then((c) => (last = c))),\n on(event, fn) {\n if (event !== 'change') throw new Error(`no event ${event}; there is only change`);\n listeners.add(fn);\n if (framed) window.parent.postMessage({ protocol: PROTOCOL, id: 0, op: 'watch' }, '*');\n return () => listeners.delete(fn);\n },\n act: (type, body) => ask('act', { type, body })\n });\n})();\n";
|
|
6
|
+
var GET = () => new Response(doc_default, { headers: {
|
|
7
|
+
"Content-Type": "text/javascript; charset=utf-8",
|
|
8
|
+
"Cache-Control": "no-cache"
|
|
9
|
+
} });
|
|
10
|
+
export {
|
|
11
|
+
GET
|
|
12
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
trackFor
|
|
4
|
+
} from "./chunk-QCUOR2U5.js";
|
|
5
|
+
import {
|
|
6
|
+
answer,
|
|
7
|
+
parsed
|
|
8
|
+
} from "./chunk-R6RYZZWA.js";
|
|
9
|
+
import {
|
|
10
|
+
Refused
|
|
11
|
+
} from "./chunk-PDCON4KS.js";
|
|
12
|
+
import "./chunk-SU26PJVX.js";
|
|
13
|
+
import "./chunk-HGYE3UTU.js";
|
|
14
|
+
import {
|
|
15
|
+
IssueAddress,
|
|
16
|
+
external_exports
|
|
17
|
+
} from "./chunk-NCZ77J5E.js";
|
|
18
|
+
import "./chunk-LFP3UPCM.js";
|
|
19
|
+
|
|
20
|
+
// build/server/entries/endpoints/track-draft/_server.ts.js
|
|
21
|
+
var TrackDraft = external_exports.strictObject({ issue: IssueAddress });
|
|
22
|
+
var POST = (event) => answer(event, async () => {
|
|
23
|
+
const { issue: address } = await parsed(event, TrackDraft);
|
|
24
|
+
const { system, namer } = event.locals.served;
|
|
25
|
+
const issue = system.bus.issue(address);
|
|
26
|
+
if (!issue) throw new Refused(`no issue ${address}`);
|
|
27
|
+
const tracks = new Set(system.bus.sessions().map((s) => s.track));
|
|
28
|
+
const text = issue.description ? `${issue.title}
|
|
29
|
+
|
|
30
|
+
${issue.description}` : issue.title;
|
|
31
|
+
return {
|
|
32
|
+
slug: issue.slug,
|
|
33
|
+
...await trackFor(namer, issue.slug, text, (t) => tracks.has(t))
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
POST
|
|
38
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
PAGE,
|
|
4
|
+
throughVia
|
|
5
|
+
} from "./chunk-F2CNWJZM.js";
|
|
6
|
+
import {
|
|
7
|
+
answer,
|
|
8
|
+
parsed
|
|
9
|
+
} from "./chunk-R6RYZZWA.js";
|
|
10
|
+
import {
|
|
11
|
+
USER
|
|
12
|
+
} from "./chunk-PDCON4KS.js";
|
|
13
|
+
import "./chunk-SU26PJVX.js";
|
|
14
|
+
import "./chunk-HGYE3UTU.js";
|
|
15
|
+
import {
|
|
16
|
+
external_exports
|
|
17
|
+
} from "./chunk-NCZ77J5E.js";
|
|
18
|
+
import "./chunk-LFP3UPCM.js";
|
|
19
|
+
|
|
20
|
+
// build/server/entries/endpoints/throttle-release/_server.ts.js
|
|
21
|
+
var Release = external_exports.strictObject({ id: external_exports.coerce.number().int().min(1) });
|
|
22
|
+
var POST = (event) => answer(event, async () => {
|
|
23
|
+
const { id } = await parsed(event, Release);
|
|
24
|
+
return throughVia(PAGE, () => event.locals.served.system.messaging.send(USER, "start_now", { held: id }));
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
POST
|
|
28
|
+
};
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DOC_SANDBOX,
|
|
4
|
+
docOfPath
|
|
5
|
+
} from "./chunk-MC5AGLMY.js";
|
|
6
|
+
import "./chunk-NCZ77J5E.js";
|
|
7
|
+
import "./chunk-LFP3UPCM.js";
|
|
8
|
+
|
|
9
|
+
// build/server/entries/endpoints/docs/_org_/_repo_/_slug_/_name_/f/_key_/_version_/_...file_/_server.ts.js
|
|
10
|
+
import { readFileSync, statSync } from "node:fs";
|
|
11
|
+
|
|
12
|
+
// node_modules/.pnpm/mrmime@2.0.1/node_modules/mrmime/index.mjs
|
|
13
|
+
var mimes = {
|
|
14
|
+
"3g2": "video/3gpp2",
|
|
15
|
+
"3gp": "video/3gpp",
|
|
16
|
+
"3gpp": "video/3gpp",
|
|
17
|
+
"3mf": "model/3mf",
|
|
18
|
+
"aac": "audio/aac",
|
|
19
|
+
"ac": "application/pkix-attr-cert",
|
|
20
|
+
"adp": "audio/adpcm",
|
|
21
|
+
"adts": "audio/aac",
|
|
22
|
+
"ai": "application/postscript",
|
|
23
|
+
"aml": "application/automationml-aml+xml",
|
|
24
|
+
"amlx": "application/automationml-amlx+zip",
|
|
25
|
+
"amr": "audio/amr",
|
|
26
|
+
"apng": "image/apng",
|
|
27
|
+
"appcache": "text/cache-manifest",
|
|
28
|
+
"appinstaller": "application/appinstaller",
|
|
29
|
+
"appx": "application/appx",
|
|
30
|
+
"appxbundle": "application/appxbundle",
|
|
31
|
+
"asc": "application/pgp-keys",
|
|
32
|
+
"atom": "application/atom+xml",
|
|
33
|
+
"atomcat": "application/atomcat+xml",
|
|
34
|
+
"atomdeleted": "application/atomdeleted+xml",
|
|
35
|
+
"atomsvc": "application/atomsvc+xml",
|
|
36
|
+
"au": "audio/basic",
|
|
37
|
+
"avci": "image/avci",
|
|
38
|
+
"avcs": "image/avcs",
|
|
39
|
+
"avif": "image/avif",
|
|
40
|
+
"aw": "application/applixware",
|
|
41
|
+
"bdoc": "application/bdoc",
|
|
42
|
+
"bin": "application/octet-stream",
|
|
43
|
+
"bmp": "image/bmp",
|
|
44
|
+
"bpk": "application/octet-stream",
|
|
45
|
+
"btf": "image/prs.btif",
|
|
46
|
+
"btif": "image/prs.btif",
|
|
47
|
+
"buffer": "application/octet-stream",
|
|
48
|
+
"ccxml": "application/ccxml+xml",
|
|
49
|
+
"cdfx": "application/cdfx+xml",
|
|
50
|
+
"cdmia": "application/cdmi-capability",
|
|
51
|
+
"cdmic": "application/cdmi-container",
|
|
52
|
+
"cdmid": "application/cdmi-domain",
|
|
53
|
+
"cdmio": "application/cdmi-object",
|
|
54
|
+
"cdmiq": "application/cdmi-queue",
|
|
55
|
+
"cer": "application/pkix-cert",
|
|
56
|
+
"cgm": "image/cgm",
|
|
57
|
+
"cjs": "application/node",
|
|
58
|
+
"class": "application/java-vm",
|
|
59
|
+
"coffee": "text/coffeescript",
|
|
60
|
+
"conf": "text/plain",
|
|
61
|
+
"cpl": "application/cpl+xml",
|
|
62
|
+
"cpt": "application/mac-compactpro",
|
|
63
|
+
"crl": "application/pkix-crl",
|
|
64
|
+
"css": "text/css",
|
|
65
|
+
"csv": "text/csv",
|
|
66
|
+
"cu": "application/cu-seeme",
|
|
67
|
+
"cwl": "application/cwl",
|
|
68
|
+
"cww": "application/prs.cww",
|
|
69
|
+
"davmount": "application/davmount+xml",
|
|
70
|
+
"dbk": "application/docbook+xml",
|
|
71
|
+
"deb": "application/octet-stream",
|
|
72
|
+
"def": "text/plain",
|
|
73
|
+
"deploy": "application/octet-stream",
|
|
74
|
+
"dib": "image/bmp",
|
|
75
|
+
"disposition-notification": "message/disposition-notification",
|
|
76
|
+
"dist": "application/octet-stream",
|
|
77
|
+
"distz": "application/octet-stream",
|
|
78
|
+
"dll": "application/octet-stream",
|
|
79
|
+
"dmg": "application/octet-stream",
|
|
80
|
+
"dms": "application/octet-stream",
|
|
81
|
+
"doc": "application/msword",
|
|
82
|
+
"dot": "application/msword",
|
|
83
|
+
"dpx": "image/dpx",
|
|
84
|
+
"drle": "image/dicom-rle",
|
|
85
|
+
"dsc": "text/prs.lines.tag",
|
|
86
|
+
"dssc": "application/dssc+der",
|
|
87
|
+
"dtd": "application/xml-dtd",
|
|
88
|
+
"dump": "application/octet-stream",
|
|
89
|
+
"dwd": "application/atsc-dwd+xml",
|
|
90
|
+
"ear": "application/java-archive",
|
|
91
|
+
"ecma": "application/ecmascript",
|
|
92
|
+
"elc": "application/octet-stream",
|
|
93
|
+
"emf": "image/emf",
|
|
94
|
+
"eml": "message/rfc822",
|
|
95
|
+
"emma": "application/emma+xml",
|
|
96
|
+
"emotionml": "application/emotionml+xml",
|
|
97
|
+
"eps": "application/postscript",
|
|
98
|
+
"epub": "application/epub+zip",
|
|
99
|
+
"exe": "application/octet-stream",
|
|
100
|
+
"exi": "application/exi",
|
|
101
|
+
"exp": "application/express",
|
|
102
|
+
"exr": "image/aces",
|
|
103
|
+
"ez": "application/andrew-inset",
|
|
104
|
+
"fdf": "application/fdf",
|
|
105
|
+
"fdt": "application/fdt+xml",
|
|
106
|
+
"fits": "image/fits",
|
|
107
|
+
"g3": "image/g3fax",
|
|
108
|
+
"gbr": "application/rpki-ghostbusters",
|
|
109
|
+
"geojson": "application/geo+json",
|
|
110
|
+
"gif": "image/gif",
|
|
111
|
+
"glb": "model/gltf-binary",
|
|
112
|
+
"gltf": "model/gltf+json",
|
|
113
|
+
"gml": "application/gml+xml",
|
|
114
|
+
"gpx": "application/gpx+xml",
|
|
115
|
+
"gram": "application/srgs",
|
|
116
|
+
"grxml": "application/srgs+xml",
|
|
117
|
+
"gxf": "application/gxf",
|
|
118
|
+
"gz": "application/gzip",
|
|
119
|
+
"h261": "video/h261",
|
|
120
|
+
"h263": "video/h263",
|
|
121
|
+
"h264": "video/h264",
|
|
122
|
+
"heic": "image/heic",
|
|
123
|
+
"heics": "image/heic-sequence",
|
|
124
|
+
"heif": "image/heif",
|
|
125
|
+
"heifs": "image/heif-sequence",
|
|
126
|
+
"hej2": "image/hej2k",
|
|
127
|
+
"held": "application/atsc-held+xml",
|
|
128
|
+
"hjson": "application/hjson",
|
|
129
|
+
"hlp": "application/winhlp",
|
|
130
|
+
"hqx": "application/mac-binhex40",
|
|
131
|
+
"hsj2": "image/hsj2",
|
|
132
|
+
"htm": "text/html",
|
|
133
|
+
"html": "text/html",
|
|
134
|
+
"ics": "text/calendar",
|
|
135
|
+
"ief": "image/ief",
|
|
136
|
+
"ifb": "text/calendar",
|
|
137
|
+
"iges": "model/iges",
|
|
138
|
+
"igs": "model/iges",
|
|
139
|
+
"img": "application/octet-stream",
|
|
140
|
+
"in": "text/plain",
|
|
141
|
+
"ini": "text/plain",
|
|
142
|
+
"ink": "application/inkml+xml",
|
|
143
|
+
"inkml": "application/inkml+xml",
|
|
144
|
+
"ipfix": "application/ipfix",
|
|
145
|
+
"iso": "application/octet-stream",
|
|
146
|
+
"its": "application/its+xml",
|
|
147
|
+
"jade": "text/jade",
|
|
148
|
+
"jar": "application/java-archive",
|
|
149
|
+
"jhc": "image/jphc",
|
|
150
|
+
"jls": "image/jls",
|
|
151
|
+
"jp2": "image/jp2",
|
|
152
|
+
"jpe": "image/jpeg",
|
|
153
|
+
"jpeg": "image/jpeg",
|
|
154
|
+
"jpf": "image/jpx",
|
|
155
|
+
"jpg": "image/jpeg",
|
|
156
|
+
"jpg2": "image/jp2",
|
|
157
|
+
"jpgm": "image/jpm",
|
|
158
|
+
"jpgv": "video/jpeg",
|
|
159
|
+
"jph": "image/jph",
|
|
160
|
+
"jpm": "image/jpm",
|
|
161
|
+
"jpx": "image/jpx",
|
|
162
|
+
"js": "text/javascript",
|
|
163
|
+
"json": "application/json",
|
|
164
|
+
"json5": "application/json5",
|
|
165
|
+
"jsonld": "application/ld+json",
|
|
166
|
+
"jsonml": "application/jsonml+json",
|
|
167
|
+
"jsx": "text/jsx",
|
|
168
|
+
"jt": "model/jt",
|
|
169
|
+
"jxl": "image/jxl",
|
|
170
|
+
"jxr": "image/jxr",
|
|
171
|
+
"jxra": "image/jxra",
|
|
172
|
+
"jxrs": "image/jxrs",
|
|
173
|
+
"jxs": "image/jxs",
|
|
174
|
+
"jxsc": "image/jxsc",
|
|
175
|
+
"jxsi": "image/jxsi",
|
|
176
|
+
"jxss": "image/jxss",
|
|
177
|
+
"kar": "audio/midi",
|
|
178
|
+
"ktx": "image/ktx",
|
|
179
|
+
"ktx2": "image/ktx2",
|
|
180
|
+
"less": "text/less",
|
|
181
|
+
"lgr": "application/lgr+xml",
|
|
182
|
+
"list": "text/plain",
|
|
183
|
+
"litcoffee": "text/coffeescript",
|
|
184
|
+
"log": "text/plain",
|
|
185
|
+
"lostxml": "application/lost+xml",
|
|
186
|
+
"lrf": "application/octet-stream",
|
|
187
|
+
"m1v": "video/mpeg",
|
|
188
|
+
"m21": "application/mp21",
|
|
189
|
+
"m2a": "audio/mpeg",
|
|
190
|
+
"m2t": "video/mp2t",
|
|
191
|
+
"m2ts": "video/mp2t",
|
|
192
|
+
"m2v": "video/mpeg",
|
|
193
|
+
"m3a": "audio/mpeg",
|
|
194
|
+
"m4a": "audio/mp4",
|
|
195
|
+
"m4p": "application/mp4",
|
|
196
|
+
"m4s": "video/iso.segment",
|
|
197
|
+
"ma": "application/mathematica",
|
|
198
|
+
"mads": "application/mads+xml",
|
|
199
|
+
"maei": "application/mmt-aei+xml",
|
|
200
|
+
"man": "text/troff",
|
|
201
|
+
"manifest": "text/cache-manifest",
|
|
202
|
+
"map": "application/json",
|
|
203
|
+
"mar": "application/octet-stream",
|
|
204
|
+
"markdown": "text/markdown",
|
|
205
|
+
"mathml": "application/mathml+xml",
|
|
206
|
+
"mb": "application/mathematica",
|
|
207
|
+
"mbox": "application/mbox",
|
|
208
|
+
"md": "text/markdown",
|
|
209
|
+
"mdx": "text/mdx",
|
|
210
|
+
"me": "text/troff",
|
|
211
|
+
"mesh": "model/mesh",
|
|
212
|
+
"meta4": "application/metalink4+xml",
|
|
213
|
+
"metalink": "application/metalink+xml",
|
|
214
|
+
"mets": "application/mets+xml",
|
|
215
|
+
"mft": "application/rpki-manifest",
|
|
216
|
+
"mid": "audio/midi",
|
|
217
|
+
"midi": "audio/midi",
|
|
218
|
+
"mime": "message/rfc822",
|
|
219
|
+
"mj2": "video/mj2",
|
|
220
|
+
"mjp2": "video/mj2",
|
|
221
|
+
"mjs": "text/javascript",
|
|
222
|
+
"mml": "text/mathml",
|
|
223
|
+
"mods": "application/mods+xml",
|
|
224
|
+
"mov": "video/quicktime",
|
|
225
|
+
"mp2": "audio/mpeg",
|
|
226
|
+
"mp21": "application/mp21",
|
|
227
|
+
"mp2a": "audio/mpeg",
|
|
228
|
+
"mp3": "audio/mpeg",
|
|
229
|
+
"mp4": "video/mp4",
|
|
230
|
+
"mp4a": "audio/mp4",
|
|
231
|
+
"mp4s": "application/mp4",
|
|
232
|
+
"mp4v": "video/mp4",
|
|
233
|
+
"mpd": "application/dash+xml",
|
|
234
|
+
"mpe": "video/mpeg",
|
|
235
|
+
"mpeg": "video/mpeg",
|
|
236
|
+
"mpf": "application/media-policy-dataset+xml",
|
|
237
|
+
"mpg": "video/mpeg",
|
|
238
|
+
"mpg4": "video/mp4",
|
|
239
|
+
"mpga": "audio/mpeg",
|
|
240
|
+
"mpp": "application/dash-patch+xml",
|
|
241
|
+
"mrc": "application/marc",
|
|
242
|
+
"mrcx": "application/marcxml+xml",
|
|
243
|
+
"ms": "text/troff",
|
|
244
|
+
"mscml": "application/mediaservercontrol+xml",
|
|
245
|
+
"msh": "model/mesh",
|
|
246
|
+
"msi": "application/octet-stream",
|
|
247
|
+
"msix": "application/msix",
|
|
248
|
+
"msixbundle": "application/msixbundle",
|
|
249
|
+
"msm": "application/octet-stream",
|
|
250
|
+
"msp": "application/octet-stream",
|
|
251
|
+
"mtl": "model/mtl",
|
|
252
|
+
"mts": "video/mp2t",
|
|
253
|
+
"musd": "application/mmt-usd+xml",
|
|
254
|
+
"mxf": "application/mxf",
|
|
255
|
+
"mxmf": "audio/mobile-xmf",
|
|
256
|
+
"mxml": "application/xv+xml",
|
|
257
|
+
"n3": "text/n3",
|
|
258
|
+
"nb": "application/mathematica",
|
|
259
|
+
"nq": "application/n-quads",
|
|
260
|
+
"nt": "application/n-triples",
|
|
261
|
+
"obj": "model/obj",
|
|
262
|
+
"oda": "application/oda",
|
|
263
|
+
"oga": "audio/ogg",
|
|
264
|
+
"ogg": "audio/ogg",
|
|
265
|
+
"ogv": "video/ogg",
|
|
266
|
+
"ogx": "application/ogg",
|
|
267
|
+
"omdoc": "application/omdoc+xml",
|
|
268
|
+
"onepkg": "application/onenote",
|
|
269
|
+
"onetmp": "application/onenote",
|
|
270
|
+
"onetoc": "application/onenote",
|
|
271
|
+
"onetoc2": "application/onenote",
|
|
272
|
+
"opf": "application/oebps-package+xml",
|
|
273
|
+
"opus": "audio/ogg",
|
|
274
|
+
"otf": "font/otf",
|
|
275
|
+
"owl": "application/rdf+xml",
|
|
276
|
+
"oxps": "application/oxps",
|
|
277
|
+
"p10": "application/pkcs10",
|
|
278
|
+
"p7c": "application/pkcs7-mime",
|
|
279
|
+
"p7m": "application/pkcs7-mime",
|
|
280
|
+
"p7s": "application/pkcs7-signature",
|
|
281
|
+
"p8": "application/pkcs8",
|
|
282
|
+
"pdf": "application/pdf",
|
|
283
|
+
"pfr": "application/font-tdpfr",
|
|
284
|
+
"pgp": "application/pgp-encrypted",
|
|
285
|
+
"pkg": "application/octet-stream",
|
|
286
|
+
"pki": "application/pkixcmp",
|
|
287
|
+
"pkipath": "application/pkix-pkipath",
|
|
288
|
+
"pls": "application/pls+xml",
|
|
289
|
+
"png": "image/png",
|
|
290
|
+
"prc": "model/prc",
|
|
291
|
+
"prf": "application/pics-rules",
|
|
292
|
+
"provx": "application/provenance+xml",
|
|
293
|
+
"ps": "application/postscript",
|
|
294
|
+
"pskcxml": "application/pskc+xml",
|
|
295
|
+
"pti": "image/prs.pti",
|
|
296
|
+
"qt": "video/quicktime",
|
|
297
|
+
"raml": "application/raml+yaml",
|
|
298
|
+
"rapd": "application/route-apd+xml",
|
|
299
|
+
"rdf": "application/rdf+xml",
|
|
300
|
+
"relo": "application/p2p-overlay+xml",
|
|
301
|
+
"rif": "application/reginfo+xml",
|
|
302
|
+
"rl": "application/resource-lists+xml",
|
|
303
|
+
"rld": "application/resource-lists-diff+xml",
|
|
304
|
+
"rmi": "audio/midi",
|
|
305
|
+
"rnc": "application/relax-ng-compact-syntax",
|
|
306
|
+
"rng": "application/xml",
|
|
307
|
+
"roa": "application/rpki-roa",
|
|
308
|
+
"roff": "text/troff",
|
|
309
|
+
"rq": "application/sparql-query",
|
|
310
|
+
"rs": "application/rls-services+xml",
|
|
311
|
+
"rsat": "application/atsc-rsat+xml",
|
|
312
|
+
"rsd": "application/rsd+xml",
|
|
313
|
+
"rsheet": "application/urc-ressheet+xml",
|
|
314
|
+
"rss": "application/rss+xml",
|
|
315
|
+
"rtf": "text/rtf",
|
|
316
|
+
"rtx": "text/richtext",
|
|
317
|
+
"rusd": "application/route-usd+xml",
|
|
318
|
+
"s3m": "audio/s3m",
|
|
319
|
+
"sbml": "application/sbml+xml",
|
|
320
|
+
"scq": "application/scvp-cv-request",
|
|
321
|
+
"scs": "application/scvp-cv-response",
|
|
322
|
+
"sdp": "application/sdp",
|
|
323
|
+
"senmlx": "application/senml+xml",
|
|
324
|
+
"sensmlx": "application/sensml+xml",
|
|
325
|
+
"ser": "application/java-serialized-object",
|
|
326
|
+
"setpay": "application/set-payment-initiation",
|
|
327
|
+
"setreg": "application/set-registration-initiation",
|
|
328
|
+
"sgi": "image/sgi",
|
|
329
|
+
"sgm": "text/sgml",
|
|
330
|
+
"sgml": "text/sgml",
|
|
331
|
+
"shex": "text/shex",
|
|
332
|
+
"shf": "application/shf+xml",
|
|
333
|
+
"shtml": "text/html",
|
|
334
|
+
"sieve": "application/sieve",
|
|
335
|
+
"sig": "application/pgp-signature",
|
|
336
|
+
"sil": "audio/silk",
|
|
337
|
+
"silo": "model/mesh",
|
|
338
|
+
"siv": "application/sieve",
|
|
339
|
+
"slim": "text/slim",
|
|
340
|
+
"slm": "text/slim",
|
|
341
|
+
"sls": "application/route-s-tsid+xml",
|
|
342
|
+
"smi": "application/smil+xml",
|
|
343
|
+
"smil": "application/smil+xml",
|
|
344
|
+
"snd": "audio/basic",
|
|
345
|
+
"so": "application/octet-stream",
|
|
346
|
+
"spdx": "text/spdx",
|
|
347
|
+
"spp": "application/scvp-vp-response",
|
|
348
|
+
"spq": "application/scvp-vp-request",
|
|
349
|
+
"spx": "audio/ogg",
|
|
350
|
+
"sql": "application/sql",
|
|
351
|
+
"sru": "application/sru+xml",
|
|
352
|
+
"srx": "application/sparql-results+xml",
|
|
353
|
+
"ssdl": "application/ssdl+xml",
|
|
354
|
+
"ssml": "application/ssml+xml",
|
|
355
|
+
"stk": "application/hyperstudio",
|
|
356
|
+
"stl": "model/stl",
|
|
357
|
+
"stpx": "model/step+xml",
|
|
358
|
+
"stpxz": "model/step-xml+zip",
|
|
359
|
+
"stpz": "model/step+zip",
|
|
360
|
+
"styl": "text/stylus",
|
|
361
|
+
"stylus": "text/stylus",
|
|
362
|
+
"svg": "image/svg+xml",
|
|
363
|
+
"svgz": "image/svg+xml",
|
|
364
|
+
"swidtag": "application/swid+xml",
|
|
365
|
+
"t": "text/troff",
|
|
366
|
+
"t38": "image/t38",
|
|
367
|
+
"td": "application/urc-targetdesc+xml",
|
|
368
|
+
"tei": "application/tei+xml",
|
|
369
|
+
"teicorpus": "application/tei+xml",
|
|
370
|
+
"text": "text/plain",
|
|
371
|
+
"tfi": "application/thraud+xml",
|
|
372
|
+
"tfx": "image/tiff-fx",
|
|
373
|
+
"tif": "image/tiff",
|
|
374
|
+
"tiff": "image/tiff",
|
|
375
|
+
"toml": "application/toml",
|
|
376
|
+
"tr": "text/troff",
|
|
377
|
+
"trig": "application/trig",
|
|
378
|
+
"ts": "video/mp2t",
|
|
379
|
+
"tsd": "application/timestamped-data",
|
|
380
|
+
"tsv": "text/tab-separated-values",
|
|
381
|
+
"ttc": "font/collection",
|
|
382
|
+
"ttf": "font/ttf",
|
|
383
|
+
"ttl": "text/turtle",
|
|
384
|
+
"ttml": "application/ttml+xml",
|
|
385
|
+
"txt": "text/plain",
|
|
386
|
+
"u3d": "model/u3d",
|
|
387
|
+
"u8dsn": "message/global-delivery-status",
|
|
388
|
+
"u8hdr": "message/global-headers",
|
|
389
|
+
"u8mdn": "message/global-disposition-notification",
|
|
390
|
+
"u8msg": "message/global",
|
|
391
|
+
"ubj": "application/ubjson",
|
|
392
|
+
"uri": "text/uri-list",
|
|
393
|
+
"uris": "text/uri-list",
|
|
394
|
+
"urls": "text/uri-list",
|
|
395
|
+
"vcard": "text/vcard",
|
|
396
|
+
"vrml": "model/vrml",
|
|
397
|
+
"vtt": "text/vtt",
|
|
398
|
+
"vxml": "application/voicexml+xml",
|
|
399
|
+
"war": "application/java-archive",
|
|
400
|
+
"wasm": "application/wasm",
|
|
401
|
+
"wav": "audio/wav",
|
|
402
|
+
"weba": "audio/webm",
|
|
403
|
+
"webm": "video/webm",
|
|
404
|
+
"webmanifest": "application/manifest+json",
|
|
405
|
+
"webp": "image/webp",
|
|
406
|
+
"wgsl": "text/wgsl",
|
|
407
|
+
"wgt": "application/widget",
|
|
408
|
+
"wif": "application/watcherinfo+xml",
|
|
409
|
+
"wmf": "image/wmf",
|
|
410
|
+
"woff": "font/woff",
|
|
411
|
+
"woff2": "font/woff2",
|
|
412
|
+
"wrl": "model/vrml",
|
|
413
|
+
"wsdl": "application/wsdl+xml",
|
|
414
|
+
"wspolicy": "application/wspolicy+xml",
|
|
415
|
+
"x3d": "model/x3d+xml",
|
|
416
|
+
"x3db": "model/x3d+fastinfoset",
|
|
417
|
+
"x3dbz": "model/x3d+binary",
|
|
418
|
+
"x3dv": "model/x3d-vrml",
|
|
419
|
+
"x3dvz": "model/x3d+vrml",
|
|
420
|
+
"x3dz": "model/x3d+xml",
|
|
421
|
+
"xaml": "application/xaml+xml",
|
|
422
|
+
"xav": "application/xcap-att+xml",
|
|
423
|
+
"xca": "application/xcap-caps+xml",
|
|
424
|
+
"xcs": "application/calendar+xml",
|
|
425
|
+
"xdf": "application/xcap-diff+xml",
|
|
426
|
+
"xdssc": "application/dssc+xml",
|
|
427
|
+
"xel": "application/xcap-el+xml",
|
|
428
|
+
"xenc": "application/xenc+xml",
|
|
429
|
+
"xer": "application/patch-ops-error+xml",
|
|
430
|
+
"xfdf": "application/xfdf",
|
|
431
|
+
"xht": "application/xhtml+xml",
|
|
432
|
+
"xhtml": "application/xhtml+xml",
|
|
433
|
+
"xhvml": "application/xv+xml",
|
|
434
|
+
"xlf": "application/xliff+xml",
|
|
435
|
+
"xm": "audio/xm",
|
|
436
|
+
"xml": "text/xml",
|
|
437
|
+
"xns": "application/xcap-ns+xml",
|
|
438
|
+
"xop": "application/xop+xml",
|
|
439
|
+
"xpl": "application/xproc+xml",
|
|
440
|
+
"xsd": "application/xml",
|
|
441
|
+
"xsf": "application/prs.xsf+xml",
|
|
442
|
+
"xsl": "application/xml",
|
|
443
|
+
"xslt": "application/xml",
|
|
444
|
+
"xspf": "application/xspf+xml",
|
|
445
|
+
"xvm": "application/xv+xml",
|
|
446
|
+
"xvml": "application/xv+xml",
|
|
447
|
+
"yaml": "text/yaml",
|
|
448
|
+
"yang": "application/yang",
|
|
449
|
+
"yin": "application/yin+xml",
|
|
450
|
+
"yml": "text/yaml",
|
|
451
|
+
"zip": "application/zip"
|
|
452
|
+
};
|
|
453
|
+
function lookup(extn) {
|
|
454
|
+
let tmp = ("" + extn).trim().toLowerCase();
|
|
455
|
+
let idx = tmp.lastIndexOf(".");
|
|
456
|
+
return mimes[!~idx ? tmp : tmp.substring(++idx)];
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// build/server/entries/endpoints/docs/_org_/_repo_/_slug_/_name_/f/_key_/_version_/_...file_/_server.ts.js
|
|
460
|
+
var GET = ({ params, locals, request }) => {
|
|
461
|
+
const doc = docOfPath(`/docs/${params.org}/${params.repo}/${params.slug}/${params.name}`);
|
|
462
|
+
const version = Number(params.version);
|
|
463
|
+
const file = doc && Number.isInteger(version) ? locals.served.system.docs.file(doc, params.key, version, params.file ?? "") : null;
|
|
464
|
+
if (!file) return new Response("not found", { status: 404 });
|
|
465
|
+
const { mtimeMs, size } = statSync(file);
|
|
466
|
+
const etag = `"${Math.floor(mtimeMs).toString(36)}-${size.toString(36)}"`;
|
|
467
|
+
const cache = {
|
|
468
|
+
ETag: etag,
|
|
469
|
+
"Cache-Control": "private, no-cache"
|
|
470
|
+
};
|
|
471
|
+
if (request.headers.get("if-none-match") === etag) return new Response(null, {
|
|
472
|
+
status: 304,
|
|
473
|
+
headers: cache
|
|
474
|
+
});
|
|
475
|
+
return new Response(readFileSync(file), { headers: {
|
|
476
|
+
...cache,
|
|
477
|
+
"Content-Type": lookup(file) ?? "application/octet-stream",
|
|
478
|
+
"Content-Security-Policy": `sandbox ${DOC_SANDBOX}`,
|
|
479
|
+
"Access-Control-Allow-Origin": "*",
|
|
480
|
+
"X-Content-Type-Options": "nosniff",
|
|
481
|
+
"Referrer-Policy": "no-referrer"
|
|
482
|
+
} });
|
|
483
|
+
};
|
|
484
|
+
export {
|
|
485
|
+
GET
|
|
486
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
SessionState
|
|
4
|
+
} from "./chunk-PDCON4KS.js";
|
|
5
|
+
import {
|
|
6
|
+
external_exports
|
|
7
|
+
} from "./chunk-NCZ77J5E.js";
|
|
8
|
+
|
|
9
|
+
// build/server/chunks/stages.js
|
|
10
|
+
var StageName = external_exports.string().max(24).regex(/^[a-z]+(_[a-z]+){0,2}$/, "a stage is lowercase snake_case, one to three words").refine((name) => !SessionState.options.includes(name), "a stage never repeats Herdr's state");
|
|
11
|
+
var StageSchema = external_exports.object({
|
|
12
|
+
name: StageName,
|
|
13
|
+
usage: external_exports.string().min(1),
|
|
14
|
+
/** Who registered it, or null for a fixed one. */
|
|
15
|
+
added_by: external_exports.string().nullable().default(null),
|
|
16
|
+
added_at: external_exports.string().nullable().default(null)
|
|
17
|
+
});
|
|
18
|
+
var fixed = (name, usage) => StageSchema.parse({
|
|
19
|
+
name,
|
|
20
|
+
usage
|
|
21
|
+
});
|
|
22
|
+
var PLANNING = "planning";
|
|
23
|
+
var PLAN_REVIEW = "plan_review";
|
|
24
|
+
var BUILDING = "building";
|
|
25
|
+
var LAND_REVIEW = "land_review";
|
|
26
|
+
var LANDING = "landing";
|
|
27
|
+
var LANDED = "landed";
|
|
28
|
+
var PR_OPEN = "pr_open";
|
|
29
|
+
fixed(PLANNING, "Reading the issue and drafting a plan, before any plan is asked about."), fixed(PLAN_REVIEW, "A plan is in front of the user, or being revised for their comments."), fixed(BUILDING, "Building and testing an approved plan."), fixed(LAND_REVIEW, "The work is finished and the user is asked to approve landing it. Set by the bus only."), fixed(LANDING, "The bus is checking and landing the work, after land. Set by the bus only."), fixed(PR_OPEN, "The work's PR is open, waiting for its merge; the agent rests until something needs it. Set by the bus only."), fixed("followers", "The work landed, and its issue closes once every follower has landed too; the agent waits up for them. Set by the bus only."), fixed(LANDED, "The work is on the default branch, its issue is closed, and the slot is safe to clean up. Set by the bus only.");
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
StageName
|
|
33
|
+
};
|