@rsconcept/rstool 0.10.3 → 1.0.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/README.md +41 -31
- package/dist/agent-workflow-D-PSIb-m.d.ts +70 -0
- package/dist/analysis-LLnPhmGa.d.ts +23 -0
- package/dist/{common-DxLg3eXX.d.ts → common-DHJalS-Q.d.ts} +6 -1
- package/dist/constituenta-DnGR6bnM.d.ts +54 -0
- package/dist/diagnostic-D9yl_mEL.d.ts +19 -0
- package/dist/evaluation-Cns8BFm4.d.ts +31 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/mappers/model-adapter.d.ts +3 -3
- package/dist/mappers/schema-adapter.d.ts +4 -4
- package/dist/mappers/types.d.ts +6 -2
- package/dist/mappers/types.js +2 -0
- package/dist/mappers/types.js.map +1 -1
- package/dist/{model-value-SFAVj0dw.d.ts → model-value-BbonPzMz.d.ts} +14 -3
- package/dist/models/agent-workflow.d.ts +2 -0
- package/dist/models/agent-workflow.js +1 -0
- package/dist/models/analysis.d.ts +1 -1
- package/dist/models/common.d.ts +1 -1
- package/dist/models/constituenta.d.ts +2 -2
- package/dist/models/diagnostic.d.ts +1 -1
- package/dist/models/evaluation.d.ts +2 -2
- package/dist/models/index.d.ts +11 -11
- package/dist/models/index.js +2 -2
- package/dist/models/model-value.d.ts +2 -2
- package/dist/models/rstool-agent.d.ts +1 -1
- package/dist/models/rstool-agent.js +1 -1
- package/dist/models/session.d.ts +1 -1
- package/dist/models/tool-contract.d.ts +2 -2
- package/dist/models/tool-contract.js +2 -1
- package/dist/models/tool-contract.js.map +1 -1
- package/dist/rstool-agent-_8bplZnb.d.ts +71 -0
- package/dist/rstool-agent-kijHA9ML.js +476 -0
- package/dist/rstool-agent-kijHA9ML.js.map +1 -0
- package/dist/session/session-store.d.ts +18 -5
- package/dist/session/session-store.js +1 -64
- package/dist/{session-BPgsE80c.d.ts → session-ChexW8i7.d.ts} +11 -8
- package/dist/session-store-C3jyOSqI.js +142 -0
- package/dist/session-store-C3jyOSqI.js.map +1 -0
- package/dist/tool-contract-5_Q44DGE.d.ts +164 -0
- package/dist/wrapper/client.d.ts +23 -0
- package/dist/wrapper/client.js +17 -0
- package/dist/wrapper/client.js.map +1 -1
- package/dist/wrapper/stdio-wrapper.js +62 -52
- package/dist/wrapper/stdio-wrapper.js.map +1 -1
- package/docs/CONSTITUENTA.md +2 -2
- package/docs/DIAGNOSTICS.md +6 -5
- package/docs/MODEL-TESTING.md +3 -3
- package/docs/PORTAL-API.md +24 -18
- package/examples/README.md +1 -1
- package/examples/agent-client.ts +11 -41
- package/examples/build-chocolate-nim-rsform.ts +23 -18
- package/examples/chocolate-nim/build-rsform.ts +23 -18
- package/examples/chocolate-nim/build-rsmodel.ts +10 -12
- package/examples/chocolate-nim/rsform-session.json +290 -290
- package/examples/chocolate-nim/rsmodel-session.json +291 -291
- package/examples/expression-bank/bank-constituents.ts +304 -53
- package/examples/expression-bank/build-rsform.ts +19 -16
- package/examples/expression-bank/rsform-session.json +1551 -1551
- package/examples/kinship/build-rsform.ts +23 -18
- package/examples/kinship/build-rsmodel.ts +13 -15
- package/examples/kinship/rsform-session.json +219 -219
- package/examples/kinship/rsmodel-session.json +221 -221
- package/examples/kinship/session.ts +19 -21
- package/examples/movd/build-rsform.ts +23 -18
- package/examples/movd/build-rsmodel.ts +18 -20
- package/examples/movd/rsform-session.json +262 -262
- package/examples/movd/rsmodel-session.json +264 -264
- package/examples/sample/build-rsform.ts +19 -50
- package/examples/sample/build-rsmodel.ts +25 -44
- package/examples/sample/rsform-session.json +36 -33
- package/examples/sample/rsmodel-session.json +36 -33
- package/examples/template-apply/build-rsform.ts +27 -24
- package/examples/template-apply/rsform-session.json +48 -48
- package/package.json +2 -2
- package/skills/rstool-helper/EXAMPLES.md +44 -116
- package/skills/rstool-helper/GUIDE.md +40 -25
- package/skills/rstool-helper/REFERENCE.md +40 -177
- package/src/index.ts +24 -17
- package/src/mappers/portal-adapter.ts +43 -0
- package/src/mappers/types.ts +4 -0
- package/src/models/agent-workflow.ts +78 -0
- package/src/models/analysis.ts +7 -0
- package/src/models/common.ts +7 -0
- package/src/models/constituenta.ts +24 -6
- package/src/models/diagnostic.ts +4 -0
- package/src/models/evaluation.ts +11 -0
- package/src/models/import-detect.ts +39 -0
- package/src/models/import-export.ts +24 -0
- package/src/models/index.ts +22 -14
- package/src/models/model-value.ts +12 -0
- package/src/models/portal-json.ts +44 -0
- package/src/models/rstool-agent.test.ts +300 -147
- package/src/models/rstool-agent.ts +350 -93
- package/src/models/session.ts +8 -5
- package/src/models/tool-contract.ts +81 -42
- package/src/session/batch-apply.test.ts +28 -0
- package/src/session/batch-apply.ts +47 -0
- package/src/session/persistence.ts +56 -0
- package/src/session/session-store.ts +67 -4
- package/src/wrapper/client.ts +23 -0
- package/src/wrapper/stdio-wrapper.ts +59 -49
- package/dist/analysis-JiwOYDKx.d.ts +0 -16
- package/dist/constituenta-Dnd6iToB.d.ts +0 -36
- package/dist/diagnostic-BMYvciz8.d.ts +0 -15
- package/dist/evaluation-CCVYH0wA.d.ts +0 -21
- package/dist/index-uhkmwruf.d.ts +0 -46
- package/dist/rstool-agent-BZi5jO1y.js +0 -158
- package/dist/rstool-agent-BZi5jO1y.js.map +0 -1
- package/dist/rstool-agent-pRaPnZay.d.ts +0 -35
- package/dist/session/session-store.js.map +0 -1
- 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
|
|
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
|
|
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 {
|
|
36
|
+
import { RSToolAgent } from '@rsconcept/rstool';
|
|
35
37
|
|
|
36
38
|
const tool = new RSToolAgent();
|
|
37
|
-
const
|
|
38
|
-
|
|
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
|
-
|
|
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,59 @@ 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 (
|
|
93
|
+
Supported methods (contract `2.0.0`):
|
|
91
94
|
|
|
92
95
|
- `ping`
|
|
93
96
|
- `methods`
|
|
97
|
+
- `ensureSession`
|
|
94
98
|
- `createSession`
|
|
95
|
-
- `
|
|
99
|
+
- `getCurrentSession`
|
|
100
|
+
- `setCurrentSession`
|
|
101
|
+
- `applySchemaPatch`
|
|
102
|
+
- `getSessionState`
|
|
96
103
|
- `analyzeExpression`
|
|
97
|
-
- `getFormState`
|
|
98
104
|
- `listDiagnostics`
|
|
99
105
|
- `commitStep`
|
|
100
106
|
- `exportSession`
|
|
101
|
-
- `
|
|
102
|
-
- `
|
|
103
|
-
- `
|
|
104
|
-
- `setConstituentaValue`
|
|
105
|
-
- `setConstituentaValues`
|
|
106
|
-
- `clearConstituentaValues`
|
|
107
|
+
- `exportPortal`
|
|
108
|
+
- `importData`
|
|
109
|
+
- `setModelValues`
|
|
107
110
|
- `getModelState`
|
|
108
|
-
- `
|
|
109
|
-
- `evaluateConstituenta`
|
|
111
|
+
- `evaluate`
|
|
110
112
|
- `recalculateModel`
|
|
111
113
|
|
|
114
|
+
Params are **flat** at the top level (no `params.input` wrapper). Optional `sessionId` sits alongside method fields.
|
|
115
|
+
|
|
112
116
|
Example request:
|
|
113
117
|
|
|
114
118
|
```json
|
|
115
119
|
{ "id": "1", "method": "createSession", "params": {} }
|
|
116
120
|
```
|
|
117
121
|
|
|
122
|
+
Example schema patch:
|
|
123
|
+
|
|
124
|
+
```json
|
|
125
|
+
{
|
|
126
|
+
"id": "2",
|
|
127
|
+
"method": "applySchemaPatch",
|
|
128
|
+
"params": {
|
|
129
|
+
"items": [
|
|
130
|
+
{ "alias": "X1" },
|
|
131
|
+
{ "alias": "S1", "definitionFormal": "ℬ(X1×X1)" },
|
|
132
|
+
{ "alias": "D1", "definitionFormal": "Pr1(S1)" }
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
118
138
|
Example response:
|
|
119
139
|
|
|
120
140
|
```json
|
|
121
|
-
{ "id": "1", "ok": true, "result": { "sessionId": "...", "contractVersion": "
|
|
141
|
+
{ "id": "1", "ok": true, "result": { "sessionId": "...", "contractVersion": "2.0.0" } }
|
|
122
142
|
```
|
|
123
143
|
|
|
124
144
|
## Typed client example
|
|
@@ -131,16 +151,6 @@ npm run example:client
|
|
|
131
151
|
|
|
132
152
|
File: [`examples/agent-client.ts`](examples/agent-client.ts)
|
|
133
153
|
|
|
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
154
|
## License
|
|
145
155
|
|
|
146
156
|
MIT
|
|
@@ -0,0 +1,70 @@
|
|
|
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, s as ConstituentaState } 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
|
+
/** Internal: resolved patch with previous state for undo bookkeeping. */
|
|
63
|
+
interface ResolvedAgentPatch {
|
|
64
|
+
patch: AgentConstituentaPatch;
|
|
65
|
+
draft: ConstituentaDraft;
|
|
66
|
+
previous?: ConstituentaState;
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { SessionStateDetail as a, SessionSummaryItem as c, ResolvedAgentPatch as i, ApplySchemaPatchInput as n, SessionStateResult as o, ApplySchemaPatchResult as r, SessionSummary as s, AgentConstituentaPatch as t };
|
|
70
|
+
//# sourceMappingURL=agent-workflow-D-PSIb-m.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-
|
|
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-
|
|
2
|
-
import { n as AnalyzeExpressionInput, t as AnalysisResult } from "./analysis-
|
|
3
|
-
import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "./diagnostic-
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import { n as RSToolAgentContract, t as CONTRACT_VERSION } from "./tool-contract-
|
|
10
|
-
import { t as RSToolAgent } from "./rstool-agent-
|
|
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 SessionStateDetail, c as SessionSummaryItem, n as ApplySchemaPatchInput, o as SessionStateResult, r as ApplySchemaPatchResult, s as SessionSummary, t as AgentConstituentaPatch } from "./agent-workflow-D-PSIb-m.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-5_Q44DGE.js";
|
|
10
|
+
import { t as RSToolAgent } from "./rstool-agent-_8bplZnb.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
|
|
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,6 +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-
|
|
3
|
+
import { n as PORTAL_JSON_CONTRACT_VERSION, t as RSToolAgent } from "./rstool-agent-kijHA9ML.js";
|
|
4
4
|
import { CONTRACT_VERSION } from "./models/tool-contract.js";
|
|
5
5
|
import "./models/index.js";
|
|
6
6
|
import { RSToolWrapperClient } from "./wrapper/client.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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-
|
|
2
|
-
import { t as DiagnosticRecord } from "../diagnostic-
|
|
3
|
-
import {
|
|
4
|
-
import { r as SessionState } from "../session-
|
|
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
|
|
package/dist/mappers/types.d.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { a as RSToolErrorDescription } from "../common-
|
|
2
|
-
import { t as AnalysisResult } from "../analysis-
|
|
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 };
|
package/dist/mappers/types.js
CHANGED
|
@@ -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":"
|
|
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-
|
|
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-
|
|
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 SessionStateDetail, c as SessionSummaryItem, i as ResolvedAgentPatch, n as ApplySchemaPatchInput, o as SessionStateResult, r as ApplySchemaPatchResult, s as SessionSummary, t as AgentConstituentaPatch } from "../agent-workflow-D-PSIb-m.js";
|
|
2
|
+
export { AgentConstituentaPatch, ApplySchemaPatchInput, ApplySchemaPatchResult, ResolvedAgentPatch, SessionStateDetail, SessionStateResult, SessionSummary, SessionSummaryItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-
|
|
1
|
+
import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-LLnPhmGa.js";
|
|
2
2
|
export { AnalysisResult, AnalyzeExpressionInput };
|
package/dist/models/common.d.ts
CHANGED
|
@@ -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-
|
|
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
|
|
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-
|
|
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
|
|
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 };
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
import { n as AnalyzeExpressionInput, t as AnalysisResult } from "../analysis-
|
|
3
|
-
import { n as ListDiagnosticsFilters, t as DiagnosticRecord } from "../diagnostic-
|
|
4
|
-
import { i as
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import { n as RSToolAgentContract, t as CONTRACT_VERSION } from "../tool-contract-
|
|
10
|
-
import { t as RSToolAgent } from "../rstool-agent-
|
|
11
|
-
export { type
|
|
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 SessionStateDetail, c as SessionSummaryItem, n as ApplySchemaPatchInput, o as SessionStateResult, r as ApplySchemaPatchResult, s as SessionSummary, t as AgentConstituentaPatch } from "../agent-workflow-D-PSIb-m.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-5_Q44DGE.js";
|
|
10
|
+
import { t as RSToolAgent } from "../rstool-agent-_8bplZnb.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 };
|
package/dist/models/index.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { n as PORTAL_JSON_CONTRACT_VERSION, r as portalItemToDraft, t as RSToolAgent } from "../rstool-agent-kijHA9ML.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-
|
|
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-
|
|
1
|
+
import { t as RSToolAgent } from "../rstool-agent-_8bplZnb.js";
|
|
2
2
|
export { RSToolAgent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as RSToolAgent } from "../rstool-agent-
|
|
1
|
+
import { t as RSToolAgent } from "../rstool-agent-kijHA9ML.js";
|
|
2
2
|
export { RSToolAgent };
|
package/dist/models/session.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SessionRevision, r as SessionState, t as SessionHandle } from "../session-
|
|
1
|
+
import { n as SessionRevision, r as SessionState, t as SessionHandle } from "../session-ChexW8i7.js";
|
|
2
2
|
export { SessionHandle, SessionRevision, SessionState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RSToolAgentContract, t as CONTRACT_VERSION } from "../tool-contract-
|
|
2
|
-
export { CONTRACT_VERSION, RSToolAgentContract };
|
|
1
|
+
import { n as RSToolAgentContract, r as RSToolAgentOptions, t as CONTRACT_VERSION } from "../tool-contract-5_Q44DGE.js";
|
|
2
|
+
export { CONTRACT_VERSION, RSToolAgentContract, RSToolAgentOptions };
|