loki-mode 11.128.2 → 11.129.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/README.md +1 -0
- package/SKILL.md +3 -3
- package/VERSION +1 -1
- package/autonomy/lib/help-core.sh +30 -42
- package/autonomy/lib/workspace.py +292 -19
- package/autonomy/lib/workspace_comment.py +40 -11
- package/autonomy/loki +97 -159
- package/autonomy/route.sh +3 -2
- package/autonomy/trigger-server.py +373 -32
- package/bin/loki +77 -14
- package/completions/_loki +11 -142
- package/completions/loki.bash +4 -2
- package/dashboard/__init__.py +1 -1
- package/docs/CLI-CORE-VERBS.md +61 -37
- package/docs/CLI-INVENTORY.md +152 -153
- package/docs/CLI-REFERENCE.md +20 -166
- package/docs/DEPLOYMENT.md +38 -3
- package/docs/INSTALLATION.md +7 -1
- package/docs/KNOWN-ISSUES.md +1 -1
- package/docs/PROOF-PASSPORT.md +21 -0
- package/docs/WORKSPACES.md +27 -0
- package/docs/cost-controls.md +74 -12
- package/docs/dev/architecture-reference.md +2 -2
- package/docs/environment-variables.md +7 -0
- package/docs/merge-queue.md +44 -3
- package/docs/sentry-intake.md +1 -1
- package/docs/slack.md +1 -1
- package/docs/v10/GUIDE.md +22 -4
- package/loki-ts/dist/loki.js +1510 -1465
- package/mcp/__init__.py +1 -1
- package/memory/knowledge_graph.py +442 -56
- package/package.json +2 -2
- package/packages/control-plane/dist/server.js +1901 -1585
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/schemas/loki-yaml.schema.json +1 -0
- package/web-app/dist/assets/{AdminPage-B-9a_urH.js → AdminPage-uxbsIyND.js} +1 -1
- package/web-app/dist/assets/{Avatar-DWFQPBje.js → Avatar-5GhUf4pP.js} +1 -1
- package/web-app/dist/assets/{Badge-CuLYjGKc.js → Badge-93rdLyl8.js} +1 -1
- package/web-app/dist/assets/{Button-Cws5TOeA.js → Button-C94f2_e6.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-CCT1U0rq.js → CockpitPage-C8cDx1mp.js} +1 -1
- package/web-app/dist/assets/{ComparePage-ChcsGaeo.js → ComparePage-BU7VVcVf.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-C5Mz6Y_d.js → ErrorBoundary-Bn81ZPkG.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-jXRFyeG-.js → EvidenceReceiptPanel-CVqzhxXI.js} +1 -1
- package/web-app/dist/assets/{GitHubIssuesPanel-C_YjFJSB.js → GitHubIssuesPanel-i1Yjc0mH.js} +1 -1
- package/web-app/dist/assets/{GitHubPRsPanel-B3bRY_lb.js → GitHubPRsPanel-eoXw0hiw.js} +1 -1
- package/web-app/dist/assets/{HomePage-JLwBDYu8.js → HomePage-Cv_BXFF9.js} +2 -2
- package/web-app/dist/assets/{LoginPage-BcDvWJr1.js → LoginPage-CWYdAQSQ.js} +1 -1
- package/web-app/dist/assets/{MagicPage-Bj3qzygY.js → MagicPage-5r2ci7MS.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-9k0NVtge.js → MetricsPage-C37jE1uR.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-D81Z_SCM.js → NotFoundPage-CuBrziZd.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-D9CkJI0B.js → ProjectPage-59GLzJlR.js} +3 -3
- package/web-app/dist/assets/{ProjectsPage-vxSmYYzh.js → ProjectsPage-DgDtFRNm.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-Cd2AS1Sg.js → SettingsPage-DjMSy-kZ.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-DOZCRLg5.js → ShowcasePage-DESkYmrG.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-wl2UO5DF.js → SystemSettingsPage-d5jFreyF.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-CA9FPLPm.js → TeamsPage-BEVAkxj3.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-DLRTBM8i.js → TemplatesPage-DeK9wx22.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-RqmPEs4o.js → TerminalOutput-2vwck437.js} +1 -1
- package/web-app/dist/assets/{activity-CoyjHBZ4.js → activity-XgL1xWCM.js} +1 -1
- package/web-app/dist/assets/{bell-Dn2BCsQu.js → bell-EXDsjrzh.js} +1 -1
- package/web-app/dist/assets/{bot-CNqPuD8h.js → bot-B9I58zKH.js} +1 -1
- package/web-app/dist/assets/{check-BWAwFpe2.js → check-DgLUYM2x.js} +1 -1
- package/web-app/dist/assets/{chevron-left-BgTjvxLB.js → chevron-left-BhHLpt7K.js} +1 -1
- package/web-app/dist/assets/{circle-alert-CIYxFeDp.js → circle-alert-rgioMmC9.js} +1 -1
- package/web-app/dist/assets/{clock-Dj6DRvL7.js → clock-BO__fq1n.js} +1 -1
- package/web-app/dist/assets/{cloud-DZBvW6-f.js → cloud-iLJ3RtJs.js} +1 -1
- package/web-app/dist/assets/{code-xml-B0sAmzAO.js → code-xml-BFYU6YlU.js} +1 -1
- package/web-app/dist/assets/{database-BkO44OAR.js → database-CXDLeUh_.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-ChTZgVxB.js → dollar-sign-C9Jbgo-O.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-CQSIiG1T.js → file-code-corner-CNPi6dkK.js} +1 -1
- package/web-app/dist/assets/{file-plus-BAV2KC_M.js → file-plus-DAc0Sd1J.js} +1 -1
- package/web-app/dist/assets/{globe-TUNeqVA9.js → globe-DN0njo3S.js} +1 -1
- package/web-app/dist/assets/{hammer-CMD4wrup.js → hammer-CnpZO-SH.js} +1 -1
- package/web-app/dist/assets/{index-B5lRV-ZJ.js → index-BHwx0KjF.js} +3 -3
- package/web-app/dist/assets/{layers-BxXkAn6j.js → layers-_kP2XVgZ.js} +1 -1
- package/web-app/dist/assets/{loader-circle-CE46Yvcr.js → loader-circle-CcupfVc5.js} +1 -1
- package/web-app/dist/assets/{lock-3uBPp5eV.js → lock-D3I89F_A.js} +1 -1
- package/web-app/dist/assets/{package-DjPZ3DLs.js → package-BMz7_qR6.js} +1 -1
- package/web-app/dist/assets/{plus-D8v6ZCYM.js → plus-3rKyjjc7.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-BSPJHBul.js → refresh-cw-DGI9P9uf.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-D0u6PH4j.js → rotate-ccw-CEIZqe5z.js} +1 -1
- package/web-app/dist/assets/{scroll-text-Dcwu9apa.js → scroll-text-CBQ5ISFk.js} +1 -1
- package/web-app/dist/assets/{server-pd5YWyJw.js → server-DOr9ns7A.js} +1 -1
- package/web-app/dist/assets/{shield-alert-C3TqM2Xm.js → shield-alert-pcQbbyMb.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-U1Wkm_Rg.js → thumbs-up-Q7fwPWa9.js} +1 -1
- package/web-app/dist/assets/{trash-2-BspH7NSu.js → trash-2-D81689SS.js} +1 -1
- package/web-app/dist/assets/{trending-down-DNg_ybr3.js → trending-down-8b0O5hb9.js} +1 -1
- package/web-app/dist/assets/{trending-up-CYzIu-lq.js → trending-up-CD0tv_w5.js} +1 -1
- package/web-app/dist/assets/{upload-ChhyDeon.js → upload-CphI5Pe_.js} +1 -1
- package/web-app/dist/assets/{usePolling-ClMveR0q.js → usePolling-yhGOhxnY.js} +1 -1
- package/web-app/dist/assets/{user-BlFXAv0-.js → user-CXM61B6o.js} +1 -1
- package/web-app/dist/index.html +1 -1
package/autonomy/loki
CHANGED
|
@@ -1840,98 +1840,52 @@ show_help_all() {
|
|
|
1840
1840
|
if [ ! -t 1 ]; then
|
|
1841
1841
|
BOLD=''; NC=''
|
|
1842
1842
|
fi
|
|
1843
|
+
# shellcheck source=/dev/null
|
|
1844
|
+
source "$_LOKI_SCRIPT_DIR/lib/help-core.sh"
|
|
1843
1845
|
echo -e "${BOLD}Loki Mode v$version${NC}"
|
|
1844
1846
|
echo ""
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
echo " loki welcome Friendly first-run opener (what Loki is, next steps)"
|
|
1850
|
-
echo " loki doctor Check your setup is ready (a few seconds)"
|
|
1851
|
-
echo " loki quickstart Guided first build from your idea (no PRD needed)"
|
|
1852
|
-
echo " loki start ./prd.md Build from a spec (PRD file, GitHub/GitLab/Jira/Azure issue, or no arg)"
|
|
1853
|
-
echo " quickstart = guided first build; quick = one small task (Loki 10 engine, no PR)."
|
|
1854
|
-
echo " loki \"<task>\", loki owner/repo#N and loki quick run on the Loki 10 engine by default."
|
|
1855
|
-
echo " Docs: https://github.com/asklokesh/loki-mode | Report a problem: loki crash"
|
|
1856
|
-
echo ""
|
|
1857
|
-
# CLI consolidation (Phase A): the front page presents ~17 canonical
|
|
1858
|
-
# workflow-oriented entries grouped by section. Deprecated alias names
|
|
1859
|
-
# (stats, metrics, cost, trust-metrics, serve, open, otel, cp, wt, rc, ...)
|
|
1860
|
-
# do NOT appear here; they live in the collapsed footer below and in
|
|
1861
|
-
# `loki help aliases`. The full long-tail surface is still dispatchable and
|
|
1862
|
-
# documented per-command via `loki <command> --help`.
|
|
1863
|
-
#
|
|
1864
|
-
# v7.39.0: trimmed three lower-traffic canonical entries off the front page
|
|
1865
|
-
# to hold the lean target after `ultracode` (v7.38.0) joined Verify/trust:
|
|
1866
|
-
# grill (pre-build spec interrogation, advanced), spec (living-spec drift,
|
|
1867
|
-
# advanced), and cleanup (orphaned-process recovery, rare). They remain
|
|
1868
|
-
# fully canonical (NOT aliases), dispatchable, and listed in the "More
|
|
1869
|
-
# commands" footer below + documented via `loki <command> --help`.
|
|
1870
|
-
echo "Commands:"
|
|
1871
|
-
echo ""
|
|
1872
|
-
echo "Build:"
|
|
1873
|
-
echo " start [SPEC] Start a build (PRD file, GitHub/GitLab/Jira/Azure issue, or no arg)"
|
|
1874
|
-
echo " plan <PRD-file> Dry-run analysis: complexity, cost, execution plan"
|
|
1875
|
-
echo " backlog <owner/repo> --all|--label X|--issues N,N Run every matching open issue, N in parallel"
|
|
1876
|
-
echo " workspace list | infer <name> | run <name> <ref> Multi-repo runs from loki.yaml workspaces (LOKI_WORKSPACES=0 disables)"
|
|
1877
|
-
echo " start --workspace <name> \"<brief>\" Run a workspace; start --deploy [--health-url U] deploys after a VERIFIED run"
|
|
1878
|
-
echo " quickstart [idea] Guided first build: setup, idea, template, plan, go"
|
|
1879
|
-
echo " try <repo-url> Try Loki on a public repo in a temp clone (--dry-run previews); only the receipt is kept"
|
|
1880
|
-
echo ""
|
|
1881
|
-
echo "Session:"
|
|
1882
|
-
echo " status [--json|--badge|--probe] Show current status (--json machine-readable, --badge deploy badge, --probe re-check deploy health)"
|
|
1883
|
-
echo " next Run the right next step for you (resume / ship / why)"
|
|
1884
|
-
echo " stop Stop execution immediately"
|
|
1885
|
-
echo " pause Pause after current session"
|
|
1886
|
-
echo " resume Resume a paused or interrupted run (after Ctrl-C or a crash)"
|
|
1887
|
-
echo " cancel Cancel the active Loki 10 run at its next stage boundary"
|
|
1888
|
-
echo " steer \"<note>\" Nudge a running build (Loki 10 engine; legacy loop needs LOKI_PROMPT_INJECTION=true)"
|
|
1847
|
+
# The 11 core commands, then the hidden ones, then the renamed ones. The two
|
|
1848
|
+
# lists below are the HIDE and FOLD classes of loki-ts/src/cli/registry.ts;
|
|
1849
|
+
# tests/min/cli-entrypoints.sh fails when they drift from it.
|
|
1850
|
+
help_core_commands
|
|
1889
1851
|
echo ""
|
|
1890
|
-
echo "
|
|
1891
|
-
echo "
|
|
1892
|
-
echo "
|
|
1893
|
-
echo "
|
|
1894
|
-
echo " review [opts] Standalone code review with quality gates"
|
|
1895
|
-
echo " ultracode \"task\" Run a task as a native Claude Code Dynamic Workflow (opt-in, Claude-only)"
|
|
1896
|
-
echo " trust [cmd] Visible trust trajectory; 'trust detail' for metrics"
|
|
1897
|
-
echo " undo <run> [--plan|--dry-run] Plan or apply (LOKI_UNDO=1) an undo of a run; verifies the receipt"
|
|
1898
|
-
echo " undo --list List recent runs with verdict, files changed and age"
|
|
1852
|
+
echo "Integration and maintenance (hidden from the front page; they keep working):"
|
|
1853
|
+
echo " stats memory backup restore kpis report crash contract slack engine10 review mcp acp github"
|
|
1854
|
+
echo " ci modernize self-update secrets sandbox docker web syslog test bench compliance enterprise"
|
|
1855
|
+
echo " audit metrics magic workspace agents trigger merge heal"
|
|
1899
1856
|
echo ""
|
|
1900
|
-
echo "
|
|
1901
|
-
echo "
|
|
1902
|
-
echo "
|
|
1903
|
-
echo "
|
|
1904
|
-
echo ""
|
|
1905
|
-
echo "
|
|
1906
|
-
echo "
|
|
1907
|
-
echo ""
|
|
1908
|
-
echo "
|
|
1909
|
-
echo "
|
|
1910
|
-
echo "
|
|
1911
|
-
echo ""
|
|
1912
|
-
echo "
|
|
1913
|
-
echo "
|
|
1914
|
-
echo ""
|
|
1915
|
-
echo "
|
|
1916
|
-
echo "
|
|
1917
|
-
echo "
|
|
1918
|
-
echo ""
|
|
1919
|
-
echo "
|
|
1920
|
-
echo "
|
|
1921
|
-
echo ""
|
|
1922
|
-
echo "
|
|
1923
|
-
echo "
|
|
1924
|
-
echo "
|
|
1925
|
-
echo "
|
|
1926
|
-
echo "
|
|
1927
|
-
echo ""
|
|
1928
|
-
echo "Aliases (deprecated): older command names still work; they print a"
|
|
1929
|
-
echo "one-line pointer to stderr and never alter --json output. See the full"
|
|
1930
|
-
echo "list with 'loki help aliases'."
|
|
1857
|
+
echo "Renamed (the old name keeps working unchanged; some targets arrive in later releases,"
|
|
1858
|
+
echo "and until each one lands the old name is the way to do it):"
|
|
1859
|
+
echo " provider -> loki config set provider NAME"
|
|
1860
|
+
echo " rollback -> loki undo <run>"
|
|
1861
|
+
echo " trust -> loki status --json"
|
|
1862
|
+
echo " queue -> loki start owner/repo#1 owner/repo#2"
|
|
1863
|
+
echo " issues -> loki start owner/repo --label L --limit N --parallel K"
|
|
1864
|
+
echo " verify-pr -> loki verify <PR url>"
|
|
1865
|
+
echo " answer -> loki start --answer \"<text>\""
|
|
1866
|
+
echo " edit -> loki \"<change>\" --no-pr"
|
|
1867
|
+
echo " models -> loki config list"
|
|
1868
|
+
echo " setup -> loki doctor --fix"
|
|
1869
|
+
echo " quick -> loki \"<task>\" --no-pr"
|
|
1870
|
+
echo " quickstart -> loki \"<idea>\" in an empty folder"
|
|
1871
|
+
echo " keys -> loki receipt key"
|
|
1872
|
+
echo " dashboard -> loki control serve"
|
|
1873
|
+
echo " resume -> loki start"
|
|
1874
|
+
echo " why -> loki status"
|
|
1875
|
+
echo " tour -> loki start outside a repo"
|
|
1876
|
+
echo " wow -> loki start outside a repo"
|
|
1877
|
+
echo " factory -> loki start -v"
|
|
1878
|
+
echo " docs -> loki help"
|
|
1879
|
+
echo " estimate -> loki start <PRD> --dry-run"
|
|
1880
|
+
echo " plan -> loki start <PRD> --dry-run"
|
|
1881
|
+
echo " backlog -> loki start owner/repo --label L --parallel K"
|
|
1882
|
+
echo " steer -> loki chat --attach"
|
|
1883
|
+
echo " demo -> loki start outside a repo"
|
|
1884
|
+
echo " run -> loki start"
|
|
1931
1885
|
echo ""
|
|
1932
1886
|
echo "Options for 'start':"
|
|
1933
1887
|
echo " --provider NAME AI provider: claude (default) or opencode"
|
|
1934
|
-
echo "
|
|
1888
|
+
echo " --model ID Model tier or id (small, opus, ollama/qwen3-coder, openrouter/<id>); a route can also be set with LOKI_MODEL_ROUTE"
|
|
1935
1889
|
echo " --simple Force simple complexity tier (3 phases)"
|
|
1936
1890
|
echo " --complex Force complex complexity tier (8 phases)"
|
|
1937
1891
|
echo " --no-dashboard Disable web dashboard"
|
|
@@ -1955,29 +1909,12 @@ show_help_all() {
|
|
|
1955
1909
|
echo ""
|
|
1956
1910
|
echo "Examples:"
|
|
1957
1911
|
echo ""
|
|
1958
|
-
echo " #
|
|
1959
|
-
echo " loki start
|
|
1960
|
-
echo " loki start
|
|
1961
|
-
echo " loki
|
|
1962
|
-
echo " loki
|
|
1963
|
-
echo " loki
|
|
1964
|
-
echo " loki tour --live # Same as loki wow: a tiny real task when a provider is ready"
|
|
1965
|
-
echo " loki wow # Live mini-task, or the offline sample when no key is available"
|
|
1966
|
-
echo " loki factory \"<task>\" # loki start, and print the autonomy policy"
|
|
1967
|
-
echo " loki demo # Build a sample todo app end to end"
|
|
1968
|
-
echo " loki init -t saas-starter # Scaffold from template"
|
|
1969
|
-
echo " loki template install <src> # Install a community PRD template"
|
|
1970
|
-
echo ""
|
|
1971
|
-
echo " # Session ops + observability"
|
|
1972
|
-
echo " loki status [--json] # Current status"
|
|
1973
|
-
echo " loki report session --efficiency # Token + cost stats"
|
|
1974
|
-
echo " loki report kpis [--json] # Accuracy + efficiency KPI snapshot"
|
|
1975
|
-
echo " loki report kpis --since 7d # Window KPI totals (Nd or YYYY-MM-DD)"
|
|
1976
|
-
echo " loki doctor [--json] # System prereq + skill symlinks"
|
|
1977
|
-
echo " loki logs # Tail recent log output"
|
|
1978
|
-
echo " loki report export json|markdown|csv|timeline # Export session"
|
|
1979
|
-
echo " loki assets export team.tgz # Export shareable team assets (redacted)"
|
|
1980
|
-
echo " loki cleanup # Kill orphaned processes"
|
|
1912
|
+
echo " loki start ./prd.md # Build from a PRD file"
|
|
1913
|
+
echo " loki start owner/repo#123 # Build from a GitHub issue"
|
|
1914
|
+
echo " loki start ./prd.md --dry-run # Quote complexity and cost, change nothing"
|
|
1915
|
+
echo " loki status --json # What is running, as JSON"
|
|
1916
|
+
echo " loki verify --json # Machine-readable verification for CI"
|
|
1917
|
+
echo " loki doctor --fix # Check setup and repair what it can"
|
|
1981
1918
|
echo ""
|
|
1982
1919
|
echo " # Providers + model routing"
|
|
1983
1920
|
echo " loki provider list # Show available providers, including opencode"
|
|
@@ -1996,50 +1933,6 @@ show_help_all() {
|
|
|
1996
1933
|
echo " # only the OpenAI-shaped /v1/chat/completions. Use the opencode"
|
|
1997
1934
|
echo " # route above for OpenRouter."
|
|
1998
1935
|
echo ""
|
|
1999
|
-
echo " # Cross-project context (Phase F)"
|
|
2000
|
-
echo " # Drop .loki/app.json with {schema_version:1,app_id:myapp,members:[ui,api]}"
|
|
2001
|
-
echo " # at the parent of related repos for shared CLAUDE.md + memory."
|
|
2002
|
-
echo ""
|
|
2003
|
-
echo " # Memory + learnings"
|
|
2004
|
-
echo " loki memory list # All learnings"
|
|
2005
|
-
echo " loki memory search <query> # Search across learnings"
|
|
2006
|
-
echo " loki memory consolidate # Run episodic-to-semantic pipeline"
|
|
2007
|
-
echo " loki memory learn --recent N # Learn from the newest N merged PRs"
|
|
2008
|
-
echo ""
|
|
2009
|
-
echo " # Config + dashboard"
|
|
2010
|
-
echo " loki config set maxTier sonnet # Cap model cost"
|
|
2011
|
-
echo " loki dashboard start # Open the Control Plane UI"
|
|
2012
|
-
echo " loki watch # Auto-rerun on PRD changes"
|
|
2013
|
-
echo " loki cockpit # Live multi-repo cockpit (terminal image)"
|
|
2014
|
-
echo " loki remote # Remote session (phone/browser)"
|
|
2015
|
-
echo ""
|
|
2016
|
-
# COMPLETE COMMAND INDEX. The curated sections above stay curated -- they
|
|
2017
|
-
# are the onboarding path and stuffing 112 commands into them would make
|
|
2018
|
-
# the first screen useless. But a command that appears NOWHERE in help does
|
|
2019
|
-
# not exist to a user: measured, 43 of 112 were unreachable from here,
|
|
2020
|
-
# including `loki proof` -- the Evidence Receipt, which is the whole trust
|
|
2021
|
-
# argument. Discoverability is an adoption lever, not tidiness.
|
|
2022
|
-
#
|
|
2023
|
-
# tests/test-help-discoverability.sh fails the build when a real command is
|
|
2024
|
-
# missing from this list, so a new command cannot ship invisible.
|
|
2025
|
-
echo ""
|
|
2026
|
-
echo "All commands:"
|
|
2027
|
-
echo " agents chat diff edit models route"
|
|
2028
|
-
echo " acp agent analyze api assets audit backlog backup bench cancel checkpoint (cp) ci cleanup"
|
|
2029
|
-
echo " cluster cockpit code compliance completions compound config context (ctx)"
|
|
2030
|
-
echo " cost council crash dashboard demo deploy docker docs doctor dogfood"
|
|
2031
|
-
echo " enterprise estimate explain export factory failover github grill heal help"
|
|
2032
|
-
echo " import init intent"
|
|
2033
|
-
echo " issue keys kpis logs magic mcp memory metrics migrate modernize monitor"
|
|
2034
|
-
echo " next notify onboard open optimize otel outcomes own (handoff) pause plan preview"
|
|
2035
|
-
echo " projects proof (receipt) provider quick quickstart rc remote report reset"
|
|
2036
|
-
echo " merge restore resume review rollback run runs sandbox secrets secure self-update sentrux"
|
|
2037
|
-
echo " serve setup setup-skill share ship spec start state stats status steer stop"
|
|
2038
|
-
echo " syslog telemetry template test tour trigger trust trust-metrics try"
|
|
2039
|
-
echo " ultracode undo update verify version voice watch watchdog web welcome why"
|
|
2040
|
-
echo " wiki workspace worktree (wt) wow"
|
|
2041
|
-
echo " control"
|
|
2042
|
-
echo ""
|
|
2043
1936
|
echo "Any command: loki <command> --help"
|
|
2044
1937
|
echo ""
|
|
2045
1938
|
echo "Phase A-J features are default-on. See CHANGELOG."
|
|
@@ -21406,6 +21299,14 @@ print(json.loads(p.read_text()).get('port', 7373) if p.exists() else 7373)
|
|
|
21406
21299
|
else
|
|
21407
21300
|
echo "Schedules configured: 0"
|
|
21408
21301
|
fi
|
|
21302
|
+
python3 "$trigger_server_script" --health
|
|
21303
|
+
;;
|
|
21304
|
+
resume)
|
|
21305
|
+
if [[ -z "${1:-}" ]]; then
|
|
21306
|
+
echo "Usage: loki trigger resume <source>" >&2
|
|
21307
|
+
return 1
|
|
21308
|
+
fi
|
|
21309
|
+
python3 "$trigger_server_script" --resume "$1"
|
|
21409
21310
|
;;
|
|
21410
21311
|
list)
|
|
21411
21312
|
python3 "$trigger_schedule_script" list
|
|
@@ -21550,6 +21451,7 @@ for line in sys.stdin:
|
|
|
21550
21451
|
echo " Start the webhook receiver server (default port: 7373)"
|
|
21551
21452
|
echo " stop Stop the webhook receiver server"
|
|
21552
21453
|
echo " status Show server and schedule status"
|
|
21454
|
+
echo " resume <source> Resume a source that auto-paused (also clears its failure count)"
|
|
21553
21455
|
echo " list List configured schedules"
|
|
21554
21456
|
echo " add schedule <name> <cron_expr> <action> [args...]"
|
|
21555
21457
|
echo " Add a cron-based schedule trigger"
|
|
@@ -21561,9 +21463,14 @@ for line in sys.stdin:
|
|
|
21561
21463
|
echo " help Show this help"
|
|
21562
21464
|
echo ""
|
|
21563
21465
|
echo "Webhook events handled:"
|
|
21564
|
-
echo " issues
|
|
21565
|
-
echo " pull_request
|
|
21566
|
-
echo " workflow_run
|
|
21466
|
+
echo " issues opened -> loki start o/r#N --pr"
|
|
21467
|
+
echo " pull_request synchronize -> loki start o/r#N"
|
|
21468
|
+
echo " workflow_run failure on default branch -> loki start --brief <CI brief> --pr"
|
|
21469
|
+
echo " pull_request_review changes_requested -> loki verify-pr respond o/r#N"
|
|
21470
|
+
echo " /sentry, /slack, /linear, /jira, /teams -> PR-only or job runs"
|
|
21471
|
+
echo ""
|
|
21472
|
+
echo "Auto-pause: LOKI_TRIGGER_PAUSE_AFTER=N consecutive failed runs pause a source"
|
|
21473
|
+
echo "(default 3, 0 disables). 'loki trigger status' shows each source's health."
|
|
21567
21474
|
echo ""
|
|
21568
21475
|
echo "Schedule cron format: minute hour day-of-month month day-of-week"
|
|
21569
21476
|
echo " Examples:"
|
|
@@ -24261,6 +24168,10 @@ cmd_ultracode() {
|
|
|
24261
24168
|
|
|
24262
24169
|
# Standalone code review - diff-based quality gates (v6.20.0)
|
|
24263
24170
|
cmd_review() {
|
|
24171
|
+
if [ "${1:-}" = "queue" ]; then
|
|
24172
|
+
echo "loki review queue needs the Bun runtime; unset LOKI_LEGACY_BASH" >&2
|
|
24173
|
+
return 2
|
|
24174
|
+
fi
|
|
24264
24175
|
local review_staged=false
|
|
24265
24176
|
local review_pr=""
|
|
24266
24177
|
local review_since=""
|
|
@@ -26954,6 +26865,8 @@ except Exception as e:
|
|
|
26954
26865
|
echo " loki memory crossproject --for 'build api'"
|
|
26955
26866
|
echo " loki memory graph --export graph.json"
|
|
26956
26867
|
echo " loki memory graph rebuild"
|
|
26868
|
+
echo " loki memory graph ingest [<path>...]"
|
|
26869
|
+
echo " loki memory graph ask \"who owns billing\" [--repo <dir>]"
|
|
26957
26870
|
echo " loki memory enable-hook"
|
|
26958
26871
|
echo " loki memory disable-hook"
|
|
26959
26872
|
echo ""
|
|
@@ -27113,6 +27026,14 @@ except Exception as e:
|
|
|
27113
27026
|
# semantic/*.json across discovered projects and persists them
|
|
27114
27027
|
# to the org knowledge graph -- the population path that makes
|
|
27115
27028
|
# crossproject + load_memory_context augmentation non-inert.
|
|
27029
|
+
# FR06: `ingest [<path>...]` reads services, CODEOWNERS and decision docs from repos into the
|
|
27030
|
+
# org graph (~/.loki/knowledge/graph.json); `ask "<question>"` prints the cited facts.
|
|
27031
|
+
if [ "${1:-}" = "ingest" ] || [ "${1:-}" = "ask" ]; then
|
|
27032
|
+
local _kg_args=("$@")
|
|
27033
|
+
if [ "${_kg_args[0]}" = "ingest" ] && [ "${#_kg_args[@]}" -eq 1 ]; then _kg_args+=("."); fi
|
|
27034
|
+
PYTHONPATH="${SKILL_DIR:-$(pwd)}" python3 "${SKILL_DIR:-$(pwd)}/memory/knowledge_graph.py" "${_kg_args[@]}"
|
|
27035
|
+
return $?
|
|
27036
|
+
fi
|
|
27116
27037
|
if [ "${1:-}" = "rebuild" ]; then
|
|
27117
27038
|
shift
|
|
27118
27039
|
PYTHONPATH="${SKILL_DIR:-$(pwd)}" python3 -c "
|
|
@@ -27153,7 +27074,7 @@ except Exception as e:
|
|
|
27153
27074
|
while [ $# -gt 0 ]; do
|
|
27154
27075
|
case "$1" in
|
|
27155
27076
|
--export) _graph_export="${2:-}"; if [ $# -ge 2 ]; then shift 2; else shift; fi ;;
|
|
27156
|
-
-h|--help) echo "Usage: loki memory graph [--export <path>] | loki memory graph rebuild"; return 0 ;;
|
|
27077
|
+
-h|--help) echo "Usage: loki memory graph [--export <path>] | loki memory graph rebuild | loki memory graph ingest [<path>...] | loki memory graph ask \"<question>\" [--repo <dir>]"; return 0 ;;
|
|
27157
27078
|
*) shift ;;
|
|
27158
27079
|
esac
|
|
27159
27080
|
done
|
|
@@ -28062,8 +27983,9 @@ EOF_RENAMES
|
|
|
28062
27983
|
# Shared merge gate. One PR (number or branch) merges only when it is not a
|
|
28063
27984
|
# draft, `gh pr checks` exits 0 after polling pending (rc=8), and, with
|
|
28064
27985
|
# --require-verified, every clean proof recorded for the PR's head commit
|
|
28065
|
-
# (facts.git.head_sha == headRefOid, dirty-tree proofs ignored) says VERIFIED
|
|
28066
|
-
#
|
|
27986
|
+
# (facts.git.head_sha == headRefOid, dirty-tree proofs ignored) says VERIFIED, or, for a Loki 10 run
|
|
27987
|
+
# with no legacy proof, a .loki/runs receipt whose head_sha is the PR head passes `loki verify <run>`;
|
|
27988
|
+
# a stale or missing proof refuses ("gate: head"). The merge passes --match-head-commit so a push after
|
|
28067
27989
|
# the gate cannot land unjudged. On refusal it prints the exact blocking gate
|
|
28068
27990
|
# ("gate: draft|head|verdict|trust|checks") and leaves the PR open.
|
|
28069
27991
|
# Usage: _merge_pr_gated <pr> [--require-verified] [--delete-branch]
|
|
@@ -28121,6 +28043,22 @@ _merge_pr_gated() {
|
|
|
28121
28043
|
[ -n "$hl" ] || hl="UNREADABLE"
|
|
28122
28044
|
if [ -z "$headline" ]; then headline="$hl"; elif [ "$headline" != "$hl" ]; then disagree=true; fi
|
|
28123
28045
|
done
|
|
28046
|
+
# Loki 10 (`loki start`) records no .loki/proofs: with no legacy proof for this head,
|
|
28047
|
+
# judge the sealed run receipts in .loki/runs. A receipt counts only when its head_sha
|
|
28048
|
+
# is the PR head and `loki verify <run>` agrees (rc 0 VERIFIED; rc 4 is a run outcome
|
|
28049
|
+
# that is not VERIFIED; anything else is not verified). Legacy proof acceptance above is unchanged.
|
|
28050
|
+
if [ -z "$headline" ] && ! $disagree; then
|
|
28051
|
+
local rf="" rid="" vrc=0 rhl=""
|
|
28052
|
+
for rf in .loki/runs/*/receipt.json; do
|
|
28053
|
+
[ -f "$rf" ] || continue
|
|
28054
|
+
[ "$(jq -r '.head_sha // empty' "$rf" 2>/dev/null)" = "$head" ] || continue
|
|
28055
|
+
[ "$(jq -r '.schema // empty' "$rf" 2>/dev/null)" = "loki.v10.receipt/1" ] || continue
|
|
28056
|
+
rid="$(basename "$(dirname "$rf")")"
|
|
28057
|
+
vrc=0; "$_LOKI_SCRIPT_DIR/../bin/loki" verify "$rid" >/dev/null 2>&1 || vrc=$?
|
|
28058
|
+
if [ "$vrc" = "0" ]; then rhl="VERIFIED"; else rhl="NOT VERIFIED (loki verify rc $vrc)"; fi
|
|
28059
|
+
if [ -z "$headline" ]; then headline="$rhl"; elif [ "$headline" != "$rhl" ]; then disagree=true; fi
|
|
28060
|
+
done
|
|
28061
|
+
fi
|
|
28124
28062
|
if $disagree; then
|
|
28125
28063
|
echo "$pr: not merged, gate: verdict (proofs for PR head ${head:0:12} disagree); PR left open" >&2
|
|
28126
28064
|
_pr_record_merge "$pr" "blocked:verdict" "verdict"
|
|
@@ -28254,7 +28192,7 @@ cmd_merge() {
|
|
|
28254
28192
|
echo " watch <pr> Wait for checks; on red run up to LOKI_PR_REPAIR_MAX (2) bounded"
|
|
28255
28193
|
echo " repair sessions on the PR branch, push, re-check, merge when green."
|
|
28256
28194
|
echo " pr <pr|branch> Merge one PR through the same gate (not draft, checks green;"
|
|
28257
|
-
echo " --require-verified also needs a VERIFIED run
|
|
28195
|
+
echo " --require-verified also needs a VERIFIED run: a legacy proof, or a Loki 10 receipt in .loki/runs, for the PR head)."
|
|
28258
28196
|
echo " add <pr>... Queue pull requests"
|
|
28259
28197
|
echo " list Show the queue"
|
|
28260
28198
|
echo " run [--dry-run] Merge one at a time, only when checks are green;"
|
package/autonomy/route.sh
CHANGED
|
@@ -19,7 +19,7 @@ _ROUTE_OPTVAL_FLAGS=" --mirofish "
|
|
|
19
19
|
# engine rather than configure it: the route still resolves (R_FRONT=1) but the dispatcher leaves the call to the front end.
|
|
20
20
|
_ROUTE_FRONT_FLAGS=" --workspace --deploy --health-url --health-match --auto-rollback --destination --canary --domain "
|
|
21
21
|
# Flags engine10 honors as-is.
|
|
22
|
-
_ROUTE_E10_FLAGS=" --no-pr --deep --json --verbose --quiet --resume --provider --max-cost --spec --attempts --seal-existing "
|
|
22
|
+
_ROUTE_E10_FLAGS=" --no-pr --deep --json --verbose --quiet --resume --provider --max-cost --spec --attempts --seal-existing --detach -d "
|
|
23
23
|
# The largest PRD engine10 takes: it carries the task in env vars and CLI arguments (with a context pack added under
|
|
24
24
|
# --session-model), and Linux caps one string at 128 KiB. A bigger PRD runs on the legacy engine, or is refused under
|
|
25
25
|
# SDK mode with claude (the legacy engine has no SDK path).
|
|
@@ -35,7 +35,6 @@ _route_refusal_hint() {
|
|
|
35
35
|
case "$1" in
|
|
36
36
|
--ship) echo "engine10 opens the PR itself and does not auto-merge; merge it with 'loki merge-queue', or pass --engine legacy to keep --ship" ;;
|
|
37
37
|
--worktree|-w) echo "engine10 runs each attempt in its own isolated worktree already; drop the flag, or pass --engine legacy for a git-worktree run" ;;
|
|
38
|
-
--detach|-d) echo "run it in the background yourself ('nohup loki start ... &') or queue it with 'loki queue run', or pass --engine legacy for --detach" ;;
|
|
39
38
|
--parallel) echo "use 'loki queue run --parallel K' or 'loki issues run --parallel K' for parallel runs, or pass --engine legacy for --parallel" ;;
|
|
40
39
|
--issue) echo "give the issue as the task instead: loki start owner/repo#N (or the issue URL)" ;;
|
|
41
40
|
*) echo "drop it, or pass --engine legacy to run the legacy loop with it" ;;
|
|
@@ -503,6 +502,8 @@ loki_route_dispatch() {
|
|
|
503
502
|
loki_route_resolve bare "$@"; verb=bare ;;
|
|
504
503
|
esac
|
|
505
504
|
fi
|
|
505
|
+
# FR01: a pasted PR URL is a goal too; `loki <PR URL>` is `loki start <PR URL>` (verify-pr: sandboxed, no model call)
|
|
506
|
+
if [ "$R_DECIDED" != "1" ] && [ -n "$(_route_pr_url "$first")" ]; then loki_route_resolve start "$@"; verb=bare; fi
|
|
506
507
|
;;
|
|
507
508
|
esac
|
|
508
509
|
if [ "$R_DECIDED" != "1" ]; then _route_task_first "$verb" "$@"; return 0; fi
|