@camstack/server 1.1.40 → 1.1.41
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.
|
@@ -5006,6 +5006,15 @@ function createCapRouter_pipelineExecutor(getProvider, createRemoteProxy) {
|
|
|
5006
5006
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5007
5007
|
return p.setVideoPipelineSteps(methodInput);
|
|
5008
5008
|
}),
|
|
5009
|
+
resetToDefault: trpc_middleware_js_1.adminProcedure
|
|
5010
|
+
.input(types_76.pipelineExecutorCapability.methods.resetToDefault.input.loose())
|
|
5011
|
+
.output(types_76.pipelineExecutorCapability.methods.resetToDefault.output)
|
|
5012
|
+
.mutation(async ({ input, ctx }) => {
|
|
5013
|
+
const { nodeId, ...methodInput } = input;
|
|
5014
|
+
const p = resolveProvider('pipeline-executor', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5015
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5016
|
+
return p.resetToDefault(methodInput);
|
|
5017
|
+
}),
|
|
5009
5018
|
getSchema: trpc_middleware_js_1.protectedProcedure
|
|
5010
5019
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
5011
5020
|
.output(types_76.pipelineExecutorCapability.methods.getSchema.output)
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.AddonPackageService = exports.SYSTEM_PACKAGE = void 0;
|
|
36
|
+
exports.AddonPackageService = exports.FRAMEWORK_PACKAGES = exports.SYSTEM_PACKAGE = void 0;
|
|
37
37
|
exports.isFrameworkPackage = isFrameworkPackage;
|
|
38
38
|
exports.extractTgzStripped = extractTgzStripped;
|
|
39
39
|
exports.sweepStaleFrameworkBackups = sweepStaleFrameworkBackups;
|
|
@@ -49,14 +49,41 @@ const types_1 = require("@camstack/types");
|
|
|
49
49
|
const system_1 = require("@camstack/system");
|
|
50
50
|
const execFileAsync = (0, node_util_1.promisify)(node_child_process_1.execFile);
|
|
51
51
|
/**
|
|
52
|
-
* The
|
|
53
|
-
*
|
|
54
|
-
* shm-ring is a private native dep). There is no multi-entry allowlist.
|
|
52
|
+
* The primary host-provided framework package (kernel + core). Kept as a named
|
|
53
|
+
* export because `lifecycle-job-runner` + several tests reference it directly.
|
|
55
54
|
*/
|
|
56
55
|
exports.SYSTEM_PACKAGE = '@camstack/system';
|
|
57
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Host-provided framework packages that a `camstack deploy` mirrors into the
|
|
58
|
+
* running hub's live closure via `syncFrameworkDist` (hub-main node_modules +
|
|
59
|
+
* addon-runner overlay) instead of the normal addon-install path, then bounces
|
|
60
|
+
* the server — delivering the new code with NO image rebuild.
|
|
61
|
+
*
|
|
62
|
+
* `@camstack/types` is included so a CAPABILITY change ships live via
|
|
63
|
+
* `camstack deploy packages/types`: the hub-main reads `ALL_CAPABILITY_DEFINITIONS`
|
|
64
|
+
* + `METHOD_ACCESS_MAP` and the runtime cap-router builder reads the cap defs
|
|
65
|
+
* from this single closure copy, so mirroring types' `dist/` refreshes the
|
|
66
|
+
* ENTIRE cap surface (new caps, new methods, AND the per-method auth map)
|
|
67
|
+
* without an image. `@camstack/sdk` rides along as a pure-JS lockstep companion.
|
|
68
|
+
* `@camstack/shm-ring` is deliberately EXCLUDED: it ships a native `.node`
|
|
69
|
+
* prebuild the dist-only mirror cannot rebuild — it must go through the
|
|
70
|
+
* native-aware install path, not this JS-dist swap.
|
|
71
|
+
*
|
|
72
|
+
* Membership is by package NAME, independent of the `camstack.system` manifest
|
|
73
|
+
* flag (`@camstack/types` declares `system: false` yet is a framework package
|
|
74
|
+
* here) — that flag drives Admin-UI grouping; this gate drives live-sync routing.
|
|
75
|
+
*/
|
|
76
|
+
exports.FRAMEWORK_PACKAGES = [
|
|
77
|
+
exports.SYSTEM_PACKAGE,
|
|
78
|
+
'@camstack/types',
|
|
79
|
+
'@camstack/sdk',
|
|
80
|
+
];
|
|
81
|
+
/**
|
|
82
|
+
* Returns true for a host-provided framework package whose `dist/` is mirrored
|
|
83
|
+
* into the live closure by `syncFrameworkDist` (not installed as a normal addon).
|
|
84
|
+
*/
|
|
58
85
|
function isFrameworkPackage(packageName) {
|
|
59
|
-
return
|
|
86
|
+
return exports.FRAMEWORK_PACKAGES.includes(packageName);
|
|
60
87
|
}
|
|
61
88
|
// ---------------------------------------------------------------------------
|
|
62
89
|
// Typed JSON helpers
|