@tryvira/opencode 0.1.61 → 0.1.62
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/index.js +10 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -262,6 +262,10 @@ var ViraClient = class {
|
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
+
/** Canonical verb-noun name; connectOnce remains for source compatibility. */
|
|
266
|
+
connectAiSystem(input) {
|
|
267
|
+
return this.connectOnce(input);
|
|
268
|
+
}
|
|
265
269
|
observe(event, options = {}) {
|
|
266
270
|
buildObservationRequest(event);
|
|
267
271
|
return (async () => {
|
|
@@ -291,6 +295,12 @@ var ViraClient = class {
|
|
|
291
295
|
feedback(event, options = {}) {
|
|
292
296
|
return this.observe({ ...event, eventType: "feedback.user" }, options);
|
|
293
297
|
}
|
|
298
|
+
recordBusinessOutcome(event, options = {}) {
|
|
299
|
+
return this.outcome(event, options);
|
|
300
|
+
}
|
|
301
|
+
recordUserFeedback(event, options = {}) {
|
|
302
|
+
return this.feedback(event, options);
|
|
303
|
+
}
|
|
294
304
|
observeBatch(events, options = {}) {
|
|
295
305
|
if (!Array.isArray(events) || events.length < 1 || events.length > 100)
|
|
296
306
|
throw new Error("SDK_OBSERVATION_BATCH_INVALID");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/opencode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"description": "OpenCode host lifecycle integration for Vira",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"pack:check": "npm run build && node ../../scripts/opencode-plugin-smoke.mjs && node ../../scripts/opencode-plugin-host-acceptance.mjs"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@tryvira/sdk": "0.1.
|
|
19
|
+
"@tryvira/sdk": "0.1.68"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": "^4.0.0"
|