@flarecode/import-memory 0.2.1 → 0.2.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/package.json +2 -5
- package/src/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarecode/import-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "One-command helper for discovering local coding-agent memory sources before importing them into FlareCode.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,10 +11,7 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": "./src/scanner.js"
|
|
13
13
|
},
|
|
14
|
-
"files": [
|
|
15
|
-
"src",
|
|
16
|
-
"README.md"
|
|
17
|
-
],
|
|
14
|
+
"files": ["src", "README.md"],
|
|
18
15
|
"publishConfig": {
|
|
19
16
|
"access": "public"
|
|
20
17
|
},
|
package/src/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { exec } from "node:child_process";
|
|
3
|
+
import { readFileSync } from "node:fs";
|
|
3
4
|
import process from "node:process";
|
|
4
5
|
import { formatScanSummary, parseSince, parseSourceFilter, readRulesContent, scanSources } from "./scanner.js";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
// Read from package.json (always shipped in the tarball) so --version never
|
|
8
|
+
// drifts from the published version.
|
|
9
|
+
const VERSION = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
|
|
7
10
|
const API_BASE = "https://api.flarecode.sh";
|
|
8
11
|
const APP_BASE = "https://app.flarecode.sh";
|
|
9
12
|
|