@chatu-ai/builder-sdk-mock 0.9.2 → 0.9.4
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 +5 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -108,6 +108,11 @@ export function createMockBuilderClient(script) {
|
|
|
108
108
|
yield { type: 'result', result: { ok: true, remoteUrl: input.remoteUrl, branch: input.branch ?? 'main', sha: 'deadbeefcafe', output: 'mock push ok', webUrl: input.remoteUrl.replace(/\.git$/, '') } };
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
+
exec: async function* (_id, command) {
|
|
112
|
+
yield { type: 'log', line: `$ ${command}` };
|
|
113
|
+
yield { type: 'log', line: 'mock output' };
|
|
114
|
+
yield { type: 'result', result: { ok: true, code: 0, durationMs: 12 } };
|
|
115
|
+
},
|
|
111
116
|
data: {
|
|
112
117
|
kv: {
|
|
113
118
|
list: async () => ({ ok: true, keys: ['todos:1', 'todos:2', 'views'], nextCursor: null }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatu-ai/builder-sdk-mock",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Mock BuilderClient for @chatu-ai/builder-sdk: scripted event replay with latency & disconnect injection",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"node": ">=18"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@chatu-ai/builder-sdk": "0.9.
|
|
44
|
+
"@chatu-ai/builder-sdk": "0.9.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"typescript": "^5.7.0",
|