loki-mode 11.63.9 → 11.63.10
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/SKILL.md +2 -2
- package/VERSION +1 -1
- package/dashboard/__init__.py +1 -1
- package/dashboard/build_supervisor.py +15 -35
- package/docs/CLI-REFERENCE.md +1 -1
- package/docs/INSTALLATION.md +1 -1
- package/docs/v10/FAILURE-CLASSES.md +9 -0
- package/loki-ts/data/child-env.json +337 -0
- package/loki-ts/dist/loki.js +2 -2
- package/mcp/__init__.py +1 -1
- package/package.json +2 -2
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/web-app/dist/assets/{AdminPage-DVMNRlUX.js → AdminPage-Bk_-Xzhe.js} +1 -1
- package/web-app/dist/assets/{Avatar-BNJ5Hy3D.js → Avatar-CGPyph_k.js} +1 -1
- package/web-app/dist/assets/{Badge-kTzAMem_.js → Badge-BowhJwGD.js} +1 -1
- package/web-app/dist/assets/{Button-CIPzEBGi.js → Button-DKjyGLn3.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-Cnekildp.js → CockpitPage-DxMFd-iC.js} +1 -1
- package/web-app/dist/assets/{ComparePage-CLR-fJb-.js → ComparePage-Cicley_x.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-WSSOc7ES.js → ErrorBoundary-vJUF4ktr.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-5mVPOgON.js → EvidenceReceiptPanel-pGh2kXp_.js} +1 -1
- package/web-app/dist/assets/{GitHubIssuesPanel-CkcGGhlu.js → GitHubIssuesPanel-D8adcDBw.js} +1 -1
- package/web-app/dist/assets/{GitHubPRsPanel-2Zie2x_4.js → GitHubPRsPanel-D3Qdq9MR.js} +1 -1
- package/web-app/dist/assets/{HomePage-DI8GDmWZ.js → HomePage-JVTDjmtY.js} +2 -2
- package/web-app/dist/assets/{LoginPage-DxaGdSYM.js → LoginPage-yiRUOgN_.js} +1 -1
- package/web-app/dist/assets/{MagicPage-DyvUmyQQ.js → MagicPage-CtwAzOBV.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-DMAyTD9l.js → MetricsPage-B9Ed0P_2.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-Cf21HwA9.js → NotFoundPage-DLm5RJ8R.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-DW7ukkoR.js → ProjectPage-CIlbqmiA.js} +3 -3
- package/web-app/dist/assets/{ProjectsPage-CCus6FE7.js → ProjectsPage-DRl0vrE7.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-Dz9uez0N.js → SettingsPage-CBslXd4q.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-C5LpPIbE.js → ShowcasePage-Dr-gbgvW.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-CRKU-Cry.js → SystemSettingsPage-DWfOwhZt.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-Brk-Kvz_.js → TeamsPage-YSPnxj8N.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-CoozICfx.js → TemplatesPage-BTJbr4S1.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-VgpLSPkM.js → TerminalOutput-CutHjGhX.js} +1 -1
- package/web-app/dist/assets/{activity-J2SLOoNT.js → activity-9GVvJG9_.js} +1 -1
- package/web-app/dist/assets/{bell-BpycUrjA.js → bell-AWIQBoL7.js} +1 -1
- package/web-app/dist/assets/{bot-tblN7jAd.js → bot-BspS6zQ4.js} +1 -1
- package/web-app/dist/assets/{check-7SqhHzzP.js → check-CpQztRg-.js} +1 -1
- package/web-app/dist/assets/{chevron-left-ntaBx_xF.js → chevron-left-DmxFDM-k.js} +1 -1
- package/web-app/dist/assets/{circle-alert-BBSjoKIc.js → circle-alert-7P63wjYd.js} +1 -1
- package/web-app/dist/assets/{clock-_dswOp5X.js → clock-CGfypH8h.js} +1 -1
- package/web-app/dist/assets/{cloud-DKOb75-2.js → cloud-DVo5dSG7.js} +1 -1
- package/web-app/dist/assets/{code-xml-D18z-R40.js → code-xml-BAYKZd9C.js} +1 -1
- package/web-app/dist/assets/{database-DIncPJaM.js → database-NFI5ep6o.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-BYygqtPF.js → dollar-sign-DDNMuQee.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-BkQxBzA8.js → file-code-corner-CLtaGwhY.js} +1 -1
- package/web-app/dist/assets/{file-plus-DQRpTsb-.js → file-plus-CVNa5Rsd.js} +1 -1
- package/web-app/dist/assets/{globe-Cb9UTYDC.js → globe-Boseb0ae.js} +1 -1
- package/web-app/dist/assets/{hammer-CWs4fhYA.js → hammer-0DKY8Wjl.js} +1 -1
- package/web-app/dist/assets/{index-DhSRa3OQ.js → index-BRhTiL_p.js} +3 -3
- package/web-app/dist/assets/{layers-C9izFUFb.js → layers-DXh-CCAk.js} +1 -1
- package/web-app/dist/assets/{loader-circle-BDCpAcJw.js → loader-circle-BN8XcvZ2.js} +1 -1
- package/web-app/dist/assets/{lock-DJ1UtPoh.js → lock-BP52s010.js} +1 -1
- package/web-app/dist/assets/{package-Dozswt2D.js → package-CmFgVZBm.js} +1 -1
- package/web-app/dist/assets/{plus-CLQz8B-L.js → plus-fTAnN8sY.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-CZ2b-hL5.js → refresh-cw-BmLTgdij.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-CgX6ORxy.js → rotate-ccw-IN-GP_Cu.js} +1 -1
- package/web-app/dist/assets/{scroll-text-B2BrQ69A.js → scroll-text-CXubmdQ9.js} +1 -1
- package/web-app/dist/assets/{server-BFaVBWgX.js → server-aj2keset.js} +1 -1
- package/web-app/dist/assets/{shield-alert-xpurE7SL.js → shield-alert-5nGQrsQ5.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-Cn-1rP6c.js → thumbs-up-DTL6aW9R.js} +1 -1
- package/web-app/dist/assets/{trash-2-SyTF24MM.js → trash-2-hEGZVUrK.js} +1 -1
- package/web-app/dist/assets/{trending-down-B00sbl8f.js → trending-down-B9QtK1p4.js} +1 -1
- package/web-app/dist/assets/{trending-up-s2d_s3Dt.js → trending-up-Dzf_1IOA.js} +1 -1
- package/web-app/dist/assets/{upload-Cmg63NHC.js → upload-CwiyNUi5.js} +1 -1
- package/web-app/dist/assets/{usePolling-C11hGYdh.js → usePolling-BWJIignT.js} +1 -1
- package/web-app/dist/assets/{user-lWcI4YnK.js → user-CkMmwOHk.js} +1 -1
- package/web-app/dist/index.html +1 -1
package/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: loki-mode
|
|
|
3
3
|
description: Runs an autonomous software factory that knows what it is supposed to deliver and proves it did, with a signed receipt. Use when the user says Loki Mode or asks to build, fix or verify software autonomously.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Loki Mode v11.63.
|
|
6
|
+
# Loki Mode v11.63.10
|
|
7
7
|
|
|
8
8
|
**Current entry points (Loki 10 engine):** `loki "<task>"`, `loki owner/repo#N` and `loki quick "<task>"` run the Loki 10 engine and end with a signed receipt (`loki verify`). `loki backlog owner/repo --all` runs many issues in parallel. Guide: `docs/v10/GUIDE.md`. The skill instructions below, and `loki start`, describe the previous bash loop. PRD-file starts (`loki start ./prd.md`) and the opencode provider still run on it until FC38-SWEEP ports them; the legacy-engine command and the LOKI_ENGINE switch remain removed. Prefer `loki owner/repo#N` for issues.
|
|
9
9
|
|
|
@@ -476,4 +476,4 @@ Implemented, planned and deprecated items, with the version each landed in: `ski
|
|
|
476
476
|
|
|
477
477
|
---
|
|
478
478
|
|
|
479
|
-
**v11.63.
|
|
479
|
+
**v11.63.10 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.63.
|
|
1
|
+
11.63.10
|
package/dashboard/__init__.py
CHANGED
|
@@ -44,41 +44,21 @@ _CHILD_ENV_NAMES = {
|
|
|
44
44
|
"TERM",
|
|
45
45
|
"USER",
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"LOKI_COUNCIL_TIMEOUT_MS",
|
|
63
|
-
"LOKI_ENTERPRISE_AUTH",
|
|
64
|
-
"LOKI_FIRST_PASS_EXCELLENCE",
|
|
65
|
-
"LOKI_GEMINI_MODEL",
|
|
66
|
-
"LOKI_HOST_GUARD",
|
|
67
|
-
"LOKI_HOST_GUARD_SETTINGS_JSON",
|
|
68
|
-
"LOKI_LEGACY_BASH",
|
|
69
|
-
"LOKI_MAX_ITERATIONS",
|
|
70
|
-
"LOKI_NO_SESSION_PERSIST",
|
|
71
|
-
"LOKI_PARTIAL_MESSAGES",
|
|
72
|
-
"LOKI_PROMPT_INJECTION",
|
|
73
|
-
"LOKI_SDK_LOOP",
|
|
74
|
-
"LOKI_SDK_MODE",
|
|
75
|
-
"LOKI_SESSION_MODEL",
|
|
76
|
-
"LOKI_SETTING_SOURCES",
|
|
77
|
-
"LOKI_SKILL_DIR",
|
|
78
|
-
"LOKI_SPEC_SHA256",
|
|
79
|
-
"LOKI_SPEC_CONTRADICTION_FASTFAIL",
|
|
80
|
-
"LOKI_WORKSPACE_ROOTS",
|
|
81
|
-
}
|
|
47
|
+
# The LOKI_* names forwarded to a supervised build come from one data file that
|
|
48
|
+
# also lists every name loki-ts/src reads but deliberately does not forward; a
|
|
49
|
+
# guard in tests/dashboard/test_build_supervisor.py fails on an unlisted read.
|
|
50
|
+
_CHILD_ENV_DATA = Path(__file__).resolve().parent.parent / "loki-ts" / "data" / "child-env.json"
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def _load_child_loki_env_names() -> frozenset[str]:
|
|
54
|
+
"""Read the forwarded LOKI_* names; a missing or empty list is a hard error."""
|
|
55
|
+
names = json.loads(_CHILD_ENV_DATA.read_text(encoding="utf-8"))["forwarded"]
|
|
56
|
+
if not names or not all(isinstance(n, str) and n.startswith("LOKI_") for n in names):
|
|
57
|
+
raise RuntimeError(f"{_CHILD_ENV_DATA} has no valid forwarded LOKI_* names")
|
|
58
|
+
return frozenset(names)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
_CHILD_LOKI_ENV_NAMES = _load_child_loki_env_names()
|
|
82
62
|
_SYSTEM_RUNTIME_READ_PATHS = (
|
|
83
63
|
"/System",
|
|
84
64
|
"/usr",
|
package/docs/CLI-REFERENCE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CLI reference
|
|
2
2
|
|
|
3
|
-
Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.63.
|
|
3
|
+
Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.63.10. Do not edit by hand.
|
|
4
4
|
Hidden and legacy-only commands are omitted; see `docs/v10/CLI-MODERN.md` for the full inventory.
|
|
5
5
|
|
|
6
6
|
| Command | Description |
|
package/docs/INSTALLATION.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Loki Mode, by [Autonomi](https://www.autonomi.dev/), turns a spec or an issue into a verified pull request with a receipt you can check. This page covers installing it, a first run, and the options around it.
|
|
4
4
|
|
|
5
|
-
**Version:** v11.63.
|
|
5
|
+
**Version:** v11.63.10
|
|
6
6
|
|
|
7
7
|
**Engine note:** `loki start` is the primary command. `loki start`, `loki "<task>"`, `loki owner/repo#N` and `loki quick` all run the Loki 10 engine, whatever the flag order or input form (PRD file, issue ref, task or one-word brief). The previous loop runs only on `--engine legacy`, `LOKI_ENGINE=legacy`, or for one call when a flag Loki 10 cannot honor is present. See the [user guide](v10/GUIDE.md) and the [5-minute quickstart](QUICKSTART.md).
|
|
8
8
|
|
|
@@ -1808,3 +1808,12 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
|
|
|
1808
1808
|
- Siblings swept: every line-anchored reader of the log text (session.ts parseMarkers reads LOKI_ALREADY_DONE and LOKI_SPEC_CONFLICT, which the agent is meant to write, so they are not engine markers; budget.ts isRateLimited is an unanchored keyword heuristic on prose by design, not a trusted marker). Engine-written markers in the log: `[sdk-loop error:` (parser frame line, providers.ts catch) and `[rate_limit]` (a keyword the heuristic already matches in prose, so a forgery gains nothing). Also covered: the claude, codex, cline, aider and opencode CLI paths (all four writeCaptured stdout sites) and the `said` text inside the real frame line.
|
|
1809
1809
|
- Mechanism: retry_class.ts neutralizeEngineMarkers rewrites `[sdk-loop error:` to `[agent-text sdk-loop error:` anywhere in agent text (capture(), the frame's `said`, and every CLI stdout before writeCaptured). sdkAuthCause also returns redactSecrets(...) because provider_error goes into events.jsonl unredacted.
|
|
1810
1810
|
- Fixture: sdk_stream_parser.test.ts cases named FC-AGENT-TEXT-FORGES-ENGINE-MARKER (forged assistant and result text at line start and mid-line, mid-line quote read as null by sdkAuthCause, real frame still classified and redacted for an sk-ant- value) and fatal_e2e.test.ts (forged stdout plus exit 1 is not fatal). Each is red with neutralizeEngineMarkers as identity, the `^` anchor dropped, or the redaction removed.
|
|
1811
|
+
|
|
1812
|
+
## FC-CHILD-ENV-HAND-ALLOWLIST-DRIFT The LOKI_* names a dashboard-started build receives were a hand-typed set in build_supervisor.py, so a setting the runner reads but the set omits is silently dropped (#305)
|
|
1813
|
+
- User-visible vs raw: user-visible. A LOKI_* setting exported before starting a build from the dashboard has no effect and nothing says so.
|
|
1814
|
+
- Law: an allowlist that must track what the code reads is derived from, or checked against, what the code reads; it is never kept by hand alone.
|
|
1815
|
+
- Cause (measured): dashboard/build_supervisor.py `_CHILD_LOKI_ENV_NAMES` listed 33 names. A scan of `env.LOKI_X` and `env["LOKI_X"]` reads under loki-ts/src at origin/main 8cc2534f5 finds 316 distinct names; 18 are in the set and 298 are not (15 of the 33 set names are read only outside loki-ts/src). Examples not forwarded today: LOKI_PROVIDER, LOKI_E10_MODEL_DEFAULT, LOKI_BUDGET_LIMIT, LOKI_E10_MAX_COST_USD.
|
|
1816
|
+
- Siblings swept: `_CHILD_ENV_NAMES` (non-LOKI system names) is a fixed OS list, not a reflection of code reads, and is unchanged. The bash route's env is out of scope.
|
|
1817
|
+
- Mechanism: loki-ts/data/child-env.json holds `forwarded` (the original 33, no addition) and `not_forwarded` (the other 298 read names, a baseline that preserves today's behavior and needs a per-name decision to move). build_supervisor.py loads `forwarded` at import and fails hard if it is missing or empty. A test scans loki-ts/src and fails naming any read that is in neither list, and fails if a forwarded name is secret-shaped (TOKEN, SECRET, KEY, PASSWORD, CRED) or listed twice.
|
|
1818
|
+
- Known limit: a read through destructuring (`const { LOKI_X } = process.env`) or a computed key is not seen by the scan.
|
|
1819
|
+
- Fixture: tests/dashboard/test_build_supervisor.py: a child sees LOKI_CLAUDE_TASK_BUDGET=64000 read from its own env, never LOKI_PR_BOT_TOKEN or LOKI_RECEIPT_SIGNING_KEY; a planted `process.env["LOKI_PLANTED_X"]` fixture is reported. Mutants: loader returns an empty set (2 tests red); scan drops the `env.X` form (planted test red).
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
{
|
|
2
|
+
"forwarded": [
|
|
3
|
+
"LOKI_ADVISOR_MODEL",
|
|
4
|
+
"LOKI_APP_RUNNER",
|
|
5
|
+
"LOKI_AUTONOMY_OVERRIDE",
|
|
6
|
+
"LOKI_BUILD_PROFILE",
|
|
7
|
+
"LOKI_CLAUDE_MODEL_DEVELOPMENT",
|
|
8
|
+
"LOKI_CLAUDE_MODEL_FAST",
|
|
9
|
+
"LOKI_CLAUDE_MODEL_PLANNING",
|
|
10
|
+
"LOKI_CLAUDE_TASK_BUDGET",
|
|
11
|
+
"LOKI_CODEX_MODEL",
|
|
12
|
+
"LOKI_CODEX_REASONING_EFFORT",
|
|
13
|
+
"LOKI_CODEX_WEB_SEARCH",
|
|
14
|
+
"LOKI_COMPLEXITY",
|
|
15
|
+
"LOKI_COUNCIL_ENABLED",
|
|
16
|
+
"LOKI_COUNCIL_SIZE",
|
|
17
|
+
"LOKI_COUNCIL_TIMEOUT_MS",
|
|
18
|
+
"LOKI_ENTERPRISE_AUTH",
|
|
19
|
+
"LOKI_FIRST_PASS_EXCELLENCE",
|
|
20
|
+
"LOKI_GEMINI_MODEL",
|
|
21
|
+
"LOKI_HOST_GUARD",
|
|
22
|
+
"LOKI_HOST_GUARD_SETTINGS_JSON",
|
|
23
|
+
"LOKI_LEGACY_BASH",
|
|
24
|
+
"LOKI_MAX_ITERATIONS",
|
|
25
|
+
"LOKI_NO_SESSION_PERSIST",
|
|
26
|
+
"LOKI_PARTIAL_MESSAGES",
|
|
27
|
+
"LOKI_PROMPT_INJECTION",
|
|
28
|
+
"LOKI_SDK_LOOP",
|
|
29
|
+
"LOKI_SDK_MODE",
|
|
30
|
+
"LOKI_SESSION_MODEL",
|
|
31
|
+
"LOKI_SETTING_SOURCES",
|
|
32
|
+
"LOKI_SKILL_DIR",
|
|
33
|
+
"LOKI_SPEC_CONTRADICTION_FASTFAIL",
|
|
34
|
+
"LOKI_SPEC_SHA256",
|
|
35
|
+
"LOKI_WORKSPACE_ROOTS"
|
|
36
|
+
],
|
|
37
|
+
"not_forwarded": [
|
|
38
|
+
"LOKI_ABLATION_TIMEOUT",
|
|
39
|
+
"LOKI_ACTOR",
|
|
40
|
+
"LOKI_ADVISOR",
|
|
41
|
+
"LOKI_ADVISOR_SCOPE",
|
|
42
|
+
"LOKI_AGENTS_PROJECT_DIR",
|
|
43
|
+
"LOKI_AGENTS_USER_DIR",
|
|
44
|
+
"LOKI_AIDER_FLAGS",
|
|
45
|
+
"LOKI_AIDER_MODEL",
|
|
46
|
+
"LOKI_AI_MARKING",
|
|
47
|
+
"LOKI_ALLOW_AGENT_GITHUB_TOKEN",
|
|
48
|
+
"LOKI_ALLOW_HAIKU",
|
|
49
|
+
"LOKI_ANSWER_SHA",
|
|
50
|
+
"LOKI_AUTO_GIT_INIT",
|
|
51
|
+
"LOKI_AUTO_LEARNINGS",
|
|
52
|
+
"LOKI_AUTO_LEARNINGS_EPISODE",
|
|
53
|
+
"LOKI_AUTO_LEARN_PR",
|
|
54
|
+
"LOKI_BARE_SUBCALLS",
|
|
55
|
+
"LOKI_BEFORE_AFTER",
|
|
56
|
+
"LOKI_BMAD_STORY_ID",
|
|
57
|
+
"LOKI_BUDGET_LEDGER",
|
|
58
|
+
"LOKI_BUDGET_LIMIT",
|
|
59
|
+
"LOKI_CACHE_ROOT",
|
|
60
|
+
"LOKI_CAPABILITY_ROUTER",
|
|
61
|
+
"LOKI_CAVEMAN",
|
|
62
|
+
"LOKI_CAVEMAN_LEVEL",
|
|
63
|
+
"LOKI_CAVEMAN_USER_MODE",
|
|
64
|
+
"LOKI_CAVEMAN_VERSION",
|
|
65
|
+
"LOKI_CHANGE_TIER",
|
|
66
|
+
"LOKI_CLINE_MODEL",
|
|
67
|
+
"LOKI_CLI_VERSION",
|
|
68
|
+
"LOKI_COCKPIT_PROTOCOL",
|
|
69
|
+
"LOKI_CODEX_OUTPUT_LAST",
|
|
70
|
+
"LOKI_COMMIT_WALL",
|
|
71
|
+
"LOKI_CONFIDENCE_SPIKE",
|
|
72
|
+
"LOKI_CONFIRM",
|
|
73
|
+
"LOKI_CONTRACT",
|
|
74
|
+
"LOKI_CONTROL",
|
|
75
|
+
"LOKI_CONTROL_ANSWER_DIR",
|
|
76
|
+
"LOKI_CONTROL_AUTOINGEST",
|
|
77
|
+
"LOKI_CONTROL_DB",
|
|
78
|
+
"LOKI_CONTROL_PLANE_URL",
|
|
79
|
+
"LOKI_CONTROL_PORT",
|
|
80
|
+
"LOKI_CONTROL_TOKEN",
|
|
81
|
+
"LOKI_CONTROL_URL",
|
|
82
|
+
"LOKI_COST_CONFIRM",
|
|
83
|
+
"LOKI_COST_FIRST",
|
|
84
|
+
"LOKI_COST_PREVIEW",
|
|
85
|
+
"LOKI_COST_PROFILE",
|
|
86
|
+
"LOKI_COUNCIL_REVIEW_TIMEOUT",
|
|
87
|
+
"LOKI_CURRENT_MODEL",
|
|
88
|
+
"LOKI_CURRENT_TIER",
|
|
89
|
+
"LOKI_DASHBOARD_PORT",
|
|
90
|
+
"LOKI_DATA_DIR",
|
|
91
|
+
"LOKI_DIR",
|
|
92
|
+
"LOKI_DOCTOR_HELPER_TIMEOUT_MS",
|
|
93
|
+
"LOKI_DURABLE_STATE",
|
|
94
|
+
"LOKI_DYNAMIC_PROMPT_SECTIONS",
|
|
95
|
+
"LOKI_E10_ATTEMPT",
|
|
96
|
+
"LOKI_E10_BASE",
|
|
97
|
+
"LOKI_E10_BASE_JOBS",
|
|
98
|
+
"LOKI_E10_BRIEF",
|
|
99
|
+
"LOKI_E10_CACHE_GAP_MS",
|
|
100
|
+
"LOKI_E10_CACHE_TTL",
|
|
101
|
+
"LOKI_E10_CANCEL_GRACE_MS",
|
|
102
|
+
"LOKI_E10_CAP_FIXED_S",
|
|
103
|
+
"LOKI_E10_CAP_S",
|
|
104
|
+
"LOKI_E10_CASCADE",
|
|
105
|
+
"LOKI_E10_COST_ESTIMATE",
|
|
106
|
+
"LOKI_E10_DASHBOARD_PORT",
|
|
107
|
+
"LOKI_E10_DISALLOWED_TOOLS",
|
|
108
|
+
"LOKI_E10_EFFORT",
|
|
109
|
+
"LOKI_E10_EFFORT_POLICY",
|
|
110
|
+
"LOKI_E10_FIX_RESUME",
|
|
111
|
+
"LOKI_E10_INSTALL",
|
|
112
|
+
"LOKI_E10_INVOKER",
|
|
113
|
+
"LOKI_E10_ISSUE_JSON",
|
|
114
|
+
"LOKI_E10_MAX_COST_USD",
|
|
115
|
+
"LOKI_E10_MODEL_DEFAULT",
|
|
116
|
+
"LOKI_E10_NOTIFY_TIMEOUT_MS",
|
|
117
|
+
"LOKI_E10_NO_FETCH",
|
|
118
|
+
"LOKI_E10_PLAN",
|
|
119
|
+
"LOKI_E10_PREFIX",
|
|
120
|
+
"LOKI_E10_PROJECT_MODEL",
|
|
121
|
+
"LOKI_E10_PROVIDER",
|
|
122
|
+
"LOKI_E10_READINESS_FOLD",
|
|
123
|
+
"LOKI_E10_REPOMAP_MAX_FILES",
|
|
124
|
+
"LOKI_E10_REPO_DIR",
|
|
125
|
+
"LOKI_E10_REPRO",
|
|
126
|
+
"LOKI_E10_RESUME",
|
|
127
|
+
"LOKI_E10_RESUME_SESSION",
|
|
128
|
+
"LOKI_E10_REVIEW_BOX_S",
|
|
129
|
+
"LOKI_E10_SCOPE",
|
|
130
|
+
"LOKI_E10_SIGS",
|
|
131
|
+
"LOKI_E10_SMALL_MAX_CHARS",
|
|
132
|
+
"LOKI_E10_SMALL_NO_RUNNER",
|
|
133
|
+
"LOKI_E10_SNAPSHOT_MAX",
|
|
134
|
+
"LOKI_E10_SPEC_PATH",
|
|
135
|
+
"LOKI_E10_SPEC_SHA256",
|
|
136
|
+
"LOKI_E10_SPENT_USD",
|
|
137
|
+
"LOKI_E10_STABLE_PREFIX",
|
|
138
|
+
"LOKI_E10_STAGE",
|
|
139
|
+
"LOKI_E10_STALL_KILL_S",
|
|
140
|
+
"LOKI_E10_STALL_S",
|
|
141
|
+
"LOKI_E10_TASK_TEXT",
|
|
142
|
+
"LOKI_E10_TIER",
|
|
143
|
+
"LOKI_E10_TRIM",
|
|
144
|
+
"LOKI_E10_VERIFY_JOBS",
|
|
145
|
+
"LOKI_E10_WALL",
|
|
146
|
+
"LOKI_E10_WALL_CONCURRENT",
|
|
147
|
+
"LOKI_E10_WALL_FIRST",
|
|
148
|
+
"LOKI_E10_WALL_LIMIT_S",
|
|
149
|
+
"LOKI_E10_WALL_MANIFEST",
|
|
150
|
+
"LOKI_E10_WALL_TIER",
|
|
151
|
+
"LOKI_EXEC_MANIFEST",
|
|
152
|
+
"LOKI_EXOGENOUS_PROOF",
|
|
153
|
+
"LOKI_FAILOVER",
|
|
154
|
+
"LOKI_FAILOVER_PROVIDERS",
|
|
155
|
+
"LOKI_FETCH_ISSUE_TIMEOUT_MS",
|
|
156
|
+
"LOKI_FORECAST",
|
|
157
|
+
"LOKI_GATE_DEVILS_ADVOCATE",
|
|
158
|
+
"LOKI_GATE_INVARIANTS_BLOCK",
|
|
159
|
+
"LOKI_GATE_LSP_WRITER",
|
|
160
|
+
"LOKI_GATE_MAGIC_DEBATE",
|
|
161
|
+
"LOKI_GATE_SEMANTIC_TESTS_BLOCK",
|
|
162
|
+
"LOKI_GATE_TEST_COVERAGE_BLOCK",
|
|
163
|
+
"LOKI_GATE_TIMEOUT",
|
|
164
|
+
"LOKI_GOAL_SCORING",
|
|
165
|
+
"LOKI_GROUP_FIX_UNITS",
|
|
166
|
+
"LOKI_GROUP_RESUME",
|
|
167
|
+
"LOKI_GROUP_TEST_CMD",
|
|
168
|
+
"LOKI_HANDOFF_MD",
|
|
169
|
+
"LOKI_HARD_GATES",
|
|
170
|
+
"LOKI_HEAL_MODE",
|
|
171
|
+
"LOKI_HOOK_EVENTS",
|
|
172
|
+
"LOKI_HOOK_TIMEOUT",
|
|
173
|
+
"LOKI_HOSTED_ENDPOINT",
|
|
174
|
+
"LOKI_IMPLEMENT_HAIKU_FIRST",
|
|
175
|
+
"LOKI_INFERENCE_GEO",
|
|
176
|
+
"LOKI_INJECT_FINDINGS",
|
|
177
|
+
"LOKI_INTENT_CARD",
|
|
178
|
+
"LOKI_INTENT_TTY",
|
|
179
|
+
"LOKI_INVARIANT_DETECTOR",
|
|
180
|
+
"LOKI_ISSUES_GH_TIMEOUT_MS",
|
|
181
|
+
"LOKI_ITERATION",
|
|
182
|
+
"LOKI_JIRA_EMAIL",
|
|
183
|
+
"LOKI_JIRA_TOKEN",
|
|
184
|
+
"LOKI_JIRA_URL",
|
|
185
|
+
"LOKI_LEAN_CHILDREN",
|
|
186
|
+
"LOKI_LEGACY_COMPLETION_MATCH",
|
|
187
|
+
"LOKI_LEGACY_TIER_SWITCHING",
|
|
188
|
+
"LOKI_LESSONS_REJECTED",
|
|
189
|
+
"LOKI_LICENSE_KEY",
|
|
190
|
+
"LOKI_LINEAR_TOKEN",
|
|
191
|
+
"LOKI_LINEAR_URL",
|
|
192
|
+
"LOKI_MAX_TIER",
|
|
193
|
+
"LOKI_MCP_PROJECT",
|
|
194
|
+
"LOKI_MIN_FREE_MB",
|
|
195
|
+
"LOKI_MIROFISH_URL",
|
|
196
|
+
"LOKI_MODEL_API_KEY",
|
|
197
|
+
"LOKI_MODEL_BASE_URL",
|
|
198
|
+
"LOKI_MODEL_CATALOG",
|
|
199
|
+
"LOKI_MODEL_DEVELOPMENT",
|
|
200
|
+
"LOKI_MODEL_FAST",
|
|
201
|
+
"LOKI_MODEL_OVERRIDE",
|
|
202
|
+
"LOKI_MODEL_ROUTE",
|
|
203
|
+
"LOKI_MOD_OLD_RUNTIME",
|
|
204
|
+
"LOKI_MUTATION_PROOF",
|
|
205
|
+
"LOKI_MUTATION_STRICT",
|
|
206
|
+
"LOKI_NO_AUTO_OPEN",
|
|
207
|
+
"LOKI_NO_BROWSER",
|
|
208
|
+
"LOKI_NO_COMPLETIONS",
|
|
209
|
+
"LOKI_NO_PR_LESSONS",
|
|
210
|
+
"LOKI_NO_RESUME",
|
|
211
|
+
"LOKI_NO_UPDATE_CHECK",
|
|
212
|
+
"LOKI_OPENCODE_CLI",
|
|
213
|
+
"LOKI_OPENCODE_FLAGS",
|
|
214
|
+
"LOKI_OPENCODE_MODEL",
|
|
215
|
+
"LOKI_OTEL_ENDPOINT",
|
|
216
|
+
"LOKI_OVERRIDE_COUNCIL",
|
|
217
|
+
"LOKI_OVERRIDE_JUDGES",
|
|
218
|
+
"LOKI_OVERRIDE_PANEL_SIZE",
|
|
219
|
+
"LOKI_OVERRIDE_REAL_JUDGE",
|
|
220
|
+
"LOKI_PARENT_RUN",
|
|
221
|
+
"LOKI_PAUSE_TIMEOUT_S",
|
|
222
|
+
"LOKI_PERMISSION_POLICY",
|
|
223
|
+
"LOKI_POLICY_REQUIRE_NODE",
|
|
224
|
+
"LOKI_PRD_REGEN",
|
|
225
|
+
"LOKI_PREFLIGHT_PROBE",
|
|
226
|
+
"LOKI_PRICE_TABLE",
|
|
227
|
+
"LOKI_PROJECT_DIR",
|
|
228
|
+
"LOKI_PROJECT_GRAPH_APP_ID",
|
|
229
|
+
"LOKI_PROJECT_GRAPH_MEMBERS",
|
|
230
|
+
"LOKI_PROJECT_GRAPH_ROOT",
|
|
231
|
+
"LOKI_PROJECT_GRAPH_SHARED_MEMORY_DIR",
|
|
232
|
+
"LOKI_PROMOTED_DIR",
|
|
233
|
+
"LOKI_PROOF",
|
|
234
|
+
"LOKI_PROOF_ABLATION",
|
|
235
|
+
"LOKI_PROOF_APP_PROBE",
|
|
236
|
+
"LOKI_PROOF_GPG_KEY",
|
|
237
|
+
"LOKI_PROVIDER",
|
|
238
|
+
"LOKI_PROVIDER_CALL_TIMEOUT",
|
|
239
|
+
"LOKI_PR_BASE",
|
|
240
|
+
"LOKI_PR_BOT_TOKEN",
|
|
241
|
+
"LOKI_PR_DRAFT",
|
|
242
|
+
"LOKI_PR_FOOTER",
|
|
243
|
+
"LOKI_PR_LESSON_DEMOTE",
|
|
244
|
+
"LOKI_PR_REFS",
|
|
245
|
+
"LOKI_PR_RESPOND_CMD",
|
|
246
|
+
"LOKI_PR_RESPOND_MAX",
|
|
247
|
+
"LOKI_PUSH_PR_TIMEOUT_MS",
|
|
248
|
+
"LOKI_QUEUE_ITEM_TIMEOUT_MIN",
|
|
249
|
+
"LOKI_RECEIPT_RETIRED_PUBKEYS",
|
|
250
|
+
"LOKI_RECEIPT_SIGNING_KEY",
|
|
251
|
+
"LOKI_RECEIPT_SIGNING_KEY_FILE",
|
|
252
|
+
"LOKI_RECOVERY_MAX_COST",
|
|
253
|
+
"LOKI_RECOVERY_POLICY",
|
|
254
|
+
"LOKI_REPO_BASELINE",
|
|
255
|
+
"LOKI_REPO_PROFILE",
|
|
256
|
+
"LOKI_RESUME_SESSION",
|
|
257
|
+
"LOKI_REVIEWER_BRIEF",
|
|
258
|
+
"LOKI_REVIEWER_TIER_ROUTING",
|
|
259
|
+
"LOKI_REVIEW_ALLOWLIST",
|
|
260
|
+
"LOKI_REVIEW_INCONCLUSIVE_BLOCK",
|
|
261
|
+
"LOKI_REVIEW_JSON_SCHEMA",
|
|
262
|
+
"LOKI_REVIEW_MERGEABILITY_MIN",
|
|
263
|
+
"LOKI_REVIEW_PROVIDER",
|
|
264
|
+
"LOKI_REVIEW_STAGGER_MS",
|
|
265
|
+
"LOKI_REVIEW_TOOL_GUARD",
|
|
266
|
+
"LOKI_REVIEW_UNAVAILABLE_BLOCK",
|
|
267
|
+
"LOKI_RISK_OVERRIDE_REASON",
|
|
268
|
+
"LOKI_RISK_TIER",
|
|
269
|
+
"LOKI_ROUTER",
|
|
270
|
+
"LOKI_ROUTER_ADVISOR",
|
|
271
|
+
"LOKI_ROUTER_EXECUTOR",
|
|
272
|
+
"LOKI_RUN_TMP",
|
|
273
|
+
"LOKI_SAFE_GIT_CONFIG_TIMEOUT_MS",
|
|
274
|
+
"LOKI_SATISFACTION",
|
|
275
|
+
"LOKI_SDK",
|
|
276
|
+
"LOKI_SDK_CODE_REVIEW",
|
|
277
|
+
"LOKI_SDK_COUNCIL_MODEL",
|
|
278
|
+
"LOKI_SDK_MODE_DEBUG",
|
|
279
|
+
"LOKI_SDK_NODE_MODULES",
|
|
280
|
+
"LOKI_SDK_OAUTH_DEV",
|
|
281
|
+
"LOKI_SDK_PROMPT_CACHE",
|
|
282
|
+
"LOKI_SDK_REVIEW_MODEL",
|
|
283
|
+
"LOKI_SDK_REVIEW_TIMEOUT",
|
|
284
|
+
"LOKI_SDK_VOTER_AGENTS",
|
|
285
|
+
"LOKI_SECURE_SCAN",
|
|
286
|
+
"LOKI_SECURE_SCAN_BASE",
|
|
287
|
+
"LOKI_SEEDED_DEFECTS_DIR",
|
|
288
|
+
"LOKI_SELF_HEAL",
|
|
289
|
+
"LOKI_SEMANTIC_DETECTOR",
|
|
290
|
+
"LOKI_SESSION_FORK",
|
|
291
|
+
"LOKI_SESSION_STAMP",
|
|
292
|
+
"LOKI_SIMPLE",
|
|
293
|
+
"LOKI_SKIP_MEMORY",
|
|
294
|
+
"LOKI_SLACK_ALLOWED_USERS",
|
|
295
|
+
"LOKI_SLACK_ALLOWED_USERS_FILE",
|
|
296
|
+
"LOKI_SLACK_INBOUND",
|
|
297
|
+
"LOKI_SLACK_WEBHOOK_ENV",
|
|
298
|
+
"LOKI_SMART_RETRY",
|
|
299
|
+
"LOKI_SPEED",
|
|
300
|
+
"LOKI_STATIC_ANALYSIS_CONCURRENCY",
|
|
301
|
+
"LOKI_STATUS_PROBE_RETRY_DELAY_MS",
|
|
302
|
+
"LOKI_STATUS_PROBE_TIMEOUT_MS",
|
|
303
|
+
"LOKI_STRICT_MCP",
|
|
304
|
+
"LOKI_SUPPLY_GUARD",
|
|
305
|
+
"LOKI_SUPPLY_MIN_AGE_DAYS",
|
|
306
|
+
"LOKI_TARGET_DIR",
|
|
307
|
+
"LOKI_TELEMETRY",
|
|
308
|
+
"LOKI_TELEMETRY_DISABLED",
|
|
309
|
+
"LOKI_TEST",
|
|
310
|
+
"LOKI_TIER",
|
|
311
|
+
"LOKI_TIER_ROUTING",
|
|
312
|
+
"LOKI_TRACKER_INTAKE",
|
|
313
|
+
"LOKI_TRUST_RUN_ID",
|
|
314
|
+
"LOKI_TS_ENTRY",
|
|
315
|
+
"LOKI_UNIT_ID",
|
|
316
|
+
"LOKI_UNIT_SPEC",
|
|
317
|
+
"LOKI_UNIT_SPEC_FROZEN",
|
|
318
|
+
"LOKI_UNIT_USD_PER_MTOK",
|
|
319
|
+
"LOKI_USE_CLAUDE_WORKFLOWS",
|
|
320
|
+
"LOKI_VERIFY_ALLOW_HEAD_DRIFT",
|
|
321
|
+
"LOKI_VERIFY_ALLOW_UNSIGNED",
|
|
322
|
+
"LOKI_VERIFY_PR",
|
|
323
|
+
"LOKI_VERIFY_REQUIRE_EXOGENOUS",
|
|
324
|
+
"LOKI_VERIFY_TASK_FILE",
|
|
325
|
+
"LOKI_VISUAL_EVIDENCE",
|
|
326
|
+
"LOKI_VISUAL_GATE",
|
|
327
|
+
"LOKI_VPR_GH_TIMEOUT_MS",
|
|
328
|
+
"LOKI_VPR_IMAGE",
|
|
329
|
+
"LOKI_WALL_HARNESS_RUNNER",
|
|
330
|
+
"LOKI_WALL_HOLDOUT",
|
|
331
|
+
"LOKI_WALL_HOLDOUT_RATIO",
|
|
332
|
+
"LOKI_WARM_SOCK",
|
|
333
|
+
"LOKI_WRITEBACK_ISSUE",
|
|
334
|
+
"LOKI_WRITEBACK_KIND",
|
|
335
|
+
"LOKI_XVENDOR_DEFAULT"
|
|
336
|
+
]
|
|
337
|
+
}
|
package/loki-ts/dist/loki.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var Ih0=Object.create;var{getPrototypeOf:Th0,defineProperty:vK,getOwnPropertyNames:Kn,getOwnPropertyDescriptor:Ph0}=Object,Vn=Object.prototype.hasOwnProperty;function Gn(Z){return this[Z]}var Rh0,Eh0,Dh0=(Z,$,J)=>{var X=Z!=null&&typeof Z==="object";if(X){var Y=$?Rh0??=new WeakMap:Eh0??=new WeakMap,Q=Y.get(Z);if(Q)return Q}J=Z!=null?Ih0(Th0(Z)):{};let z=$||!Z||!Z.__esModule?vK(J,"default",{value:Z,enumerable:!0}):J;for(let W of Kn(Z))if(!Vn.call(z,W))vK(z,W,{get:Gn.bind(Z,W),enumerable:!0});if(X)Y.set(Z,z);return z},wh0=(Z)=>{var $=(Wn??=new WeakMap).get(Z),J;if($)return $;if($=vK({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function"){for(var X of Kn(Z))if(!Vn.call($,X))vK($,X,{get:Gn.bind(Z,X),enumerable:!(J=Ph0(Z,X))||J.enumerable})}return Wn.set(Z,$),$},Wn,YM=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var _h0=(Z)=>Z;function xh0(Z,$){this[Z]=_h0.bind(null,$)}var C0=(Z,$)=>{for(var J in $)vK(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:xh0.bind($,J)})};var S=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);var t9=import.meta.require;var qn={};C0(qn,{lokiDirFor:()=>zM,lokiDir:()=>D0,homeLokiDir:()=>T2,findRepoRootForVersion:()=>hK,REPO_ROOT:()=>F0});import{resolve as RZ,dirname as uE}from"path";import{fileURLToPath as kh0}from"url";import{existsSync as QM}from"fs";import{homedir as Sh0}from"os";function yh0(){let Z=Hn;for(let $=0;$<6;$++){if(QM(RZ(Z,"VERSION"))&&QM(RZ(Z,"autonomy/run.sh")))return Z;let J=uE(Z);if(J===Z)break;Z=J}return RZ(Hn,"..","..","..")}function hK(Z){let $=Z;for(let J=0;J<6;J++){if(QM(RZ($,"VERSION"))&&QM(RZ($,"autonomy/run.sh")))return $;let X=uE($);if(X===$)break;$=X}return RZ(Z,"..","..","..")}function zM(Z){return process.env.LOKI_DIR??RZ(Z,".loki")}function D0(){return zM(process.cwd())}function T2(){return RZ(Sh0(),".loki")}var Hn,F0;var s0=S(()=>{Hn=uE(kh0(import.meta.url));F0=yh0()});import{readFileSync as bh0}from"fs";import{resolve as vh0,dirname as hh0}from"path";import{fileURLToPath as fh0}from"url";function N6(){if(v1!==null)return v1;let Z="11.63.
|
|
2
|
+
var Ih0=Object.create;var{getPrototypeOf:Th0,defineProperty:vK,getOwnPropertyNames:Kn,getOwnPropertyDescriptor:Ph0}=Object,Vn=Object.prototype.hasOwnProperty;function Gn(Z){return this[Z]}var Rh0,Eh0,Dh0=(Z,$,J)=>{var X=Z!=null&&typeof Z==="object";if(X){var Y=$?Rh0??=new WeakMap:Eh0??=new WeakMap,Q=Y.get(Z);if(Q)return Q}J=Z!=null?Ih0(Th0(Z)):{};let z=$||!Z||!Z.__esModule?vK(J,"default",{value:Z,enumerable:!0}):J;for(let W of Kn(Z))if(!Vn.call(z,W))vK(z,W,{get:Gn.bind(Z,W),enumerable:!0});if(X)Y.set(Z,z);return z},wh0=(Z)=>{var $=(Wn??=new WeakMap).get(Z),J;if($)return $;if($=vK({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function"){for(var X of Kn(Z))if(!Vn.call($,X))vK($,X,{get:Gn.bind(Z,X),enumerable:!(J=Ph0(Z,X))||J.enumerable})}return Wn.set(Z,$),$},Wn,YM=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var _h0=(Z)=>Z;function xh0(Z,$){this[Z]=_h0.bind(null,$)}var C0=(Z,$)=>{for(var J in $)vK(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:xh0.bind($,J)})};var S=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);var t9=import.meta.require;var qn={};C0(qn,{lokiDirFor:()=>zM,lokiDir:()=>D0,homeLokiDir:()=>T2,findRepoRootForVersion:()=>hK,REPO_ROOT:()=>F0});import{resolve as RZ,dirname as uE}from"path";import{fileURLToPath as kh0}from"url";import{existsSync as QM}from"fs";import{homedir as Sh0}from"os";function yh0(){let Z=Hn;for(let $=0;$<6;$++){if(QM(RZ(Z,"VERSION"))&&QM(RZ(Z,"autonomy/run.sh")))return Z;let J=uE(Z);if(J===Z)break;Z=J}return RZ(Hn,"..","..","..")}function hK(Z){let $=Z;for(let J=0;J<6;J++){if(QM(RZ($,"VERSION"))&&QM(RZ($,"autonomy/run.sh")))return $;let X=uE($);if(X===$)break;$=X}return RZ(Z,"..","..","..")}function zM(Z){return process.env.LOKI_DIR??RZ(Z,".loki")}function D0(){return zM(process.cwd())}function T2(){return RZ(Sh0(),".loki")}var Hn,F0;var s0=S(()=>{Hn=uE(kh0(import.meta.url));F0=yh0()});import{readFileSync as bh0}from"fs";import{resolve as vh0,dirname as hh0}from"path";import{fileURLToPath as fh0}from"url";function N6(){if(v1!==null)return v1;let Z="11.63.10";if(typeof Z==="string"&&Z.length>0)return v1=Z,v1;try{let $=hh0(fh0(import.meta.url)),J=hK($);v1=bh0(vh0(J,"VERSION"),"utf-8").trim()}catch{v1="unknown"}return v1}var v1=null;var EZ=S(()=>{s0()});import{mkdirSync as cE,readFileSync as WM,realpathSync as gh0,statSync as mh0,writeFileSync as dE}from"fs";import{dirname as qY,join as pE,resolve as Un}from"path";function lh0(){return Un(T2(),"cache","update-check.json")}function DZ(Z){let $=/^(\d+)\.(\d+)\.(\d+)$/.exec(Z.trim());if(!$)return null;return[Number($[1]),Number($[2]),Number($[3])]}function fK(Z,$){let J=DZ(Z),X=DZ($);if(!J||!X)return!1;let[Y,Q,z]=J,[W,K,V]=X;if(Y!==W)return Y>W;if(Q!==K)return Q>K;return z>V}function Bn(){let Z=(process.env.LOKI_NO_UPDATE_CHECK??"").trim().toLowerCase();if(Z==="1"||Z==="true"||Z==="yes")return!0;if(process.env.CI)return!0;if(!process.stdout.isTTY)return!0;return!1}function Nn(Z){try{let $=WM(Z,"utf-8"),J=JSON.parse($);if(typeof J.checkedAt==="number"&&typeof J.latest==="string"&&DZ(J.latest)!==null)return{checkedAt:J.checkedAt,latest:J.latest}}catch{}return null}function ah0(Z){try{let $=JSON.parse(WM(Z,"utf-8")).failedAt;if(typeof $==="number")return $}catch{}return null}function ih0(Z,$){let J=Nn(Z);try{cE(qY(Z),{recursive:!0}),dE(Z,JSON.stringify({...J??{},failedAt:$}),"utf-8")}catch{}}function oh0(Z,$){try{cE(qY(Z),{recursive:!0}),dE(Z,JSON.stringify($),"utf-8")}catch{}}async function nh0(){try{let Z=await fetch(uh0,{signal:AbortSignal.timeout(ch0),headers:{accept:"application/json"}});if(!Z.ok)return null;let $=await Z.json();if(typeof $.version==="string"&&DZ($.version)!==null)return $.version}catch{}return null}async function sh0(Z=Date.now(),$=nh0,J=lh0()){let X=Nn(J);if(X&&Z-X.checkedAt<ph0)return X.latest;let Y=ah0(J);if(Y!==null&&Z-Y>=0&&Z-Y<dh0)return null;let Q=await $();if(Q===null)return ih0(J,Z),null;return oh0(J,{checkedAt:Z,latest:Q}),Q}function rh0(Z,$=process.env){if(DZ(Z)===null)return null;let X=$.PATH;if(!X)return null;let Y=new Set;for(let Q of X.split(":")){if(!Q)continue;let z=pE(Q,"loki"),W;try{mh0(z),W=gh0(z)}catch{continue}if(Y.has(W))continue;Y.add(W);try{let K=pE(qY(qY(W)),"package.json"),V=JSON.parse(WM(K,"utf8")).version;if(typeof V!=="string")continue;if(fK(V,Z))return{path:z,version:V}}catch{continue}}return null}function th0(){return Un(T2(),"cache","last-seen-version.json")}function eh0(Z,$={}){try{if(Bn())return!1;if(DZ(Z)===null)return!1;let J=$.seenFile??th0(),X=null;try{let Q=JSON.parse(WM(J,"utf-8")).version;if(typeof Q==="string"&&DZ(Q)!==null)X=Q}catch{}if(X!==null&&!fK(Z,X))return!1;try{cE(qY(J),{recursive:!0}),dE(J,JSON.stringify({version:Z}),"utf-8")}catch{return!1}if(X===null)return!1;return($.write??((Q)=>process.stderr.write(Q)))(`Loki Mode upgraded ${X} -> ${Z}. What is new: https://github.com/asklokesh/loki-mode/releases/tag/v${Z}
|
|
3
3
|
`),!0}catch{return!1}}function Zf0(Z){let $=Z.replace(/\\/g,"/");if($.includes("/Cellar/"))return"brew upgrade loki-mode";if(/\/pnpm\//.test($)||$.includes("/.pnpm/"))return"pnpm add -g loki-mode (or npm i -g loki-mode)";if($.includes("/yarn/global/")||$.includes("/.yarn/"))return"yarn global add loki-mode (or npm i -g loki-mode)";if($.includes("/.bun/"))return"bun install -g loki-mode (or npm i -g loki-mode)";if($.includes("/lib/node_modules/"))return"npm i -g loki-mode (or bun install -g loki-mode)";if($.includes("/homebrew/"))return"brew upgrade loki-mode";return"bun install -g loki-mode (or npm i -g loki-mode)"}async function Mn(Z,$={}){try{if(Bn())return;if(DZ(Z)===null)return;let J=$.write??((Q)=>process.stderr.write(Q));eh0(Z,{write:J,...$.cacheFile?{seenFile:pE(qY($.cacheFile),"last-seen-version.json")}:{}});let X=rh0(Z,$.env??process.env);if(X!==null){J(`Loki Mode ${X.version} is installed but not the one running (you are running ${Z}).
|
|
4
4
|
Another loki earlier on PATH is winning. Newer copy: ${X.path}
|
|
5
5
|
Run \`which -a loki\` to see the order, then remove or re-point the earlier entry.
|
|
@@ -3295,4 +3295,4 @@ Unknown commands exit 2 with a suggestion; run 'loki help' for the full list.
|
|
|
3295
3295
|
`);{let{suggestCommand:X}=await Promise.resolve().then(() => (z7(),sn)),Y=$===void 0?void 0:X($);if(Y)process.stderr.write(`Did you mean 'loki ${Y}'?
|
|
3296
3296
|
`)}return process.stderr.write(Mh0),2}}$T0();var Oh0=()=>globalThis[Symbol.for("loki.ownsStopSignals")]===!0;process.on("SIGINT",()=>{if(!Oh0())process.exit(130)});process.on("SIGTERM",()=>{if(!Oh0())process.exit(143)});var uN9=await mN9(Bun.argv.slice(2));process.exit(uN9);
|
|
3297
3297
|
|
|
3298
|
-
//# debugId=
|
|
3298
|
+
//# debugId=1B505D87D77E0368A6C5FA6F5023FBCB
|
package/mcp/__init__.py
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loki-mode",
|
|
3
3
|
"mcpName": "io.github.asklokesh/loki-mode",
|
|
4
|
-
"version": "11.63.
|
|
4
|
+
"version": "11.63.10",
|
|
5
5
|
"description": "An autonomous software factory that knows what it is supposed to deliver, and proves it did.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"agent",
|
|
@@ -160,5 +160,5 @@
|
|
|
160
160
|
"dependencies": {
|
|
161
161
|
"@resvg/resvg-wasm": "^2.6.2"
|
|
162
162
|
},
|
|
163
|
-
"gitHead": "
|
|
163
|
+
"gitHead": "eeb1242c74c999a711efb3263c3cc3659bab6593"
|
|
164
164
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "loki-mode",
|
|
4
4
|
"displayName": "Loki Mode",
|
|
5
|
-
"version": "11.63.
|
|
5
|
+
"version": "11.63.10",
|
|
6
6
|
"description": "Autonomous spec-to-product build system with a built-in trust layer (RARV-C closure loop, 8 quality gates, completion council). Ships Loki's spec-hardening, drift-detection, and deterministic PR verification commands plus the Loki MCP server.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Autonomi",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as L,r as x,j as e,w as re,Z as ne,m as le,h as ie,p as P,F as ye,U as I,X as ce,L as de,x as oe,M as Ae,T as Z,S as we,l as xe,k as me,y as Ce,E as Fe,a0 as Se,a as U,a2 as he}from"./index-
|
|
1
|
+
import{c as L,r as x,j as e,w as re,Z as ne,m as le,h as ie,p as P,F as ye,U as I,X as ce,L as de,x as oe,M as Ae,T as Z,S as we,l as xe,k as me,y as Ce,E as Fe,a0 as Se,a as U,a2 as he}from"./index-BRhTiL_p.js";import{B as C}from"./Button-DKjyGLn3.js";import{T as $e}from"./trending-up-Dzf_1IOA.js";import{C as z}from"./clock-CGfypH8h.js";import{A as Be,U as ue,M as De}from"./Avatar-CGPyph_k.js";import{A as J}from"./activity-9GVvJG9_.js";import{R as pe}from"./refresh-cw-BmLTgdij.js";import{G as ze}from"./globe-Boseb0ae.js";import{C as Le}from"./chevron-left-DmxFDM-k.js";import{C as je}from"./check-CpQztRg-.js";import{D as Y}from"./dollar-sign-DDNMuQee.js";import{U as Te}from"./user-CkMmwOHk.js";import{D as Me}from"./database-NFI5ep6o.js";import{L as Ue}from"./lock-BP52s010.js";import{S as Re}from"./scroll-text-CXubmdQ9.js";import{S as Ie}from"./shield-alert-5nGQrsQ5.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-BRhTiL_p.js";import{C as r}from"./clock-CGfypH8h.js";import{C as a}from"./circle-alert-7P63wjYd.js";import{C as l}from"./check-CpQztRg-.js";const i={completed:"bg-[#1FC5A8]/10 text-[#1FC5A8]",running:"bg-[#553DE9]/10 text-[#553DE9]",failed:"bg-[#C45B5B]/10 text-[#C45B5B]",started:"bg-[#D4A03C]/10 text-[#D4A03C]",empty:"bg-[#F8F4F0] text-[#6B6960]",version:"bg-[#553DE9]/10 text-[#553DE9]"};function o({status:t}){switch(t){case"completed":return e.jsx(l,{size:12});case"running":return e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping motion-reduce:animate-none absolute inline-flex h-full w-full rounded-full bg-current opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-current"})]});case"failed":return e.jsx(a,{size:12});case"started":return e.jsx(r,{size:12});default:return null}}function f({status:t,children:n,className:s=""}){return e.jsxs("span",{className:["inline-flex items-center gap-1 rounded-btn px-2.5 py-0.5 text-xs font-semibold",i[t],s].filter(Boolean).join(" "),children:[e.jsx(o,{status:t}),n]})}export{f as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as t}from"./index-
|
|
1
|
+
import{r as p,j as t}from"./index-BRhTiL_p.js";const m={primary:"bg-[#553DE9] text-white hover:bg-[#4432c4] shadow-button rounded-btn",secondary:"border border-[#553DE9] text-[#553DE9] hover:bg-[#E8E4FD] bg-transparent rounded-btn",ghost:"text-[#36342E] hover:bg-[#F8F4F0] rounded-btn",danger:"bg-[#C45B5B]/10 text-[#C45B5B] border border-[#C45B5B]/20 hover:bg-[#C45B5B]/20 rounded-btn"},b={sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},u={sm:14,md:16,lg:18};function h({size:e}){return t.jsxs("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}const B=p.forwardRef(({variant:e="primary",size:o="md",icon:n,iconRight:i,loading:r=!1,disabled:a,className:c="",children:l,...x},d)=>{const s=u[o];return t.jsxs("button",{ref:d,disabled:a||r,className:["inline-flex items-center justify-center gap-2 font-medium transition-colors",m[e],b[o],(a||r)&&"opacity-60 cursor-not-allowed",c].filter(Boolean).join(" "),...x,children:[r?t.jsx(h,{size:s}):n?t.jsx(n,{size:s}):null,l,i&&!r&&t.jsx(i,{size:s})]})});B.displayName="Button";export{B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,r as l,j as e,G as we,Q as Se,F as Ce,h as Re,T as U,Z as Ee,a as S,V as Me,S as $e,Y as Te,X as Pe,P as ie,i as Ae,g as ze,C as Ie,l as Le,N as I,J as _e,K as De,O as Fe,u as Oe}from"./index-
|
|
1
|
+
import{c as $,r as l,j as e,G as we,Q as Se,F as Ce,h as Re,T as U,Z as Ee,a as S,V as Me,S as $e,Y as Te,X as Pe,P as ie,i as Ae,g as ze,C as Ie,l as Le,N as I,J as _e,K as De,O as Fe,u as Oe}from"./index-BRhTiL_p.js";import{P as K,S as He,E as Be}from"./ErrorBoundary-vJUF4ktr.js";import{C as qe,F as Ge,M as Ue,H as Ke,a as We,G as Ve,T as Qe}from"./thumbs-up-DTL6aW9R.js";import{C as oe}from"./check-CpQztRg-.js";import{C as Ye}from"./clock-CGfypH8h.js";import{D as Xe}from"./dollar-sign-DDNMuQee.js";import{U as Ze}from"./upload-CwiyNUi5.js";import{L as V}from"./loader-circle-BN8XcvZ2.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|