@weapp-container/agent 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,592 @@
1
+ export declare class AgentError extends Error {
2
+ constructor(code: any, message: any, options?: {});
3
+ }
4
+ export declare function digestDirectory(root: any, options?: {}): Promise<string>;
5
+ export declare function inspectProject(projectRoot: any): Promise<{
6
+ root: string;
7
+ kind: string;
8
+ packageManager: string;
9
+ sourceRoot: any;
10
+ outputRoot: any;
11
+ pages: any;
12
+ subPackages: any;
13
+ scripts: any;
14
+ appId: any;
15
+ projectConfig: string;
16
+ appJson: string;
17
+ sourceFileCount: number;
18
+ sourceDigest: string;
19
+ compatibility: {
20
+ status: string;
21
+ method: string;
22
+ baseline: any;
23
+ filesScanned: any;
24
+ findings: any[];
25
+ counts: any;
26
+ warnings: any[];
27
+ };
28
+ diagnostics: any[];
29
+ warnings: string[];
30
+ }>;
31
+ export declare function createProject(projectRoot: any, name: any): Promise<{
32
+ projectRoot: string;
33
+ name: string;
34
+ files: string[];
35
+ }>;
36
+ export declare function listProjectFiles(projectRoot: any): Promise<{
37
+ files: string[];
38
+ }>;
39
+ export declare function readProjectFile(projectRoot: any, path: any): Promise<{
40
+ path: any;
41
+ content: string;
42
+ }>;
43
+ export declare function writeProjectFile(projectRoot: any, path: any, content: any): Promise<{
44
+ path: any;
45
+ bytes: number;
46
+ digest: string;
47
+ }>;
48
+ export declare function initProject(projectRoot: any): Promise<{
49
+ configPath: string;
50
+ schemaVersion: number;
51
+ projectRoot: string;
52
+ sourceRoot: any;
53
+ outputRoot: any;
54
+ packageManager: string;
55
+ initializedAt: string;
56
+ }>;
57
+ export declare function runCommand(command: any, args: any, options?: {}): Promise<unknown>;
58
+ export declare function buildProject(projectRoot: any, options?: {}): Promise<{
59
+ project: {
60
+ root: string;
61
+ kind: string;
62
+ packageManager: string;
63
+ sourceRoot: any;
64
+ outputRoot: any;
65
+ pages: any;
66
+ subPackages: any;
67
+ scripts: any;
68
+ appId: any;
69
+ projectConfig: string;
70
+ appJson: string;
71
+ sourceFileCount: number;
72
+ sourceDigest: string;
73
+ compatibility: {
74
+ status: string;
75
+ method: string;
76
+ baseline: any;
77
+ filesScanned: any;
78
+ findings: any[];
79
+ counts: any;
80
+ warnings: any[];
81
+ };
82
+ diagnostics: any[];
83
+ warnings: string[];
84
+ };
85
+ platform: any;
86
+ build: {
87
+ command: string;
88
+ code: any;
89
+ signal: any;
90
+ stdout: any;
91
+ stderr: any;
92
+ };
93
+ pack: any;
94
+ packDirectory: any;
95
+ outputDirectory: string;
96
+ compilerCommit: any;
97
+ sourceDigest: string;
98
+ manifest: any;
99
+ generatedAt: string;
100
+ }>;
101
+ export declare class JobStore {
102
+ constructor(root: any);
103
+ init(): Promise<void>;
104
+ save(job: any): Promise<any>;
105
+ create(kind: any, input?: {}): Promise<{
106
+ schemaVersion: number;
107
+ jobId: `${string}-${string}-${string}-${string}-${string}`;
108
+ projectRoot: any;
109
+ kind: any;
110
+ status: string;
111
+ createdAt: string;
112
+ sourceDigest: any;
113
+ input: {};
114
+ artifacts: any[];
115
+ diagnostics: any[];
116
+ events: any[];
117
+ }>;
118
+ update(job: any, patch: any, event: any): Promise<any>;
119
+ start(kind: any, input: any, operation: any): Promise<{
120
+ schemaVersion: number;
121
+ jobId: `${string}-${string}-${string}-${string}-${string}`;
122
+ projectRoot: any;
123
+ kind: any;
124
+ status: string;
125
+ createdAt: string;
126
+ sourceDigest: any;
127
+ input: {};
128
+ artifacts: any[];
129
+ diagnostics: any[];
130
+ events: any[];
131
+ }>;
132
+ execute(job: any, controller: any, operation: any): Promise<void>;
133
+ status(jobId: any): Promise<any>;
134
+ cancel(jobId: any): Promise<any>;
135
+ events(jobId: any): Promise<any[]>;
136
+ }
137
+ export declare function runPreviewDaemon(options: any): Promise<void>;
138
+ export declare class PreviewStore {
139
+ constructor(root: any);
140
+ status(): Promise<any>;
141
+ start(options?: {}): Promise<any>;
142
+ stop(): Promise<{
143
+ status: string;
144
+ pid?: undefined;
145
+ daemonPid?: undefined;
146
+ } | {
147
+ status: string;
148
+ pid: any;
149
+ daemonPid: any;
150
+ }>;
151
+ request(path: any, options?: {}): Promise<any>;
152
+ }
153
+ export declare function prepareRelease(projectRoot: any, version: any, options?: {}): Promise<any>;
154
+ export declare function commitRelease(projectRoot: any, version: any, options?: {}): Promise<any>;
155
+ export declare function listReleases(projectRoot: any): Promise<{
156
+ current: any;
157
+ releases: any[];
158
+ }>;
159
+ export declare function rollbackRelease(projectRoot: any, version: any, options?: {}): Promise<any>;
160
+ export declare function publishRelease(projectRoot: any, version: any, options?: {}): Promise<{
161
+ releasePath: any;
162
+ schemaVersion: number;
163
+ version: any;
164
+ platform: any;
165
+ status: string;
166
+ command: string;
167
+ uploadedAt: string;
168
+ }>;
169
+ export declare function runScenario(preview: any, scenario?: {}, options?: {}): Promise<{
170
+ schemaVersion: number;
171
+ name: any;
172
+ status: string;
173
+ steps: any[];
174
+ finishedAt: string;
175
+ }>;
176
+ export declare function toolCatalog(): {
177
+ name: string | {
178
+ projectPath: {
179
+ type: string;
180
+ };
181
+ } | {
182
+ projectPath: {
183
+ type: string;
184
+ };
185
+ path: {
186
+ type: string;
187
+ };
188
+ } | {
189
+ projectPath: {
190
+ type: string;
191
+ };
192
+ path: {
193
+ type: string;
194
+ };
195
+ content: {
196
+ type: string;
197
+ };
198
+ } | {
199
+ projectPath: {
200
+ type: string;
201
+ };
202
+ platform: {
203
+ type: string;
204
+ };
205
+ out: {
206
+ type: string;
207
+ };
208
+ wvBin: {
209
+ type: string;
210
+ };
211
+ timeoutMs: {
212
+ type: string;
213
+ };
214
+ } | {
215
+ projectPath: {
216
+ type: string;
217
+ };
218
+ packDirectory: {
219
+ type: string;
220
+ };
221
+ hostFixtures: {
222
+ type: string;
223
+ };
224
+ wvBin: {
225
+ type: string;
226
+ };
227
+ surface: {
228
+ type: string;
229
+ };
230
+ renderer: {
231
+ type: string;
232
+ };
233
+ port: {
234
+ type: string;
235
+ };
236
+ timeoutMs: {
237
+ type: string;
238
+ };
239
+ simulatorCommand: {
240
+ type: string;
241
+ };
242
+ simulatorPrefix: {
243
+ type: string;
244
+ items: {
245
+ type: string;
246
+ };
247
+ };
248
+ } | {
249
+ projectPath: {
250
+ type: string;
251
+ };
252
+ resource: {
253
+ type: string;
254
+ };
255
+ } | {
256
+ projectPath: {
257
+ type: string;
258
+ };
259
+ scenario: {
260
+ type: string;
261
+ };
262
+ } | {
263
+ projectPath: {
264
+ type: string;
265
+ };
266
+ jobId: {
267
+ type: string;
268
+ };
269
+ } | {
270
+ projectPath: {
271
+ type: string;
272
+ };
273
+ version: {
274
+ type: string;
275
+ };
276
+ } | {
277
+ projectPath: {
278
+ type: string;
279
+ };
280
+ version: {
281
+ type: string;
282
+ };
283
+ confirmed: {
284
+ type: string;
285
+ };
286
+ } | {
287
+ projectPath: {
288
+ type: string;
289
+ };
290
+ version: {
291
+ type: string;
292
+ };
293
+ platform: {
294
+ type: string;
295
+ };
296
+ description: {
297
+ type: string;
298
+ };
299
+ privateKeyPath: {
300
+ type: string;
301
+ };
302
+ wvBin: {
303
+ type: string;
304
+ };
305
+ timeoutMs: {
306
+ type: string;
307
+ };
308
+ confirmed: {
309
+ type: string;
310
+ };
311
+ };
312
+ description: string | {
313
+ projectPath: {
314
+ type: string;
315
+ };
316
+ } | {
317
+ projectPath: {
318
+ type: string;
319
+ };
320
+ path: {
321
+ type: string;
322
+ };
323
+ } | {
324
+ projectPath: {
325
+ type: string;
326
+ };
327
+ path: {
328
+ type: string;
329
+ };
330
+ content: {
331
+ type: string;
332
+ };
333
+ } | {
334
+ projectPath: {
335
+ type: string;
336
+ };
337
+ platform: {
338
+ type: string;
339
+ };
340
+ out: {
341
+ type: string;
342
+ };
343
+ wvBin: {
344
+ type: string;
345
+ };
346
+ timeoutMs: {
347
+ type: string;
348
+ };
349
+ } | {
350
+ projectPath: {
351
+ type: string;
352
+ };
353
+ packDirectory: {
354
+ type: string;
355
+ };
356
+ hostFixtures: {
357
+ type: string;
358
+ };
359
+ wvBin: {
360
+ type: string;
361
+ };
362
+ surface: {
363
+ type: string;
364
+ };
365
+ renderer: {
366
+ type: string;
367
+ };
368
+ port: {
369
+ type: string;
370
+ };
371
+ timeoutMs: {
372
+ type: string;
373
+ };
374
+ simulatorCommand: {
375
+ type: string;
376
+ };
377
+ simulatorPrefix: {
378
+ type: string;
379
+ items: {
380
+ type: string;
381
+ };
382
+ };
383
+ } | {
384
+ projectPath: {
385
+ type: string;
386
+ };
387
+ resource: {
388
+ type: string;
389
+ };
390
+ } | {
391
+ projectPath: {
392
+ type: string;
393
+ };
394
+ scenario: {
395
+ type: string;
396
+ };
397
+ } | {
398
+ projectPath: {
399
+ type: string;
400
+ };
401
+ jobId: {
402
+ type: string;
403
+ };
404
+ } | {
405
+ projectPath: {
406
+ type: string;
407
+ };
408
+ version: {
409
+ type: string;
410
+ };
411
+ } | {
412
+ projectPath: {
413
+ type: string;
414
+ };
415
+ version: {
416
+ type: string;
417
+ };
418
+ confirmed: {
419
+ type: string;
420
+ };
421
+ } | {
422
+ projectPath: {
423
+ type: string;
424
+ };
425
+ version: {
426
+ type: string;
427
+ };
428
+ platform: {
429
+ type: string;
430
+ };
431
+ description: {
432
+ type: string;
433
+ };
434
+ privateKeyPath: {
435
+ type: string;
436
+ };
437
+ wvBin: {
438
+ type: string;
439
+ };
440
+ timeoutMs: {
441
+ type: string;
442
+ };
443
+ confirmed: {
444
+ type: string;
445
+ };
446
+ };
447
+ inputSchema: {
448
+ type: string;
449
+ properties: string | {
450
+ projectPath: {
451
+ type: string;
452
+ };
453
+ } | {
454
+ projectPath: {
455
+ type: string;
456
+ };
457
+ path: {
458
+ type: string;
459
+ };
460
+ } | {
461
+ projectPath: {
462
+ type: string;
463
+ };
464
+ path: {
465
+ type: string;
466
+ };
467
+ content: {
468
+ type: string;
469
+ };
470
+ } | {
471
+ projectPath: {
472
+ type: string;
473
+ };
474
+ platform: {
475
+ type: string;
476
+ };
477
+ out: {
478
+ type: string;
479
+ };
480
+ wvBin: {
481
+ type: string;
482
+ };
483
+ timeoutMs: {
484
+ type: string;
485
+ };
486
+ } | {
487
+ projectPath: {
488
+ type: string;
489
+ };
490
+ packDirectory: {
491
+ type: string;
492
+ };
493
+ hostFixtures: {
494
+ type: string;
495
+ };
496
+ wvBin: {
497
+ type: string;
498
+ };
499
+ surface: {
500
+ type: string;
501
+ };
502
+ renderer: {
503
+ type: string;
504
+ };
505
+ port: {
506
+ type: string;
507
+ };
508
+ timeoutMs: {
509
+ type: string;
510
+ };
511
+ simulatorCommand: {
512
+ type: string;
513
+ };
514
+ simulatorPrefix: {
515
+ type: string;
516
+ items: {
517
+ type: string;
518
+ };
519
+ };
520
+ } | {
521
+ projectPath: {
522
+ type: string;
523
+ };
524
+ resource: {
525
+ type: string;
526
+ };
527
+ } | {
528
+ projectPath: {
529
+ type: string;
530
+ };
531
+ scenario: {
532
+ type: string;
533
+ };
534
+ } | {
535
+ projectPath: {
536
+ type: string;
537
+ };
538
+ jobId: {
539
+ type: string;
540
+ };
541
+ } | {
542
+ projectPath: {
543
+ type: string;
544
+ };
545
+ version: {
546
+ type: string;
547
+ };
548
+ } | {
549
+ projectPath: {
550
+ type: string;
551
+ };
552
+ version: {
553
+ type: string;
554
+ };
555
+ confirmed: {
556
+ type: string;
557
+ };
558
+ } | {
559
+ projectPath: {
560
+ type: string;
561
+ };
562
+ version: {
563
+ type: string;
564
+ };
565
+ platform: {
566
+ type: string;
567
+ };
568
+ description: {
569
+ type: string;
570
+ };
571
+ privateKeyPath: {
572
+ type: string;
573
+ };
574
+ wvBin: {
575
+ type: string;
576
+ };
577
+ timeoutMs: {
578
+ type: string;
579
+ };
580
+ confirmed: {
581
+ type: string;
582
+ };
583
+ };
584
+ additionalProperties: boolean;
585
+ };
586
+ }[];
587
+ export declare function callTool(name: any, args?: {}): Promise<any>;
588
+ export declare function serveMcp(projectRoot?: string, input?: AsyncIterable<{
589
+ toString(): string;
590
+ }>, output?: {
591
+ write(chunk: string): unknown;
592
+ }): Promise<void>;