projectionlab-mcp 1.2.2 → 1.3.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/HOW-IT-WORKS.md +5 -4
- package/MANUAL-SETUP.md +8 -4
- package/README.md +1 -1
- package/REFERENCE.md +25 -9
- package/SETUP-FOR-AGENTS.md +4 -4
- package/dist/bootstrap.js +15 -3
- package/dist/bootstrap.js.map +1 -1
- package/dist/bridge.d.ts +29 -6
- package/dist/config.d.ts +0 -1
- package/dist/config.js +0 -2
- package/dist/config.js.map +1 -1
- package/dist/currentFinances.d.ts +60 -0
- package/dist/currentFinances.js +117 -2
- package/dist/currentFinances.js.map +1 -1
- package/dist/dataModel.d.ts +37 -8
- package/dist/dataModel.js +1138 -15
- package/dist/dataModel.js.map +1 -1
- package/dist/diff.d.ts +18 -10
- package/dist/diff.js +142 -20
- package/dist/diff.js.map +1 -1
- package/dist/editAccess.d.ts +15 -0
- package/dist/editAccess.js +29 -0
- package/dist/editAccess.js.map +1 -0
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/extensionBridge.d.ts +44 -8
- package/dist/extensionBridge.js +179 -30
- package/dist/extensionBridge.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/layout.d.ts +68 -0
- package/dist/layout.js +122 -0
- package/dist/layout.js.map +1 -0
- package/dist/pathPatch.d.ts +41 -3
- package/dist/pathPatch.js +162 -14
- package/dist/pathPatch.js.map +1 -1
- package/dist/planSettings.d.ts +21 -2
- package/dist/planSettings.js +30 -6
- package/dist/planSettings.js.map +1 -1
- package/dist/planVersion.d.ts +7 -2
- package/dist/planVersion.js +27 -11
- package/dist/planVersion.js.map +1 -1
- package/dist/plans.d.ts +24 -3
- package/dist/plans.js +55 -2
- package/dist/plans.js.map +1 -1
- package/dist/realEstate.d.ts +20 -0
- package/dist/realEstate.js +57 -0
- package/dist/realEstate.js.map +1 -1
- package/dist/redact.d.ts +20 -0
- package/dist/redact.js +62 -0
- package/dist/redact.js.map +1 -1
- package/dist/resources/dataModel.d.ts +6 -2
- package/dist/resources/dataModel.js +86 -16
- package/dist/resources/dataModel.js.map +1 -1
- package/dist/resources/knowledge.d.ts +7 -1
- package/dist/resources/knowledge.js +262 -14
- package/dist/resources/knowledge.js.map +1 -1
- package/dist/resources/layoutResource.d.ts +19 -0
- package/dist/resources/layoutResource.js +43 -0
- package/dist/resources/layoutResource.js.map +1 -0
- package/dist/resources/planData.js +1 -1
- package/dist/resources/planData.js.map +1 -1
- package/dist/snapshot.d.ts +2 -1
- package/dist/snapshot.js +3 -1
- package/dist/snapshot.js.map +1 -1
- package/dist/summary.d.ts +39 -2
- package/dist/summary.js +148 -31
- package/dist/summary.js.map +1 -1
- package/dist/tools/bootstrap.js +2 -1
- package/dist/tools/bootstrap.js.map +1 -1
- package/dist/tools/clonePlan.js +10 -9
- package/dist/tools/clonePlan.js.map +1 -1
- package/dist/tools/connection.js +8 -8
- package/dist/tools/connection.js.map +1 -1
- package/dist/tools/deletePlan.js +9 -8
- package/dist/tools/deletePlan.js.map +1 -1
- package/dist/tools/diff.js +54 -15
- package/dist/tools/diff.js.map +1 -1
- package/dist/tools/export.js +5 -5
- package/dist/tools/export.js.map +1 -1
- package/dist/tools/getCurrentFinances.js +80 -24
- package/dist/tools/getCurrentFinances.js.map +1 -1
- package/dist/tools/getPlan.js +7 -1
- package/dist/tools/getPlan.js.map +1 -1
- package/dist/tools/getPlanSection.js +10 -3
- package/dist/tools/getPlanSection.js.map +1 -1
- package/dist/tools/getPlanSettings.js +16 -4
- package/dist/tools/getPlanSettings.js.map +1 -1
- package/dist/tools/restore.d.ts +4 -3
- package/dist/tools/restore.js +82 -42
- package/dist/tools/restore.js.map +1 -1
- package/dist/tools/schema.js +100 -22
- package/dist/tools/schema.js.map +1 -1
- package/dist/tools/snapshots.js +39 -19
- package/dist/tools/snapshots.js.map +1 -1
- package/dist/tools/summary.js +34 -1
- package/dist/tools/summary.js.map +1 -1
- package/dist/tools/updateAccount.js +69 -26
- package/dist/tools/updateAccount.js.map +1 -1
- package/dist/tools/updatePlanEvent.js +49 -27
- package/dist/tools/updatePlanEvent.js.map +1 -1
- package/dist/tools/updatePlanSection.js +9 -8
- package/dist/tools/updatePlanSection.js.map +1 -1
- package/dist/tools/updatePlanSettings.js +33 -13
- package/dist/tools/updatePlanSettings.js.map +1 -1
- package/dist/tools/writeGuard.d.ts +11 -0
- package/dist/tools/writeGuard.js +17 -0
- package/dist/tools/writeGuard.js.map +1 -0
- package/dist/types/projectionlab.d.ts +4 -0
- package/dist/types/wire.d.ts +57 -8
- package/dist/types/wire.js +16 -2
- package/dist/types/wire.js.map +1 -1
- package/package.json +1 -1
- package/skills/projectionlab/SKILL.md +215 -17
package/dist/dataModel.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProjectionLabError } from "./errors.js";
|
|
2
|
+
import type { ExportLayout } from "./layout.js";
|
|
2
3
|
/**
|
|
3
4
|
* Verified field knowledge for the values this server reads and writes.
|
|
4
5
|
* Single source for the `projectionlab://data-model` resource, the
|
|
@@ -9,11 +10,14 @@ import { ProjectionLabError } from "./errors.js";
|
|
|
9
10
|
* read back (or matched field-for-field against a known plan).
|
|
10
11
|
* - "ui-label": the control was seen in the UI but not confirmed by a
|
|
11
12
|
* stored-value test.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
13
|
+
* - "export-shape": the field and its value type appear in a ProjectionLab 5
|
|
14
|
+
* export; its meaning is not yet confirmed by a stored-value test.
|
|
15
|
+
* Only fields confirmed against ProjectionLab 4.6.0 or 5.0.0 are listed;
|
|
16
|
+
* fields known from names alone are left out entirely.
|
|
14
17
|
*/
|
|
15
18
|
export declare const DATA_MODEL_PROJECTIONLAB_VERSION = "4.6.0";
|
|
16
|
-
export
|
|
19
|
+
export declare const DATA_MODEL_V5_PROJECTIONLAB_VERSION = "5.0.0";
|
|
20
|
+
export type DataModelEvidence = "observed" | "ui-label" | "export-shape";
|
|
17
21
|
export interface DataModelField {
|
|
18
22
|
description: string;
|
|
19
23
|
/** Scale for numeric fields, e.g. "percentage points" or "decimal fraction". */
|
|
@@ -23,6 +27,11 @@ export interface DataModelField {
|
|
|
23
27
|
/** Which other field must be set for this field to matter. */
|
|
24
28
|
enabledBy?: string;
|
|
25
29
|
note?: string;
|
|
30
|
+
/** Label of the control that shows this field in ProjectionLab 5.0.0. */
|
|
31
|
+
uiLabel?: string;
|
|
32
|
+
/** Where that control is in ProjectionLab 5.0.0, including the mode or
|
|
33
|
+
* choice that must be selected for it to appear. */
|
|
34
|
+
uiLocation?: string;
|
|
26
35
|
evidence: DataModelEvidence;
|
|
27
36
|
}
|
|
28
37
|
export interface DataModelGroup {
|
|
@@ -33,26 +42,46 @@ export interface DataModelGroup {
|
|
|
33
42
|
fields: Record<string, DataModelField>;
|
|
34
43
|
}
|
|
35
44
|
export declare const DATA_MODEL_GROUPS: readonly DataModelGroup[];
|
|
45
|
+
export declare const DATA_MODEL_V5_GROUPS: readonly DataModelGroup[];
|
|
46
|
+
export declare const UI_LABELS_V5: Readonly<Record<string, Readonly<Record<string, readonly [label: string, location: string]>>>>;
|
|
47
|
+
/** Get the data model groups for the specified export layout. */
|
|
48
|
+
export declare function getDataModelGroups(layout?: ExportLayout): readonly DataModelGroup[];
|
|
36
49
|
/** Field entry for a scope-prefixed concrete path, or undefined. */
|
|
37
|
-
export declare function matchDataModelField(scope: string, path: string): DataModelField | undefined;
|
|
50
|
+
export declare function matchDataModelField(scope: string, path: string, layout?: ExportLayout): DataModelField | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Whether a write of a value outside an entry's `allowedValues` is refused.
|
|
53
|
+
* Only an observed entry binds a write: its field is confirmed by a
|
|
54
|
+
* stored-value test and its list is held as the app's own set of choices. A
|
|
55
|
+
* ui-label or export-shape list is a hint and may leave choices the app offers
|
|
56
|
+
* out of it.
|
|
57
|
+
*/
|
|
58
|
+
export declare function enforcesAllowedValues(field: DataModelField): boolean;
|
|
38
59
|
export interface DataModelAnnotation {
|
|
39
60
|
description?: string;
|
|
40
61
|
units?: string;
|
|
41
62
|
allowedValues?: readonly string[];
|
|
63
|
+
/**
|
|
64
|
+
* Present whenever `allowedValues` is: true when a write outside the list is
|
|
65
|
+
* refused, false when the list is a hint that may leave choices out.
|
|
66
|
+
*/
|
|
67
|
+
allowedValuesEnforced?: boolean;
|
|
68
|
+
uiLabel?: string;
|
|
69
|
+
uiLocation?: string;
|
|
42
70
|
}
|
|
43
71
|
/**
|
|
44
|
-
* Copy listed values, attaching description, units,
|
|
72
|
+
* Copy listed values, attaching description, units, allowedValues with its
|
|
73
|
+
* allowedValuesEnforced, and the ProjectionLab 5.0.0 uiLabel and uiLocation for
|
|
45
74
|
* paths with a registry entry. Entries for unknown paths are returned
|
|
46
75
|
* unchanged, so existing listPaths fields never change.
|
|
47
76
|
*/
|
|
48
77
|
export declare function annotateAddressableValues<T extends {
|
|
49
78
|
path: string;
|
|
50
|
-
}>(scope: string | undefined, values: readonly T[]): (T & DataModelAnnotation)[];
|
|
79
|
+
}>(scope: string | undefined, values: readonly T[], layout?: ExportLayout): (T & DataModelAnnotation)[];
|
|
51
80
|
/**
|
|
52
81
|
* Choices to refuse a value over: an observed enum's list when value is a
|
|
53
82
|
* string outside it. undefined when no refusal applies. Numeric and boolean
|
|
54
83
|
* values are never refused; ui-label enums are annotated but not enforced.
|
|
55
84
|
*/
|
|
56
|
-
export declare function refusedEnumChoices(scope: string | undefined, path: string, value: unknown): readonly string[] | undefined;
|
|
85
|
+
export declare function refusedEnumChoices(scope: string | undefined, path: string, value: unknown, layout?: ExportLayout): readonly string[] | undefined;
|
|
57
86
|
/** Refusal for a value a write sets outside an observed enum's choices. */
|
|
58
|
-
export declare function enumRefusalError(scope: string, path: string, value: unknown): ProjectionLabError | undefined;
|
|
87
|
+
export declare function enumRefusalError(scope: string, path: string, value: unknown, layout?: ExportLayout): ProjectionLabError | undefined;
|