@fses/workbench-app 0.2.16 → 0.2.17
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/WORKBENCH-CLOSURE.json +18 -12
- package/dist/Workspace-r8ayksVF.js +23176 -0
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-B2EHgdqA.js → canvasFacade-B8jYm_aO.js} +748 -748
- package/dist/cardFactory-DmEBcCf4.js +1460 -0
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +5 -5
- package/dist/{index-CMM-5ObU.js → index-DEOR_GPc.js} +350 -346
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +6 -6
- package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +26 -26
- package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +0 -5
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-DLf_FgC7.js → useWorkbenchRuntime-DDD22mdF.js} +7817 -7813
- package/dist/version.d.ts +1 -1
- package/dist/{workbenchCustomComponentRegistry-Bt94Lgko.js → workbenchCustomComponentRegistry-CWUPjCnJ.js} +74 -74
- package/node_modules/@byteluck-fe/locale-message/README.md +2 -0
- package/node_modules/@byteluck-fe/locale-message/dist/index.d.ts +37 -0
- package/node_modules/@byteluck-fe/locale-message/dist/locale-message.js +55 -0
- package/node_modules/@byteluck-fe/locale-message/package.json +37 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +5446 -5321
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -18
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +0 -5
- package/node_modules/@fses/ai-chat/package.json +6 -5
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +10144 -9914
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +1517 -1503
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +97 -97
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -1
- package/node_modules/@fses/workbench-card/package.json +4 -1
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +31 -30
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +24 -23
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +765 -764
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +765 -764
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +143 -129
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +4 -3
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +2 -1
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +30 -29
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +11 -10
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +102 -101
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +364 -363
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +90 -89
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +33 -32
- package/package.json +4 -3
- package/dist/Workspace-CfKvji6S.js +0 -22896
- package/dist/cardFactory-BK3CA-Gn.js +0 -1443
package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getLocaleText } from '@byteluck-fe/locale-message'
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview Workbench block renderer bindings - contains the state, watchers, and display helpers for the renderer SFC.
|
|
3
4
|
* @author seadon
|
|
@@ -149,7 +150,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
149
150
|
component: null,
|
|
150
151
|
componentProps: {},
|
|
151
152
|
status: 'unregistered',
|
|
152
|
-
message: componentData.fallbackText || '
|
|
153
|
+
message: componentData.fallbackText || getLocaleText('FWC.bf771787579338456'),
|
|
153
154
|
};
|
|
154
155
|
}
|
|
155
156
|
const validation = props.hostBridge?.customComponentRegistry?.validateProps?.(entry, componentData.props, componentData)
|
|
@@ -160,7 +161,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
160
161
|
component: null,
|
|
161
162
|
componentProps: {},
|
|
162
163
|
status: 'unregistered',
|
|
163
|
-
message: typeof validation === 'string' ? validation : '
|
|
164
|
+
message: typeof validation === 'string' ? validation : getLocaleText('FWC.c0d31787579202640'),
|
|
164
165
|
};
|
|
165
166
|
}
|
|
166
167
|
return {
|
|
@@ -283,7 +284,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
283
284
|
*/
|
|
284
285
|
function businessGapDiagnosticSummary(input: { message?: unknown; fallback?: string; diagnostics?: unknown }): string {
|
|
285
286
|
return props.hostBridge?.businessGapDiagnosticSummary?.(input)
|
|
286
|
-
|| (typeof input.message === 'string' && input.message.trim() ? input.message.trim() : input.fallback || '
|
|
287
|
+
|| (typeof input.message === 'string' && input.message.trim() ? input.message.trim() : input.fallback || getLocaleText('FWC.3e9e1787579519182'));
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
onBeforeUnmount(() => {
|
|
@@ -671,7 +672,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
671
672
|
blockId: string,
|
|
672
673
|
columns: string[],
|
|
673
674
|
): TableColumnsType<WorkbenchAntTableRow> {
|
|
674
|
-
const visibleColumns = columns.length > 0 ? columns : ['
|
|
675
|
+
const visibleColumns = columns.length > 0 ? columns : [getLocaleText('FWC.c18e1787581618978')];
|
|
675
676
|
const tableKey = tableRowsAntTableKey(blockId, visibleColumns, 'preview');
|
|
676
677
|
return applyWorkbenchResizableColumns(visibleColumns.map((column, index) => ({
|
|
677
678
|
title: column,
|
|
@@ -700,7 +701,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
700
701
|
data: DisplayBlockData | undefined,
|
|
701
702
|
columns: string[],
|
|
702
703
|
): WorkbenchAntTableRow[] {
|
|
703
|
-
const visibleColumns = columns.length > 0 ? columns : ['
|
|
704
|
+
const visibleColumns = columns.length > 0 ? columns : [getLocaleText('FWC.c18e1787581618978')];
|
|
704
705
|
return tableRowsPreviewRecords(data).map((row, rowIndex) => ({
|
|
705
706
|
__rowKey: String(row.id || rowIndex),
|
|
706
707
|
...Object.fromEntries(visibleColumns.map((column, columnIndex) => [
|
|
@@ -920,15 +921,15 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
920
921
|
|
|
921
922
|
function nestedBlockDataSummary(block: CustomCanvasNestedBlock) {
|
|
922
923
|
const data = isRecord(block.data) ? block.data : {};
|
|
923
|
-
if (block.kind === 'placeholder' || nestedBlockRendererKey(block) === 'placeholder') return '
|
|
924
|
+
if (block.kind === 'placeholder' || nestedBlockRendererKey(block) === 'placeholder') return getLocaleText('FWC.00841787581111592');
|
|
924
925
|
if (typeof data.value === 'number' || typeof data.value === 'string') return String(data.value);
|
|
925
926
|
if (typeof data.displayValue === 'string') return data.displayValue;
|
|
926
927
|
if (typeof data.primaryValue === 'number' || typeof data.primaryValue === 'string') return String(data.primaryValue);
|
|
927
|
-
if (Array.isArray(data.rows)) return
|
|
928
|
+
if (Array.isArray(data.rows)) return getLocaleText('FWC.a0661787579718667', {p0: data.rows.length});
|
|
928
929
|
const summaryEntries = Object.entries(data)
|
|
929
930
|
.map(([key, value]) => nestedBlockSummaryEntry(key, value))
|
|
930
931
|
.filter(Boolean);
|
|
931
|
-
return summaryEntries.length > 0 ? summaryEntries.slice(0, 2).join(' / ') : '
|
|
932
|
+
return summaryEntries.length > 0 ? summaryEntries.slice(0, 2).join(' / ') : getLocaleText('FWC.75fc1787581661353');
|
|
932
933
|
}
|
|
933
934
|
|
|
934
935
|
/**
|
|
@@ -1557,7 +1558,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1557
1558
|
*/
|
|
1558
1559
|
function manualReplacementActionLabel(block: WorkbenchBlock): string {
|
|
1559
1560
|
const selectedLabel = manualReplacementCapabilityDraftLabel(block);
|
|
1560
|
-
return selectedLabel ?
|
|
1561
|
+
return selectedLabel ? getLocaleText('FWC.31101787579521656', {p0: selectedLabel}) : getLocaleText('FWC.25961787580426991');
|
|
1561
1562
|
}
|
|
1562
1563
|
|
|
1563
1564
|
/**
|
|
@@ -1566,7 +1567,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1566
1567
|
* @returns Short button text that does not overflow dense screenshot cards.
|
|
1567
1568
|
*/
|
|
1568
1569
|
function manualReplacementPrimaryActionLabel(block: WorkbenchBlock): string {
|
|
1569
|
-
return manualReplacementCapabilityDraft(block) ? '
|
|
1570
|
+
return manualReplacementCapabilityDraft(block) ? getLocaleText('FWC.7bed1787581661435') : getLocaleText('FWC.0e2f1787581333179');
|
|
1570
1571
|
}
|
|
1571
1572
|
|
|
1572
1573
|
function dataBindingRecord(block: WorkbenchBlock): Record<string, unknown> {
|
|
@@ -1582,7 +1583,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1582
1583
|
if (intervention) {
|
|
1583
1584
|
return businessGapDiagnosticSummary({
|
|
1584
1585
|
message: intervention.message,
|
|
1585
|
-
fallback: '
|
|
1586
|
+
fallback: getLocaleText('FWC.3e9e1787579519182'),
|
|
1586
1587
|
diagnostics: binding.diagnostics,
|
|
1587
1588
|
});
|
|
1588
1589
|
}
|
|
@@ -1590,7 +1591,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1590
1591
|
|| textValue(data.reason)
|
|
1591
1592
|
|| textValue(binding.lastError)
|
|
1592
1593
|
|| textValue(binding.error)
|
|
1593
|
-
|| '
|
|
1594
|
+
|| getLocaleText('FWC.929a1787581328366');
|
|
1594
1595
|
}
|
|
1595
1596
|
|
|
1596
1597
|
function dataBindingFailureQueryIntent(block: WorkbenchBlock): string {
|
|
@@ -1688,7 +1689,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1688
1689
|
function referenceItemNestedRoleLabel(item: Record<string, unknown>): string {
|
|
1689
1690
|
const nestedBlock = referenceItemNestedBlock(item);
|
|
1690
1691
|
if (!nestedBlock) return '';
|
|
1691
|
-
return nestedBlockNeedsHumanIntervention(nestedBlock) ? '
|
|
1692
|
+
return nestedBlockNeedsHumanIntervention(nestedBlock) ? getLocaleText('FWC.0cd41787580015186') : getLocaleText('FWC.ac491787581616656');
|
|
1692
1693
|
}
|
|
1693
1694
|
|
|
1694
1695
|
/**
|
|
@@ -1779,10 +1780,10 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1779
1780
|
* @returns Short visible status label while full diagnostics stay in data attributes and tooltips.
|
|
1780
1781
|
*/
|
|
1781
1782
|
function imageComposeBusinessGapBadgeLabel(block: WorkbenchBlock): string {
|
|
1782
|
-
if (dataBindingNeedsHumanIntervention(block)) return '
|
|
1783
|
+
if (dataBindingNeedsHumanIntervention(block)) return getLocaleText('FWC.d4a61787581436789');
|
|
1783
1784
|
const data = isRecord(block.data) ? block.data : {};
|
|
1784
1785
|
const status = textValue(data.dataBindingStatus, textValue(dataBindingRecord(block).status));
|
|
1785
|
-
return status === 'error' ? '
|
|
1786
|
+
return status === 'error' ? getLocaleText('FWC.929a1787581328366') : status;
|
|
1786
1787
|
}
|
|
1787
1788
|
|
|
1788
1789
|
/**
|
|
@@ -1978,10 +1979,10 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
1978
1979
|
);
|
|
1979
1980
|
if (elements.length > 0) return elements.slice(0, 6);
|
|
1980
1981
|
return [
|
|
1981
|
-
{ label: '
|
|
1982
|
-
{ label: '
|
|
1983
|
-
{ label: '
|
|
1984
|
-
{ label: '
|
|
1982
|
+
{ label: getLocaleText('FWC.e5281787581358191') },
|
|
1983
|
+
{ label: getLocaleText('FWC.a4c71787581083428') },
|
|
1984
|
+
{ label: getLocaleText('FWC.55481787581437298') },
|
|
1985
|
+
{ label: getLocaleText('FWC.0c121787581389938') },
|
|
1985
1986
|
];
|
|
1986
1987
|
}
|
|
1987
1988
|
|
|
@@ -2074,7 +2075,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2074
2075
|
const rowRecord = isRecord(row) ? row : { value: row };
|
|
2075
2076
|
if (!Array.isArray(rowRecord.cells)) return rowRecord;
|
|
2076
2077
|
return rowRecord.cells.reduce<Record<string, unknown>>((acc: Record<string, unknown>, cell: unknown, cellIndex: number) => {
|
|
2077
|
-
const column = declaredColumns[cellIndex] ||
|
|
2078
|
+
const column = declaredColumns[cellIndex] || getLocaleText('FWC.92b01787579734809', {p0: cellIndex + 1});
|
|
2078
2079
|
acc[column] = cell;
|
|
2079
2080
|
return acc;
|
|
2080
2081
|
}, { id: textValue(rowRecord.id, String(rowIndex + 1)) });
|
|
@@ -2102,7 +2103,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2102
2103
|
function imageComposeBidRowsColumns(data: DisplayBlockData | undefined): string[] {
|
|
2103
2104
|
const record = (isRecord(data) ? data : {}) as Record<string, unknown>;
|
|
2104
2105
|
const declaredColumns = visibleImageTableColumns(record.columns);
|
|
2105
|
-
if (declaredColumns.length > 0 && declaredColumns.some((column) => column !== '
|
|
2106
|
+
if (declaredColumns.length > 0 && declaredColumns.some((column) => column !== getLocaleText('FWC.c18e1787581618978') && column !== getLocaleText('FWC.74031787581619274'))) return declaredColumns;
|
|
2106
2107
|
const columns: string[] = [];
|
|
2107
2108
|
imageComposeBidRowsRecords(data).forEach((row) => {
|
|
2108
2109
|
Object.keys(row).forEach((key) => {
|
|
@@ -2140,17 +2141,17 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2140
2141
|
* @returns Compact row cards preserving label, value and detail hierarchy.
|
|
2141
2142
|
*/
|
|
2142
2143
|
function imageComposeBidRowCards(data: DisplayBlockData | undefined): Array<{ label: string; value: string; detail: string; record: Record<string, unknown> }> {
|
|
2143
|
-
const preferredLabelKeys = ['
|
|
2144
|
-
const preferredValueKeys = ['
|
|
2145
|
-
const preferredDetailKeys = ['
|
|
2144
|
+
const preferredLabelKeys = [getLocaleText('FWC.2e2b1787581661532'), getLocaleText('FWC.6a961787581661617'), getLocaleText('FWC.ea431787581661700'), getLocaleText('FWC.a6411787581661786'), getLocaleText('FWC.0e8d1787581592342'), getLocaleText('FWC.35001787581592846'), getLocaleText('FWC.14c01787581661871'), getLocaleText('FWC.77b01787581661959'), getLocaleText('FWC.39a01787581662042'), getLocaleText('FWC.2e191787581592985')];
|
|
2145
|
+
const preferredValueKeys = [getLocaleText('FWC.2ce51787581662132'), getLocaleText('FWC.eb981787581662216'), getLocaleText('FWC.6ee61787581662302'), getLocaleText('FWC.11cf1787581641271'), getLocaleText('FWC.77611787581437707'), getLocaleText('FWC.04ba1787581438269'), getLocaleText('FWC.08501787581438882'), getLocaleText('FWC.9f891787581662397'), getLocaleText('FWC.d54c1787581439404')];
|
|
2146
|
+
const preferredDetailKeys = [getLocaleText('FWC.280f1787581662485'), getLocaleText('FWC.d1cd1787581439855'), getLocaleText('FWC.4f031787581662575'), getLocaleText('FWC.e38d1787581662672'), getLocaleText('FWC.50c21787581593370'), '承诺到货时间', '预计到货时间'];
|
|
2146
2147
|
return imageComposeBidRowsRecords(data).map((row, index) => {
|
|
2147
2148
|
const entries = imageComposeBidInfoItems({ shape: 'rows', rows: [row], columns: [] } as unknown as DisplayBlockData);
|
|
2148
2149
|
const valueFor = (keys: string[]) => {
|
|
2149
2150
|
const match = keys.map((key) => textValue(row[key])).find(Boolean);
|
|
2150
2151
|
return match || '';
|
|
2151
2152
|
};
|
|
2152
|
-
const label = valueFor(preferredLabelKeys) || entries[0]?.value ||
|
|
2153
|
-
const value = valueFor(preferredValueKeys) || entries.find((entry) => entry.value !== label)?.value || '
|
|
2153
|
+
const label = valueFor(preferredLabelKeys) || entries[0]?.value || getLocaleText('FWC.f31a1787579735356', {p0: index + 1});
|
|
2154
|
+
const value = valueFor(preferredValueKeys) || entries.find((entry) => entry.value !== label)?.value || getLocaleText('FWC.25af1787581558756');
|
|
2154
2155
|
const detail = valueFor(preferredDetailKeys) || entries
|
|
2155
2156
|
.filter((entry) => entry.value !== label && entry.value !== value)
|
|
2156
2157
|
.slice(0, 2)
|
|
@@ -2333,7 +2334,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2333
2334
|
*/
|
|
2334
2335
|
function imageComposeBidConclusionBadge(data: CategoryRankingData): string {
|
|
2335
2336
|
const firstItem = data.items[0] as unknown as Record<string, unknown> | undefined;
|
|
2336
|
-
return textValue(firstItem?.label, textValue(firstItem?.valueLabel, '
|
|
2337
|
+
return textValue(firstItem?.label, textValue(firstItem?.valueLabel, getLocaleText('FWC.25af1787581558756')));
|
|
2337
2338
|
}
|
|
2338
2339
|
|
|
2339
2340
|
/**
|
|
@@ -2344,7 +2345,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2344
2345
|
function imageComposeBidConclusionDetail(data: CategoryRankingData): string {
|
|
2345
2346
|
const secondItem = data.items[1] as unknown as Record<string, unknown> | undefined;
|
|
2346
2347
|
const firstItem = data.items[0] as unknown as Record<string, unknown> | undefined;
|
|
2347
|
-
return textValue(secondItem?.label, textValue(firstItem?.badge, textValue(firstItem?.valueLabel, '
|
|
2348
|
+
return textValue(secondItem?.label, textValue(firstItem?.badge, textValue(firstItem?.valueLabel, getLocaleText('FWC.99861787579521705'))));
|
|
2348
2349
|
}
|
|
2349
2350
|
|
|
2350
2351
|
function dataBindingFailureRegistryLabel(block: WorkbenchBlock): string {
|
|
@@ -2572,9 +2573,9 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2572
2573
|
const title = block.title || data.dimensionLabel;
|
|
2573
2574
|
if (/红警|P1|故障|告警|事件/i.test(title)) {
|
|
2574
2575
|
return [
|
|
2575
|
-
{ severity: 'P1', title: '
|
|
2576
|
-
{ severity: 'P1', title: '
|
|
2577
|
-
{ severity: 'P2', title: '
|
|
2576
|
+
{ severity: 'P1', title: getLocaleText('FWC.26331787579201808'), time: '08:42', tone: 'critical' },
|
|
2577
|
+
{ severity: 'P1', title: getLocaleText('FWC.c4941787579169112'), time: '09:05', tone: 'critical' },
|
|
2578
|
+
{ severity: 'P2', title: getLocaleText('FWC.6e671787579406944'), time: '09:18', tone: 'warning' },
|
|
2578
2579
|
];
|
|
2579
2580
|
}
|
|
2580
2581
|
return modelItems;
|
|
@@ -2603,7 +2604,7 @@ export function useWorkbenchBlockRendererBindings(
|
|
|
2603
2604
|
function imageComposeAlertRankingTitle(item: Record<string, unknown>, index: number): string {
|
|
2604
2605
|
const title = nestedBlockDisplayValue(item.title ?? item.name ?? item.label, '');
|
|
2605
2606
|
if (title && !/^(\d+|项目\s*\d+|--|-)$/.test(title)) return title.replace(/^P[12]\s*/i, '').trim();
|
|
2606
|
-
return ['
|
|
2607
|
+
return [getLocaleText('FWC.26331787579201808'), getLocaleText('FWC.c4941787579169112'), getLocaleText('FWC.6e671787579406944')][index] ?? getLocaleText('FWC.316b1787581112066');
|
|
2607
2608
|
}
|
|
2608
2609
|
|
|
2609
2610
|
/**
|
package/package.json
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
],
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@byteluck-fe/global-shared": "7.0.0-1-beta3",
|
|
10
|
+
"@byteluck-fe/locale-message": "^1.0.16",
|
|
10
11
|
"@byteluck-fe/workbench-template": "0.1.1",
|
|
11
12
|
"@byteluck/agentic-protocol": "2.2.1",
|
|
12
13
|
"@byteluck/workbench-skill-contracts": "0.1.0",
|
|
13
|
-
"@fses/ai-chat": "1.0.
|
|
14
|
-
"@fses/workbench-card": "0.3.
|
|
14
|
+
"@fses/ai-chat": "1.0.15",
|
|
15
|
+
"@fses/workbench-card": "0.3.15",
|
|
15
16
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
16
17
|
"axios": "^1.15.0",
|
|
17
18
|
"clsx": "^2.1.1",
|
|
@@ -142,5 +143,5 @@
|
|
|
142
143
|
},
|
|
143
144
|
"type": "module",
|
|
144
145
|
"types": "./dist/index.d.ts",
|
|
145
|
-
"version": "0.2.
|
|
146
|
+
"version": "0.2.17"
|
|
146
147
|
}
|