@cat-factory/node-server 0.112.0 → 0.112.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/dist/container-core-deps.d.ts +82 -0
- package/dist/container-core-deps.d.ts.map +1 -0
- package/dist/container-core-deps.js +470 -0
- package/dist/container-core-deps.js.map +1 -0
- package/dist/container-foundation.d.ts +81 -0
- package/dist/container-foundation.d.ts.map +1 -0
- package/dist/container-foundation.js +193 -0
- package/dist/container-foundation.js.map +1 -0
- package/dist/container-github-deps.d.ts.map +1 -1
- package/dist/container-github-deps.js +127 -95
- package/dist/container-github-deps.js.map +1 -1
- package/dist/container.d.ts +22 -13
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +21 -614
- package/dist/container.js.map +1 -1
- package/package.json +4 -4
package/dist/container.d.ts
CHANGED
|
@@ -6,24 +6,18 @@ import { type AppConfig, type ResolveRepoOrigin, type ResolveRunnerTransport, ty
|
|
|
6
6
|
import { type GateProviderOverrides } from '@cat-factory/gates';
|
|
7
7
|
import type { AppCaches, InitiativePresetRegistry, PipelineRegistry, PreviewTransport, ProviderRegistry, TaskTypeRegistry, VcsProviderRegistry } from '@cat-factory/kernel';
|
|
8
8
|
import type { PgBoss } from 'pg-boss';
|
|
9
|
+
import { selectNodeGitHubDeps } from './container-github-deps.js';
|
|
10
|
+
import { buildNodeModelDeps } from './container-model-deps.js';
|
|
11
|
+
import { buildNodeRunServices } from './container-run-services-deps.js';
|
|
12
|
+
import { buildNodeBootstrapper, buildNodeTransportDeploy } from './container-transport-deps.js';
|
|
13
|
+
import { buildNodeAccountDeps } from './container-account-deps.js';
|
|
14
|
+
import { buildNodeRealtimeDeps } from './container-realtime-deps.js';
|
|
9
15
|
import type { DrizzleDb } from './db/client.js';
|
|
10
16
|
import type { LocalEventSink } from './realtime.js';
|
|
11
17
|
import { createDrizzleRepositories } from './repositories/drizzle.js';
|
|
12
18
|
import type { ContentStorageBackend } from '@cat-factory/contracts';
|
|
19
|
+
export { pickRepoSource } from './container-foundation.js';
|
|
13
20
|
export { buildNodeResolveTransport, missingContainerExecutorPrereqs, withProvisioningLog, } from './container-executor-deps.js';
|
|
14
|
-
/**
|
|
15
|
-
* Source one org/durable repository that a standard build constructs directly from the Drizzle
|
|
16
|
-
* `db`. In mothership mode (no Postgres) `remote` is the full-surface remote registry — a
|
|
17
|
-
* `Proxy` (`createRemoteRepositoryRegistry`) that forwards any repo name to the hosted
|
|
18
|
-
* mothership over the `/internal/persistence` RPC — so the repo comes from THERE instead of the
|
|
19
|
-
* absent db; otherwise `build()` constructs the Drizzle repo over `db` as before. This is the
|
|
20
|
-
* Phase-3 `db: undefined` audit seam: every direct-db store on the board-load + run path routes
|
|
21
|
-
* through it. Routing is orthogonal to the server-side allow-list — an un-allow-listed remote
|
|
22
|
-
* method still returns a clean `unknown_method`, never a `db`-undefined `TypeError`. Mirrors the
|
|
23
|
-
* credential-repo override seam (`providerApiKeyRepository`), which keeps credentials local while
|
|
24
|
-
* org state goes remote. See docs/initiatives/mothership-mode.md (Phase 3, part 1).
|
|
25
|
-
*/
|
|
26
|
-
export declare function pickRepoSource<T>(remote: Record<string, unknown> | undefined, name: string, build: () => T): T;
|
|
27
21
|
/**
|
|
28
22
|
* The subscription-credential lease seams `buildNodeContainer` hands to
|
|
29
23
|
* {@link NodeContainerOptions.wrapModelProviderResolver}. Present only when the corresponding
|
|
@@ -337,5 +331,20 @@ export interface NodeContainerOptions {
|
|
|
337
331
|
*/
|
|
338
332
|
contentStorageDefaultBackend?: ContentStorageBackend;
|
|
339
333
|
}
|
|
334
|
+
export type NodeModelDepsResult = ReturnType<typeof buildNodeModelDeps>;
|
|
335
|
+
export type NodeTransportDeployResult = ReturnType<typeof buildNodeTransportDeploy>;
|
|
336
|
+
export type NodeRunServicesResult = ReturnType<typeof buildNodeRunServices>;
|
|
337
|
+
export type NodeGitHubDepsResult = ReturnType<typeof selectNodeGitHubDeps>;
|
|
338
|
+
export type NodeBootstrapperResult = ReturnType<typeof buildNodeBootstrapper>;
|
|
339
|
+
export type NodeRealtimeDepsResult = ReturnType<typeof buildNodeRealtimeDeps>;
|
|
340
|
+
export type NodeAccountDepsResult = ReturnType<typeof buildNodeAccountDeps>;
|
|
340
341
|
export declare function buildNodeContainer(options: NodeContainerOptions): ServerContainer;
|
|
342
|
+
/**
|
|
343
|
+
* Wire the task-source integration for the Node facade when it is enabled (the
|
|
344
|
+
* `tasks` module then assembles so tenants can connect Jira through the existing
|
|
345
|
+
* UI). Returns the `CoreDependencies` fragment plus the connection repository so the
|
|
346
|
+
* tracker can resolve each workspace's Jira credentials from the same store.
|
|
347
|
+
* No registered providers → `{ deps: {} }` and both the tasks module and the Jira
|
|
348
|
+
* tracker stay off (the encryption key is guaranteed present by `loadTasksConfig`).
|
|
349
|
+
*/
|
|
341
350
|
//# sourceMappingURL=container.d.ts.map
|
package/dist/container.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAM5D,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxF,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACtC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EAC1B,MAAM,4BAA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