@tekmemo/cli 0.1.0 → 0.1.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 +13 -47
- package/dist/bin/tekmemo.cjs +1 -1
- package/dist/bin/tekmemo.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{runner-Bz3RPzFc.mjs → runner-CuwVq2Re.mjs} +2 -2
- package/dist/{runner-Bz3RPzFc.mjs.map → runner-CuwVq2Re.mjs.map} +1 -1
- package/dist/{runner-CiA5dFku.cjs → runner-DqYmvg3G.cjs} +2 -2
- package/dist/{runner-CiA5dFku.cjs.map → runner-DqYmvg3G.cjs.map} +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# `@tekmemo/cli`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://www.npmjs.com/package/@tekmemo/cli"><img src="https://img.shields.io/npm/v/@tekmemo%2Fcli?label=@tekmemo/cli&style=for-the-badge" alt="npm version" /></a>
|
|
5
|
+
<a href="https://github.com/tekbreed/tekmemo"><img src="https://img.shields.io/badge/status-alpha-orange?style=for-the-badge" alt="Status: Alpha" /></a>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@tekmemo/cli"><img src="https://img.shields.io/npm/dm/@tekmemo%2Fcli?style=for-the-badge" alt="npm downloads" /></a>
|
|
7
|
+
<a href="https://github.com/tekbreed/tekmemo/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/tekbreed/tekmemo/ci.yml?branch=main&style=for-the-badge&label=CI" alt="CI" /></a>
|
|
8
|
+
<a href="https://docs.memo.tekbreed.com/"><img src="https://img.shields.io/badge/docs-online-blue?style=for-the-badge" alt="Docs" /></a>
|
|
9
|
+
<a href="../../LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge" alt="MIT License" /></a>
|
|
10
|
+
</p>
|
|
9
11
|
|
|
10
12
|
## Purpose
|
|
11
13
|
|
|
@@ -14,16 +16,16 @@
|
|
|
14
16
|
## Install
|
|
15
17
|
|
|
16
18
|
```bash
|
|
17
|
-
|
|
19
|
+
npm install @tekmemo/cli
|
|
18
20
|
```
|
|
19
21
|
|
|
20
22
|
## Quick start
|
|
21
23
|
|
|
22
24
|
```bash
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
npm install -D @tekmemo/cli
|
|
26
|
+
npx tekmemo init
|
|
27
|
+
npx tekmemo remember "Use D1 for hosted sync" --kind decision
|
|
28
|
+
npx tekmemo context --query "current task" --json
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
## Boundary
|
|
@@ -32,42 +34,6 @@ This package owns its package-level contract only. It does not own TekMemo Cloud
|
|
|
32
34
|
|
|
33
35
|
For hosted memory, use `@tekmemo/cloud-client`. For local file-backed memory, use `tekmemo` with `@tekmemo/fs`. For MCP tools, use `@tekmemo/mcp-server`.
|
|
34
36
|
|
|
35
|
-
## Scripts
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
pnpm --filter @tekmemo/cli typecheck
|
|
39
|
-
pnpm --filter @tekmemo/cli test:run
|
|
40
|
-
pnpm --filter @tekmemo/cli build
|
|
41
|
-
pnpm --filter @tekmemo/cli lint:package
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Docs
|
|
45
|
-
|
|
46
|
-
- Package docs: https://docs.tekmemo.dev/packages/
|
|
47
|
-
- Examples: https://docs.tekmemo.dev/examples/
|
|
48
|
-
- Repository: https://github.com/tekbreed/tekmemo
|
|
49
|
-
|
|
50
|
-
## Publishing metadata
|
|
51
|
-
|
|
52
|
-
- npm package: `@tekmemo/cli`
|
|
53
|
-
- publish visibility: public
|
|
54
|
-
- runtime format: dual ESM/CJS
|
|
55
|
-
- ESM output: `dist/**/*.mjs` + `dist/**/*.d.mts`
|
|
56
|
-
- CJS output: `dist/**/*.cjs` + `dist/**/*.d.cts`
|
|
57
|
-
- package contents: `dist` and `README.md`
|
|
58
|
-
- package boundary: hosted cloud calls must go through `@tekmemo/cloud-client` unless this package is `@tekmemo/cloud-client` itself.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
## Publish readiness
|
|
62
|
-
|
|
63
|
-
Before publishing this package, run:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
pnpm --filter @tekmemo/cli release:check
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
The package-level check builds `dist/`, runs TypeScript and tests, runs `publint`, and performs `npm pack --dry-run`. Publish from CI with Changesets and npm trusted publishing/provenance after the root release preflight passes.
|
|
70
|
-
|
|
71
37
|
## License
|
|
72
38
|
|
|
73
39
|
MIT.
|
package/dist/bin/tekmemo.cjs
CHANGED
package/dist/bin/tekmemo.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('./chunk-C0xms8kb.cjs');
|
|
3
|
-
const require_runner = require('./runner-
|
|
3
|
+
const require_runner = require('./runner-DqYmvg3G.cjs');
|
|
4
4
|
let tekmemo = require("tekmemo");
|
|
5
5
|
|
|
6
6
|
exports.CliError = require_runner.CliError;
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as CliJsonlError, C as cloudConnectionSummary, D as toCloudClientOptions, E as normalizeCloudConnectionOptions, M as CliUsageError, N as CliValidationError, O as CliError, S as writeDefaultCliConfig, T as formatCloudError, _ as printHumanOrJson, a as scanForSecrets, b as TekMemoFileSystem, c as parseManifest, d as stringifyJsonl, f as REQUIRED_DIRS, g as createBufferedOutput, h as TEKMEMO_PATHS, i as redactSecretPreview, j as CliProtocolError, k as CliFsError, l as validateManifest, m as TEKMEMO_DIR, n as createSafeIdFromLabel, o as inspectTekMemo, p as REQUIRED_FILES, r as validateSnapshotLabel, s as createDefaultManifest, t as runTekMemoCli, u as parseJsonl, v as printJsonEnvelope, w as createCliCloudClient, x as resolveCliRuntimeConfig, y as printJsonError } from "./runner-
|
|
1
|
+
import { A as CliJsonlError, C as cloudConnectionSummary, D as toCloudClientOptions, E as normalizeCloudConnectionOptions, M as CliUsageError, N as CliValidationError, O as CliError, S as writeDefaultCliConfig, T as formatCloudError, _ as printHumanOrJson, a as scanForSecrets, b as TekMemoFileSystem, c as parseManifest, d as stringifyJsonl, f as REQUIRED_DIRS, g as createBufferedOutput, h as TEKMEMO_PATHS, i as redactSecretPreview, j as CliProtocolError, k as CliFsError, l as validateManifest, m as TEKMEMO_DIR, n as createSafeIdFromLabel, o as inspectTekMemo, p as REQUIRED_FILES, r as validateSnapshotLabel, s as createDefaultManifest, t as runTekMemoCli, u as parseJsonl, v as printJsonEnvelope, w as createCliCloudClient, x as resolveCliRuntimeConfig, y as printJsonError } from "./runner-CuwVq2Re.mjs";
|
|
2
2
|
|
|
3
3
|
export { CliError, CliFsError, CliJsonlError, CliProtocolError, CliUsageError, CliValidationError, REQUIRED_DIRS, REQUIRED_FILES, TEKMEMO_DIR, TEKMEMO_PATHS, TekMemoFileSystem, cloudConnectionSummary, createBufferedOutput, createCliCloudClient, createDefaultManifest, createSafeIdFromLabel, formatCloudError, inspectTekMemo, normalizeCloudConnectionOptions, parseJsonl, parseManifest, printHumanOrJson, printJsonEnvelope, printJsonError, redactSecretPreview, resolveCliRuntimeConfig, runTekMemoCli, scanForSecrets, stringifyJsonl, toCloudClientOptions, validateManifest, validateSnapshotLabel, writeDefaultCliConfig };
|
|
@@ -2826,7 +2826,7 @@ async function runTekMemoCli(input) {
|
|
|
2826
2826
|
let currentCommand = "tekmemo";
|
|
2827
2827
|
let wantsJson = input.argv.includes("--json") || input.argv.includes("-j");
|
|
2828
2828
|
const program = new Command();
|
|
2829
|
-
program.name("tekmemo").description("
|
|
2829
|
+
program.name("tekmemo").description("CLI for TekMemo .tekmemo/ memory, context, validation, snapshots, and agent tools.").version(pkg.version).option("-r, --root <path>", "project root containing .tekmemo/", input.cwd ?? process.cwd()).option("--runtime <mode>", "runtime mode: local, cloud, or hybrid").option("--cloud-url <url>", "TekMemo Cloud API URL; defaults to config or TEKMEMO_CLOUD_URL").option("--api-key <key>", "TekMemo Cloud API key; defaults to TEKMEMO_API_KEY").option("--workspace-id <id>", "default cloud workspace ID").option("--project-id <id>", "default cloud project ID").option("--timeout-ms <n>", "cloud request timeout in milliseconds", parsePositiveOption).option("--read-policy <policy>", "hybrid read policy: local-first, cloud-first, local-only, cloud-only").option("--write-policy <policy>", "hybrid write policy: local-first, cloud-first, local-only, cloud-only").option("-j, --json", "output machine-readable JSON", false).option("-v, --verbose", "show detailed output", input.verbose ?? false).option("-q, --quiet", "suppress all output except errors", input.quiet ?? false).option("--no-color", "disable colored output", input.noColor ?? false).exitOverride().showHelpAfterError().configureOutput({
|
|
2830
2830
|
writeOut: (str) => {
|
|
2831
2831
|
if (!program.opts().quiet) output.write(str.trim());
|
|
2832
2832
|
},
|
|
@@ -3716,4 +3716,4 @@ function isCommanderError(error) {
|
|
|
3716
3716
|
|
|
3717
3717
|
//#endregion
|
|
3718
3718
|
export { CliJsonlError as A, cloudConnectionSummary as C, toCloudClientOptions as D, normalizeCloudConnectionOptions as E, CliUsageError as M, CliValidationError as N, CliError as O, writeDefaultCliConfig as S, formatCloudError as T, printHumanOrJson as _, scanForSecrets as a, TekMemoFileSystem as b, parseManifest$1 as c, stringifyJsonl as d, REQUIRED_DIRS as f, createBufferedOutput as g, TEKMEMO_PATHS as h, redactSecretPreview as i, CliProtocolError as j, CliFsError as k, validateManifest as l, TEKMEMO_DIR as m, createSafeIdFromLabel as n, inspectTekMemo as o, REQUIRED_FILES as p, validateSnapshotLabel as r, createDefaultManifest as s, runTekMemoCli as t, parseJsonl as u, printJsonEnvelope as v, createCliCloudClient as w, resolveCliRuntimeConfig as x, printJsonError as y };
|
|
3719
|
-
//# sourceMappingURL=runner-
|
|
3719
|
+
//# sourceMappingURL=runner-CuwVq2Re.mjs.map
|