@cluesmith/codev-core 3.3.1 → 3.3.3
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/dist/constants.d.ts +14 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +17 -1
- package/dist/constants.js.map +1 -1
- package/package.json +2 -2
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Root of the user-global Agent Farm state directory: cloud credentials, the
|
|
3
|
+
* shared local key, `global.db`, `tower.log`, session logs.
|
|
4
|
+
*
|
|
5
|
+
* `CODEV_AGENT_FARM_DIR` overrides the default (#1515). Nothing in production
|
|
6
|
+
* sets it — its two users are test infrastructure: spawned *test* Towers are
|
|
7
|
+
* pointed at throwaway directories, and the codev vitest harness pins the
|
|
8
|
+
* whole test process into its per-run sandbox (#1597, vitest-setup.ts).
|
|
9
|
+
* Without an override there was no way to isolate either: every test Tower
|
|
10
|
+
* read the developer's real cloud credentials and real local key, wrote its
|
|
11
|
+
* test DB into `~/.agent-farm`, and watched the real config file. A test that
|
|
12
|
+
* then exercised tunnel disconnect acted as the user's registered Tower —
|
|
13
|
+
* deregistering it server-side and deleting the real credentials.
|
|
14
|
+
*/
|
|
1
15
|
export declare const AGENT_FARM_DIR: string;
|
|
2
16
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,QAEU,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Root of the user-global Agent Farm state directory: cloud credentials, the
|
|
5
|
+
* shared local key, `global.db`, `tower.log`, session logs.
|
|
6
|
+
*
|
|
7
|
+
* `CODEV_AGENT_FARM_DIR` overrides the default (#1515). Nothing in production
|
|
8
|
+
* sets it — its two users are test infrastructure: spawned *test* Towers are
|
|
9
|
+
* pointed at throwaway directories, and the codev vitest harness pins the
|
|
10
|
+
* whole test process into its per-run sandbox (#1597, vitest-setup.ts).
|
|
11
|
+
* Without an override there was no way to isolate either: every test Tower
|
|
12
|
+
* read the developer's real cloud credentials and real local key, wrote its
|
|
13
|
+
* test DB into `~/.agent-farm`, and watched the real config file. A test that
|
|
14
|
+
* then exercised tunnel disconnect acted as the user's registered Tower —
|
|
15
|
+
* deregistering it server-side and deleting the real credentials.
|
|
16
|
+
*/
|
|
17
|
+
export const AGENT_FARM_DIR = process.env.CODEV_AGENT_FARM_DIR
|
|
18
|
+
? resolve(process.env.CODEV_AGENT_FARM_DIR)
|
|
19
|
+
: resolve(homedir(), '.agent-farm');
|
|
4
20
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,EAAE,aAAa,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB;IAC5D,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;IAC3C,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cluesmith/codev-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Server-side runtime for Codev — local-key issuance and homedir-derived paths. Client-side Tower access lives in @cluesmith/codev-sdk; the two packages never import each other.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@types/node": "22.x",
|
|
21
21
|
"typescript": "^6.0.3",
|
|
22
22
|
"vitest": "^4.0.15",
|
|
23
|
-
"@cluesmith/codev-types": "3.3.
|
|
23
|
+
"@cluesmith/codev-types": "3.3.3"
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|