@xemahq/agent-session-runtime 0.11.0 → 0.11.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.
- package/package.json +4 -5
- package/dist/lib/launch-identity/compiled-session-launch-plan-store.d.ts +0 -44
- package/dist/lib/launch-identity/compiled-session-launch-plan-store.d.ts.map +0 -1
- package/dist/lib/launch-identity/compiled-session-launch-plan-store.js +0 -116
- package/dist/lib/launch-identity/compiled-session-launch-plan-store.js.map +0 -1
- package/dist/lib/launch-identity/compiled-session-launch-plan.d.ts +0 -84
- package/dist/lib/launch-identity/compiled-session-launch-plan.d.ts.map +0 -1
- package/dist/lib/launch-identity/compiled-session-launch-plan.js +0 -382
- package/dist/lib/launch-identity/compiled-session-launch-plan.js.map +0 -1
- package/dist/lib/launch-identity/preparation-generation.d.ts +0 -26
- package/dist/lib/launch-identity/preparation-generation.d.ts.map +0 -1
- package/dist/lib/launch-identity/preparation-generation.js +0 -88
- package/dist/lib/launch-identity/preparation-generation.js.map +0 -1
- package/dist/lib/launch-identity/prepared-launch-variant.d.ts +0 -46
- package/dist/lib/launch-identity/prepared-launch-variant.d.ts.map +0 -1
- package/dist/lib/launch-identity/prepared-launch-variant.js +0 -118
- package/dist/lib/launch-identity/prepared-launch-variant.js.map +0 -1
- package/src/index.ts +0 -36
- package/src/lib/agent-resolution.ts +0 -557
- package/src/lib/agent-workspace-manifest.ts +0 -632
- package/src/lib/composer.ts +0 -1315
- package/src/lib/dispatch-contract.ts +0 -151
- package/src/lib/drift-detector.ts +0 -497
- package/src/lib/environment-resolver.ts +0 -480
- package/src/lib/errors.ts +0 -43
- package/src/lib/launch-identity/canonical-contract.ts +0 -352
- package/src/lib/launch-identity/index.ts +0 -4
- package/src/lib/launch-identity/runtime-template-key.ts +0 -143
- package/src/lib/launch-identity/session-binding.ts +0 -152
- package/src/lib/launch-identity/thread-reuse-key.ts +0 -93
- package/src/lib/lifecycle-state.ts +0 -30
- package/src/lib/skill-bundle-template-resolver.ts +0 -147
- package/src/lib/types.ts +0 -453
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/agent-session-runtime",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Runtime for composing and running Xema agent sessions — workspace manifests, skill bundles, environment resolution, and drift detection.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
|
-
"dist"
|
|
39
|
-
"src"
|
|
38
|
+
"dist"
|
|
40
39
|
],
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@types/jest": "^30.0.0",
|
|
@@ -46,11 +45,11 @@
|
|
|
46
45
|
"ts-jest": "^29.4.9",
|
|
47
46
|
"typescript": "5.9.3",
|
|
48
47
|
"@xemahq/dsl": "^0.8.0",
|
|
49
|
-
"@xemahq/kernel-contracts": "^
|
|
48
|
+
"@xemahq/kernel-contracts": "^8.0.0"
|
|
50
49
|
},
|
|
51
50
|
"dependencies": {
|
|
52
51
|
"@xemahq/declarative-reconciler": "^0.1.1",
|
|
53
|
-
"@xemahq/kernel-contracts": "^
|
|
52
|
+
"@xemahq/kernel-contracts": "^8.0.0"
|
|
54
53
|
},
|
|
55
54
|
"peerDependencies": {
|
|
56
55
|
"@xemahq/dsl": ">=0.6.1",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type CompiledSessionLaunchPlan } from './compiled-session-launch-plan';
|
|
2
|
-
export interface CompiledSessionLaunchPlanStore {
|
|
3
|
-
getByHash(contentHash: string): Promise<CompiledSessionLaunchPlan>;
|
|
4
|
-
putByHash(contentHash: string, plan: CompiledSessionLaunchPlan): Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
export interface ImmutableCompiledSessionLaunchPlanContentStore {
|
|
7
|
-
read(contentHash: string): Promise<string | undefined>;
|
|
8
|
-
create(contentHash: string, encodedPlan: string): Promise<boolean>;
|
|
9
|
-
}
|
|
10
|
-
export declare class CompiledSessionLaunchPlanMissingError extends Error {
|
|
11
|
-
readonly contentHash: string;
|
|
12
|
-
readonly name = "CompiledSessionLaunchPlanMissingError";
|
|
13
|
-
constructor(contentHash: string);
|
|
14
|
-
}
|
|
15
|
-
export declare class CompiledSessionLaunchPlanAddressMismatchError extends Error {
|
|
16
|
-
readonly expectedHash: string;
|
|
17
|
-
readonly actualHash: string;
|
|
18
|
-
readonly name = "CompiledSessionLaunchPlanAddressMismatchError";
|
|
19
|
-
constructor(expectedHash: string, actualHash: string);
|
|
20
|
-
}
|
|
21
|
-
export declare class CompiledSessionLaunchPlanCollisionError extends Error {
|
|
22
|
-
readonly contentHash: string;
|
|
23
|
-
readonly name = "CompiledSessionLaunchPlanCollisionError";
|
|
24
|
-
constructor(contentHash: string);
|
|
25
|
-
}
|
|
26
|
-
export declare class CompiledSessionLaunchPlanIntegrityError extends Error {
|
|
27
|
-
readonly contentHash: string;
|
|
28
|
-
readonly cause: unknown;
|
|
29
|
-
readonly name = "CompiledSessionLaunchPlanIntegrityError";
|
|
30
|
-
constructor(contentHash: string, cause: unknown);
|
|
31
|
-
}
|
|
32
|
-
export declare class VerifyingCompiledSessionLaunchPlanStore implements CompiledSessionLaunchPlanStore {
|
|
33
|
-
private readonly contentStore;
|
|
34
|
-
constructor(contentStore: ImmutableCompiledSessionLaunchPlanContentStore);
|
|
35
|
-
getByHash(contentHash: string): Promise<CompiledSessionLaunchPlan>;
|
|
36
|
-
putByHash(contentHash: string, plan: CompiledSessionLaunchPlan): Promise<void>;
|
|
37
|
-
private assertSameContent;
|
|
38
|
-
}
|
|
39
|
-
export declare class InMemoryCompiledSessionLaunchPlanContentStore implements ImmutableCompiledSessionLaunchPlanContentStore {
|
|
40
|
-
private readonly values;
|
|
41
|
-
read(contentHash: string): Promise<string | undefined>;
|
|
42
|
-
create(contentHash: string, encodedPlan: string): Promise<boolean>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=compiled-session-launch-plan-store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compiled-session-launch-plan-store.d.ts","sourceRoot":"","sources":["../../../src/lib/launch-identity/compiled-session-launch-plan-store.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,yBAAyB,EAC/B,MAAM,gCAAgC,CAAC;AAMxC,MAAM,WAAW,8BAA8B;IAC7C,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACnE,SAAS,CACP,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAMD,MAAM,WAAW,8CAA8C;IAC7D,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpE;AAED,qBAAa,qCAAsC,SAAQ,KAAK;IAGlD,QAAQ,CAAC,WAAW,EAAE,MAAM;IAFxC,SAAkB,IAAI,2CAA2C;gBAE5C,WAAW,EAAE,MAAM;CAGzC;AAED,qBAAa,6CAA8C,SAAQ,KAAK;IAIpE,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM;IAJ7B,SAAkB,IAAI,mDAAmD;gBAG9D,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM;CAM9B;AAED,qBAAa,uCAAwC,SAAQ,KAAK;IAGpD,QAAQ,CAAC,WAAW,EAAE,MAAM;IAFxC,SAAkB,IAAI,6CAA6C;gBAE9C,WAAW,EAAE,MAAM;CAKzC;AAED,qBAAa,uCAAwC,SAAQ,KAAK;IAI9D,QAAQ,CAAC,WAAW,EAAE,MAAM;aACV,KAAK,EAAE,OAAO;IAJlC,SAAkB,IAAI,6CAA6C;gBAGxD,WAAW,EAAE,MAAM,EACV,KAAK,EAAE,OAAO;CAOnC;AAOD,qBAAa,uCACX,YAAW,8BAA8B;IAGvC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,8CAA8C;IAGzE,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IA2BlE,SAAS,CACb,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,IAAI,CAAC;IAgChB,OAAO,CAAC,iBAAiB;CAS1B;AAGD,qBAAa,6CACX,YAAW,8CAA8C;IAEzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAE9C,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAItD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAOzE"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InMemoryCompiledSessionLaunchPlanContentStore = exports.VerifyingCompiledSessionLaunchPlanStore = exports.CompiledSessionLaunchPlanIntegrityError = exports.CompiledSessionLaunchPlanCollisionError = exports.CompiledSessionLaunchPlanAddressMismatchError = exports.CompiledSessionLaunchPlanMissingError = void 0;
|
|
4
|
-
const canonical_contract_1 = require("./canonical-contract");
|
|
5
|
-
const compiled_session_launch_plan_1 = require("./compiled-session-launch-plan");
|
|
6
|
-
class CompiledSessionLaunchPlanMissingError extends Error {
|
|
7
|
-
contentHash;
|
|
8
|
-
name = 'CompiledSessionLaunchPlanMissingError';
|
|
9
|
-
constructor(contentHash) {
|
|
10
|
-
super(`Compiled session launch plan '${contentHash}' does not exist.`);
|
|
11
|
-
this.contentHash = contentHash;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.CompiledSessionLaunchPlanMissingError = CompiledSessionLaunchPlanMissingError;
|
|
15
|
-
class CompiledSessionLaunchPlanAddressMismatchError extends Error {
|
|
16
|
-
expectedHash;
|
|
17
|
-
actualHash;
|
|
18
|
-
name = 'CompiledSessionLaunchPlanAddressMismatchError';
|
|
19
|
-
constructor(expectedHash, actualHash) {
|
|
20
|
-
super(`Compiled session launch plan address '${expectedHash}' does not match its content hash '${actualHash}'.`);
|
|
21
|
-
this.expectedHash = expectedHash;
|
|
22
|
-
this.actualHash = actualHash;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.CompiledSessionLaunchPlanAddressMismatchError = CompiledSessionLaunchPlanAddressMismatchError;
|
|
26
|
-
class CompiledSessionLaunchPlanCollisionError extends Error {
|
|
27
|
-
contentHash;
|
|
28
|
-
name = 'CompiledSessionLaunchPlanCollisionError';
|
|
29
|
-
constructor(contentHash) {
|
|
30
|
-
super(`Immutable content collision at compiled session launch plan '${contentHash}'.`);
|
|
31
|
-
this.contentHash = contentHash;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.CompiledSessionLaunchPlanCollisionError = CompiledSessionLaunchPlanCollisionError;
|
|
35
|
-
class CompiledSessionLaunchPlanIntegrityError extends Error {
|
|
36
|
-
contentHash;
|
|
37
|
-
cause;
|
|
38
|
-
name = 'CompiledSessionLaunchPlanIntegrityError';
|
|
39
|
-
constructor(contentHash, cause) {
|
|
40
|
-
super(`Compiled session launch plan '${contentHash}' failed content verification.`, { cause });
|
|
41
|
-
this.contentHash = contentHash;
|
|
42
|
-
this.cause = cause;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.CompiledSessionLaunchPlanIntegrityError = CompiledSessionLaunchPlanIntegrityError;
|
|
46
|
-
class VerifyingCompiledSessionLaunchPlanStore {
|
|
47
|
-
contentStore;
|
|
48
|
-
constructor(contentStore) {
|
|
49
|
-
this.contentStore = contentStore;
|
|
50
|
-
}
|
|
51
|
-
async getByHash(contentHash) {
|
|
52
|
-
const hash = (0, canonical_contract_1.requireSha256)(contentHash, 'contentHash');
|
|
53
|
-
const encoded = await this.contentStore.read(hash);
|
|
54
|
-
if (encoded === undefined) {
|
|
55
|
-
throw new CompiledSessionLaunchPlanMissingError(hash);
|
|
56
|
-
}
|
|
57
|
-
try {
|
|
58
|
-
const plan = (0, compiled_session_launch_plan_1.decodeCompiledSessionLaunchPlan)(encoded);
|
|
59
|
-
const actualHash = (0, compiled_session_launch_plan_1.hashCompiledSessionLaunchPlan)(plan);
|
|
60
|
-
if (actualHash !== hash) {
|
|
61
|
-
throw new CompiledSessionLaunchPlanAddressMismatchError(hash, actualHash);
|
|
62
|
-
}
|
|
63
|
-
if ((0, compiled_session_launch_plan_1.encodeCompiledSessionLaunchPlan)(plan) !== encoded) {
|
|
64
|
-
throw new TypeError('Stored launch plan bytes are not in canonical encoding.');
|
|
65
|
-
}
|
|
66
|
-
return plan;
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
throw new CompiledSessionLaunchPlanIntegrityError(hash, error);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
async putByHash(contentHash, plan) {
|
|
73
|
-
const hash = (0, canonical_contract_1.requireSha256)(contentHash, 'contentHash');
|
|
74
|
-
const canonicalPlan = (0, compiled_session_launch_plan_1.createCompiledSessionLaunchPlan)(plan);
|
|
75
|
-
const actualHash = (0, compiled_session_launch_plan_1.hashCompiledSessionLaunchPlan)(canonicalPlan);
|
|
76
|
-
if (actualHash !== hash) {
|
|
77
|
-
throw new CompiledSessionLaunchPlanAddressMismatchError(hash, actualHash);
|
|
78
|
-
}
|
|
79
|
-
const encoded = (0, compiled_session_launch_plan_1.encodeCompiledSessionLaunchPlan)(canonicalPlan);
|
|
80
|
-
const existing = await this.contentStore.read(hash);
|
|
81
|
-
if (existing !== undefined) {
|
|
82
|
-
this.assertSameContent(hash, existing, encoded);
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const created = await this.contentStore.create(hash, encoded);
|
|
86
|
-
if (created) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
const racedExisting = await this.contentStore.read(hash);
|
|
90
|
-
if (racedExisting === undefined) {
|
|
91
|
-
throw new CompiledSessionLaunchPlanIntegrityError(hash, new Error('Immutable content store reported an existing value but returned no content.'));
|
|
92
|
-
}
|
|
93
|
-
this.assertSameContent(hash, racedExisting, encoded);
|
|
94
|
-
}
|
|
95
|
-
assertSameContent(contentHash, existing, expected) {
|
|
96
|
-
if (existing !== expected) {
|
|
97
|
-
throw new CompiledSessionLaunchPlanCollisionError(contentHash);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.VerifyingCompiledSessionLaunchPlanStore = VerifyingCompiledSessionLaunchPlanStore;
|
|
102
|
-
class InMemoryCompiledSessionLaunchPlanContentStore {
|
|
103
|
-
values = new Map();
|
|
104
|
-
async read(contentHash) {
|
|
105
|
-
return this.values.get(contentHash);
|
|
106
|
-
}
|
|
107
|
-
async create(contentHash, encodedPlan) {
|
|
108
|
-
if (this.values.has(contentHash)) {
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
this.values.set(contentHash, encodedPlan);
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
exports.InMemoryCompiledSessionLaunchPlanContentStore = InMemoryCompiledSessionLaunchPlanContentStore;
|
|
116
|
-
//# sourceMappingURL=compiled-session-launch-plan-store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compiled-session-launch-plan-store.js","sourceRoot":"","sources":["../../../src/lib/launch-identity/compiled-session-launch-plan-store.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AACrD,iFAMwC;AAuBxC,MAAa,qCAAsC,SAAQ,KAAK;IAGzC;IAFH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-contract';
|
|
2
|
-
import { type RuntimeTemplateKey, RuntimeTemplateTenantDependency, RuntimeTemplateTrustPolicy } from './runtime-template-key';
|
|
3
|
-
export declare enum LaunchPlanBindingSlotKind {
|
|
4
|
-
OrganizationId = "organization-id",
|
|
5
|
-
ProjectId = "project-id",
|
|
6
|
-
UserId = "user-id",
|
|
7
|
-
SessionId = "session-id",
|
|
8
|
-
ThreadId = "thread-id",
|
|
9
|
-
InvocationId = "invocation-id",
|
|
10
|
-
DomainRef = "domain-ref",
|
|
11
|
-
Input = "input",
|
|
12
|
-
DynamicContext = "dynamic-context",
|
|
13
|
-
StorageAllocationRef = "storage-allocation-ref",
|
|
14
|
-
WorkingFileSourceRef = "working-file-source-ref",
|
|
15
|
-
OutputRouteRef = "output-route-ref",
|
|
16
|
-
ActorTokenRef = "actor-token-ref",
|
|
17
|
-
ServiceTokenRef = "service-token-ref",
|
|
18
|
-
ProviderTokenRef = "provider-token-ref",
|
|
19
|
-
CredentialGrantRef = "credential-grant-ref",
|
|
20
|
-
DatabaseGrantRef = "database-grant-ref",
|
|
21
|
-
SecretRef = "secret-ref"
|
|
22
|
-
}
|
|
23
|
-
export declare enum LaunchPlanBindingSlotCardinality {
|
|
24
|
-
One = "one",
|
|
25
|
-
Many = "many"
|
|
26
|
-
}
|
|
27
|
-
export interface LaunchPlanBindingSlot {
|
|
28
|
-
readonly name: string;
|
|
29
|
-
readonly kind: LaunchPlanBindingSlotKind;
|
|
30
|
-
readonly cardinality: LaunchPlanBindingSlotCardinality;
|
|
31
|
-
readonly required: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface PinnedLaunchResource {
|
|
34
|
-
readonly kind: string;
|
|
35
|
-
readonly ref: string;
|
|
36
|
-
readonly revisionRef: string;
|
|
37
|
-
readonly contentHash: string;
|
|
38
|
-
}
|
|
39
|
-
export interface CompiledWorkspaceLaunchPlan {
|
|
40
|
-
readonly manifestRef: string;
|
|
41
|
-
readonly manifestHash: string;
|
|
42
|
-
readonly structure: Readonly<Record<string, CanonicalJsonValue>>;
|
|
43
|
-
readonly layout: Readonly<Record<string, CanonicalJsonValue>>;
|
|
44
|
-
}
|
|
45
|
-
export interface CompiledRuntimeRequirements {
|
|
46
|
-
readonly runtimeRef: string;
|
|
47
|
-
readonly runtimeRevision: string;
|
|
48
|
-
readonly imageDigest: string;
|
|
49
|
-
readonly requirementsHash: string;
|
|
50
|
-
readonly requirements: Readonly<Record<string, CanonicalJsonValue>>;
|
|
51
|
-
}
|
|
52
|
-
export interface LaunchPolicyCompatibility {
|
|
53
|
-
readonly tenantDependency: RuntimeTemplateTenantDependency;
|
|
54
|
-
readonly trustPolicy: RuntimeTemplateTrustPolicy;
|
|
55
|
-
readonly compatibleSurfaces: readonly string[];
|
|
56
|
-
readonly policies: readonly PinnedLaunchResource[];
|
|
57
|
-
}
|
|
58
|
-
export interface CompiledOutputSurfaceSchema {
|
|
59
|
-
readonly kind: string;
|
|
60
|
-
readonly schemaRef: string;
|
|
61
|
-
readonly schemaHash: string;
|
|
62
|
-
readonly schema: Readonly<Record<string, CanonicalJsonValue>>;
|
|
63
|
-
}
|
|
64
|
-
export interface CompiledSessionLaunchPlan {
|
|
65
|
-
readonly schemaVersion: 1;
|
|
66
|
-
readonly runtimeTemplateKey: RuntimeTemplateKey;
|
|
67
|
-
readonly agent: PinnedLaunchResource;
|
|
68
|
-
readonly subagents: readonly PinnedLaunchResource[];
|
|
69
|
-
readonly skills: readonly PinnedLaunchResource[];
|
|
70
|
-
readonly tools: readonly PinnedLaunchResource[];
|
|
71
|
-
readonly mcpDescriptors: readonly PinnedLaunchResource[];
|
|
72
|
-
readonly capabilityDescriptors: readonly PinnedLaunchResource[];
|
|
73
|
-
readonly workspace: CompiledWorkspaceLaunchPlan;
|
|
74
|
-
readonly runtimeRequirements: CompiledRuntimeRequirements;
|
|
75
|
-
readonly policyCompatibility: LaunchPolicyCompatibility;
|
|
76
|
-
readonly outputSurface: CompiledOutputSurfaceSchema;
|
|
77
|
-
readonly bindingSlots: readonly LaunchPlanBindingSlot[];
|
|
78
|
-
}
|
|
79
|
-
export declare function createCompiledSessionLaunchPlan(input: unknown): CompiledSessionLaunchPlan;
|
|
80
|
-
export declare function encodeCompiledSessionLaunchPlan(input: CompiledSessionLaunchPlan): string;
|
|
81
|
-
export declare function decodeCompiledSessionLaunchPlan(encoded: string): CompiledSessionLaunchPlan;
|
|
82
|
-
export declare function hashCompiledSessionLaunchPlan(input: CompiledSessionLaunchPlan): string;
|
|
83
|
-
export declare function hashCompiledWorkspaceLaunchPlan(input: CompiledWorkspaceLaunchPlan): string;
|
|
84
|
-
//# sourceMappingURL=compiled-session-launch-plan.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compiled-session-launch-plan.d.ts","sourceRoot":"","sources":["../../../src/lib/launch-identity/compiled-session-launch-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EAUxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,kBAAkB,EACvB,+BAA+B,EAC/B,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,oBAAY,yBAAyB;IACnC,cAAc,oBAAoB;IAClC,SAAS,eAAe;IACxB,MAAM,YAAY;IAClB,SAAS,eAAe;IACxB,QAAQ,cAAc;IACtB,YAAY,kBAAkB;IAC9B,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,cAAc,oBAAoB;IAClC,oBAAoB,2BAA2B;IAC/C,oBAAoB,4BAA4B;IAChD,cAAc,qBAAqB;IACnC,aAAa,oBAAoB;IACjC,eAAe,sBAAsB;IACrC,gBAAgB,uBAAuB;IACvC,kBAAkB,yBAAyB;IAC3C,gBAAgB,uBAAuB;IACvC,SAAS,eAAe;CACzB;AAED,oBAAY,gCAAgC;IAC1C,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ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