@wowok/agent-mcp 3.1.6 → 3.1.7
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/harness/recover.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/schema/call/base.d.ts +4 -0
- package/dist/schema/call/bridge.d.ts +1 -0
- package/dist/schema/call/error-codes.d.ts +1 -1
- package/dist/schema/call/error-codes.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/local/index.d.ts +8 -0
- package/dist/schema/local/wip.d.ts +73 -0
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/operations.d.ts +18 -0
- package/dist/schema/operations.js +1 -1
- package/dist/schema/query/index.d.ts +3 -3
- package/dist/schemas/account_operation.output.json +1 -0
- package/dist/schemas/bridge_operation.output.json +1 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_history_operation.output.json +1 -0
- package/dist/schemas/local_info_operation.output.json +1 -0
- package/dist/schemas/local_mark_operation.output.json +1 -0
- package/dist/schemas/onchain_operations.output.json +1 -0
- package/dist/schemas/wip_file.output.json +221 -0
- package/dist/schemas/wip_file.schema.json +125 -0
- package/dist/tools/handlers/wip-upload.d.ts +22 -0
- package/dist/tools/handlers/wip-upload.js +1 -0
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/registry/files.js +1 -1
- package/dist/tools/wip-deploy-assist.js +1 -1
- package/package.json +2 -2
|
@@ -167,6 +167,28 @@ export declare const Wip2Html_InputSchema: z.ZodObject<{
|
|
|
167
167
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
168
168
|
}, z.core.$strip>>;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
|
+
export declare const WipStorageKindSchema: z.ZodUnion<readonly [z.ZodLiteral<"store">, z.ZodLiteral<"custom">]>;
|
|
171
|
+
export declare const WipStoredFileSchema: z.ZodObject<{
|
|
172
|
+
hash: z.ZodString;
|
|
173
|
+
name: z.ZodOptional<z.ZodString>;
|
|
174
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
url: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const WipStoredFileListSchema: z.ZodArray<z.ZodObject<{
|
|
179
|
+
hash: z.ZodString;
|
|
180
|
+
name: z.ZodOptional<z.ZodString>;
|
|
181
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
url: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
export declare const UploadWip_InputSchema: z.ZodObject<{
|
|
186
|
+
wipFilePath: z.ZodString;
|
|
187
|
+
account: z.ZodOptional<z.ZodString>;
|
|
188
|
+
storage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"store">, z.ZodLiteral<"custom">]>>;
|
|
189
|
+
customBaseUrl: z.ZodOptional<z.ZodString>;
|
|
190
|
+
name: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>;
|
|
170
192
|
export declare const GenerateWip_OutputSchema: z.ZodObject<{
|
|
171
193
|
filePath: z.ZodString;
|
|
172
194
|
}, z.core.$strip>;
|
|
@@ -211,4 +233,55 @@ export declare const WipOperationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
211
233
|
type: z.ZodLiteral<"wip2html">;
|
|
212
234
|
filePath: z.ZodOptional<z.ZodString>;
|
|
213
235
|
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
type: z.ZodLiteral<"upload">;
|
|
238
|
+
storage: z.ZodString;
|
|
239
|
+
base_url: z.ZodString;
|
|
240
|
+
address: z.ZodOptional<z.ZodString>;
|
|
241
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
242
|
+
url: z.ZodOptional<z.ZodString>;
|
|
243
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
name: z.ZodOptional<z.ZodString>;
|
|
245
|
+
signed: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
deduplicated: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
error: z.ZodOptional<z.ZodString>;
|
|
248
|
+
message: z.ZodOptional<z.ZodString>;
|
|
249
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
|
+
hash: z.ZodString;
|
|
253
|
+
name: z.ZodOptional<z.ZodString>;
|
|
254
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
url: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, z.core.$strip>>>;
|
|
258
|
+
guidance: z.ZodOptional<z.ZodString>;
|
|
259
|
+
network_advisory: z.ZodOptional<z.ZodString>;
|
|
260
|
+
retention_notice: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
262
|
+
type: z.ZodLiteral<"storage_list">;
|
|
263
|
+
storage: z.ZodString;
|
|
264
|
+
base_url: z.ZodString;
|
|
265
|
+
address: z.ZodOptional<z.ZodString>;
|
|
266
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
269
|
+
hash: z.ZodString;
|
|
270
|
+
name: z.ZodOptional<z.ZodString>;
|
|
271
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
url: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>>>;
|
|
275
|
+
error: z.ZodOptional<z.ZodString>;
|
|
276
|
+
message: z.ZodOptional<z.ZodString>;
|
|
277
|
+
retention_notice: z.ZodOptional<z.ZodString>;
|
|
278
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
279
|
+
type: z.ZodLiteral<"storage_delete">;
|
|
280
|
+
storage: z.ZodString;
|
|
281
|
+
base_url: z.ZodString;
|
|
282
|
+
address: z.ZodOptional<z.ZodString>;
|
|
283
|
+
deleted: z.ZodOptional<z.ZodString>;
|
|
284
|
+
remaining: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
error: z.ZodOptional<z.ZodString>;
|
|
286
|
+
message: z.ZodOptional<z.ZodString>;
|
|
214
287
|
}, z.core.$strip>], "type">;
|
package/dist/schema/local/wip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';export const WipConstraints={'maxImageSize':0x2*0x400*0x400,'maxTotalSize':0xa*0x400*0x400,'maxImageCount':0xa,'maxTextLength':0x2710,'schemaUrl':'https://schema.wip.wowok.net/v1','version':'1.0.0'};export const TextFormatSchema=z['union']([z['literal']('plain')['describe']('Plain\x20text\x20format'),z['literal']('markdown')['describe']('Markdown\x20format'),z['literal']('html')['describe']('HTML\x20format')])['describe']('Text\x20content\x20format');export const ImageMimeTypeSchema=z['union']([z['literal']('image/png')['describe']('PNG\x20image'),z['literal']('image/jpeg')['describe']('JPEG\x20image'),z['literal']('image/gif')['describe']('GIF\x20image'),z['literal']('image/webp')['describe']('WebP\x20image')])['describe']('Image\x20MIME\x20type');export const HashAlgorithmSchema=z['literal']('sha256')['describe']('Hash\x20algorithm,\x20fixed\x20as\x20sha256');export const SignatureAlgorithmSchema=z['literal']('Falcon512')['describe']('Signature\x20algorithm,\x20fixed\x20as\x20Falcon512');export const WipContentSchema=z['object']({'text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Text\x20content'),'format':TextFormatSchema['describe']('Text\x20format')})['describe']('WIP\x20content');export const WipMediaSchema=z['object']({'id':z['string']()['describe']('Unique\x20media\x20file\x20identifier'),'type':ImageMimeTypeSchema['describe']('Media\x20file\x20MIME\x20type'),'data':z['string']()['describe']('Base64\x20encoded\x20file\x20data'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name')})['describe']('WIP\x20media\x20file');export const WipPayloadSchema=z['object']({'content':WipContentSchema['describe']('Text\x20content'),'media':z['array'](WipMediaSchema)['max'](WipConstraints['maxImageCount'])['describe']('Media\x20file\x20array')})['describe']('WIP\x20content\x20payload');export const WipSignatureSchema=z['object']({'value':z['string']()['describe']('Base64\x20encoded\x20signature\x20value'),'publicKey':z['string']()['describe']('Verification\x20public\x20key\x20(Base64\x20encoded,\x20897\x20bytes\x20for\x20Falcon-512)'),'algorithm':SignatureAlgorithmSchema['describe']('Signature\x20algorithm'),'address':z['string']()['optional']()['describe']('Signer\x20address')})['describe']('WIP\x20digital\x20signature');export const WipSignatureArraySchema=z['union']([WipSignatureSchema,z['array'](WipSignatureSchema)])['describe']('Single\x20signature\x20or\x20signature\x20array\x20(supports\x20multi-signature)');export const WipMetaSchema=z['object']({'type':z['literal']('wip')['describe']('File\x20type\x20identifier,\x20fixed\x20as\x20wip'),'version':z['string']()['describe']('Format\x20version\x20number'),'created':z['string']()['describe']('Creation\x20time\x20in\x20ISO\x208601\x20format'),'hash':z['string']()['describe']('SHA-256\x20hash\x20of\x20{\x20wip,\x20payload\x20}\x20as\x20a\x20lowercase\x20hex\x20string\x20(no\x20prefix)'),'algorithm':HashAlgorithmSchema['describe']('Hash\x20algorithm\x20identifier'),'signature':WipSignatureArraySchema['optional']()['describe']('Optional\x20digital\x20signature')})['describe']('WIP\x20metadata');export const WipFileSchema=z['object']({'wip':z['string']()['describe']('Root\x20identifier,\x20value\x20is\x20schema\x20URL'),'payload':WipPayloadSchema['describe']('Content\x20payload'),'meta':WipMetaSchema['describe']('Metadata')})['describe']('Complete\x20WIP\x20file\x20structure');export const ImageSourceSchema=z['object']({'source':z['string']()['describe']('Image\x20source\x20path\x20or\x20URL.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/image.png\x27,\x20\x27C:\x5cUsers\x5cname\x5cimage.jpg\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/image.png\x27,\x20\x27http://site.com/photo.jpg\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:image/png;base64,iVBORw0K...\x27)'),'id':z['string']()['optional']()['describe']('Optional\x20image\x20ID\x20for\x20reference\x20in\x20the\x20WIP\x20content.\x20If\x20not\x20provided,\x20an\x20ID\x20will\x20be\x20auto-generated\x20based\x20on\x20index\x20(e.g.,\x20\x27image_0\x27,\x20\x27image_1\x27)'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name.\x20If\x20not\x20provided,\x20will\x20be\x20extracted\x20from\x20URL\x20path\x20or\x20local\x20file\x20name')})['describe']('Image\x20source\x20for\x20WIP\x20generation');export const WipGenerationOptionsSchema=z['object']({'markdown_text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Markdown\x20formatted\x20text\x20content'),'images':z['array'](ImageSourceSchema)['max'](WipConstraints['maxImageCount'])['optional']()['describe']('Optional\x20image\x20list'),'account':z['string']()['optional']()['describe']('Optional\x20signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20specified,\x20uses\x20Account\x20module\x20for\x20signing')})['required']({'markdown_text':!![]})['describe']('WIP\x20generation\x20options');export const WipSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signature\x20public\x20key'),'address':z['string']()['optional']()['describe']('Address\x20derived\x20from\x20public\x20key'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('Single\x20signature\x20verification\x20result');export const WipVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20passed'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(when\x20verification\x20fails)'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20verification\x20passed'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20verification\x20passed\x20(when\x20signature\x20exists)'),'hasSignature':z['boolean']()['describe']('Whether\x20signature\x20exists'),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details\x20list')})['catchall'](z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()])))['describe']('WIP\x20verification\x20result');export const WipToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20page\x20title'),'theme':z['union']([z['literal']('light'),z['literal']('dark')])['optional']()['describe']('Theme\x20style'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(if\x20specified,\x20saves\x20to\x20file).\x20For\x20single\x20file:\x20saves\x20HTML\x20to\x20this\x20path.\x20For\x20directory:\x20saves\x20all\x20converted\x20HTML\x20files\x20to\x20this\x20directory')})['describe']('WIP\x20to\x20HTML\x20conversion\x20options');export const GenerateWip_InputSchema=z['object']({'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['describe']('Generate\x20WIP\x20file\x20tool\x20input\x20parameters');export const VerifyWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['describe']('Verify\x20WIP\x20file\x20tool\x20input\x20parameters');export const SignWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['describe']('Sign\x20WIP\x20file\x20tool\x20input\x20parameters');export const Wip2Html_InputSchema=z['object']({'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['describe']('WIP\x20to\x20HTML\x20tool\x20input\x20parameters');export const GenerateWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Generated\x20WIP\x20file\x20path')})['describe']('Generate\x20WIP\x20file\x20tool\x20output\x20result');export const VerifyWip_OutputSchema=WipVerificationResultSchema['describe']('Verify\x20WIP\x20file\x20tool\x20output\x20result');export const SignWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Signed\x20WIP\x20file\x20path')})['describe']('Sign\x20WIP\x20file\x20tool\x20output\x20result');export const Wip2Html_OutputSchema=z['object']({'filePath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(single\x20file;\x20defaults\x20to\x20workspace)'),'files':z['array'](z['string']())['optional']()['describe']('Converted\x20file\x20path\x20array\x20(when\x20processing\x20directory)')})['describe']('WIP\x20to\x20HTML\x20tool\x20output\x20result\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)');export const WipOperationOutputSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'filePath':z['string']()}),z['object']({'type':z['literal']('verify'),'valid':z['boolean'](),'error':z['string']()['optional'](),'hashValid':z['boolean'](),'signatureValid':z['boolean']()['optional'](),'hasSignature':z['boolean'](),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()}),z['object']({'type':z['literal']('sign'),'filePath':z['string']()}),z['object']({'type':z['literal']('wip2html'),'filePath':z['string']()['optional'](),'files':z['array'](z['string']())['optional']()})])['describe']('WIP\x20operation\x20output\x20schema\x20with\x20discriminator');
|
|
1
|
+
import{z}from'zod';export const WipConstraints={'maxImageSize':0x2*0x400*0x400,'maxTotalSize':0xa*0x400*0x400,'maxImageCount':0xa,'maxTextLength':0x2710,'schemaUrl':'https://schema.wip.wowok.net/v1','version':'1.0.0'};export const TextFormatSchema=z['union']([z['literal']('plain')['describe']('Plain\x20text\x20format'),z['literal']('markdown')['describe']('Markdown\x20format'),z['literal']('html')['describe']('HTML\x20format')])['describe']('Text\x20content\x20format');export const ImageMimeTypeSchema=z['union']([z['literal']('image/png')['describe']('PNG\x20image'),z['literal']('image/jpeg')['describe']('JPEG\x20image'),z['literal']('image/gif')['describe']('GIF\x20image'),z['literal']('image/webp')['describe']('WebP\x20image')])['describe']('Image\x20MIME\x20type');export const HashAlgorithmSchema=z['literal']('sha256')['describe']('Hash\x20algorithm,\x20fixed\x20as\x20sha256');export const SignatureAlgorithmSchema=z['literal']('Falcon512')['describe']('Signature\x20algorithm,\x20fixed\x20as\x20Falcon512');export const WipContentSchema=z['object']({'text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Text\x20content'),'format':TextFormatSchema['describe']('Text\x20format')})['describe']('WIP\x20content');export const WipMediaSchema=z['object']({'id':z['string']()['describe']('Unique\x20media\x20file\x20identifier'),'type':ImageMimeTypeSchema['describe']('Media\x20file\x20MIME\x20type'),'data':z['string']()['describe']('Base64\x20encoded\x20file\x20data'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name')})['describe']('WIP\x20media\x20file');export const WipPayloadSchema=z['object']({'content':WipContentSchema['describe']('Text\x20content'),'media':z['array'](WipMediaSchema)['max'](WipConstraints['maxImageCount'])['describe']('Media\x20file\x20array')})['describe']('WIP\x20content\x20payload');export const WipSignatureSchema=z['object']({'value':z['string']()['describe']('Base64\x20encoded\x20signature\x20value'),'publicKey':z['string']()['describe']('Verification\x20public\x20key\x20(Base64\x20encoded,\x20897\x20bytes\x20for\x20Falcon-512)'),'algorithm':SignatureAlgorithmSchema['describe']('Signature\x20algorithm'),'address':z['string']()['optional']()['describe']('Signer\x20address')})['describe']('WIP\x20digital\x20signature');export const WipSignatureArraySchema=z['union']([WipSignatureSchema,z['array'](WipSignatureSchema)])['describe']('Single\x20signature\x20or\x20signature\x20array\x20(supports\x20multi-signature)');export const WipMetaSchema=z['object']({'type':z['literal']('wip')['describe']('File\x20type\x20identifier,\x20fixed\x20as\x20wip'),'version':z['string']()['describe']('Format\x20version\x20number'),'created':z['string']()['describe']('Creation\x20time\x20in\x20ISO\x208601\x20format'),'hash':z['string']()['describe']('SHA-256\x20hash\x20of\x20{\x20wip,\x20payload\x20}\x20as\x20a\x20lowercase\x20hex\x20string\x20(no\x20prefix)'),'algorithm':HashAlgorithmSchema['describe']('Hash\x20algorithm\x20identifier'),'signature':WipSignatureArraySchema['optional']()['describe']('Optional\x20digital\x20signature')})['describe']('WIP\x20metadata');export const WipFileSchema=z['object']({'wip':z['string']()['describe']('Root\x20identifier,\x20value\x20is\x20schema\x20URL'),'payload':WipPayloadSchema['describe']('Content\x20payload'),'meta':WipMetaSchema['describe']('Metadata')})['describe']('Complete\x20WIP\x20file\x20structure');export const ImageSourceSchema=z['object']({'source':z['string']()['describe']('Image\x20source\x20path\x20or\x20URL.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/image.png\x27,\x20\x27C:\x5cUsers\x5cname\x5cimage.jpg\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/image.png\x27,\x20\x27http://site.com/photo.jpg\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:image/png;base64,iVBORw0K...\x27)'),'id':z['string']()['optional']()['describe']('Optional\x20image\x20ID\x20for\x20reference\x20in\x20the\x20WIP\x20content.\x20If\x20not\x20provided,\x20an\x20ID\x20will\x20be\x20auto-generated\x20based\x20on\x20index\x20(e.g.,\x20\x27image_0\x27,\x20\x27image_1\x27)'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name.\x20If\x20not\x20provided,\x20will\x20be\x20extracted\x20from\x20URL\x20path\x20or\x20local\x20file\x20name')})['describe']('Image\x20source\x20for\x20WIP\x20generation');export const WipGenerationOptionsSchema=z['object']({'markdown_text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Markdown\x20formatted\x20text\x20content'),'images':z['array'](ImageSourceSchema)['max'](WipConstraints['maxImageCount'])['optional']()['describe']('Optional\x20image\x20list'),'account':z['string']()['optional']()['describe']('Optional\x20signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20specified,\x20uses\x20Account\x20module\x20for\x20signing')})['required']({'markdown_text':!![]})['describe']('WIP\x20generation\x20options');export const WipSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signature\x20public\x20key'),'address':z['string']()['optional']()['describe']('Address\x20derived\x20from\x20public\x20key'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('Single\x20signature\x20verification\x20result');export const WipVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20passed'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(when\x20verification\x20fails)'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20verification\x20passed'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20verification\x20passed\x20(when\x20signature\x20exists)'),'hasSignature':z['boolean']()['describe']('Whether\x20signature\x20exists'),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details\x20list')})['catchall'](z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()])))['describe']('WIP\x20verification\x20result');export const WipToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20page\x20title'),'theme':z['union']([z['literal']('light'),z['literal']('dark')])['optional']()['describe']('Theme\x20style'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(if\x20specified,\x20saves\x20to\x20file).\x20For\x20single\x20file:\x20saves\x20HTML\x20to\x20this\x20path.\x20For\x20directory:\x20saves\x20all\x20converted\x20HTML\x20files\x20to\x20this\x20directory')})['describe']('WIP\x20to\x20HTML\x20conversion\x20options');export const GenerateWip_InputSchema=z['object']({'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['describe']('Generate\x20WIP\x20file\x20tool\x20input\x20parameters');export const VerifyWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['describe']('Verify\x20WIP\x20file\x20tool\x20input\x20parameters');export const SignWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['describe']('Sign\x20WIP\x20file\x20tool\x20input\x20parameters');export const Wip2Html_InputSchema=z['object']({'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['describe']('WIP\x20to\x20HTML\x20tool\x20input\x20parameters');export const WipStorageKindSchema=z['union']([z['literal']('store')['describe']('Official\x20free\x20wip.store.wowok.net\x20storage\x20(zero\x20setup,\x20max\x2010\x20files\x20per\x20account,\x20files\x20retained\x206\x20months).\x20Declaration:\x20free\x20best-effort\x20service\x20—\x20availability\x20and\x20data\x20survival\x20are\x20not\x20guaranteed\x20(force\x20majeure\x20excepted);\x20expired\x20files\x20are\x20deleted\x20ONLY\x20by\x20a\x20manual\x20administrator\x20purge,\x20never\x20automatically'),z['literal']('custom')['describe']('Your\x20own\x20or\x20a\x20third-party\x20wip\x20storage\x20service\x20(recommended:\x20no\x20store\x20quota,\x20full\x20control,\x20permanent\x20self-managed\x20hosting)')])['describe']('Storage\x20backend\x20selection.\x20WIP\x20files\x20are\x20off-chain\x20and\x20network-independent:\x20the\x20same\x20URL\x20and\x20stored\x20files\x20work\x20on\x20both\x20testnet\x20and\x20mainnet');export const WipStoredFileSchema=z['object']({'hash':z['string']()['describe']('WIP\x20file\x20hash\x20(meta.hash)'),'name':z['string']()['optional']()['describe']('Optional\x20display\x20name'),'size':z['number']()['optional']()['describe']('File\x20size\x20in\x20bytes'),'created_at':z['number']()['optional']()['describe']('Upload\x20time\x20(ms\x20epoch)'),'url':z['string']()['optional']()['describe']('Public\x20download\x20URL')})['describe']('A\x20WIP\x20file\x20stored\x20on\x20a\x20wip\x20storage\x20service');export const WipStoredFileListSchema=z['array'](WipStoredFileSchema)['describe']('Stored\x20WIP\x20file\x20list');export const UploadWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20to\x20upload.\x20Supports:\x201)\x20Local\x20file\x20path,\x202)\x20Network\x20URL,\x203)\x20Data\x20URL'),'account':z['string']()['optional']()['describe']('Account\x20used\x20to\x20sign\x20the\x20upload\x20(name\x20or\x20address).\x20If\x20omitted,\x20uses\x20the\x20default\x20account'),'storage':WipStorageKindSchema['optional'](),'customBaseUrl':z['string']()['optional']()['describe']('Base\x20URL\x20of\x20your\x20own\x20or\x20a\x20third-party\x20wip\x20storage\x20service\x20(required\x20when\x20storage=\x27custom\x27),\x20e.g.\x20\x27https://wip.example.com\x27'),'name':z['string']()['optional']()['describe']('Optional\x20display\x20name\x20recorded\x20with\x20the\x20stored\x20file')})['describe']('Upload\x20WIP\x20file\x20to\x20a\x20wip\x20storage\x20service\x20tool\x20input\x20parameters');export const GenerateWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Generated\x20WIP\x20file\x20path')})['describe']('Generate\x20WIP\x20file\x20tool\x20output\x20result');export const VerifyWip_OutputSchema=WipVerificationResultSchema['describe']('Verify\x20WIP\x20file\x20tool\x20output\x20result');export const SignWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Signed\x20WIP\x20file\x20path')})['describe']('Sign\x20WIP\x20file\x20tool\x20output\x20result');export const Wip2Html_OutputSchema=z['object']({'filePath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(single\x20file;\x20defaults\x20to\x20workspace)'),'files':z['array'](z['string']())['optional']()['describe']('Converted\x20file\x20path\x20array\x20(when\x20processing\x20directory)')})['describe']('WIP\x20to\x20HTML\x20tool\x20output\x20result\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)');export const WipOperationOutputSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'filePath':z['string']()}),z['object']({'type':z['literal']('verify'),'valid':z['boolean'](),'error':z['string']()['optional'](),'hashValid':z['boolean'](),'signatureValid':z['boolean']()['optional'](),'hasSignature':z['boolean'](),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()}),z['object']({'type':z['literal']('sign'),'filePath':z['string']()}),z['object']({'type':z['literal']('wip2html'),'filePath':z['string']()['optional'](),'files':z['array'](z['string']())['optional']()}),z['object']({'type':z['literal']('upload'),'storage':z['string'](),'base_url':z['string']()['describe']('Storage\x20service\x20base\x20URL'),'address':z['string']()['optional']()['describe']('Signing\x20account\x20address'),'hash':z['string']()['optional']()['describe']('Stored\x20file\x20hash\x20(meta.hash)'),'url':z['string']()['optional']()['describe']('Public\x20download\x20URL'),'size':z['number']()['optional'](),'name':z['string']()['optional'](),'signed':z['boolean']()['optional']()['describe']('Whether\x20the\x20WIP\x20file\x20carries\x20embedded\x20signatures'),'deduplicated':z['boolean']()['optional']()['describe']('True\x20when\x20the\x20same\x20account\x20had\x20already\x20stored\x20this\x20hash'),'error':z['string']()['optional']()['describe']('Error\x20code\x20(e.g.\x20QUOTA_EXCEEDED\x20when\x20the\x20store\x20account\x20file\x20limit\x20is\x20reached)'),'message':z['string']()['optional'](),'count':z['number']()['optional']()['describe']('Files\x20currently\x20stored\x20by\x20the\x20account'),'limit':z['number']()['optional']()['describe']('Per-account\x20file\x20limit\x20on\x20the\x20storage\x20service'),'files':WipStoredFileListSchema['optional']()['describe']('Current\x20stored\x20files\x20(provided\x20on\x20QUOTA_EXCEEDED\x20for\x20deletion)'),'guidance':z['string']()['optional']()['describe']('Actionable\x20guidance\x20(delete\x20files\x20or\x20switch\x20to\x20self-hosted\x20storage)'),'network_advisory':z['string']()['optional']()['describe']('Generic\x20advisory\x20for\x20large,\x20network-sensitive\x20WIP\x20files\x20(size\x20reduction,\x20retry,\x20reachability\x20check)'),'retention_notice':z['string']()['optional']()['describe']('Free-store\x20terms\x20(storage=\x27store\x27\x20only):\x206-month\x20retention,\x20best-effort/force-majeure\x20disclaimer,\x20no\x20automatic\x20deletion')}),z['object']({'type':z['literal']('storage_list'),'storage':z['string'](),'base_url':z['string'](),'address':z['string']()['optional'](),'count':z['number']()['optional'](),'limit':z['number']()['optional'](),'files':WipStoredFileListSchema['optional'](),'error':z['string']()['optional'](),'message':z['string']()['optional'](),'retention_notice':z['string']()['optional']()['describe']('Free-store\x20terms\x20(storage=\x27store\x27\x20only):\x206-month\x20retention,\x20best-effort/force-majeure\x20disclaimer,\x20no\x20automatic\x20deletion')}),z['object']({'type':z['literal']('storage_delete'),'storage':z['string'](),'base_url':z['string'](),'address':z['string']()['optional'](),'deleted':z['string']()['optional']()['describe']('Hash\x20of\x20the\x20deleted\x20file'),'remaining':z['number']()['optional']()['describe']('Files\x20remaining\x20for\x20the\x20account\x20after\x20deletion'),'error':z['string']()['optional'](),'message':z['string']()['optional']()})])['describe']('WIP\x20operation\x20output\x20schema\x20with\x20discriminator');
|
|
@@ -2854,6 +2854,24 @@ export declare const WipOperationsSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
2854
2854
|
theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
2855
2855
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
2856
2856
|
}, z.core.$strip>>;
|
|
2857
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2858
|
+
type: z.ZodLiteral<"upload">;
|
|
2859
|
+
wipFilePath: z.ZodString;
|
|
2860
|
+
account: z.ZodOptional<z.ZodString>;
|
|
2861
|
+
storage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"store">, z.ZodLiteral<"custom">]>>;
|
|
2862
|
+
customBaseUrl: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2864
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2865
|
+
type: z.ZodLiteral<"storage_list">;
|
|
2866
|
+
account: z.ZodOptional<z.ZodString>;
|
|
2867
|
+
storage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"store">, z.ZodLiteral<"custom">]>>;
|
|
2868
|
+
customBaseUrl: z.ZodOptional<z.ZodString>;
|
|
2869
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2870
|
+
type: z.ZodLiteral<"storage_delete">;
|
|
2871
|
+
hash: z.ZodString;
|
|
2872
|
+
account: z.ZodOptional<z.ZodString>;
|
|
2873
|
+
storage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"store">, z.ZodLiteral<"custom">]>>;
|
|
2874
|
+
customBaseUrl: z.ZodOptional<z.ZodString>;
|
|
2857
2875
|
}, z.core.$strict>], "type">>;
|
|
2858
2876
|
export declare const OnchainTableDataSchema: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2859
2877
|
query_type: z.ZodLiteral<"onchain_table">;
|