@axiom-lattice/protocols 7.5.0 → 7.7.0
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +32 -0
- package/dist/index.d.mts +83 -27
- package/dist/index.d.ts +83 -27
- package/dist/index.js +85 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/OpenProtocol.ts +6 -2
- package/src/PlatformBrandingFields.ts +41 -28
- package/src/PlatformSettingsProtocol.ts +1 -1
- package/src/ThreadStoreProtocol.ts +99 -0
- package/src/__tests__/PlatformBrandingFields.test.ts +8 -0
- package/src/__tests__/ThreadMonitorProtocol.test.ts +60 -0
package/dist/index.mjs
CHANGED
|
@@ -105,6 +105,50 @@ var MessageChunkTypes = {
|
|
|
105
105
|
THREAD_IDLE: "thread_idle"
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
// src/ThreadStoreProtocol.ts
|
|
109
|
+
function classifyThreadMetadata(metadata) {
|
|
110
|
+
if (!metadata) return "conversation";
|
|
111
|
+
if (metadata.source === "project_task" && metadata.kind === "task_execution") {
|
|
112
|
+
return "task_execution";
|
|
113
|
+
}
|
|
114
|
+
if (metadata.source === "project_room" && metadata.kind === "room_presence") {
|
|
115
|
+
return "room_presence";
|
|
116
|
+
}
|
|
117
|
+
if (metadata.source === "open_api") return "open_api";
|
|
118
|
+
if (metadata.source === "web_app") return "web_app";
|
|
119
|
+
if (typeof metadata.cronId === "string" && metadata.cronId.length > 0) {
|
|
120
|
+
return "cron";
|
|
121
|
+
}
|
|
122
|
+
if (typeof metadata.channel === "string" && metadata.channel.length > 0) {
|
|
123
|
+
return "channel";
|
|
124
|
+
}
|
|
125
|
+
return "conversation";
|
|
126
|
+
}
|
|
127
|
+
function toThreadMonitorRecord(thread) {
|
|
128
|
+
const metadata = thread.metadata ?? {};
|
|
129
|
+
const readString = (key) => {
|
|
130
|
+
const value = metadata[key];
|
|
131
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
132
|
+
};
|
|
133
|
+
const workspaceId = readString("workspaceId");
|
|
134
|
+
const projectId = readString("projectId");
|
|
135
|
+
const roomId = readString("roomId");
|
|
136
|
+
const taskId = readString("taskId");
|
|
137
|
+
return {
|
|
138
|
+
id: thread.id,
|
|
139
|
+
tenantId: thread.tenantId,
|
|
140
|
+
assistantId: thread.assistantId,
|
|
141
|
+
kind: classifyThreadMetadata(metadata),
|
|
142
|
+
...workspaceId ? { workspaceId } : {},
|
|
143
|
+
...projectId ? { projectId } : {},
|
|
144
|
+
...roomId ? { roomId } : {},
|
|
145
|
+
...taskId ? { taskId } : {},
|
|
146
|
+
createdAt: thread.createdAt,
|
|
147
|
+
updatedAt: thread.updatedAt,
|
|
148
|
+
...thread.expiresAt ? { expiresAt: thread.expiresAt } : {}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
108
152
|
// src/McpLatticeProtocol.ts
|
|
109
153
|
var McpMessageType = /* @__PURE__ */ ((McpMessageType2) => {
|
|
110
154
|
McpMessageType2["CONNECT"] = "mcp:connect";
|
|
@@ -1268,19 +1312,19 @@ var AUTH_FONT_FAMILY_IDS = ["system", "inter", "serif", "mono"];
|
|
|
1268
1312
|
var AUTH_FONT_FAMILIES = {
|
|
1269
1313
|
system: {
|
|
1270
1314
|
labelKey: "platformAdmin.settings.branding.font.system",
|
|
1271
|
-
stack: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
1315
|
+
stack: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif'
|
|
1272
1316
|
},
|
|
1273
1317
|
inter: {
|
|
1274
1318
|
labelKey: "platformAdmin.settings.branding.font.inter",
|
|
1275
|
-
stack: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
1319
|
+
stack: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif'
|
|
1276
1320
|
},
|
|
1277
1321
|
serif: {
|
|
1278
1322
|
labelKey: "platformAdmin.settings.branding.font.serif",
|
|
1279
|
-
stack: 'Georgia, "Times New Roman", Times, serif'
|
|
1323
|
+
stack: 'Georgia, "Times New Roman", Times, "Songti SC", SimSun, "Noto Serif SC", "Source Han Serif SC", serif'
|
|
1280
1324
|
},
|
|
1281
1325
|
mono: {
|
|
1282
1326
|
labelKey: "platformAdmin.settings.branding.font.mono",
|
|
1283
|
-
stack: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace'
|
|
1327
|
+
stack: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Noto Sans Mono CJK SC", "Sarasa Mono SC", "PingFang SC", "Microsoft YaHei", monospace'
|
|
1284
1328
|
}
|
|
1285
1329
|
};
|
|
1286
1330
|
var AUTH_SLOT_IDS = [
|
|
@@ -2448,6 +2492,10 @@ var AUTH_BRANDING_PRESETS = {
|
|
|
2448
2492
|
var AUTH_BRANDING_PRESET_IDS = Object.keys(
|
|
2449
2493
|
AUTH_BRANDING_PRESETS
|
|
2450
2494
|
);
|
|
2495
|
+
var AUTH_BRANDING_ASSET_BASE = "/public";
|
|
2496
|
+
function authBrandingAsset(path) {
|
|
2497
|
+
return `${AUTH_BRANDING_ASSET_BASE}/${path.replace(/^\/+/, "")}`;
|
|
2498
|
+
}
|
|
2451
2499
|
var AUTH_BRANDING_CASES = {
|
|
2452
2500
|
"editorial-launch": {
|
|
2453
2501
|
id: "editorial-launch",
|
|
@@ -2456,15 +2504,15 @@ var AUTH_BRANDING_CASES = {
|
|
|
2456
2504
|
presetId: "editorial-centered",
|
|
2457
2505
|
branding: {
|
|
2458
2506
|
brandName: "AlphaFina",
|
|
2459
|
-
logoUrl: "
|
|
2507
|
+
logoUrl: authBrandingAsset("logo.png"),
|
|
2460
2508
|
loginTitle: "A quieter way to sign in",
|
|
2461
2509
|
loginSubtitle: "One account for every workspace.",
|
|
2462
2510
|
footerNote: "SOC 2 ready \xB7 SSO \xB7 Audit logs",
|
|
2463
2511
|
panelEyebrow: "Crafted for thoughtful teams",
|
|
2464
|
-
panelTrustLogo1: "/
|
|
2465
|
-
panelTrustLogo2: "/
|
|
2466
|
-
panelTrustLogo3: "/
|
|
2467
|
-
panelTrustLogo4: "/
|
|
2512
|
+
panelTrustLogo1: authBrandingAsset("presets/trust-northstar.svg"),
|
|
2513
|
+
panelTrustLogo2: authBrandingAsset("presets/trust-acme.svg"),
|
|
2514
|
+
panelTrustLogo3: authBrandingAsset("presets/trust-vertex.svg"),
|
|
2515
|
+
panelTrustLogo4: authBrandingAsset("presets/trust-lumen.svg")
|
|
2468
2516
|
}
|
|
2469
2517
|
},
|
|
2470
2518
|
"product-showcase": {
|
|
@@ -2474,7 +2522,7 @@ var AUTH_BRANDING_CASES = {
|
|
|
2474
2522
|
presetId: "product",
|
|
2475
2523
|
branding: {
|
|
2476
2524
|
brandName: "AlphaFina",
|
|
2477
|
-
logoUrl: "
|
|
2525
|
+
logoUrl: authBrandingAsset("logo.png"),
|
|
2478
2526
|
loginLayout: "split-showcase",
|
|
2479
2527
|
panelPosition: "right",
|
|
2480
2528
|
panelContentAlign: "center",
|
|
@@ -2485,12 +2533,12 @@ var AUTH_BRANDING_CASES = {
|
|
|
2485
2533
|
panelPoint1: "Live run visibility",
|
|
2486
2534
|
panelPoint2: "Audit-ready activity",
|
|
2487
2535
|
panelPoint3: "One shared context",
|
|
2488
|
-
panelProductImageUrl: "/
|
|
2536
|
+
panelProductImageUrl: authBrandingAsset("presets/product-dashboard.svg"),
|
|
2489
2537
|
panelProductImageAlt: "AlphaFina workspace dashboard",
|
|
2490
|
-
panelTrustLogo1: "/
|
|
2491
|
-
panelTrustLogo2: "/
|
|
2492
|
-
panelTrustLogo3: "/
|
|
2493
|
-
panelTrustLogo4: "/
|
|
2538
|
+
panelTrustLogo1: authBrandingAsset("presets/trust-northstar.svg"),
|
|
2539
|
+
panelTrustLogo2: authBrandingAsset("presets/trust-acme.svg"),
|
|
2540
|
+
panelTrustLogo3: authBrandingAsset("presets/trust-vertex.svg"),
|
|
2541
|
+
panelTrustLogo4: authBrandingAsset("presets/trust-lumen.svg"),
|
|
2494
2542
|
imageFit: "cover",
|
|
2495
2543
|
imagePosition: "top",
|
|
2496
2544
|
imageTreatment: "none"
|
|
@@ -2510,7 +2558,7 @@ var AUTH_BRANDING_CASES = {
|
|
|
2510
2558
|
presetId: "narrative",
|
|
2511
2559
|
branding: {
|
|
2512
2560
|
brandName: "AlphaFina",
|
|
2513
|
-
logoUrl: "
|
|
2561
|
+
logoUrl: authBrandingAsset("logo.png"),
|
|
2514
2562
|
loginLayout: "split-story",
|
|
2515
2563
|
panelEyebrow: "Trusted by modern teams",
|
|
2516
2564
|
panelTitle: "Build with confidence",
|
|
@@ -2527,10 +2575,10 @@ var AUTH_BRANDING_CASES = {
|
|
|
2527
2575
|
panelQuote: "The calmest, most reliable launch experience we have shipped.",
|
|
2528
2576
|
panelQuoteAuthor: "Maya Chen",
|
|
2529
2577
|
panelQuoteRole: "VP Engineering, Northstar",
|
|
2530
|
-
panelTrustLogo1: "/
|
|
2531
|
-
panelTrustLogo2: "/
|
|
2532
|
-
panelTrustLogo3: "/
|
|
2533
|
-
panelTrustLogo4: "/
|
|
2578
|
+
panelTrustLogo1: authBrandingAsset("presets/trust-northstar.svg"),
|
|
2579
|
+
panelTrustLogo2: authBrandingAsset("presets/trust-acme.svg"),
|
|
2580
|
+
panelTrustLogo3: authBrandingAsset("presets/trust-vertex.svg"),
|
|
2581
|
+
panelTrustLogo4: authBrandingAsset("presets/trust-lumen.svg")
|
|
2534
2582
|
}
|
|
2535
2583
|
},
|
|
2536
2584
|
"aurora-launch": {
|
|
@@ -2540,9 +2588,9 @@ var AUTH_BRANDING_CASES = {
|
|
|
2540
2588
|
presetId: "aurora",
|
|
2541
2589
|
branding: {
|
|
2542
2590
|
brandName: "AlphaFina",
|
|
2543
|
-
logoUrl: "
|
|
2591
|
+
logoUrl: authBrandingAsset("logo.png"),
|
|
2544
2592
|
loginLayout: "full-bleed",
|
|
2545
|
-
backgroundImageUrl: "/
|
|
2593
|
+
backgroundImageUrl: authBrandingAsset("presets/aurora-bg.svg"),
|
|
2546
2594
|
backgroundOverlayColor: "#000000",
|
|
2547
2595
|
backgroundOverlayOpacity: 35,
|
|
2548
2596
|
imageFit: "cover",
|
|
@@ -2562,10 +2610,10 @@ var AUTH_BRANDING_CASES = {
|
|
|
2562
2610
|
presetId: "cinematic",
|
|
2563
2611
|
branding: {
|
|
2564
2612
|
brandName: "AlphaFina",
|
|
2565
|
-
logoUrl: "
|
|
2613
|
+
logoUrl: authBrandingAsset("logo.png"),
|
|
2566
2614
|
loginLayout: "full-bleed",
|
|
2567
|
-
backgroundVideoUrl: "/
|
|
2568
|
-
backgroundImageUrl: "/
|
|
2615
|
+
backgroundVideoUrl: authBrandingAsset("presets/14471967_3840_2160_30fps.mp4"),
|
|
2616
|
+
backgroundImageUrl: authBrandingAsset("presets/aurora-bg.svg"),
|
|
2569
2617
|
backgroundOverlayColor: "#000000",
|
|
2570
2618
|
backgroundOverlayOpacity: 65,
|
|
2571
2619
|
imageFit: "cover",
|
|
@@ -2584,10 +2632,10 @@ var AUTH_BRANDING_CASES = {
|
|
|
2584
2632
|
presetId: "aurora",
|
|
2585
2633
|
branding: {
|
|
2586
2634
|
brandName: "AlphaFina",
|
|
2587
|
-
logoUrl: "
|
|
2635
|
+
logoUrl: authBrandingAsset("logo.png"),
|
|
2588
2636
|
loginLayout: "full-bleed",
|
|
2589
|
-
backgroundVideoUrl: "/
|
|
2590
|
-
backgroundImageUrl: "/
|
|
2637
|
+
backgroundVideoUrl: authBrandingAsset("presets/15404923_1920_1080_60fps.mp4"),
|
|
2638
|
+
backgroundImageUrl: authBrandingAsset("presets/aurora-bg.svg"),
|
|
2591
2639
|
backgroundOverlayColor: "#000000",
|
|
2592
2640
|
backgroundOverlayOpacity: 30,
|
|
2593
2641
|
imageFit: "cover",
|
|
@@ -2648,7 +2696,7 @@ var PLATFORM_SETTINGS_DEFAULTS = {
|
|
|
2648
2696
|
};
|
|
2649
2697
|
var DEFAULT_PLATFORM_BRANDING = {
|
|
2650
2698
|
brandName: "AlphaFina",
|
|
2651
|
-
logoUrl: "/logo.png",
|
|
2699
|
+
logoUrl: "/public/logo.png",
|
|
2652
2700
|
primaryColor: "#5b50c6",
|
|
2653
2701
|
backgroundColor: "#ffffff",
|
|
2654
2702
|
loginLayout: DEFAULT_LOGIN_LAYOUT,
|
|
@@ -2936,6 +2984,7 @@ export {
|
|
|
2936
2984
|
AFFINITY_MISS_CODE,
|
|
2937
2985
|
AGENT_AFFINITY_HEADER,
|
|
2938
2986
|
ASR_DEFAULT_KEY,
|
|
2987
|
+
AUTH_BRANDING_ASSET_BASE,
|
|
2939
2988
|
AUTH_BRANDING_CASES,
|
|
2940
2989
|
AUTH_BRANDING_CASE_IDS,
|
|
2941
2990
|
AUTH_BRANDING_PRESETS,
|
|
@@ -3022,7 +3071,9 @@ export {
|
|
|
3022
3071
|
assertStoreIdentity,
|
|
3023
3072
|
assertStoreNamespacePrefix,
|
|
3024
3073
|
assertValidCreateChannelReplyJobInput,
|
|
3074
|
+
authBrandingAsset,
|
|
3025
3075
|
buildAffinityMissChunk,
|
|
3076
|
+
classifyThreadMetadata,
|
|
3026
3077
|
createAgentWebAppStreamProjectionContext,
|
|
3027
3078
|
descriptorDataValue,
|
|
3028
3079
|
effectiveGrants,
|
|
@@ -3081,6 +3132,7 @@ export {
|
|
|
3081
3132
|
toProjectRoomPublicBotMembership,
|
|
3082
3133
|
toProjectRoomPublicMembership,
|
|
3083
3134
|
toProjectRoomPublicMessage,
|
|
3135
|
+
toThreadMonitorRecord,
|
|
3084
3136
|
validateCustomCss
|
|
3085
3137
|
};
|
|
3086
3138
|
//# sourceMappingURL=index.mjs.map
|