ithos 0.1.1 → 0.1.2

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 ADDED
@@ -0,0 +1,34 @@
1
+ # ithos
2
+
3
+ > The terminal CLI for Ithos — the local-first institutional memory layer for AI-assisted software development.
4
+
5
+ This is the command-line client used to initialize and manage an Ithos repository.
6
+
7
+ For the full documentation, architecture details, and MCP setup guides, please visit the [Main Ithos Repository](https://github.com/kry5h/ithos).
8
+
9
+ ## Installation
10
+
11
+ Install globally via npm:
12
+
13
+ ```bash
14
+ npm install -g ithos
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ Initialize Ithos in your current software repository:
20
+
21
+ ```bash
22
+ ithos init
23
+ ```
24
+
25
+ This creates the `.ithos/` folder structure, setting up the repository context.
26
+
27
+ ## Available Commands
28
+
29
+ - `ithos init`: Initialize a new Ithos directory structure.
30
+ - `ithos validate`: Verify your `.ithos/` directory matches the specification.
31
+ - `ithos doctor`: Inspect your local setup and diagnose issues.
32
+ - `ithos record`: Manually record an engineering decision, lesson, or session.
33
+ - `ithos search <query>`: Search matching lines across your engineering memory.
34
+ - `ithos export`: Concatenate and export the entire memory directory to stdout.
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,wBAAgB,SAAS,IAAI,OAAO,CAoGnC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,wBAAgB,SAAS,IAAI,OAAO,CAiHnC"}
package/dist/cli.js CHANGED
@@ -42,6 +42,8 @@ export function createCli() {
42
42
  .requiredOption("-t, --type <type>", "artifact type")
43
43
  .requiredOption("--title <title>", "artifact title")
44
44
  .option("-b, --body <body>", "artifact body")
45
+ .option("--tags <tags>", "comma-separated tags")
46
+ .option("--related <related>", "comma-separated related artifact IDs or file paths")
45
47
  .action(async (options) => {
46
48
  if (!isArtifactType(options.type)) {
47
49
  console.error(`Unsupported artifact type: ${options.type}`);
@@ -54,10 +56,14 @@ export function createCli() {
54
56
  process.exitCode = 1;
55
57
  return;
56
58
  }
59
+ const tags = options.tags ? options.tags.split(",").map(t => t.trim()) : undefined;
60
+ const related = options.related ? options.related.split(",").map(r => r.trim()) : undefined;
57
61
  const file = await recordArtifact({
58
62
  type: options.type,
59
63
  title: options.title,
60
- body
64
+ body,
65
+ tags,
66
+ related
61
67
  });
62
68
  console.log(`Recorded ${file}`);
63
69
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ithos",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"