@yadsh/dsh-plugin-log-ui 0.1.0 → 0.2.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/lib/index.js CHANGED
@@ -35,7 +35,7 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
35
35
  import { Context } from "@deepseek-ai/cordis";
36
36
  import { installSettingsSection, settingsNamespace } from "@deepseek-ai/dsh-settings";
37
37
  import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
38
- import { getRegisteredPluginLoggers, setPluginLogFormat, setPluginLogLevel, subscribePluginLoggerRegistry, } from "@yadsh/dsh-plugin-log";
38
+ import { createHostLoggerSink, getPluginLogger, getRegisteredPluginLoggers, setPluginLogFormat, setPluginLogLevel, subscribePluginLoggerRegistry, } from "@yadsh/dsh-plugin-log";
39
39
  import { ConfigSchema, resolveConfig } from "./config.js";
40
40
  export const name = "plugin-log-ui";
41
41
  export const inject = [];
@@ -56,8 +56,14 @@ let PluginLogUi = (() => {
56
56
  static Config = ConfigSchema;
57
57
  configSource = __runInitializers(this, _instanceExtraInitializers);
58
58
  applying = false;
59
+ logger;
59
60
  constructor(ctx, input = {}) {
60
61
  super(ctx, "pluginLogUi", { namespace: "pluginLogUi" });
62
+ this.logger = getPluginLogger({
63
+ pluginId: "dsh-plugin-log-ui",
64
+ consoleSink: createHostLoggerSink(ctx.logger),
65
+ });
66
+ ctx.effect(() => async () => this.logger.close(), "dsh-plugin-log-ui.logger");
61
67
  const entry = resolveConfig(input);
62
68
  this.configSource = () => entry;
63
69
  installSettingsSection(ctx, PLUGIN_LOG_SETTINGS_NAMESPACE, ConfigSchema, entry, {
@@ -68,6 +74,7 @@ let PluginLogUi = (() => {
68
74
  });
69
75
  ctx.effect(() => subscribePluginLoggerRegistry(() => this.applyPolicy()), "dsh-plugin-log-ui.registry");
70
76
  this.applyPolicy();
77
+ this.logger.info("plugin.ready");
71
78
  }
72
79
  getConfig() {
73
80
  return resolveConfig(this.configSource());
@@ -102,6 +109,11 @@ let PluginLogUi = (() => {
102
109
  seen.add(logger.pluginId);
103
110
  setPluginLogLevel(logger.pluginId, config.levels[logger.pluginId] ?? config.defaultLevel);
104
111
  }
112
+ this.logger.debug("logging.policy.applied", {
113
+ consumers: seen.size,
114
+ defaultLevel: config.defaultLevel,
115
+ format: config.format,
116
+ });
105
117
  }
106
118
  finally {
107
119
  this.applying = false;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAS1D,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC;AACpC,MAAM,CAAC,MAAM,MAAM,GAAsB,EAAE,CAAC;AAC5C,MAAM,CAAC,MAAM,6BAA6B,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC;IAQtB,WAAW;sBAAS,mBAAmB;;;iBAAvC,WAAY,SAAQ,WAAmB;;;mCA8BjD,MAAM,CAAC,SAAS,CAAC;YAClB,wKAAA,OAAO,6DAiBN;;;QA/CD,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC;QAErB,YAAY,GAJT,mDAAW,CAIwB;QACtC,QAAQ,GAAG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 -29,7 +29,7 @@ export const TYPERT = {
29
29
  typeSymbol: '@yadsh/dsh-plugin-log-ui/types#PluginLogUiSnapshot',
30
30
  schema: _yadsh_dsh_plugin_log_ui_pluginLogUi_inspect_result$schema,
31
31
  },
32
- sourceLocation: {"file":"packages/dsh-plugin-log-ui/src/index.ts","line":62,"column":3},
32
+ sourceLocation: {"file":"packages/dsh-plugin-log-ui/src/index.ts","line":75,"column":3},
33
33
  },
34
34
  ],
35
35
  model: {
@@ -26,7 +26,7 @@ export const TYPERT_REMOTE = {
26
26
  typeSymbol: '@yadsh/dsh-plugin-log-ui/types#PluginLogUiSnapshot',
27
27
  schema: _yadsh_dsh_plugin_log_ui_pluginLogUi_inspect_result$schema,
28
28
  },
29
- sourceLocation: {"file":"packages/dsh-plugin-log-ui/src/index.ts","line":62,"column":3},
29
+ sourceLocation: {"file":"packages/dsh-plugin-log-ui/src/index.ts","line":75,"column":3},
30
30
  },
31
31
  ],
32
32
  }
@@ -1,3 +1,4 @@
1
1
  import type { Context } from "@deepseek-ai/cordis";
2
2
  export declare const inject: string[];
3
3
  export declare function apply(ctx: Context): Promise<() => Promise<void>>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,2 @@
1
- export declare const styles = "\n.dsh-plugin-card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:12px;list-style:none;transition:border-color .16s,background .16s}\n.dsh-plugin-card:hover{border-color:var(--dsw-alias-label-dimmed)}\n.dsh-plugin-card--open{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}\n.dsh-plugin-card__header{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:14px 16px;display:flex}\n.dsh-plugin-card__header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}\n.dsh-plugin-card__head-text{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}\n.dsh-plugin-card__name{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:1.4}\n.dsh-plugin-card__description{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:1.5}\n.dsh-plugin-card__badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}\n.dsh-plugin-card__chevron{width:14px;height:14px;color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}\n.dsh-plugin-card--open .dsh-plugin-card__chevron{transform:rotate(180deg)}\n.dsh-plugin-card__body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 16px;padding-bottom:8px}\n.plu-body{padding-top:16px;display:flex;flex-direction:column;gap:18px}\n.plu-section{display:flex;flex-direction:column;gap:10px}.plu-section h3{margin:0;font-size:13px;color:var(--dsw-alias-label-primary)}\n.plu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.plu-field{display:flex;flex-direction:column;gap:6px}.plu-field>span{font-size:12px;font-weight:500;color:var(--dsw-alias-label-secondary)}\n.plu-select{box-sizing:border-box;width:100%;height:34px;padding:0 10px;border:1px solid var(--dsw-alias-border-l2);border-radius:8px;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary);font:inherit;font-size:13px}.plu-select:focus{outline:none;border-color:var(--dsw-alias-border-brand)}.plu-select:disabled{opacity:.55}\n.plu-hint,.plu-status,.plu-empty{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-label-tertiary)}.plu-error{margin:0;padding:9px 10px;border-radius:8px;background:var(--dsw-alias-bg-error);color:var(--dsw-alias-label-error);font-size:12px}\n.plu-list{display:flex;flex-direction:column;border-top:1px solid var(--dsw-alias-border-l2)}.plu-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,220px);gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--dsw-alias-border-l2)}\n.plu-plugin{min-width:0}.plu-plugin code{display:block;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--dsw-alias-label-primary)}.plu-plugin span{display:block;margin-top:3px;font-size:11px;color:var(--dsw-alias-label-tertiary)}\n@media(max-width:720px){.plu-grid{grid-template-columns:1fr}.plu-row{grid-template-columns:1fr}}\n";
1
+ export declare const styles = "\n.dsh-plugin-card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:12px;list-style:none;transition:border-color .16s,background .16s}\n.dsh-plugin-card:hover{border-color:var(--dsw-alias-label-dimmed)}\n.dsh-plugin-card--open{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}\n.dsh-plugin-card__header{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:14px 16px;display:flex}\n.dsh-plugin-card__header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}\n.dsh-plugin-card__head-text{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}\n.dsh-plugin-card__name{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:1.4}\n.dsh-plugin-card__description{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:1.5}\n.dsh-plugin-card__badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}\n.dsh-plugin-card__chevron{width:14px;height:14px;color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}\n.dsh-plugin-card--open .dsh-plugin-card__chevron{transform:rotate(180deg)}\n.dsh-plugin-card__body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 16px;padding-bottom:8px}\n\n.plu-body{padding-top:16px;display:flex;flex-direction:column;gap:18px}\n.plu-section{display:flex;flex-direction:column;gap:10px}.plu-section h3{margin:0;font-size:13px;color:var(--dsw-alias-label-primary)}\n.plu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.plu-field{display:flex;flex-direction:column;gap:6px}.plu-field>span{font-size:12px;font-weight:500;color:var(--dsw-alias-label-secondary)}\n.plu-select{box-sizing:border-box;width:100%;height:34px;padding:0 10px;border:1px solid var(--dsw-alias-border-l2);border-radius:8px;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary);font:inherit;font-size:13px}.plu-select:focus{outline:none;border-color:var(--dsw-alias-border-brand)}.plu-select:disabled{opacity:.55}\n.plu-hint,.plu-status,.plu-empty{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-label-tertiary)}.plu-error{margin:0;padding:9px 10px;border-radius:8px;background:var(--dsw-alias-bg-error);color:var(--dsw-alias-label-error);font-size:12px}\n.plu-list{display:flex;flex-direction:column;border-top:1px solid var(--dsw-alias-border-l2)}.plu-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,220px);gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--dsw-alias-border-l2)}\n.plu-plugin{min-width:0}.plu-plugin code{display:block;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--dsw-alias-label-primary)}.plu-plugin span{display:block;margin-top:3px;font-size:11px;color:var(--dsw-alias-label-tertiary)}\n@media(max-width:720px){.plu-grid{grid-template-columns:1fr}.plu-row{grid-template-columns:1fr}}\n";
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -5,3 +5,4 @@ export declare const MANAGED_LOG_FORMATS: readonly ["json", "text"];
5
5
  export declare const DEFAULT_PLUGIN_LOG_UI_CONFIG: ResolvedPluginLogUiConfig;
6
6
  export declare const ConfigSchema: z<PluginLogUiConfig>;
7
7
  export declare function resolveConfig(input?: PluginLogUiConfig): ResolvedPluginLogUiConfig;
8
+ //# sourceMappingURL=config.d.ts.map
@@ -16,6 +16,7 @@ export declare class PluginLogUi extends TypertRemoteService implements PluginLo
16
16
  static Config: import("@deepseek-ai/schemastery").default<PluginLogUiConfig>;
17
17
  private configSource;
18
18
  private applying;
19
+ private readonly logger;
19
20
  constructor(ctx: Context, input?: PluginLogUiConfig);
20
21
  getConfig(): ResolvedPluginLogUiConfig;
21
22
  inspect(): PluginLogUiSnapshot;
@@ -24,3 +25,4 @@ export declare class PluginLogUi extends TypertRemoteService implements PluginLo
24
25
  export { ConfigSchema, resolveConfig } from "./config.js";
25
26
  export type * from "./types.js";
26
27
  export default PluginLogUi;
28
+ //# sourceMappingURL=index.d.ts.map
@@ -23,3 +23,4 @@ export interface PluginLogUiService {
23
23
  inspect(): PluginLogUiSnapshot;
24
24
  getConfig(): ResolvedPluginLogUiConfig;
25
25
  }
26
+ //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yadsh/dsh-plugin-log-ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "DSH settings UI for shared plugin logging levels and file format",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,6 +43,7 @@
43
43
  "lib/**/*.js.map",
44
44
  "lib/**/*.d.ts",
45
45
  "cordis.patch.yml",
46
+ "compatibility.json",
46
47
  "README.md",
47
48
  "LICENSE"
48
49
  ],
@@ -63,53 +64,45 @@
63
64
  "platform": "web"
64
65
  }
65
66
  },
66
- "scripts": {
67
- "clean": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
68
- "build": "pnpm run clean && node scripts/generate-typert.mjs && tsc -p tsconfig.build.json && tsdown",
69
- "lint": "eslint src tests scripts tsdown.config.ts",
70
- "test": "vitest run",
71
- "typecheck": "tsc -p tsconfig.json --noEmit",
72
- "verify": "node scripts/verify-package.mjs",
73
- "check": "pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build && pnpm run verify",
74
- "prepack": "pnpm run build && pnpm run verify"
75
- },
76
67
  "dependencies": {
77
- "@yadsh/dsh-plugin-log": "workspace:^",
78
- "zod": "^4.4.3"
68
+ "zod": "^4.4.3",
69
+ "@yadsh/dsh-plugin-log": "^0.2.1"
79
70
  },
80
71
  "peerDependencies": {
81
- "@deepseek-ai/cordis": "catalog:dsh",
82
- "@deepseek-ai/schemastery": "catalog:dsh",
83
- "@deepseek-ai/dsh-api-gateway": "catalog:dsh",
84
- "@deepseek-ai/dsh-client-connection": "catalog:dsh",
85
- "@deepseek-ai/dsh-client-runtime": "catalog:dsh",
86
- "@deepseek-ai/dsh-client-ui-settings": "catalog:dsh",
87
- "@deepseek-ai/dsh-client-ui-settings-plugins": "catalog:dsh",
88
- "@deepseek-ai/dsh-client-ui-slots": "catalog:dsh",
89
- "@deepseek-ai/dsh-settings": "catalog:dsh",
90
- "@deepseek-ai/dsh-typert-protocol": "catalog:dsh",
91
- "react": ">=18.2.0 <20"
72
+ "@deepseek-ai/cordis": "^4.0.1",
73
+ "@deepseek-ai/schemastery": "^3.18.1",
74
+ "@deepseek-ai/dsh-api-gateway": ">=0.1.1-rc.2 <0.2.0",
75
+ "@deepseek-ai/dsh-client-connection": ">=0.1.1-rc.2 <0.2.0",
76
+ "@deepseek-ai/dsh-client-runtime": ">=0.1.1-rc.2 <0.2.0",
77
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.1-rc.2 <0.2.0",
78
+ "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.1-rc.2 <0.2.0",
79
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.1-rc.2 <0.2.0",
80
+ "@deepseek-ai/dsh-settings": ">=0.1.1-rc.2 <0.2.0",
81
+ "@deepseek-ai/dsh-typert-protocol": ">=0.1.1-rc.2 <0.2.0",
82
+ "react": "^18.2.0"
92
83
  },
93
84
  "devDependencies": {
94
- "@deepseek-ai/cordis": "catalog:dsh-dev",
95
- "@deepseek-ai/schemastery": "catalog:dsh-dev",
96
- "@yadsh/dsh-config": "workspace:^",
97
- "@deepseek-ai/dsh-api-gateway": "catalog:dsh-dev",
98
- "@deepseek-ai/dsh-client-connection": "catalog:dsh-dev",
99
- "@deepseek-ai/dsh-client-runtime": "catalog:dsh-dev",
100
- "@deepseek-ai/dsh-client-ui-settings": "catalog:dsh-dev",
101
- "@deepseek-ai/dsh-client-ui-settings-plugins": "catalog:dsh-dev",
102
- "@deepseek-ai/dsh-client-ui-slots": "catalog:dsh-dev",
103
- "@deepseek-ai/dsh-settings": "catalog:dsh-dev",
104
- "@deepseek-ai/dsh-typert-generator": "catalog:dsh-dev",
105
- "@deepseek-ai/dsh-typert-protocol": "catalog:dsh-dev",
106
- "@types/node": "catalog:tooling",
107
- "@types/react": "catalog:frontend-dev",
108
- "eslint": "catalog:tooling",
109
- "react": "catalog:frontend-dev",
110
- "tsdown": "catalog:tooling",
111
- "typescript": "catalog:plugin-tooling",
112
- "vitest": "catalog:tooling"
85
+ "@deepseek-ai/cordis": "4.0.1",
86
+ "@deepseek-ai/dsh-api-gateway": "0.1.1-rc.2",
87
+ "@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
88
+ "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
89
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
90
+ "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.1-rc.2",
91
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
92
+ "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
93
+ "@deepseek-ai/dsh-typert-generator": "0.1.1-rc.2",
94
+ "@deepseek-ai/dsh-typert-protocol": "0.1.1-rc.2",
95
+ "@deepseek-ai/schemastery": "3.18.1",
96
+ "@types/node": "^26.4.0",
97
+ "@types/react": "18.3.28",
98
+ "eslint": "10.9.1",
99
+ "react": "18.3.1",
100
+ "tsdown": "^0.22.14",
101
+ "typescript": "^7.0.2",
102
+ "vitest": "^4.1.11",
103
+ "@yadsh/dsh-config": "^0.0.0",
104
+ "@yadsh/dsh-plugin-kit": "^0.1.0",
105
+ "@yadsh/dsh-plugin-scripts": "^0.0.0"
113
106
  },
114
107
  "publishConfig": {
115
108
  "access": "public",
@@ -117,5 +110,14 @@
117
110
  },
118
111
  "engines": {
119
112
  "node": ">=22"
113
+ },
114
+ "scripts": {
115
+ "clean": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
116
+ "build": "pnpm run clean && node scripts/generate-typert.mjs && tsc -p tsconfig.build.json && tsdown",
117
+ "lint": "eslint src tests scripts tsdown.config.ts",
118
+ "test": "vitest run",
119
+ "typecheck": "tsc -p tsconfig.json --noEmit",
120
+ "verify": "node scripts/verify-package.mjs",
121
+ "check": "pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build && pnpm run verify"
120
122
  }
121
- }
123
+ }
@@ -1,12 +0,0 @@
1
- /**
2
- * React calls external-store callbacks as plain functions. SettingsScope's
3
- * methods use their receiver, so forwarding them directly loses `this` and
4
- * crashes while reading the internal store.
5
- */
6
- export function bindSettingsExternalStore(scope) {
7
- return {
8
- subscribe: (listener) => scope.subscribe(listener),
9
- getSnapshot: () => scope.getSnapshot(),
10
- };
11
- }
12
- //# sourceMappingURL=settings-store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-store.js","sourceRoot":"","sources":["../../src/client/settings-store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAY,KAGpD;IAIC,OAAO;QACL,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;QAClD,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE;KACvC,CAAC;AACJ,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * React calls external-store callbacks as plain functions. SettingsScope's
3
- * methods use their receiver, so forwarding them directly loses `this` and
4
- * crashes while reading the internal store.
5
- */
6
- export declare function bindSettingsExternalStore<TSnapshot>(scope: {
7
- subscribe(listener: () => void): () => void;
8
- getSnapshot(): TSnapshot;
9
- }): {
10
- subscribe(listener: () => void): () => void;
11
- getSnapshot(): TSnapshot;
12
- };