@rsconcept/rstool 0.10.3 → 1.0.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.
Files changed (116) hide show
  1. package/README.md +61 -33
  2. package/dist/agent-workflow-Gk0Vfnv1.d.ts +64 -0
  3. package/dist/analysis-LLnPhmGa.d.ts +23 -0
  4. package/dist/{common-DxLg3eXX.d.ts → common-DHJalS-Q.d.ts} +6 -1
  5. package/dist/constituenta-DnGR6bnM.d.ts +54 -0
  6. package/dist/diagnostic-D9yl_mEL.d.ts +19 -0
  7. package/dist/evaluation-Cns8BFm4.d.ts +31 -0
  8. package/dist/index.d.ts +11 -11
  9. package/dist/index.js +1 -2
  10. package/dist/mappers/model-adapter.d.ts +3 -3
  11. package/dist/mappers/schema-adapter.d.ts +4 -4
  12. package/dist/mappers/types.d.ts +6 -2
  13. package/dist/mappers/types.js +2 -0
  14. package/dist/mappers/types.js.map +1 -1
  15. package/dist/{model-value-SFAVj0dw.d.ts → model-value-BbonPzMz.d.ts} +14 -3
  16. package/dist/models/agent-workflow.d.ts +2 -0
  17. package/dist/models/agent-workflow.js +1 -0
  18. package/dist/models/analysis.d.ts +1 -1
  19. package/dist/models/common.d.ts +1 -1
  20. package/dist/models/constituenta.d.ts +2 -2
  21. package/dist/models/diagnostic.d.ts +1 -1
  22. package/dist/models/evaluation.d.ts +2 -2
  23. package/dist/models/index.d.ts +11 -11
  24. package/dist/models/index.js +2 -2
  25. package/dist/models/model-value.d.ts +2 -2
  26. package/dist/models/rstool-agent.d.ts +1 -1
  27. package/dist/models/rstool-agent.js +1 -1
  28. package/dist/models/session.d.ts +1 -1
  29. package/dist/models/tool-contract.d.ts +2 -2
  30. package/dist/models/tool-contract.js +2 -1
  31. package/dist/models/tool-contract.js.map +1 -1
  32. package/dist/models-Bw6Uum8i.js +685 -0
  33. package/dist/models-Bw6Uum8i.js.map +1 -0
  34. package/dist/rstool-agent-D2cQze_b.d.ts +71 -0
  35. package/dist/session/session-store.d.ts +18 -5
  36. package/dist/session/session-store.js +1 -64
  37. package/dist/{session-BPgsE80c.d.ts → session-ChexW8i7.d.ts} +11 -8
  38. package/dist/tool-contract-0uRGhEfW.d.ts +164 -0
  39. package/dist/wrapper/client.d.ts +23 -0
  40. package/dist/wrapper/client.js +17 -0
  41. package/dist/wrapper/client.js.map +1 -1
  42. package/dist/wrapper/stdio-wrapper.js +75 -63
  43. package/dist/wrapper/stdio-wrapper.js.map +1 -1
  44. package/docs/CONSTITUENTA.md +2 -2
  45. package/docs/DIAGNOSTICS.md +6 -5
  46. package/docs/MODEL-TESTING.md +3 -3
  47. package/docs/PORTAL-API.md +24 -18
  48. package/examples/README.md +1 -1
  49. package/examples/agent-client.ts +11 -41
  50. package/examples/build-chocolate-nim-rsform.ts +21 -70
  51. package/examples/chocolate-nim/build-rsform.ts +23 -18
  52. package/examples/chocolate-nim/build-rsmodel.ts +10 -12
  53. package/examples/chocolate-nim/rsform-session.json +290 -290
  54. package/examples/chocolate-nim/rsmodel-session.json +291 -291
  55. package/examples/expression-bank/bank-constituents.ts +304 -53
  56. package/examples/expression-bank/build-rsform.ts +19 -16
  57. package/examples/expression-bank/rsform-session.json +1551 -1551
  58. package/examples/kinship/build-rsform.ts +23 -18
  59. package/examples/kinship/build-rsmodel.ts +16 -16
  60. package/examples/kinship/rsform-session.json +219 -219
  61. package/examples/kinship/rsmodel-session.json +221 -221
  62. package/examples/kinship/session.ts +19 -21
  63. package/examples/movd/build-rsform.ts +23 -18
  64. package/examples/movd/build-rsmodel.ts +18 -20
  65. package/examples/movd/rsform-session.json +262 -262
  66. package/examples/movd/rsmodel-session.json +264 -264
  67. package/examples/sample/build-rsform.ts +18 -51
  68. package/examples/sample/build-rsmodel.ts +25 -44
  69. package/examples/sample/rsform-session.json +10 -7
  70. package/examples/sample/rsmodel-session.json +36 -33
  71. package/examples/template-apply/build-rsform.ts +27 -24
  72. package/examples/template-apply/rsform-session.json +48 -48
  73. package/package.json +4 -2
  74. package/skills/rstool-helper/EXAMPLES.md +44 -116
  75. package/skills/rstool-helper/GUIDE.md +40 -25
  76. package/skills/rstool-helper/REFERENCE.md +40 -177
  77. package/src/index.ts +24 -17
  78. package/src/mappers/portal-adapter.ts +49 -0
  79. package/src/mappers/types.ts +4 -0
  80. package/src/models/agent-workflow.ts +66 -0
  81. package/src/models/analysis.ts +7 -0
  82. package/src/models/common.ts +7 -0
  83. package/src/models/constituenta.ts +24 -6
  84. package/src/models/diagnostic.ts +4 -0
  85. package/src/models/evaluation.ts +11 -0
  86. package/src/models/import-detect.test.ts +66 -0
  87. package/src/models/import-detect.ts +42 -0
  88. package/src/models/import-export.ts +24 -0
  89. package/src/models/index.ts +22 -14
  90. package/src/models/model-value.ts +12 -0
  91. package/src/models/portal-json.test.ts +38 -0
  92. package/src/models/portal-json.ts +54 -1
  93. package/src/models/rstool-agent.test.ts +698 -146
  94. package/src/models/rstool-agent.ts +392 -92
  95. package/src/models/session.ts +8 -5
  96. package/src/models/tool-contract.ts +81 -42
  97. package/src/session/batch-apply.test.ts +123 -0
  98. package/src/session/batch-apply.ts +82 -0
  99. package/src/session/persistence.test.ts +63 -0
  100. package/src/session/persistence.ts +69 -0
  101. package/src/session/session-store.ts +76 -6
  102. package/src/wrapper/client.test.ts +58 -0
  103. package/src/wrapper/client.ts +23 -0
  104. package/src/wrapper/stdio-handler.test.ts +101 -0
  105. package/src/wrapper/stdio-handler.ts +195 -0
  106. package/src/wrapper/stdio-wrapper.ts +4 -187
  107. package/dist/analysis-JiwOYDKx.d.ts +0 -16
  108. package/dist/constituenta-Dnd6iToB.d.ts +0 -36
  109. package/dist/diagnostic-BMYvciz8.d.ts +0 -15
  110. package/dist/evaluation-CCVYH0wA.d.ts +0 -21
  111. package/dist/index-uhkmwruf.d.ts +0 -46
  112. package/dist/rstool-agent-BZi5jO1y.js +0 -158
  113. package/dist/rstool-agent-BZi5jO1y.js.map +0 -1
  114. package/dist/rstool-agent-pRaPnZay.d.ts +0 -35
  115. package/dist/session/session-store.js.map +0 -1
  116. package/dist/tool-contract-n1ghUOrK.d.ts +0 -32
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # @rsconcept/rstool
2
2
 
3
- Agent-facing library for **incremental RSForm construction**, **RSLang expression analysis**, **diagnostics**, **modeling**, and **evaluation**. It wraps [`@rsconcept/domain`](https://www.npmjs.com/package/@rsconcept/domain) with a deterministic session contract and a stdio JSON wrapper that LLM agents and MCP clients can call directly.
3
+ Agent-facing library for **incremental RSForm construction**, **RSLang expression analysis**, **diagnostics**, **modeling**, and **evaluation**. It wraps [`@rsconcept/domain`](https://www.npmjs.com/package/@rsconcept/domain) with a deterministic session contract and a stdio JSON wrapper for LLM agents. MCP hosts can use it through [`@rsconcept/rstool-mcp`](https://www.npmjs.com/package/@rsconcept/rstool-mcp).
4
+
5
+ **Contract version:** `2.0.0` — see [skills/rstool-helper/REFERENCE.md](./skills/rstool-helper/REFERENCE.md) for the full v2 API.
4
6
 
5
7
  ## Agent skill
6
8
 
@@ -12,7 +14,7 @@ RS language + rstool workflows for agents: `skills/rstool-helper/` (`GUIDE.md`,
12
14
  npm install @rsconcept/rstool
13
15
  ```
14
16
 
15
- `@rsconcept/domain` is a peer-of-dependency installed automatically.
17
+ `@rsconcept/domain` is a package dependency and is installed automatically.
16
18
 
17
19
  ## Installing the agent skill
18
20
 
@@ -31,13 +33,11 @@ Details: `skills/README.md`.
31
33
  ## Quick use (library)
32
34
 
33
35
  ```ts
34
- import { CstType, RSToolAgent } from '@rsconcept/rstool';
36
+ import { RSToolAgent } from '@rsconcept/rstool';
35
37
 
36
38
  const tool = new RSToolAgent();
37
- const session = tool.createSession();
38
- const result = tool.analyzeExpression(session.sessionId, {
39
- expression: '1+2',
40
- cstType: CstType.TERM
39
+ const result = tool.applySchemaPatch({
40
+ items: [{ alias: 'X1' }, { alias: 'D1', definitionFormal: '1+2' }]
41
41
  });
42
42
  ```
43
43
 
@@ -52,7 +52,9 @@ Or run it as a child process from your own code:
52
52
  ```ts
53
53
  import { RSToolWrapperClient } from '@rsconcept/rstool/wrapper';
54
54
 
55
- const client = new RSToolWrapperClient(); // spawns `rstool-wrapper` by default
55
+ // Default is for checkout/dev use: `npm run wrapper` in the current cwd.
56
+ // For an installed package, pass { command: 'npx', args: ['rstool-wrapper'] }.
57
+ const client = new RSToolWrapperClient();
56
58
  await client.waitUntilReady();
57
59
  const session = await client.call<{ sessionId: string }>('createSession');
58
60
  await client.close();
@@ -84,41 +86,77 @@ From `rsconcept/rstool` (or run `powershell -File scripts/dev/LocalDevSetup.ps1`
84
86
 
85
87
  - Input: one JSON request per line.
86
88
  - Output: one JSON response per line.
87
- - The wrapper keeps state in memory while the process is alive.
89
+ - The wrapper keeps state in memory while the process is alive (or on disk when `RSTOOL_PERSISTENCE_DIR` is set).
90
+ - If a session method is called without an active session, rstool creates one lazily.
88
91
  - On startup, a ready handshake is printed.
89
92
 
90
- Supported methods (current contract version: see [`CONTRACT_VERSION`](src/models/tool-contract.ts)):
93
+ Supported methods (contract `2.0.0`):
91
94
 
92
95
  - `ping`
93
96
  - `methods`
97
+ - `ensureSession`
94
98
  - `createSession`
95
- - `addOrUpdateConstituenta`
99
+ - `getCurrentSession`
100
+ - `setCurrentSession`
101
+ - `applySchemaPatch`
102
+ - `getSessionState`
96
103
  - `analyzeExpression`
97
- - `getFormState`
98
104
  - `listDiagnostics`
99
105
  - `commitStep`
100
106
  - `exportSession`
101
- - `exportPortalSchema`
102
- - `exportPortalModel`
103
- - `importSession`
104
- - `setConstituentaValue`
105
- - `setConstituentaValues`
106
- - `clearConstituentaValues`
107
+ - `exportPortal`
108
+ - `importData`
109
+ - `setModelValues`
107
110
  - `getModelState`
108
- - `evaluateExpression`
109
- - `evaluateConstituenta`
111
+ - `evaluate`
110
112
  - `recalculateModel`
111
113
 
112
- Example request:
114
+ Params are **flat** at the top level (no `params.input` wrapper). Optional `sessionId` sits alongside method fields.
115
+
116
+ Example `createSession`:
117
+
118
+ Request:
113
119
 
114
120
  ```json
115
121
  { "id": "1", "method": "createSession", "params": {} }
116
122
  ```
117
123
 
118
- Example response:
124
+ Response:
125
+
126
+ ```json
127
+ { "id": "1", "ok": true, "result": { "sessionId": "...", "contractVersion": "2.0.0" } }
128
+ ```
129
+
130
+ Example `applySchemaPatch`:
131
+
132
+ Request:
119
133
 
120
134
  ```json
121
- { "id": "1", "ok": true, "result": { "sessionId": "...", "contractVersion": "1.4.0" } }
135
+ {
136
+ "id": "2",
137
+ "method": "applySchemaPatch",
138
+ "params": {
139
+ "items": [
140
+ { "alias": "X1" },
141
+ { "alias": "S1", "definitionFormal": "ℬ(X1×X1)" },
142
+ { "alias": "D1", "definitionFormal": "Pr1(S1)" }
143
+ ]
144
+ }
145
+ }
146
+ ```
147
+
148
+ Response:
149
+
150
+ ```json
151
+ {
152
+ "id": "2",
153
+ "ok": true,
154
+ "result": {
155
+ "success": true,
156
+ "session": { "sessionId": "...", "contractVersion": "2.0.0" },
157
+ "summary": { "itemCount": 3 }
158
+ }
159
+ }
122
160
  ```
123
161
 
124
162
  ## Typed client example
@@ -131,16 +169,6 @@ npm run example:client
131
169
 
132
170
  File: [`examples/agent-client.ts`](examples/agent-client.ts)
133
171
 
134
- The example:
135
-
136
- - starts the stdio wrapper as a child process
137
- - waits for the ready handshake
138
- - creates a session
139
- - upserts a constituent
140
- - runs expression analysis
141
- - sets a base binding and evaluates a term
142
- - fetches diagnostics
143
-
144
172
  ## License
145
173
 
146
174
  MIT
@@ -0,0 +1,64 @@
1
+ import { n as CstType } from "./common-DHJalS-Q.js";
2
+ import { t as DiagnosticRecord } from "./diagnostic-D9yl_mEL.js";
3
+ import { a as ApplyConstituentsResult, i as ApplyConstituentsMode, o as ConstituentaDraft } from "./constituenta-DnGR6bnM.js";
4
+ import { n as SessionRevision, r as SessionState, t as SessionHandle } from "./session-ChexW8i7.js";
5
+
6
+ //#region src/models/agent-workflow.d.ts
7
+ /** Level of detail returned by {@link RSToolAgent.getSessionState}. */
8
+ type SessionStateDetail = 'summary' | 'full';
9
+ /** Result of `getSessionState`: compact summary or full cloned session state. */
10
+ type SessionStateResult = SessionSummary | SessionState;
11
+ /**
12
+ * Partial constituent update used in {@link ApplySchemaPatchInput}.
13
+ *
14
+ * `alias` is required; other fields are merged with any existing constituent
15
+ * or inferred from the alias prefix when omitted.
16
+ */
17
+ interface AgentConstituentaPatch extends Omit<Partial<ConstituentaDraft>, 'alias'> {
18
+ alias: string;
19
+ }
20
+ /** Input for {@link RSToolAgent.applySchemaPatch}. */
21
+ interface ApplySchemaPatchInput {
22
+ /** Metadata used only when a new session is created for this patch. */
23
+ initial?: {
24
+ alias?: string;
25
+ title?: string;
26
+ comment?: string;
27
+ };
28
+ /** Constituent patches to apply in dependency order. */
29
+ items: AgentConstituentaPatch[];
30
+ /** atomic: rollback on first failure; best_effort applies valid drafts. Default: atomic. */
31
+ mode?: ApplyConstituentsMode;
32
+ /** When set, a revision is recorded after a successful patch. */
33
+ commitMessage?: string;
34
+ }
35
+ /** Compact view of one constituent in a session summary. */
36
+ interface SessionSummaryItem {
37
+ id: number;
38
+ alias: string;
39
+ cstType: CstType;
40
+ analysisSuccess: boolean;
41
+ }
42
+ /** Compact session overview returned by default from `getSessionState`. */
43
+ interface SessionSummary {
44
+ sessionId: string;
45
+ contractVersion: string;
46
+ alias: string;
47
+ title: string;
48
+ comment: string;
49
+ itemCount: number;
50
+ modelItemCount: number;
51
+ diagnosticsCount: number;
52
+ items: SessionSummaryItem[];
53
+ diagnostics: DiagnosticRecord[];
54
+ lastRevision?: SessionRevision;
55
+ }
56
+ /** Result of {@link RSToolAgent.applySchemaPatch}. */
57
+ interface ApplySchemaPatchResult extends ApplyConstituentsResult {
58
+ session: SessionHandle;
59
+ summary: SessionSummary;
60
+ revision?: SessionRevision;
61
+ }
62
+ //#endregion
63
+ export { SessionStateResult as a, SessionStateDetail as i, ApplySchemaPatchInput as n, SessionSummary as o, ApplySchemaPatchResult as r, SessionSummaryItem as s, AgentConstituentaPatch as t };
64
+ //# sourceMappingURL=agent-workflow-Gk0Vfnv1.d.ts.map
@@ -0,0 +1,23 @@
1
+ import { a as RSToolErrorDescription, n as CstType, s as ValueClass } from "./common-DHJalS-Q.js";
2
+
3
+ //#region src/models/analysis.d.ts
4
+ /** Input for {@link RSToolAgent.analyzeExpression}. */
5
+ interface AnalyzeExpressionInput {
6
+ /** RSLang expression to parse and type-check. */
7
+ expression: string;
8
+ /** Expected constituent type context for the expression. */
9
+ cstType: CstType;
10
+ /** When true, append diagnostics to the session log. Default: false. */
11
+ recordDiagnostics?: boolean;
12
+ }
13
+ /** Outcome of parsing and semantic analysis for one expression. */
14
+ interface AnalysisResult {
15
+ success: boolean;
16
+ /** Inferred RS type AST as a plain object, or `null` on failure. */
17
+ type: Record<string, unknown> | null;
18
+ valueClass: ValueClass | null;
19
+ diagnostics: RSToolErrorDescription[];
20
+ }
21
+ //#endregion
22
+ export { AnalyzeExpressionInput as n, AnalysisResult as t };
23
+ //# sourceMappingURL=analysis-LLnPhmGa.d.ts.map
@@ -6,12 +6,17 @@ import { RSErrorCode } from "@rsconcept/domain/rslang/error";
6
6
  //#region src/models/common.d.ts
7
7
  /** Runtime evaluation value: number, nested array (set/tuple), or boolean 0/1. */
8
8
  type RSToolValue = number | RSToolValue[];
9
+ /** Language or validation error with source span and optional format parameters. */
9
10
  interface RSToolErrorDescription {
11
+ /** Numeric error code (see {@link RSErrorCode}). */
10
12
  code: number;
13
+ /** Start offset in the analyzed expression. */
11
14
  from: number;
15
+ /** End offset in the analyzed expression. */
12
16
  to: number;
17
+ /** Interpolation values for localized error messages. */
13
18
  params?: readonly string[];
14
19
  }
15
20
  //#endregion
16
21
  export { RSToolErrorDescription as a, RSErrorCode as i, CstType$1 as n, RSToolValue as o, EvalStatus$1 as r, ValueClass$1 as s, BasicBinding as t };
17
- //# sourceMappingURL=common-DxLg3eXX.d.ts.map
22
+ //# sourceMappingURL=common-DHJalS-Q.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { n as CstType } from "./common-DHJalS-Q.js";
2
+ import { t as AnalysisResult } from "./analysis-LLnPhmGa.js";
3
+ import { t as DiagnosticRecord } from "./diagnostic-D9yl_mEL.js";
4
+
5
+ //#region src/models/constituenta.d.ts
6
+ /** Constituent payload before analysis and merge into session state. */
7
+ interface ConstituentaDraft {
8
+ id: number;
9
+ /** Unique alias (e.g. `X1`, `D2`). */
10
+ alias: string;
11
+ /** Constituent type. */
12
+ cstType: CstType;
13
+ /** Formal RSLang definition. */
14
+ definitionFormal: string;
15
+ /** Natural-language term. */
16
+ term?: string;
17
+ /** Natural-language definition. */
18
+ definitionText?: string;
19
+ /** Convention or comment. */
20
+ convention?: string;
21
+ }
22
+ /** Constituent stored in session state after analysis. */
23
+ interface ConstituentaState extends Omit<ConstituentaDraft, 'term' | 'definitionText' | 'convention'> {
24
+ term: string;
25
+ definitionText: string;
26
+ convention: string;
27
+ analysis: AnalysisResult;
28
+ }
29
+ interface AddOrUpdateConstituentaInput {
30
+ draft: ConstituentaDraft;
31
+ }
32
+ interface AddOrUpdateConstituentaResult {
33
+ state: ConstituentaState;
34
+ diagnostics: DiagnosticRecord[];
35
+ }
36
+ /** How a multi-draft apply handles partial failures. */
37
+ type ApplyConstituentsMode = 'atomic' | 'best_effort';
38
+ interface ApplyConstituentsInput {
39
+ drafts: ConstituentaDraft[];
40
+ /** atomic: rollback on first failure; best_effort: apply valid drafts. Default: atomic. */
41
+ mode?: ApplyConstituentsMode;
42
+ }
43
+ interface ApplyConstituentsResult {
44
+ success: boolean;
45
+ applied: ConstituentaState[];
46
+ failed: Array<{
47
+ draft: ConstituentaDraft;
48
+ diagnostics: DiagnosticRecord[];
49
+ }>;
50
+ diagnostics: DiagnosticRecord[];
51
+ }
52
+ //#endregion
53
+ export { ApplyConstituentsResult as a, ApplyConstituentsMode as i, AddOrUpdateConstituentaResult as n, ConstituentaDraft as o, ApplyConstituentsInput as r, ConstituentaState as s, AddOrUpdateConstituentaInput as t };
54
+ //# sourceMappingURL=constituenta-DnGR6bnM.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { a as RSToolErrorDescription } from "./common-DHJalS-Q.js";
2
+
3
+ //#region src/models/diagnostic.d.ts
4
+ /** Persisted diagnostic for a failed or warned expression in a session. */
5
+ interface DiagnosticRecord {
6
+ sessionId: string;
7
+ /** Constituent id when the diagnostic is tied to a stored item; omitted for scratch analysis. */
8
+ constituentId?: number;
9
+ /** Expression text that was analyzed. */
10
+ expression: string;
11
+ error: RSToolErrorDescription;
12
+ }
13
+ /** Filters for {@link RSToolAgent.listDiagnostics}. */
14
+ interface ListDiagnosticsFilters {
15
+ constituentId?: number;
16
+ }
17
+ //#endregion
18
+ export { ListDiagnosticsFilters as n, DiagnosticRecord as t };
19
+ //# sourceMappingURL=diagnostic-D9yl_mEL.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { a as RSToolErrorDescription, n as CstType, o as RSToolValue, r as EvalStatus, t as BasicBinding } from "./common-DHJalS-Q.js";
2
+
3
+ //#region src/models/evaluation.d.ts
4
+ interface EvaluateExpressionInput {
5
+ expression: string;
6
+ cstType: CstType;
7
+ }
8
+ interface EvaluateConstituentaInput {
9
+ constituentId: number;
10
+ }
11
+ /** Evaluate a scratch expression or a stored constituent (provide one variant). */
12
+ interface EvaluateInput {
13
+ /** Scratch expression; requires `cstType`. */
14
+ expression?: string;
15
+ /** Type context when evaluating `expression`. */
16
+ cstType?: CstType;
17
+ /** Stored constituent id to evaluate. */
18
+ constituentId?: number;
19
+ }
20
+ /** Outcome of model evaluation for one expression or constituent. */
21
+ interface EvaluationResult {
22
+ success: boolean;
23
+ value: RSToolValue | BasicBinding | null;
24
+ status: EvalStatus;
25
+ iterations: number;
26
+ cacheHits: number;
27
+ diagnostics: RSToolErrorDescription[];
28
+ }
29
+ //#endregion
30
+ export { EvaluationResult as i, EvaluateExpressionInput as n, EvaluateInput as r, EvaluateConstituentaInput as t };
31
+ //# sourceMappingURL=evaluation-Cns8BFm4.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { a as RSToolErrorDescription, i as RSErrorCode, n as CstType, o as RSToolValue, r as EvalStatus, s as ValueClass, t as BasicBinding } from "./common-DxLg3eXX.js";
2
- import { n as AnalyzeExpressionInput, t as AnalysisResult } from "./analysis-JiwOYDKx.js";
3
- import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "./diagnostic-BMYvciz8.js";
4
- import { i as ConstituentaState, n as AddOrUpdateConstituentaResult, r as ConstituentaDraft, t as AddOrUpdateConstituentaInput } from "./constituenta-Dnd6iToB.js";
5
- import { n as EvaluateExpressionInput, r as EvaluationResult, t as EvaluateConstituentaInput } from "./evaluation-CCVYH0wA.js";
6
- import { a as SetConstituentaValueInput, i as SessionModelState, n as ModelValueState, o as SetConstituentaValuesInput, r as RecalculateModelResult, t as ClearConstituentaValuesInput } from "./model-value-SFAVj0dw.js";
7
- import { a as PortalSchemaImportData, i as PortalSchemaConstituenta, n as PortalImportMetadata, o as PortalTermForm, r as PortalModelImportData, t as PORTAL_JSON_CONTRACT_VERSION } from "./index-uhkmwruf.js";
8
- import { n as SessionRevision, r as SessionState, t as SessionHandle } from "./session-BPgsE80c.js";
9
- import { n as RSToolAgentContract, t as CONTRACT_VERSION } from "./tool-contract-n1ghUOrK.js";
10
- import { t as RSToolAgent } from "./rstool-agent-pRaPnZay.js";
1
+ import { a as RSToolErrorDescription, i as RSErrorCode, n as CstType, o as RSToolValue, r as EvalStatus, s as ValueClass, t as BasicBinding } from "./common-DHJalS-Q.js";
2
+ import { n as AnalyzeExpressionInput, t as AnalysisResult } from "./analysis-LLnPhmGa.js";
3
+ import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "./diagnostic-D9yl_mEL.js";
4
+ import { o as ConstituentaDraft, s as ConstituentaState } from "./constituenta-DnGR6bnM.js";
5
+ import { a as SetConstituentaValueInput, i as SessionModelState, n as ModelValueState, r as RecalculateModelResult, s as SetModelValuesInput } from "./model-value-BbonPzMz.js";
6
+ import { n as SessionRevision, r as SessionState, t as SessionHandle } from "./session-ChexW8i7.js";
7
+ import { a as SessionStateResult, i as SessionStateDetail, n as ApplySchemaPatchInput, o as SessionSummary, r as ApplySchemaPatchResult, s as SessionSummaryItem, t as AgentConstituentaPatch } from "./agent-workflow-Gk0Vfnv1.js";
8
+ import { i as EvaluationResult, r as EvaluateInput } from "./evaluation-Cns8BFm4.js";
9
+ import { a as ExportPortalInput, c as PortalExportKind, d as PortalModelImportData, f as PortalRsformDetails, h as PortalTermForm, i as ExportFormat, l as PORTAL_JSON_CONTRACT_VERSION, m as PortalSchemaImportData, n as RSToolAgentContract, o as ExportPortalResult, p as PortalSchemaConstituenta, r as RSToolAgentOptions, s as ImportDataKind, t as CONTRACT_VERSION, u as PortalImportMetadata } from "./tool-contract-0uRGhEfW.js";
10
+ import { t as RSToolAgent } from "./rstool-agent-D2cQze_b.js";
11
11
  import { DomainAnalysisLike, DomainErrorLike, toPublicAnalysis, toPublicError } from "./mappers/types.js";
12
12
  import { RSToolWrapperClient, RSToolWrapperClientOptions, WrapperResponse } from "./wrapper/client.js";
13
- export { type AddOrUpdateConstituentaInput, type AddOrUpdateConstituentaResult, type AnalysisResult, type AnalyzeExpressionInput, type BasicBinding, CONTRACT_VERSION, type ClearConstituentaValuesInput, type ConstituentaDraft, type ConstituentaState, CstType, type DiagnosticRecord, type DomainAnalysisLike, type DomainErrorLike, EvalStatus, type EvaluateConstituentaInput, type EvaluateExpressionInput, type EvaluationResult, type ListDiagnosticsFilters, type ModelValueState, PORTAL_JSON_CONTRACT_VERSION, type PortalImportMetadata, type PortalModelImportData, type PortalSchemaConstituenta, type PortalSchemaImportData, type PortalTermForm, RSErrorCode, RSToolAgent, type RSToolAgentContract, type RSToolErrorDescription, type RSToolValue, RSToolWrapperClient, type RSToolWrapperClientOptions, type RecalculateModelResult, type SessionHandle, type SessionModelState, type SessionRevision, type SessionState, type SetConstituentaValueInput, type SetConstituentaValuesInput, ValueClass, type WrapperResponse, toPublicAnalysis, toPublicError };
13
+ export { type AgentConstituentaPatch, type AnalysisResult, type AnalyzeExpressionInput, type ApplySchemaPatchInput, type ApplySchemaPatchResult, type BasicBinding, CONTRACT_VERSION, type ConstituentaDraft, type ConstituentaState, CstType, type DiagnosticRecord, type DomainAnalysisLike, type DomainErrorLike, EvalStatus, type EvaluateInput, type EvaluationResult, type ExportFormat, type ExportPortalInput, type ExportPortalResult, type ImportDataKind, type ListDiagnosticsFilters, type ModelValueState, PORTAL_JSON_CONTRACT_VERSION, type PortalExportKind, type PortalImportMetadata, type PortalModelImportData, type PortalRsformDetails, type PortalSchemaConstituenta, type PortalSchemaImportData, type PortalTermForm, RSErrorCode, RSToolAgent, type RSToolAgentContract, type RSToolAgentOptions, type RSToolErrorDescription, type RSToolValue, RSToolWrapperClient, type RSToolWrapperClientOptions, type RecalculateModelResult, type SessionHandle, type SessionModelState, type SessionRevision, type SessionState, type SessionStateDetail, type SessionStateResult, type SessionSummary, type SessionSummaryItem, type SetConstituentaValueInput, type SetModelValuesInput, ValueClass, type WrapperResponse, toPublicAnalysis, toPublicError };
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { toPublicAnalysis, toPublicError } from "./mappers/types.js";
2
2
  import { CstType, EvalStatus, RSErrorCode, ValueClass } from "./models/common.js";
3
- import { n as PORTAL_JSON_CONTRACT_VERSION, t as RSToolAgent } from "./rstool-agent-BZi5jO1y.js";
3
+ import { r as PORTAL_JSON_CONTRACT_VERSION, t as RSToolAgent } from "./models-Bw6Uum8i.js";
4
4
  import { CONTRACT_VERSION } from "./models/tool-contract.js";
5
- import "./models/index.js";
6
5
  import { RSToolWrapperClient } from "./wrapper/client.js";
7
6
  export { CONTRACT_VERSION, CstType, EvalStatus, PORTAL_JSON_CONTRACT_VERSION, RSErrorCode, RSToolAgent, RSToolWrapperClient, ValueClass, toPublicAnalysis, toPublicError };
@@ -1,6 +1,6 @@
1
- import { r as EvaluationResult } from "../evaluation-CCVYH0wA.js";
2
- import { a as SetConstituentaValueInput, i as SessionModelState, r as RecalculateModelResult } from "../model-value-SFAVj0dw.js";
3
- import { r as SessionState } from "../session-BPgsE80c.js";
1
+ import { a as SetConstituentaValueInput, i as SessionModelState, r as RecalculateModelResult } from "../model-value-BbonPzMz.js";
2
+ import { r as SessionState } from "../session-ChexW8i7.js";
3
+ import { i as EvaluationResult } from "../evaluation-Cns8BFm4.js";
4
4
  import { CstType } from "@rsconcept/domain/library/rsform";
5
5
  import { RSEngine } from "@rsconcept/domain/library/rsengine";
6
6
 
@@ -1,7 +1,7 @@
1
- import { t as AnalysisResult } from "../analysis-JiwOYDKx.js";
2
- import { t as DiagnosticRecord } from "../diagnostic-BMYvciz8.js";
3
- import { i as ConstituentaState, r as ConstituentaDraft } from "../constituenta-Dnd6iToB.js";
4
- import { r as SessionState } from "../session-BPgsE80c.js";
1
+ import { t as AnalysisResult } from "../analysis-LLnPhmGa.js";
2
+ import { t as DiagnosticRecord } from "../diagnostic-D9yl_mEL.js";
3
+ import { o as ConstituentaDraft, s as ConstituentaState } from "../constituenta-DnGR6bnM.js";
4
+ import { r as SessionState } from "../session-ChexW8i7.js";
5
5
  import { RSForm } from "@rsconcept/domain/library/rsform";
6
6
  import { RSLangAnalyzer } from "@rsconcept/domain/rslang";
7
7
 
@@ -1,21 +1,25 @@
1
- import { a as RSToolErrorDescription } from "../common-DxLg3eXX.js";
2
- import { t as AnalysisResult } from "../analysis-JiwOYDKx.js";
1
+ import { a as RSToolErrorDescription } from "../common-DHJalS-Q.js";
2
+ import { t as AnalysisResult } from "../analysis-LLnPhmGa.js";
3
3
  import { ValueClass } from "@rsconcept/domain/rslang";
4
4
 
5
5
  //#region src/mappers/types.d.ts
6
+ /** Minimal domain error shape before mapping to {@link RSToolErrorDescription}. */
6
7
  interface DomainErrorLike {
7
8
  code: number;
8
9
  from: number;
9
10
  to: number;
10
11
  params?: readonly string[];
11
12
  }
13
+ /** Minimal domain analysis shape before mapping to {@link AnalysisResult}. */
12
14
  interface DomainAnalysisLike {
13
15
  success: boolean;
14
16
  type: Record<string, unknown> | null;
15
17
  valueClass: ValueClass | null;
16
18
  errors: DomainErrorLike[];
17
19
  }
20
+ /** Map a domain parser/semantic error to the public diagnostic shape. */
18
21
  declare function toPublicError(error: DomainErrorLike): RSToolErrorDescription;
22
+ /** Map a domain analysis result to the public {@link AnalysisResult} shape. */
19
23
  declare function toPublicAnalysis(analysis: DomainAnalysisLike): AnalysisResult;
20
24
  //#endregion
21
25
  export { DomainAnalysisLike, DomainErrorLike, toPublicAnalysis, toPublicError };
@@ -1,4 +1,5 @@
1
1
  //#region src/mappers/types.ts
2
+ /** Map a domain parser/semantic error to the public diagnostic shape. */
2
3
  function toPublicError(error) {
3
4
  return {
4
5
  code: error.code,
@@ -7,6 +8,7 @@ function toPublicError(error) {
7
8
  params: error.params
8
9
  };
9
10
  }
11
+ /** Map a domain analysis result to the public {@link AnalysisResult} shape. */
10
12
  function toPublicAnalysis(analysis) {
11
13
  return {
12
14
  success: analysis.success,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../src/mappers/types.ts"],"sourcesContent":["import { type ValueClass } from '@rsconcept/domain/rslang';\n\nimport { type AnalysisResult, type RSToolErrorDescription } from '../models';\n\nexport interface DomainErrorLike {\n code: number;\n from: number;\n to: number;\n params?: readonly string[];\n}\n\nexport interface DomainAnalysisLike {\n success: boolean;\n type: Record<string, unknown> | null;\n valueClass: ValueClass | null;\n errors: DomainErrorLike[];\n}\n\nexport function toPublicError(error: DomainErrorLike): RSToolErrorDescription {\n return {\n code: error.code,\n from: error.from,\n to: error.to,\n params: error.params\n };\n}\n\nexport function toPublicAnalysis(analysis: DomainAnalysisLike): AnalysisResult {\n return {\n success: analysis.success,\n type: analysis.type,\n valueClass: analysis.valueClass,\n diagnostics: analysis.errors.map(toPublicError)\n };\n}\n"],"mappings":";AAkBA,SAAgB,cAAc,OAAgD;CAC5E,OAAO;EACL,MAAM,MAAM;EACZ,MAAM,MAAM;EACZ,IAAI,MAAM;EACV,QAAQ,MAAM;CAChB;AACF;AAEA,SAAgB,iBAAiB,UAA8C;CAC7E,OAAO;EACL,SAAS,SAAS;EAClB,MAAM,SAAS;EACf,YAAY,SAAS;EACrB,aAAa,SAAS,OAAO,IAAI,aAAa;CAChD;AACF"}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../src/mappers/types.ts"],"sourcesContent":["import { type ValueClass } from '@rsconcept/domain/rslang';\n\nimport { type AnalysisResult, type RSToolErrorDescription } from '../models';\n\n/** Minimal domain error shape before mapping to {@link RSToolErrorDescription}. */\nexport interface DomainErrorLike {\n code: number;\n from: number;\n to: number;\n params?: readonly string[];\n}\n\n/** Minimal domain analysis shape before mapping to {@link AnalysisResult}. */\nexport interface DomainAnalysisLike {\n success: boolean;\n type: Record<string, unknown> | null;\n valueClass: ValueClass | null;\n errors: DomainErrorLike[];\n}\n\n/** Map a domain parser/semantic error to the public diagnostic shape. */\nexport function toPublicError(error: DomainErrorLike): RSToolErrorDescription {\n return {\n code: error.code,\n from: error.from,\n to: error.to,\n params: error.params\n };\n}\n\n/** Map a domain analysis result to the public {@link AnalysisResult} shape. */\nexport function toPublicAnalysis(analysis: DomainAnalysisLike): AnalysisResult {\n return {\n success: analysis.success,\n type: analysis.type,\n valueClass: analysis.valueClass,\n diagnostics: analysis.errors.map(toPublicError)\n };\n}\n"],"mappings":";;AAqBA,SAAgB,cAAc,OAAgD;CAC5E,OAAO;EACL,MAAM,MAAM;EACZ,MAAM,MAAM;EACZ,IAAI,MAAM;EACV,QAAQ,MAAM;CAChB;AACF;;AAGA,SAAgB,iBAAiB,UAA8C;CAC7E,OAAO;EACL,SAAS,SAAS;EAClB,MAAM,SAAS;EACf,YAAY,SAAS;EACrB,aAAa,SAAS,OAAO,IAAI,aAAa;CAChD;AACF"}
@@ -1,16 +1,20 @@
1
- import { o as RSToolValue, r as EvalStatus, t as BasicBinding } from "./common-DxLg3eXX.js";
1
+ import { o as RSToolValue, r as EvalStatus, t as BasicBinding } from "./common-DHJalS-Q.js";
2
2
 
3
3
  //#region src/models/model-value.d.ts
4
+ /** Model value for one constituent. */
4
5
  interface ModelValueState {
5
6
  id: number;
6
7
  /** Frontend type string: `basic` or normalized effective typification. */
7
8
  type: string;
8
9
  value: RSToolValue | BasicBinding;
9
10
  }
11
+ /** All model values in a session. */
10
12
  interface SessionModelState {
11
13
  items: ModelValueState[];
12
14
  }
15
+ /** Set or replace the model value for one constituent. */
13
16
  interface SetConstituentaValueInput {
17
+ /** Target constituent id. */
14
18
  target: number;
15
19
  /** Optional type override; inferred from schema when omitted. */
16
20
  type?: string;
@@ -22,6 +26,13 @@ interface SetConstituentaValuesInput {
22
26
  interface ClearConstituentaValuesInput {
23
27
  items: number[];
24
28
  }
29
+ /** Input for {@link RSToolAgent.setModelValues}. */
30
+ interface SetModelValuesInput {
31
+ set?: SetConstituentaValueInput[];
32
+ /** Constituent ids whose model values should be cleared. */
33
+ clear?: number[];
34
+ }
35
+ /** Per-constituent outcome after {@link RSToolAgent.recalculateModel}. */
25
36
  interface RecalculateModelResult {
26
37
  items: Array<{
27
38
  id: number;
@@ -31,5 +42,5 @@ interface RecalculateModelResult {
31
42
  }>;
32
43
  }
33
44
  //#endregion
34
- export { SetConstituentaValueInput as a, SessionModelState as i, ModelValueState as n, SetConstituentaValuesInput as o, RecalculateModelResult as r, ClearConstituentaValuesInput as t };
35
- //# sourceMappingURL=model-value-SFAVj0dw.d.ts.map
45
+ export { SetConstituentaValueInput as a, SessionModelState as i, ModelValueState as n, SetConstituentaValuesInput as o, RecalculateModelResult as r, SetModelValuesInput as s, ClearConstituentaValuesInput as t };
46
+ //# sourceMappingURL=model-value-BbonPzMz.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { a as SessionStateResult, i as SessionStateDetail, n as ApplySchemaPatchInput, o as SessionSummary, r as ApplySchemaPatchResult, s as SessionSummaryItem, t as AgentConstituentaPatch } from "../agent-workflow-Gk0Vfnv1.js";
2
+ export { AgentConstituentaPatch, ApplySchemaPatchInput, ApplySchemaPatchResult, SessionStateDetail, SessionStateResult, SessionSummary, SessionSummaryItem };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-JiwOYDKx.js";
1
+ import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-LLnPhmGa.js";
2
2
  export { AnalysisResult, AnalyzeExpressionInput };
@@ -1,2 +1,2 @@
1
- import { a as RSToolErrorDescription, i as RSErrorCode, n as CstType, o as RSToolValue, r as EvalStatus, s as ValueClass, t as BasicBinding } from "../common-DxLg3eXX.js";
1
+ import { a as RSToolErrorDescription, i as RSErrorCode, n as CstType, o as RSToolValue, r as EvalStatus, s as ValueClass, t as BasicBinding } from "../common-DHJalS-Q.js";
2
2
  export { type BasicBinding, CstType, EvalStatus, RSErrorCode, RSToolErrorDescription, RSToolValue, ValueClass };
@@ -1,2 +1,2 @@
1
- import { i as ConstituentaState, n as AddOrUpdateConstituentaResult, r as ConstituentaDraft, t as AddOrUpdateConstituentaInput } from "../constituenta-Dnd6iToB.js";
2
- export { AddOrUpdateConstituentaInput, AddOrUpdateConstituentaResult, ConstituentaDraft, ConstituentaState };
1
+ import { a as ApplyConstituentsResult, i as ApplyConstituentsMode, n as AddOrUpdateConstituentaResult, o as ConstituentaDraft, r as ApplyConstituentsInput, s as ConstituentaState, t as AddOrUpdateConstituentaInput } from "../constituenta-DnGR6bnM.js";
2
+ export { AddOrUpdateConstituentaInput, AddOrUpdateConstituentaResult, ApplyConstituentsInput, ApplyConstituentsMode, ApplyConstituentsResult, ConstituentaDraft, ConstituentaState };
@@ -1,2 +1,2 @@
1
- import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "../diagnostic-BMYvciz8.js";
1
+ import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "../diagnostic-D9yl_mEL.js";
2
2
  export { DiagnosticRecord, ListDiagnosticsFilters };
@@ -1,2 +1,2 @@
1
- import { n as EvaluateExpressionInput, r as EvaluationResult, t as EvaluateConstituentaInput } from "../evaluation-CCVYH0wA.js";
2
- export { EvaluateConstituentaInput, EvaluateExpressionInput, EvaluationResult };
1
+ import { i as EvaluationResult, n as EvaluateExpressionInput, r as EvaluateInput, t as EvaluateConstituentaInput } from "../evaluation-Cns8BFm4.js";
2
+ export { EvaluateConstituentaInput, EvaluateExpressionInput, EvaluateInput, EvaluationResult };
@@ -1,11 +1,11 @@
1
- import { a as RSToolErrorDescription, i as RSErrorCode, n as CstType, o as RSToolValue, r as EvalStatus, s as ValueClass, t as BasicBinding } from "../common-DxLg3eXX.js";
2
- import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-JiwOYDKx.js";
3
- import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "../diagnostic-BMYvciz8.js";
4
- import { i as ConstituentaState, n as AddOrUpdateConstituentaResult, r as ConstituentaDraft, t as AddOrUpdateConstituentaInput } from "../constituenta-Dnd6iToB.js";
5
- import { n as EvaluateExpressionInput, r as EvaluationResult, t as EvaluateConstituentaInput } from "../evaluation-CCVYH0wA.js";
6
- import { a as SetConstituentaValueInput, i as SessionModelState, n as ModelValueState, o as SetConstituentaValuesInput, r as RecalculateModelResult, t as ClearConstituentaValuesInput } from "../model-value-SFAVj0dw.js";
7
- import { a as PortalSchemaImportData, i as PortalSchemaConstituenta, n as PortalImportMetadata, o as PortalTermForm, r as PortalModelImportData, t as PORTAL_JSON_CONTRACT_VERSION } from "../index-uhkmwruf.js";
8
- import { n as SessionRevision, r as SessionState, t as SessionHandle } from "../session-BPgsE80c.js";
9
- import { n as RSToolAgentContract, t as CONTRACT_VERSION } from "../tool-contract-n1ghUOrK.js";
10
- import { t as RSToolAgent } from "../rstool-agent-pRaPnZay.js";
11
- export { type AddOrUpdateConstituentaInput, type AddOrUpdateConstituentaResult, type AnalysisResult, type AnalyzeExpressionInput, type BasicBinding, CONTRACT_VERSION, type ClearConstituentaValuesInput, type ConstituentaDraft, type ConstituentaState, CstType, type DiagnosticRecord, EvalStatus, type EvaluateConstituentaInput, type EvaluateExpressionInput, type EvaluationResult, type ListDiagnosticsFilters, type ModelValueState, PORTAL_JSON_CONTRACT_VERSION, type PortalImportMetadata, type PortalModelImportData, type PortalSchemaConstituenta, type PortalSchemaImportData, type PortalTermForm, RSErrorCode, RSToolAgent, type RSToolAgentContract, type RSToolErrorDescription, type RSToolValue, type RecalculateModelResult, type SessionHandle, type SessionModelState, type SessionRevision, type SessionState, type SetConstituentaValueInput, type SetConstituentaValuesInput, ValueClass };
1
+ import { a as RSToolErrorDescription, i as RSErrorCode, n as CstType, o as RSToolValue, r as EvalStatus, s as ValueClass, t as BasicBinding } from "../common-DHJalS-Q.js";
2
+ import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-LLnPhmGa.js";
3
+ import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "../diagnostic-D9yl_mEL.js";
4
+ import { i as ApplyConstituentsMode, o as ConstituentaDraft, s as ConstituentaState } from "../constituenta-DnGR6bnM.js";
5
+ import { a as SetConstituentaValueInput, i as SessionModelState, n as ModelValueState, r as RecalculateModelResult, s as SetModelValuesInput } from "../model-value-BbonPzMz.js";
6
+ import { n as SessionRevision, r as SessionState, t as SessionHandle } from "../session-ChexW8i7.js";
7
+ import { a as SessionStateResult, i as SessionStateDetail, n as ApplySchemaPatchInput, o as SessionSummary, r as ApplySchemaPatchResult, s as SessionSummaryItem, t as AgentConstituentaPatch } from "../agent-workflow-Gk0Vfnv1.js";
8
+ import { i as EvaluationResult, r as EvaluateInput } from "../evaluation-Cns8BFm4.js";
9
+ import { a as ExportPortalInput, c as PortalExportKind, d as PortalModelImportData, f as PortalRsformDetails, g as portalItemToDraft, h as PortalTermForm, i as ExportFormat, l as PORTAL_JSON_CONTRACT_VERSION, m as PortalSchemaImportData, n as RSToolAgentContract, o as ExportPortalResult, p as PortalSchemaConstituenta, r as RSToolAgentOptions, s as ImportDataKind, t as CONTRACT_VERSION, u as PortalImportMetadata } from "../tool-contract-0uRGhEfW.js";
10
+ import { t as RSToolAgent } from "../rstool-agent-D2cQze_b.js";
11
+ export { type AgentConstituentaPatch, type AnalysisResult, type AnalyzeExpressionInput, type ApplyConstituentsMode, type ApplySchemaPatchInput, type ApplySchemaPatchResult, type BasicBinding, CONTRACT_VERSION, type ConstituentaDraft, type ConstituentaState, CstType, type DiagnosticRecord, EvalStatus, type EvaluateInput, type EvaluationResult, type ExportFormat, type ExportPortalInput, type ExportPortalResult, type ImportDataKind, type ListDiagnosticsFilters, type ModelValueState, PORTAL_JSON_CONTRACT_VERSION, type PortalExportKind, type PortalImportMetadata, type PortalModelImportData, type PortalRsformDetails, type PortalSchemaConstituenta, type PortalSchemaImportData, type PortalTermForm, RSErrorCode, RSToolAgent, type RSToolAgentContract, type RSToolAgentOptions, type RSToolErrorDescription, type RSToolValue, type RecalculateModelResult, type SessionHandle, type SessionModelState, type SessionRevision, type SessionState, type SessionStateDetail, type SessionStateResult, type SessionSummary, type SessionSummaryItem, type SetConstituentaValueInput, type SetModelValuesInput, ValueClass, portalItemToDraft };
@@ -1,4 +1,4 @@
1
1
  import { CstType, EvalStatus, RSErrorCode, ValueClass } from "./common.js";
2
- import { n as PORTAL_JSON_CONTRACT_VERSION, t as RSToolAgent } from "../rstool-agent-BZi5jO1y.js";
2
+ import { i as portalItemToDraft, r as PORTAL_JSON_CONTRACT_VERSION, t as RSToolAgent } from "../models-Bw6Uum8i.js";
3
3
  import { CONTRACT_VERSION } from "./tool-contract.js";
4
- export { CONTRACT_VERSION, CstType, EvalStatus, PORTAL_JSON_CONTRACT_VERSION, RSErrorCode, RSToolAgent, ValueClass };
4
+ export { CONTRACT_VERSION, CstType, EvalStatus, PORTAL_JSON_CONTRACT_VERSION, RSErrorCode, RSToolAgent, ValueClass, portalItemToDraft };
@@ -1,2 +1,2 @@
1
- import { a as SetConstituentaValueInput, i as SessionModelState, n as ModelValueState, o as SetConstituentaValuesInput, r as RecalculateModelResult, t as ClearConstituentaValuesInput } from "../model-value-SFAVj0dw.js";
2
- export { ClearConstituentaValuesInput, ModelValueState, RecalculateModelResult, SessionModelState, SetConstituentaValueInput, SetConstituentaValuesInput };
1
+ import { a as SetConstituentaValueInput, i as SessionModelState, n as ModelValueState, o as SetConstituentaValuesInput, r as RecalculateModelResult, s as SetModelValuesInput, t as ClearConstituentaValuesInput } from "../model-value-BbonPzMz.js";
2
+ export { ClearConstituentaValuesInput, ModelValueState, RecalculateModelResult, SessionModelState, SetConstituentaValueInput, SetConstituentaValuesInput, SetModelValuesInput };
@@ -1,2 +1,2 @@
1
- import { t as RSToolAgent } from "../rstool-agent-pRaPnZay.js";
1
+ import { t as RSToolAgent } from "../rstool-agent-D2cQze_b.js";
2
2
  export { RSToolAgent };
@@ -1,2 +1,2 @@
1
- import { t as RSToolAgent } from "../rstool-agent-BZi5jO1y.js";
1
+ import { t as RSToolAgent } from "../models-Bw6Uum8i.js";
2
2
  export { RSToolAgent };