@lmctl-ai/lmctl 0.2.312 → 0.2.313

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/build-info.json CHANGED
@@ -1 +1 @@
1
- {"sha": "71e0b30ea5167f3a81786674c8bf1036528fc56e", "dirty": false, "builtAt": "2026-10-17T21:41:49.000Z"}
1
+ {"sha": "1d02ccabeb00d17f72fd335219b12b2fcdba9441", "dirty": false, "builtAt": "2026-10-17T22:14:10.000Z"}
@@ -1,7 +1,15 @@
1
- // Usage: lmscript git_summary.lms [repository-directory]
2
- // Native git replaces the source git module.
1
+ # Chapter: Modules - the compiled native git module
2
+ # Shows: import "native:git" (no source file, no PATH lookup of a script), git.status/branch/log/rev_parse/remotes
3
+ # as plain maps and lists; the example prints one JSON line for a repository given as ARGV[0].
4
+ # Run: lmscript examples/git_summary.lms /path/to/repo (default: the current directory)
5
+ # Needs: git on PATH (offline). The book test runs it on a scratch repository with one fixed commit.
6
+ # setup: git-repo
7
+ # args: ${SCRATCH}/repo
8
+ # exit: 0
9
+ # expect:
10
+ #|{"branch":"main","staged":[],"unstaged":[],"untracked":["notes.txt"],"conflicted":[],"latest":[{"hash":"14e8258b0d809694eb95ac674116b310b06653ad","sha":"14e8258b0d809694eb95ac674116b310b06653ad","author":"Book","date":"2026-01-02T03:04:05+00:00","subject":"first"}],"head":"14e8258b0d809694eb95ac674116b310b06653ad","remotes":[{"name":"origin","url":"https://example.invalid/book.git"}]}
3
11
  import "native:git";
4
- dir = len(ARGV)>0 ? ARGV[0] : Directory;
12
+ dir = ARGV.get(0, Directory);
5
13
  state = git.status(dir);
6
14
  println(json_stringify({branch:git.branch(dir),staged:state.staged,
7
15
  unstaged:state.unstaged,untracked:state.untracked,conflicted:state.conflicted,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmctl-ai/lmctl",
3
- "version": "0.2.312",
3
+ "version": "0.2.313",
4
4
  "description": "A provider-agnostic control plane for teams of AI coding agents — across providers, with independent review and durable memory.",
5
5
  "type": "module",
6
6
  "homepage": "https://lmctl.com",