@mycadet/credential-executor 0.13.0-dev.202611142321.f0c8539 → 0.13.0-dev.202611152026.e6958cf
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/Dockerfile +1 -0
- package/node_modules/@mycadet/ces-client/src/index.ts +0 -1
- package/node_modules/@mycadet/ces-client/src/socket-path.ts +1 -1
- package/package.json +2 -4
- package/src/__tests__/transport.test.ts +2 -1
- package/src/main.ts +1 -1
- package/src/paths.ts +0 -18
- package/src/index.ts +0 -22
package/Dockerfile
CHANGED
|
@@ -56,6 +56,7 @@ COPY --link --from=builder --chown=1001:1001 /app /app
|
|
|
56
56
|
|
|
57
57
|
# Copy source after installing dependencies for better layer caching.
|
|
58
58
|
COPY --chown=ces:ces packages/service-contracts /app/packages/service-contracts
|
|
59
|
+
COPY --chown=ces:ces packages/ces-client /app/packages/ces-client
|
|
59
60
|
COPY --chown=ces:ces packages/credential-storage /app/packages/credential-storage
|
|
60
61
|
COPY --chown=ces:ces packages/egress-proxy /app/packages/egress-proxy
|
|
61
62
|
COPY --chown=ces:ces packages/ipc-server-utils /app/packages/ipc-server-utils
|
|
@@ -18,7 +18,7 @@ export const CES_SOCKET_DIR_DEFAULT = "/run/ces-ipc";
|
|
|
18
18
|
* The directory holding `ces.sock`: `CES_SOCKET_DIR` when set, otherwise
|
|
19
19
|
* `/run/ces-ipc`.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
function getCesSocketDir(): string {
|
|
22
22
|
return process.env["CES_SOCKET_DIR"]?.trim() || CES_SOCKET_DIR_DEFAULT;
|
|
23
23
|
}
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mycadet/credential-executor",
|
|
3
|
-
"version": "0.13.0-dev.
|
|
3
|
+
"version": "0.13.0-dev.202611152026.e6958cf",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/vargasjr-dev/mycadet-temp.git"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": "./src/index.ts"
|
|
12
|
-
},
|
|
10
|
+
"exports": {},
|
|
13
11
|
"bin": {
|
|
14
12
|
"credential-executor": "./src/main.ts",
|
|
15
13
|
"ces": "./src/cli.ts"
|
|
@@ -24,7 +24,8 @@ import {
|
|
|
24
24
|
type RpcEnvelope,
|
|
25
25
|
} from "@mycadet/service-contracts/credential-rpc";
|
|
26
26
|
|
|
27
|
-
import { getCesDataRoot,
|
|
27
|
+
import { getCesDataRoot, getHealthPort } from "../paths.js";
|
|
28
|
+
import { getCesSocketPath } from "@mycadet/ces-client";
|
|
28
29
|
import { CesRpcServer, type RpcHandlerRegistry } from "../server.js";
|
|
29
30
|
|
|
30
31
|
// ---------------------------------------------------------------------------
|
package/src/main.ts
CHANGED
|
@@ -36,7 +36,6 @@ import {
|
|
|
36
36
|
pruneOldLogFiles,
|
|
37
37
|
} from "./logger.js";
|
|
38
38
|
import {
|
|
39
|
-
getCesSocketPath,
|
|
40
39
|
getCesDataRoot,
|
|
41
40
|
getCesLogDir,
|
|
42
41
|
getHealthPort,
|
|
@@ -51,6 +50,7 @@ import {
|
|
|
51
50
|
getMetadataStore,
|
|
52
51
|
initMetadataStore,
|
|
53
52
|
} from "./records/metadata-store.js";
|
|
53
|
+
import { getCesSocketPath } from "@mycadet/ces-client";
|
|
54
54
|
|
|
55
55
|
// ---------------------------------------------------------------------------
|
|
56
56
|
// Logging (module-level for early bootstrap + structured logging post-init)
|
package/src/paths.ts
CHANGED
|
@@ -62,24 +62,6 @@ export function getCesLogDir(): string {
|
|
|
62
62
|
return join(getCesDataRoot(), "logs");
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
// ---------------------------------------------------------------------------
|
|
66
|
-
// CES socket path (local sibling and managed sidecar)
|
|
67
|
-
// ---------------------------------------------------------------------------
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* The path to the CES Unix socket used in every environment.
|
|
71
|
-
*
|
|
72
|
-
* Local siblings and managed sidecars share this resolver — it lives in
|
|
73
|
-
* `@mycadet/ces-client/socket-path` so the assistant, gateway, and CLI dial
|
|
74
|
-
* the same path CES binds without depending on this package. The directory
|
|
75
|
-
* comes from `CES_SOCKET_DIR` (default `/run/ces-ipc`) and is a sibling of
|
|
76
|
-
* the CES data dir, never inside it.
|
|
77
|
-
*/
|
|
78
|
-
export {
|
|
79
|
-
getCesSocketPath,
|
|
80
|
-
getCesSocketDir,
|
|
81
|
-
} from "@mycadet/ces-client/socket-path";
|
|
82
|
-
|
|
83
65
|
// ---------------------------------------------------------------------------
|
|
84
66
|
// Health port (managed mode only)
|
|
85
67
|
// ---------------------------------------------------------------------------
|
package/src/index.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
/**
|
|
3
|
-
* @mycadet/credential-executor
|
|
4
|
-
*
|
|
5
|
-
* Credential Execution Service (CES) — an isolated runtime that stores and
|
|
6
|
-
* serves credentials on behalf of the assistant daemon over RPC. The CES owns
|
|
7
|
-
* the credential store and exposes credential CRUD operations (get, set,
|
|
8
|
-
* delete, list, bulk-set) plus the cloud-credential update handshake.
|
|
9
|
-
*
|
|
10
|
-
* This module re-exports the public API surface. For the entrypoint see
|
|
11
|
-
* `main.ts`.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
export { CesRpcServer, createCesServer } from "./server.js";
|
|
15
|
-
export type {
|
|
16
|
-
CesServerOptions,
|
|
17
|
-
RpcHandlerRegistry,
|
|
18
|
-
RpcMethodHandler,
|
|
19
|
-
SessionContext,
|
|
20
|
-
} from "./server.js";
|
|
21
|
-
|
|
22
|
-
export { getCesDataRoot, getCesSocketPath, getHealthPort } from "./paths.js";
|