loki-mode 6.29.0 → 6.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [![Autonomi](https://img.shields.io/badge/Autonomi-autonomi.dev-5B4EEA)](https://www.autonomi.dev/)
11
11
  [![Docker Pulls](https://img.shields.io/docker/pulls/asklokesh/loki-mode)](https://hub.docker.com/r/asklokesh/loki-mode)
12
12
 
13
- **Current Version: v6.28.0**
13
+ **Current Version: v6.30.0**
14
14
 
15
15
  ### Traction
16
16
 
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Multi-agent autonomous startup system. Triggers on "Loki Mode". Takes PRD to deployed product with minimal human intervention. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v6.29.0
6
+ # Loki Mode v6.30.0
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -267,4 +267,4 @@ The following features are documented in skill modules but not yet fully automat
267
267
  | Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
268
268
  | Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
269
269
 
270
- **v6.29.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
270
+ **v6.30.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.29.0
1
+ 6.30.1
package/autonomy/loki CHANGED
@@ -442,6 +442,7 @@ show_help() {
442
442
  echo " ci [opts] CI/CD quality gate integration (--pr, --report, --github-comment)"
443
443
  echo " test [opts] AI-powered test generation (--file, --dir, --changed, --dry-run)"
444
444
  echo " report [opts] Session report generator (--format text|markdown|html, --output)"
445
+ echo " share [opts] Share session report as GitHub Gist (--private, --format)"
445
446
  echo " version Show version"
446
447
  echo " help Show this help"
447
448
  echo ""
@@ -9557,6 +9558,9 @@ main() {
9557
9558
  report)
9558
9559
  cmd_report "$@"
9559
9560
  ;;
9561
+ share)
9562
+ cmd_share "$@"
9563
+ ;;
9560
9564
  version|--version|-v)
9561
9565
  cmd_version
9562
9566
  ;;
@@ -17233,4 +17237,118 @@ REPORT_SCRIPT
17233
17237
  fi
17234
17238
  }
17235
17239
 
17240
+ cmd_share() {
17241
+ local format="markdown"
17242
+ local visibility="--public"
17243
+
17244
+ while [[ $# -gt 0 ]]; do
17245
+ case "$1" in
17246
+ --help|-h)
17247
+ echo -e "${BOLD}loki share${NC} - Share session report as a GitHub Gist"
17248
+ echo ""
17249
+ echo "Usage: loki share [options]"
17250
+ echo ""
17251
+ echo "Generates a session report and uploads it as a GitHub Gist,"
17252
+ echo "returning a shareable URL."
17253
+ echo ""
17254
+ echo "Options:"
17255
+ echo " --private Create a secret gist (default: public)"
17256
+ echo " --format <fmt> Report format: text, markdown, html (default: markdown)"
17257
+ echo " --help, -h Show this help"
17258
+ echo ""
17259
+ echo "Examples:"
17260
+ echo " loki share # Public markdown gist"
17261
+ echo " loki share --private # Secret gist"
17262
+ echo " loki share --format html # Public HTML gist"
17263
+ echo " loki share --private --format text # Secret text gist"
17264
+ echo ""
17265
+ echo "Requires: gh CLI (https://cli.github.com)"
17266
+ exit 0
17267
+ ;;
17268
+ --private) visibility=""; shift ;;
17269
+ --format) format="${2:-markdown}"; shift 2 ;;
17270
+ --format=*) format="${1#*=}"; shift ;;
17271
+ *) echo -e "${RED}Unknown option: $1${NC}"; echo "Run 'loki share --help' for usage."; exit 1 ;;
17272
+ esac
17273
+ done
17274
+
17275
+ # Validate format
17276
+ case "$format" in
17277
+ text|markdown|md|html) ;;
17278
+ *) echo -e "${RED}Unknown format: $format${NC}"; echo "Supported: text, markdown, html"; exit 1 ;;
17279
+ esac
17280
+ [ "$format" = "md" ] && format="markdown"
17281
+
17282
+ # Check gh CLI is installed
17283
+ if ! command -v gh &>/dev/null; then
17284
+ echo -e "${RED}gh CLI not found${NC}"
17285
+ echo ""
17286
+ echo "Install the GitHub CLI to use 'loki share':"
17287
+ echo " brew install gh # macOS"
17288
+ echo " sudo apt install gh # Ubuntu/Debian"
17289
+ echo " https://cli.github.com # Other platforms"
17290
+ exit 1
17291
+ fi
17292
+
17293
+ # Check gh is authenticated
17294
+ if ! gh auth status &>/dev/null 2>&1; then
17295
+ echo -e "${RED}GitHub CLI not authenticated${NC}"
17296
+ echo ""
17297
+ echo "Run 'gh auth login' to authenticate, then try again."
17298
+ exit 1
17299
+ fi
17300
+
17301
+ # Check .loki directory exists
17302
+ local loki_dir="${LOKI_DIR:-.loki}"
17303
+ if [ ! -d "$loki_dir" ]; then
17304
+ echo -e "${RED}No .loki/ directory found${NC}"
17305
+ echo "Run 'loki start' first to create a session."
17306
+ exit 1
17307
+ fi
17308
+
17309
+ # Determine file extension for gist
17310
+ local ext="md"
17311
+ case "$format" in
17312
+ text) ext="txt" ;;
17313
+ markdown) ext="md" ;;
17314
+ html) ext="html" ;;
17315
+ esac
17316
+
17317
+ # Generate report to temp file
17318
+ local tmpfile
17319
+ tmpfile=$(mktemp "/tmp/loki-share-XXXXXX.$ext")
17320
+
17321
+ echo "Generating session report..."
17322
+ if ! loki report --format "$format" > "$tmpfile" 2>/dev/null; then
17323
+ echo -e "${RED}Failed to generate session report${NC}"
17324
+ rm -f "$tmpfile"
17325
+ exit 1
17326
+ fi
17327
+
17328
+ # Verify report is not empty
17329
+ if [ ! -s "$tmpfile" ]; then
17330
+ echo -e "${RED}Generated report is empty${NC}"
17331
+ rm -f "$tmpfile"
17332
+ exit 1
17333
+ fi
17334
+
17335
+ # Upload as gist
17336
+ echo "Uploading session report..."
17337
+ local gist_desc="Loki Mode session report ($(date +%Y-%m-%d))"
17338
+ local gist_url
17339
+ gist_url=$(gh gist create "$tmpfile" --desc "$gist_desc" $visibility 2>&1)
17340
+ local gist_exit=$?
17341
+
17342
+ # Cleanup temp file
17343
+ rm -f "$tmpfile"
17344
+
17345
+ if [ $gist_exit -ne 0 ]; then
17346
+ echo -e "${RED}Failed to create gist${NC}"
17347
+ echo "$gist_url"
17348
+ exit 1
17349
+ fi
17350
+
17351
+ echo -e "${GREEN}Shared: ${gist_url}${NC}"
17352
+ }
17353
+
17236
17354
  main "$@"
package/completions/_loki CHANGED
@@ -70,6 +70,12 @@ function _loki {
70
70
  issue)
71
71
  _loki_issue
72
72
  ;;
73
+ share)
74
+ _arguments \
75
+ '--private[Create a secret gist]' \
76
+ '--format[Report format]:format:(text markdown html)' \
77
+ '--help[Show help]'
78
+ ;;
73
79
  completions)
74
80
  _arguments '1:shell:(bash zsh)'
75
81
  ;;
@@ -109,6 +115,7 @@ function _loki_commands {
109
115
  'voice:Voice input commands'
110
116
  'doctor:Check system prerequisites'
111
117
  'onboard:Analyze repo and generate CLAUDE.md'
118
+ 'share:Share session report as GitHub Gist'
112
119
  'version:Show version'
113
120
  'completions:Output shell completions'
114
121
  'help:Show help'
@@ -5,7 +5,7 @@ _loki_completion() {
5
5
  _init_completion || return
6
6
 
7
7
  # Main subcommands (must match autonomy/loki main case statement)
8
- local main_commands="start quick demo init stop pause resume status dashboard logs serve api sandbox notify import github issue config provider reset memory compound checkpoint council dogfood projects enterprise voice secrets doctor watchdog audit metrics syslog onboard version completions help"
8
+ local main_commands="start quick demo init stop pause resume status dashboard logs serve api sandbox notify import github issue config provider reset memory compound checkpoint council dogfood projects enterprise voice secrets doctor watchdog audit metrics syslog onboard share version completions help"
9
9
 
10
10
  # 1. If we are on the first argument (subcommand)
11
11
  if [[ $cword -eq 1 ]]; then
@@ -144,6 +144,17 @@ _loki_completion() {
144
144
  _filedir -d
145
145
  ;;
146
146
 
147
+ share)
148
+ if [[ "$cur" == -* ]]; then
149
+ COMPREPLY=( $(compgen -W "--private --format --help" -- "$cur") )
150
+ return 0
151
+ fi
152
+ if [[ "$prev" == "--format" ]]; then
153
+ COMPREPLY=( $(compgen -W "text markdown html" -- "$cur") )
154
+ return 0
155
+ fi
156
+ ;;
157
+
147
158
  completions)
148
159
  COMPREPLY=( $(compgen -W "bash zsh" -- "$cur") )
149
160
  ;;
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "6.29.0"
10
+ __version__ = "6.30.1"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -2,7 +2,7 @@
2
2
 
3
3
  The flagship product of [Autonomi](https://www.autonomi.dev/). Complete installation instructions for all platforms and use cases.
4
4
 
5
- **Version:** v6.29.0
5
+ **Version:** v6.30.0
6
6
 
7
7
  ---
8
8
 
package/mcp/__init__.py CHANGED
@@ -57,4 +57,4 @@ try:
57
57
  except ImportError:
58
58
  __all__ = ['mcp']
59
59
 
60
- __version__ = '6.29.0'
60
+ __version__ = '6.30.0'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "6.29.0",
3
+ "version": "6.30.1",
4
4
  "description": "Loki Mode by Autonomi - Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
6
  "agent",