@mindstudio-ai/agent 0.0.18 → 0.0.20
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/dist/cli.js +23 -15
- package/dist/index.d.ts +83 -2
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/llms.txt +10 -0
- package/package.json +9 -1
package/llms.txt
CHANGED
|
@@ -243,6 +243,16 @@ Delete a single document from a data source.
|
|
|
243
243
|
- Input: `{ dataSourceId: string, documentId: string }`
|
|
244
244
|
- Output: `unknown`
|
|
245
245
|
|
|
246
|
+
#### detectChanges
|
|
247
|
+
Detect changes between runs by comparing current input against previously stored state. Routes execution based on whether a change occurred.
|
|
248
|
+
- Persists state across runs using a global variable keyed to the step ID.
|
|
249
|
+
- Two modes: "comparison" (default) uses strict string inequality; "ai" uses an LLM to determine if a meaningful change occurred.
|
|
250
|
+
- First run always treats the value as "changed" since there is no previous state.
|
|
251
|
+
- Each mode supports transitions to different steps/workflows for the "changed" and "unchanged" paths.
|
|
252
|
+
- AI mode bills normally for the LLM call.
|
|
253
|
+
- Input: `{ mode: "ai" | "comparison", input: string, prompt?: string, modelOverride?: { model: string, temperature: number, maxResponseTokens: number, ignorePreamble?: boolean, userMessagePreprocessor?: { dataSource?: string, messageTemplate?: string, maxResults?: number, enabled?: boolean, shouldInherit?: boolean }, preamble?: string, multiModelEnabled?: boolean, editResponseEnabled?: boolean, config?: object }, previousValueVariable?: string, changedStepId?: string, changedWorkflowId?: string, unchangedStepId?: string, unchangedWorkflowId?: string }`
|
|
254
|
+
- Output: `{ hasChanged: boolean, currentValue: string, previousValue: string, isFirstRun: boolean }`
|
|
255
|
+
|
|
246
256
|
#### detectPII
|
|
247
257
|
Scan text for personally identifiable information using Microsoft Presidio.
|
|
248
258
|
- In workflow mode, transitions to detectedStepId if PII is found, notDetectedStepId otherwise.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindstudio-ai/agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "TypeScript SDK for MindStudio direct step execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -51,6 +51,14 @@
|
|
|
51
51
|
},
|
|
52
52
|
"author": "MindStudio <support@mindstudio.ai> (https://mindstudio.ai)",
|
|
53
53
|
"license": "MIT",
|
|
54
|
+
"browser": {
|
|
55
|
+
"fs": false,
|
|
56
|
+
"path": false,
|
|
57
|
+
"os": false,
|
|
58
|
+
"node:fs": false,
|
|
59
|
+
"node:path": false,
|
|
60
|
+
"node:os": false
|
|
61
|
+
},
|
|
54
62
|
"sideEffects": false,
|
|
55
63
|
"devDependencies": {
|
|
56
64
|
"@eslint/js": "^10.0.1",
|