interaqt 0.8.12 → 0.8.14
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/agent/.claude/settings.local.json +67 -3
- package/dist/index.js +36 -22
- package/dist/index.js.map +1 -1
- package/dist/runtime/computations/Count.d.ts.map +1 -1
- package/dist/runtime/computations/StateMachine.d.ts.map +1 -1
- package/dist/storage/erstorage/CreationExecutor.d.ts.map +1 -1
- package/dist/storage/erstorage/RecordQueryAgent.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15,9 +15,19 @@
|
|
|
15
15
|
"Read(backend/**)",
|
|
16
16
|
"Write(backend/**)",
|
|
17
17
|
"Edit(backend/**)",
|
|
18
|
+
"Read(frontend/**)",
|
|
19
|
+
"Write(frontend/**)",
|
|
20
|
+
"Edit(frontend/**)",
|
|
21
|
+
"Edit(backend/**)",
|
|
22
|
+
"Read(integrations/**)",
|
|
23
|
+
"Write(integrations/**)",
|
|
24
|
+
"Edit(integrations/**)",
|
|
18
25
|
"Write(requirements/**)",
|
|
19
26
|
"Edit(requirements/**)",
|
|
20
27
|
"Read(requirements/**)",
|
|
28
|
+
"Write(aggregatedIntegration.ts)",
|
|
29
|
+
"Edit(aggregatedIntegration.ts)",
|
|
30
|
+
"Read(aggregatedIntegration.ts)",
|
|
21
31
|
"Bash(npm run plan)",
|
|
22
32
|
"Bash(npm run test tests/basic.test.ts)",
|
|
23
33
|
"Bash(grep:*)",
|
|
@@ -75,9 +85,63 @@
|
|
|
75
85
|
"Bash(if [ -z \"$VOLC_SECRET_ACCESS_KEY\" ])",
|
|
76
86
|
"Bash(then echo \"VOLC_SECRET_ACCESS_KEY is empty or not set\")",
|
|
77
87
|
"Bash(npm run)",
|
|
78
|
-
"Bash(chmod:*)"
|
|
88
|
+
"Bash(chmod:*)",
|
|
89
|
+
"Bash(npm install:*)",
|
|
90
|
+
"Bash(npx vitest typecheck --run)",
|
|
91
|
+
"Read(//Users/camus/Work/interqat/interaqt-old/agentspace/**)",
|
|
92
|
+
"Read(//Users/camus/Work/interqat/interaqt-old/agentspace/**)",
|
|
93
|
+
"Bash(MODULE=basic)",
|
|
94
|
+
"Bash(jq:*)",
|
|
95
|
+
"Bash(if [[ \"$MODULE\" != \"basic\" ]])",
|
|
96
|
+
"Bash(if [ -f \"docs/basic.phase-1-error-check-report.md\" ])",
|
|
97
|
+
"Bash(then rm \"docs/basic.phase-1-error-check-report.md\")",
|
|
98
|
+
"Bash(else echo \"No existing error report found\")",
|
|
99
|
+
"Bash(rm:*)",
|
|
100
|
+
"Read(//Users/camus/Work/interqat/interaqt-old/examples/**)",
|
|
101
|
+
"Bash(for file in docs/basic.data-design.json docs/basic.computation-analysis.json docs/basic.computation-implementation-plan.json docs/basic.business-rules-and-permission-control-implementation-plan.json)",
|
|
102
|
+
"Bash(do if [ -f \"$file\" ])",
|
|
103
|
+
"Bash(done)",
|
|
104
|
+
"Bash(pgrep:*)",
|
|
105
|
+
"Bash(npm run build:frontend:dev:*)",
|
|
106
|
+
"Read(//Users/camus/Work/interqat/interaqt-old/examples/**)",
|
|
107
|
+
"Bash([:*)",
|
|
108
|
+
"Read(//Users/camus/Work/interqat/interaqt-old/examples/cms/backend/**)",
|
|
109
|
+
"Bash(if [ -f \"/Users/camus/Work/interqat/interaqt-old/examples/lit/docs/basic.task-3-error-check-report.md\" ])",
|
|
110
|
+
"Bash(else echo \"No existing report found\")",
|
|
111
|
+
"Bash(tsc:*)",
|
|
112
|
+
"Bash(timeout 10 npm start)",
|
|
113
|
+
"Bash(ln:*)",
|
|
114
|
+
"Bash(JWT_SECRET=dummy npm run generate-frontend-api)",
|
|
115
|
+
"Bash(npm search:*)",
|
|
116
|
+
"Bash(npm run typecheck)",
|
|
117
|
+
"Bash(paste:*)",
|
|
118
|
+
"Bash(MODULE=chat)",
|
|
119
|
+
"Bash(npm run setup:rocketmq:*)",
|
|
120
|
+
"Bash(npx tsx:*)",
|
|
121
|
+
"Bash(npm start)",
|
|
122
|
+
"Bash(tsx:*)",
|
|
123
|
+
"Bash(xargs kill:*)",
|
|
124
|
+
"Bash(for rel in \"BlendedImageVolcJimengCallRelation\" \"UserBlendedImageRelation\" \"PostBlendedImageRelation\" \"UserImageConsumptionRecordRelation\" \"BlendedImageConsumptionRelation\")",
|
|
125
|
+
"Bash(do echo \"$rel:\")",
|
|
126
|
+
"Bash(npm info @volcengine/openapi)",
|
|
127
|
+
"Bash(else echo \"VOLC_ACCESS_KEY_ID is set to: $VOLC_ACCESS_KEY_ID:0:10...\")",
|
|
128
|
+
"Bash(else echo \"VOLC_SECRET_ACCESS_KEY is set (length: $#VOLC_SECRET_ACCESS_KEY)\")",
|
|
129
|
+
"Bash(if [ -f .env ])",
|
|
130
|
+
"Bash(then cat .env)",
|
|
131
|
+
"Bash(else echo \".env file not found\")",
|
|
132
|
+
"Bash(JIMENG_REQ_KEY=cv_high_aes npx vitest run:*)",
|
|
133
|
+
"Bash(then grep -E \"VOLC_ACCESS_KEY_ID|VOLC_SECRET_ACCESS_KEY\" .env)",
|
|
134
|
+
"Bash(NODE_OPTIONS=\"--max-old-space-size=4096\" npm run test:*)",
|
|
135
|
+
"Bash(git log:*)",
|
|
136
|
+
"Bash(timeout 10 npm run dev:*)",
|
|
137
|
+
"Bash(mv:*)",
|
|
138
|
+
"Bash(timeout 180 npm run test:*)",
|
|
139
|
+
"Bash(npm run plan:integration)"
|
|
79
140
|
],
|
|
80
141
|
"deny": [],
|
|
81
|
-
"ask": []
|
|
142
|
+
"ask": [],
|
|
143
|
+
"additionalDirectories": [
|
|
144
|
+
"/Users/camus/Work/interqat/interaqt-old/examples/boilerplate/backend"
|
|
145
|
+
]
|
|
82
146
|
}
|
|
83
|
-
}
|
|
147
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -3971,19 +3971,26 @@ class De {
|
|
|
3971
3971
|
*/
|
|
3972
3972
|
async preprocessSameRowData(t, e = !1, i, r) {
|
|
3973
3973
|
const s = t.getData();
|
|
3974
|
-
!e && !s.id ? s.id = await this.database.getAutoId(t.recordName) : e && !s.id && (s.id = r.id), e
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3974
|
+
if (!e && !s.id ? s.id = await this.database.getAutoId(t.recordName) : e && !s.id && (s.id = r.id), !e)
|
|
3975
|
+
i?.push({
|
|
3976
|
+
type: "create",
|
|
3977
|
+
recordName: t.recordName,
|
|
3978
|
+
record: {
|
|
3979
|
+
...t.defaultValues,
|
|
3980
|
+
...s
|
|
3981
|
+
}
|
|
3982
|
+
});
|
|
3983
|
+
else if (t.valueAttributes.length) {
|
|
3984
|
+
const n = t.getSameRowFieldAndValue(r), c = this.map.getRecordInfo(t.recordName), l = new Set(c.valueAttributes.map((h) => h.attributeName)), d = { ...t.getData() };
|
|
3985
|
+
n.forEach((h) => {
|
|
3986
|
+
l.has(h.name) && (d[h.name] = h.value);
|
|
3987
|
+
}), i?.push({
|
|
3988
|
+
type: "update",
|
|
3989
|
+
recordName: t.recordName,
|
|
3990
|
+
record: { ...d, id: r.id },
|
|
3991
|
+
oldRecord: r
|
|
3992
|
+
});
|
|
3993
|
+
}
|
|
3987
3994
|
for (let n of t.combinedNewRecords)
|
|
3988
3995
|
s[n.info.attributeName] = {
|
|
3989
3996
|
...s[n.info.attributeName],
|
|
@@ -5223,12 +5230,17 @@ class Je {
|
|
|
5223
5230
|
if (!e)
|
|
5224
5231
|
return this.creationExecutor.preprocessSameRowData(t, e, i, r);
|
|
5225
5232
|
const s = t.getData();
|
|
5226
|
-
e && !s.id && (s.id = r.id), t.valueAttributes.length
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5233
|
+
if (e && !s.id && (s.id = r.id), t.valueAttributes.length) {
|
|
5234
|
+
const n = t.getSameRowFieldAndValue(r), c = this.map.getRecordInfo(t.recordName), l = new Set(c.valueAttributes.map((h) => h.attributeName)), d = { ...t.getData() };
|
|
5235
|
+
n.forEach((h) => {
|
|
5236
|
+
l.has(h.name) && (d[h.name] = h.value);
|
|
5237
|
+
}), i?.push({
|
|
5238
|
+
type: "update",
|
|
5239
|
+
recordName: t.recordName,
|
|
5240
|
+
record: { ...d, id: r.id },
|
|
5241
|
+
oldRecord: r
|
|
5242
|
+
});
|
|
5243
|
+
}
|
|
5232
5244
|
for (let n of t.combinedNewRecords)
|
|
5233
5245
|
s[n.info.attributeName] = {
|
|
5234
5246
|
...s[n.info.attributeName],
|
|
@@ -7133,8 +7145,8 @@ Or if you want to use state name as value, you should not set ${this.dataContext
|
|
|
7133
7145
|
), e !== void 0 || this.initialState.computeValue ? await this.initialState.computeValue.call(this.controller, e, void 0) : this.initialState.name;
|
|
7134
7146
|
}
|
|
7135
7147
|
async computeDirtyRecords(t) {
|
|
7136
|
-
const e = this.transitionFinder.findTransfers(t);
|
|
7137
|
-
return
|
|
7148
|
+
const e = this.transitionFinder.findTransfers(t), i = (await Promise.all(e.map((s) => s.computeTarget.call(this.controller, t)))).flat().filter(Boolean), r = /* @__PURE__ */ new Set();
|
|
7149
|
+
return i.filter((s) => r.has(s.id) ? !1 : (r.add(s.id), !0));
|
|
7138
7150
|
}
|
|
7139
7151
|
async incrementalCompute(t, e, i) {
|
|
7140
7152
|
const r = await this.state.currentState.get(i), s = this.transitionFinder?.findNextState(r, e);
|
|
@@ -7649,7 +7661,9 @@ class Ai {
|
|
|
7649
7661
|
void 0,
|
|
7650
7662
|
this.relationAttributeQuery
|
|
7651
7663
|
))[this.isSource ? "target" : "source"];
|
|
7652
|
-
c["&"] = o
|
|
7664
|
+
c["&"] = o;
|
|
7665
|
+
const l = !!this.callback.call(this.controller, c, r), d = await this.state.isItemMatchCount.get(o);
|
|
7666
|
+
l && !d && (a = a + 1), await this.state.isItemMatchCount.set(o, l);
|
|
7653
7667
|
} else
|
|
7654
7668
|
a = a + 1;
|
|
7655
7669
|
else if (s.type === "delete" && s.recordName === this.relation.name)
|