@hncode/hncode-sdk 0.8.2 → 0.8.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/package.json +1 -1
- package/targets.d.ts +27 -1
- package/targets.js +27 -1
package/package.json
CHANGED
package/targets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// GENERATED by scripts/gen-targets.mjs — do not edit by hand.
|
|
2
|
-
//
|
|
2
|
+
// 1002 patchable symbols across 97 files.
|
|
3
3
|
|
|
4
4
|
/** A symbol a plugin may pass to `api.patch(target, handler)`. */
|
|
5
5
|
export type PatchTarget =
|
|
@@ -28,7 +28,9 @@ export type PatchTarget =
|
|
|
28
28
|
| "agent.js#Agent.usedTokens"
|
|
29
29
|
| "agent.js#canSplitAfter"
|
|
30
30
|
| "agent.js#formatEditDiffForModel"
|
|
31
|
+
| "agent.js#needsThinkingTags"
|
|
31
32
|
| "agent.js#SYSTEM_PROMPT"
|
|
33
|
+
| "agent.js#THINKING_TAGS_INSTRUCTION"
|
|
32
34
|
| "animate.js#ANIM_FPS"
|
|
33
35
|
| "animate.js#bandCharsFor"
|
|
34
36
|
| "animate.js#breatheColour"
|
|
@@ -37,6 +39,8 @@ export type PatchTarget =
|
|
|
37
39
|
| "animate.js#ENTRY_EXIT_CHARS"
|
|
38
40
|
| "animate.js#FRAME_MS"
|
|
39
41
|
| "animate.js#framesPerChar"
|
|
42
|
+
| "animate.js#GLINT_LIFT"
|
|
43
|
+
| "animate.js#glintFor"
|
|
40
44
|
| "animate.js#LIGHT_FRACTION"
|
|
41
45
|
| "animate.js#lightAt"
|
|
42
46
|
| "animate.js#lightMargin"
|
|
@@ -197,6 +201,7 @@ export type PatchTarget =
|
|
|
197
201
|
| "config.js#saveConfig"
|
|
198
202
|
| "config.js#setConfigBool"
|
|
199
203
|
| "config.js#setConfigString"
|
|
204
|
+
| "config.js#systemLanguage"
|
|
200
205
|
| "config.js#tomlPort"
|
|
201
206
|
| "config.js#upsertModel"
|
|
202
207
|
| "config.js#usageCost"
|
|
@@ -387,18 +392,33 @@ export type PatchTarget =
|
|
|
387
392
|
| "markdown.js#mathCellHeight"
|
|
388
393
|
| "markdown.js#mathImageCapable"
|
|
389
394
|
| "markdown.js#MD_RENDER_VERSION"
|
|
395
|
+
| "markdown.js#onMermaidReady"
|
|
390
396
|
| "markdown.js#placeTex"
|
|
391
397
|
| "markdown.js#renderMdIncremental"
|
|
392
398
|
| "markdown.js#renderMdText"
|
|
393
399
|
| "markdown.js#renderTable"
|
|
394
400
|
| "markdown.js#splitBlocks"
|
|
395
401
|
| "markdown.js#stripMathDelimiters"
|
|
402
|
+
| "mcp-server.js#clientConfig"
|
|
403
|
+
| "mcp-server.js#contentBlocks"
|
|
404
|
+
| "mcp-server.js#createHttpServer"
|
|
405
|
+
| "mcp-server.js#externalName"
|
|
406
|
+
| "mcp-server.js#handleLine"
|
|
407
|
+
| "mcp-server.js#handleRequest"
|
|
408
|
+
| "mcp-server.js#internalName"
|
|
409
|
+
| "mcp-server.js#listen"
|
|
410
|
+
| "mcp-server.js#selectableTools"
|
|
411
|
+
| "mcp-server.js#SERVER_INFO"
|
|
412
|
+
| "mcp-server.js#serveStdio"
|
|
413
|
+
| "mcp-server.js#SUPPORTED_PROTOCOL_VERSIONS"
|
|
414
|
+
| "mcp-server.js#toolListPayload"
|
|
396
415
|
| "mcp.js#callTool"
|
|
397
416
|
| "mcp.js#CLIENT_INFO"
|
|
398
417
|
| "mcp.js#CONNECT_TIMEOUT_MS"
|
|
399
418
|
| "mcp.js#connectAll"
|
|
400
419
|
| "mcp.js#connectServer"
|
|
401
420
|
| "mcp.js#createHttpTransport"
|
|
421
|
+
| "mcp.js#createSseTransport"
|
|
402
422
|
| "mcp.js#createStdioTransport"
|
|
403
423
|
| "mcp.js#describeServers"
|
|
404
424
|
| "mcp.js#disconnectAll"
|
|
@@ -408,12 +428,17 @@ export type PatchTarget =
|
|
|
408
428
|
| "mcp.js#httpRequest"
|
|
409
429
|
| "mcp.js#loadMcpConfig"
|
|
410
430
|
| "mcp.js#mcpToolName"
|
|
431
|
+
| "mcp.js#normaliseServerDef"
|
|
432
|
+
| "mcp.js#openSseStream"
|
|
411
433
|
| "mcp.js#parseSseForId"
|
|
412
434
|
| "mcp.js#projectMcpFile"
|
|
413
435
|
| "mcp.js#PROTOCOL_VERSION"
|
|
414
436
|
| "mcp.js#request"
|
|
415
437
|
| "mcp.js#setLiveConnections"
|
|
438
|
+
| "mcp.js#sseRequest"
|
|
439
|
+
| "mcp.js#SUPPORTED_PROTOCOL_VERSIONS"
|
|
416
440
|
| "mcp.js#toHncodeSpec"
|
|
441
|
+
| "mcp.js#transportOf"
|
|
417
442
|
| "memory-profile.js#memoryHeadline"
|
|
418
443
|
| "memory-profile.js#profileMemory"
|
|
419
444
|
| "memory-profile.js#renderMemoryProfile"
|
|
@@ -816,6 +841,7 @@ export type PatchTarget =
|
|
|
816
841
|
| "text.js#stripAnsi"
|
|
817
842
|
| "text.js#tailChars"
|
|
818
843
|
| "text.js#visualCol"
|
|
844
|
+
| "text.js#wrapStyled"
|
|
819
845
|
| "text.js#wrapWords"
|
|
820
846
|
| "toml.js#parse"
|
|
821
847
|
| "tool-line.js#formatToolLine"
|
package/targets.js
CHANGED
|
@@ -30,7 +30,9 @@ export const PATCH_TARGETS = [
|
|
|
30
30
|
"agent.js#Agent.usedTokens",
|
|
31
31
|
"agent.js#canSplitAfter",
|
|
32
32
|
"agent.js#formatEditDiffForModel",
|
|
33
|
+
"agent.js#needsThinkingTags",
|
|
33
34
|
"agent.js#SYSTEM_PROMPT",
|
|
35
|
+
"agent.js#THINKING_TAGS_INSTRUCTION",
|
|
34
36
|
"animate.js#ANIM_FPS",
|
|
35
37
|
"animate.js#bandCharsFor",
|
|
36
38
|
"animate.js#breatheColour",
|
|
@@ -39,6 +41,8 @@ export const PATCH_TARGETS = [
|
|
|
39
41
|
"animate.js#ENTRY_EXIT_CHARS",
|
|
40
42
|
"animate.js#FRAME_MS",
|
|
41
43
|
"animate.js#framesPerChar",
|
|
44
|
+
"animate.js#GLINT_LIFT",
|
|
45
|
+
"animate.js#glintFor",
|
|
42
46
|
"animate.js#LIGHT_FRACTION",
|
|
43
47
|
"animate.js#lightAt",
|
|
44
48
|
"animate.js#lightMargin",
|
|
@@ -199,6 +203,7 @@ export const PATCH_TARGETS = [
|
|
|
199
203
|
"config.js#saveConfig",
|
|
200
204
|
"config.js#setConfigBool",
|
|
201
205
|
"config.js#setConfigString",
|
|
206
|
+
"config.js#systemLanguage",
|
|
202
207
|
"config.js#tomlPort",
|
|
203
208
|
"config.js#upsertModel",
|
|
204
209
|
"config.js#usageCost",
|
|
@@ -389,18 +394,33 @@ export const PATCH_TARGETS = [
|
|
|
389
394
|
"markdown.js#mathCellHeight",
|
|
390
395
|
"markdown.js#mathImageCapable",
|
|
391
396
|
"markdown.js#MD_RENDER_VERSION",
|
|
397
|
+
"markdown.js#onMermaidReady",
|
|
392
398
|
"markdown.js#placeTex",
|
|
393
399
|
"markdown.js#renderMdIncremental",
|
|
394
400
|
"markdown.js#renderMdText",
|
|
395
401
|
"markdown.js#renderTable",
|
|
396
402
|
"markdown.js#splitBlocks",
|
|
397
403
|
"markdown.js#stripMathDelimiters",
|
|
404
|
+
"mcp-server.js#clientConfig",
|
|
405
|
+
"mcp-server.js#contentBlocks",
|
|
406
|
+
"mcp-server.js#createHttpServer",
|
|
407
|
+
"mcp-server.js#externalName",
|
|
408
|
+
"mcp-server.js#handleLine",
|
|
409
|
+
"mcp-server.js#handleRequest",
|
|
410
|
+
"mcp-server.js#internalName",
|
|
411
|
+
"mcp-server.js#listen",
|
|
412
|
+
"mcp-server.js#selectableTools",
|
|
413
|
+
"mcp-server.js#SERVER_INFO",
|
|
414
|
+
"mcp-server.js#serveStdio",
|
|
415
|
+
"mcp-server.js#SUPPORTED_PROTOCOL_VERSIONS",
|
|
416
|
+
"mcp-server.js#toolListPayload",
|
|
398
417
|
"mcp.js#callTool",
|
|
399
418
|
"mcp.js#CLIENT_INFO",
|
|
400
419
|
"mcp.js#CONNECT_TIMEOUT_MS",
|
|
401
420
|
"mcp.js#connectAll",
|
|
402
421
|
"mcp.js#connectServer",
|
|
403
422
|
"mcp.js#createHttpTransport",
|
|
423
|
+
"mcp.js#createSseTransport",
|
|
404
424
|
"mcp.js#createStdioTransport",
|
|
405
425
|
"mcp.js#describeServers",
|
|
406
426
|
"mcp.js#disconnectAll",
|
|
@@ -410,12 +430,17 @@ export const PATCH_TARGETS = [
|
|
|
410
430
|
"mcp.js#httpRequest",
|
|
411
431
|
"mcp.js#loadMcpConfig",
|
|
412
432
|
"mcp.js#mcpToolName",
|
|
433
|
+
"mcp.js#normaliseServerDef",
|
|
434
|
+
"mcp.js#openSseStream",
|
|
413
435
|
"mcp.js#parseSseForId",
|
|
414
436
|
"mcp.js#projectMcpFile",
|
|
415
437
|
"mcp.js#PROTOCOL_VERSION",
|
|
416
438
|
"mcp.js#request",
|
|
417
439
|
"mcp.js#setLiveConnections",
|
|
440
|
+
"mcp.js#sseRequest",
|
|
441
|
+
"mcp.js#SUPPORTED_PROTOCOL_VERSIONS",
|
|
418
442
|
"mcp.js#toHncodeSpec",
|
|
443
|
+
"mcp.js#transportOf",
|
|
419
444
|
"memory-profile.js#memoryHeadline",
|
|
420
445
|
"memory-profile.js#profileMemory",
|
|
421
446
|
"memory-profile.js#renderMemoryProfile",
|
|
@@ -818,6 +843,7 @@ export const PATCH_TARGETS = [
|
|
|
818
843
|
"text.js#stripAnsi",
|
|
819
844
|
"text.js#tailChars",
|
|
820
845
|
"text.js#visualCol",
|
|
846
|
+
"text.js#wrapStyled",
|
|
821
847
|
"text.js#wrapWords",
|
|
822
848
|
"toml.js#parse",
|
|
823
849
|
"tool-line.js#formatToolLine",
|
|
@@ -989,4 +1015,4 @@ export const PATCH_TARGET_SET = new Set(PATCH_TARGETS);
|
|
|
989
1015
|
/** True when `target` names a real, patchable symbol. */
|
|
990
1016
|
export function isPatchTarget(target) { return PATCH_TARGET_SET.has(String(target)); }
|
|
991
1017
|
|
|
992
|
-
export const GENERATED_FROM = "hncode src/ (
|
|
1018
|
+
export const GENERATED_FROM = "hncode src/ (97 files, 1002 symbols)";
|