@tarunspandit/codexflow 0.29.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/AGENTS.example.md +18 -0
- package/CHANGELOG.md +311 -0
- package/CHATGPT_PROMPT.md +12 -0
- package/CODEX_PROMPT.md +12 -0
- package/CONTRIBUTING.md +51 -0
- package/DOMAIN_SETUP.md +241 -0
- package/FAQ.md +327 -0
- package/FAQ_ZH.md +279 -0
- package/LICENSE +21 -0
- package/NOTICE +9 -0
- package/PUBLIC_LAUNCH_CHECKLIST.md +111 -0
- package/README.md +287 -0
- package/README_ZH.md +461 -0
- package/SECURITY.md +145 -0
- package/config.example.env +31 -0
- package/dist/analysis/cache.js +27 -0
- package/dist/analysis/cache.js.map +1 -0
- package/dist/analysis/classify.js +102 -0
- package/dist/analysis/classify.js.map +1 -0
- package/dist/analysis/extract.js +139 -0
- package/dist/analysis/extract.js.map +1 -0
- package/dist/analysis/graph.js +22 -0
- package/dist/analysis/graph.js.map +1 -0
- package/dist/analysis/impact.js +167 -0
- package/dist/analysis/impact.js.map +1 -0
- package/dist/analysis/index.js +215 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/analysis/inventory.js +51 -0
- package/dist/analysis/inventory.js.map +1 -0
- package/dist/analysis/providers.js +24 -0
- package/dist/analysis/providers.js.map +1 -0
- package/dist/analysis/rank.js +27 -0
- package/dist/analysis/rank.js.map +1 -0
- package/dist/analysis/types.js +8 -0
- package/dist/analysis/types.js.map +1 -0
- package/dist/bashOps.js +233 -0
- package/dist/bashOps.js.map +1 -0
- package/dist/capabilitiesOps.js +365 -0
- package/dist/capabilitiesOps.js.map +1 -0
- package/dist/codexSessions.js +379 -0
- package/dist/codexSessions.js.map +1 -0
- package/dist/config.js +289 -0
- package/dist/config.js.map +1 -0
- package/dist/fsOps.js +286 -0
- package/dist/fsOps.js.map +1 -0
- package/dist/gitOps.js +79 -0
- package/dist/gitOps.js.map +1 -0
- package/dist/guard.js +198 -0
- package/dist/guard.js.map +1 -0
- package/dist/http.js +1671 -0
- package/dist/http.js.map +1 -0
- package/dist/proContext.js +274 -0
- package/dist/proContext.js.map +1 -0
- package/dist/profileStore.js +89 -0
- package/dist/profileStore.js.map +1 -0
- package/dist/projectCatalog.js +134 -0
- package/dist/projectCatalog.js.map +1 -0
- package/dist/redact.js +73 -0
- package/dist/redact.js.map +1 -0
- package/dist/searchOps.js +186 -0
- package/dist/searchOps.js.map +1 -0
- package/dist/server.js +2502 -0
- package/dist/server.js.map +1 -0
- package/dist/stdio.js +36 -0
- package/dist/stdio.js.map +1 -0
- package/dist/toolCardWidget.js +1155 -0
- package/dist/toolCardWidget.js.map +1 -0
- package/dist/workspaceOps.js +229 -0
- package/dist/workspaceOps.js.map +1 -0
- package/docs/.nojekyll +1 -0
- package/docs/favicon.svg +5 -0
- package/docs/index.html +638 -0
- package/docs/og.png +0 -0
- package/docs/script.js +80 -0
- package/docs/star.svg +11 -0
- package/docs/styles.css +1229 -0
- package/docs/zh.html +436 -0
- package/package.json +94 -0
- package/scripts/analysis-cli-smoke.mjs +81 -0
- package/scripts/analysis-smoke.mjs +179 -0
- package/scripts/clean.mjs +6 -0
- package/scripts/cli-smoke.mjs +168 -0
- package/scripts/codexflow.mjs +4375 -0
- package/scripts/doctor-smoke.mjs +90 -0
- package/scripts/execute-handoff-smoke.mjs +1110 -0
- package/scripts/http-smoke.mjs +812 -0
- package/scripts/pro-apply.mjs +141 -0
- package/scripts/pro-bundle.mjs +121 -0
- package/scripts/pro-smoke.mjs +95 -0
- package/scripts/settings-smoke.mjs +756 -0
- package/scripts/smoke.mjs +1194 -0
- package/scripts/stress.mjs +835 -0
package/docs/script.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const copyButtons = document.querySelectorAll("[data-copy]");
|
|
2
|
+
const reducedMotion = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
|
|
3
|
+
const announcer = document.createElement("div");
|
|
4
|
+
|
|
5
|
+
announcer.className = "sr-only";
|
|
6
|
+
announcer.setAttribute("aria-live", "polite");
|
|
7
|
+
announcer.setAttribute("aria-atomic", "true");
|
|
8
|
+
document.body.append(announcer);
|
|
9
|
+
|
|
10
|
+
function announce(message) {
|
|
11
|
+
announcer.textContent = "";
|
|
12
|
+
window.requestAnimationFrame(() => {
|
|
13
|
+
announcer.textContent = message;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
async function copyValue(value) {
|
|
18
|
+
if (navigator.clipboard?.writeText) {
|
|
19
|
+
await navigator.clipboard.writeText(value);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const textarea = document.createElement("textarea");
|
|
24
|
+
textarea.value = value;
|
|
25
|
+
textarea.setAttribute("readonly", "");
|
|
26
|
+
textarea.style.position = "fixed";
|
|
27
|
+
textarea.style.opacity = "0";
|
|
28
|
+
document.body.append(textarea);
|
|
29
|
+
textarea.select();
|
|
30
|
+
const copied = document.execCommand("copy");
|
|
31
|
+
textarea.remove();
|
|
32
|
+
if (!copied) throw new Error("Clipboard is unavailable");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
for (const button of copyButtons) {
|
|
36
|
+
const defaultLabel = button.textContent?.trim() || "Copy";
|
|
37
|
+
const defaultAriaLabel = button.getAttribute("aria-label") || defaultLabel;
|
|
38
|
+
|
|
39
|
+
button.addEventListener("click", async () => {
|
|
40
|
+
const value = button.getAttribute("data-copy") || "";
|
|
41
|
+
if (!value) return;
|
|
42
|
+
|
|
43
|
+
button.disabled = true;
|
|
44
|
+
button.setAttribute("aria-busy", "true");
|
|
45
|
+
try {
|
|
46
|
+
await copyValue(value);
|
|
47
|
+
button.textContent = "Copied";
|
|
48
|
+
button.setAttribute("aria-label", "Copied to clipboard");
|
|
49
|
+
announce("Copied to clipboard");
|
|
50
|
+
} catch {
|
|
51
|
+
button.textContent = "Copy failed";
|
|
52
|
+
button.setAttribute("aria-label", "Copy failed; try again");
|
|
53
|
+
announce("Copy failed. Try again.");
|
|
54
|
+
} finally {
|
|
55
|
+
button.disabled = false;
|
|
56
|
+
button.removeAttribute("aria-busy");
|
|
57
|
+
window.setTimeout(() => {
|
|
58
|
+
button.textContent = defaultLabel;
|
|
59
|
+
button.setAttribute("aria-label", defaultAriaLabel);
|
|
60
|
+
}, 1400);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const internalLinks = document.querySelectorAll('a[href^="#"]');
|
|
66
|
+
|
|
67
|
+
for (const link of internalLinks) {
|
|
68
|
+
link.addEventListener("click", (event) => {
|
|
69
|
+
const targetId = link.getAttribute("href")?.slice(1);
|
|
70
|
+
const target = targetId ? document.getElementById(targetId) : null;
|
|
71
|
+
if (!target) return;
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
if (window.location.hash !== `#${targetId}`) {
|
|
74
|
+
history.pushState(null, "", `#${targetId}`);
|
|
75
|
+
}
|
|
76
|
+
if (!target.hasAttribute("tabindex")) target.setAttribute("tabindex", "-1");
|
|
77
|
+
target.focus({ preventScroll: true });
|
|
78
|
+
target.scrollIntoView({ behavior: reducedMotion ? "auto" : "smooth", block: "start" });
|
|
79
|
+
});
|
|
80
|
+
}
|
package/docs/star.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" role="img" aria-label="Star">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="gold" x1="4" y1="2" x2="20" y2="22">
|
|
4
|
+
<stop offset="0" stop-color="#fde68a"/>
|
|
5
|
+
<stop offset="0.48" stop-color="#fbbf24"/>
|
|
6
|
+
<stop offset="1" stop-color="#b45309"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<path fill="url(#gold)" d="M12 2.7 14.9 8.6l6.5.9-4.7 4.6 1.1 6.5L12 17.5l-5.8 3.1 1.1-6.5-4.7-4.6 6.5-.9L12 2.7Z"/>
|
|
10
|
+
<path fill="none" stroke="#fff7ed" stroke-opacity=".65" stroke-width="1" d="m12 4.95 2.1 4.25.24.49.54.08 4.69.68-3.4 3.31-.39.38.1.54.8 4.67-4.2-2.21-.48-.25-.48.25-4.2 2.21.8-4.67.1-.54-.39-.38-3.4-3.31 4.69-.68.54-.08.24-.49L12 4.95Z"/>
|
|
11
|
+
</svg>
|