miii-agent 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import { createElement } from "react";
7
7
  // src/ui/App.tsx
8
8
  import { useState as useState4, useEffect as useEffect3 } from "react";
9
9
  import { Box as Box10, Text as Text10, useApp } from "ink";
10
- import { homedir as homedir2 } from "os";
10
+ import { homedir as homedir3 } from "os";
11
11
  import { sep } from "path";
12
12
 
13
13
  // src/ollama/client.ts
@@ -354,8 +354,12 @@ function filteredCommands(filter) {
354
354
  // src/session/store.ts
355
355
  import { writeFileSync as writeFileSync2, mkdirSync as mkdirSync2, existsSync as existsSync2, readdirSync, readFileSync as readFileSync2, rmSync } from "fs";
356
356
  import { join as join2 } from "path";
357
+ import { homedir as homedir2 } from "os";
357
358
  import { randomUUID } from "crypto";
358
- var SESSION_DIR = join2(process.cwd(), ".miii", "session");
359
+ function encodeProjectDir(cwd) {
360
+ return cwd.replace(/[/\\]/g, "-").replace(/^-+/, "");
361
+ }
362
+ var SESSION_DIR = join2(homedir2(), ".miii", "projects", encodeProjectDir(process.cwd()), "session");
359
363
  function newSessionId() {
360
364
  return randomUUID();
361
365
  }
@@ -2042,7 +2046,7 @@ async function checkForUpdate() {
2042
2046
  import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
2043
2047
  function App() {
2044
2048
  const { exit } = useApp();
2045
- const cwd = process.cwd().replace(homedir2(), "~").split(sep).join("/");
2049
+ const cwd = process.cwd().replace(homedir3(), "~").split(sep).join("/");
2046
2050
  const [cfg, setCfg] = useState4(loadConfig());
2047
2051
  const [models, setModels] = useState4([]);
2048
2052
  const [contexts, setContexts] = useState4({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miii-agent",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Terminal AI coding agent powered by Ollama",
5
5
  "type": "module",
6
6
  "bin": {