@mrclrchtr/supi-extras 1.14.0 → 1.14.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.
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
import * as fs from "node:fs";
|
|
8
8
|
import * as os from "node:os";
|
|
9
9
|
import * as path from "node:path";
|
|
10
|
+
import { CONFIG_DIR_NAME } from "@earendil-works/pi-coding-agent";
|
|
10
11
|
|
|
11
|
-
const GLOBAL_CONFIG_DIR =
|
|
12
|
-
const PROJECT_CONFIG_DIR =
|
|
12
|
+
const GLOBAL_CONFIG_DIR = `${CONFIG_DIR_NAME}/agent/supi`;
|
|
13
|
+
const PROJECT_CONFIG_DIR = `${CONFIG_DIR_NAME}/supi`;
|
|
13
14
|
const CONFIG_FILE = "config.json";
|
|
14
15
|
|
|
15
16
|
function getGlobalConfigPath(homeDir?: string): string {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-extras",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "SuPi extras — command aliases, skill shorthand, tab spinner, /supi-stash prompt stash with TUI overlay, and other small utilities",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"clipboardy": "^5.3.1",
|
|
24
|
-
"@mrclrchtr/supi-core": "1.14.
|
|
24
|
+
"@mrclrchtr/supi-core": "1.14.2"
|
|
25
25
|
},
|
|
26
26
|
"bundledDependencies": [
|
|
27
27
|
"@mrclrchtr/supi-core"
|
package/src/prompt-stash.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { mkdirSync, writeFileSync } from "node:fs";
|
|
|
11
11
|
import { homedir } from "node:os";
|
|
12
12
|
import { dirname, join } from "node:path";
|
|
13
13
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
14
|
-
import { DynamicBorder } from "@earendil-works/pi-coding-agent";
|
|
14
|
+
import { CONFIG_DIR_NAME, DynamicBorder } from "@earendil-works/pi-coding-agent";
|
|
15
15
|
import { Container, type SelectItem, SelectList, Spacer, Text } from "@earendil-works/pi-tui";
|
|
16
16
|
import { readJsonFile } from "@mrclrchtr/supi-core/config";
|
|
17
17
|
import { copyToClipboard } from "./clipboard.ts";
|
|
@@ -25,7 +25,7 @@ interface Stash {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/** Storage directory relative to the user's home directory. */
|
|
28
|
-
const STORAGE_RELATIVE_DIR =
|
|
28
|
+
const STORAGE_RELATIVE_DIR = `${CONFIG_DIR_NAME}/agent/supi`;
|
|
29
29
|
const STASH_FILE = "prompt-stash.json";
|
|
30
30
|
|
|
31
31
|
/** Resolve the absolute path to the stash persistence file. */
|