@hncode/hncode-sdk 0.5.6 → 0.6.5
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 +48 -1
- package/targets.js +48 -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
|
+
// 850 patchable symbols across 76 files.
|
|
3
3
|
|
|
4
4
|
/** A symbol a plugin may pass to `api.patch(target, handler)`. */
|
|
5
5
|
export type PatchTarget =
|
|
@@ -64,9 +64,12 @@ export type PatchTarget =
|
|
|
64
64
|
| "ci.js#trackEvent"
|
|
65
65
|
| "clipboard.js#cleanupPastedImages"
|
|
66
66
|
| "clipboard.js#copyText"
|
|
67
|
+
| "clipboard.js#copyTextAsync"
|
|
68
|
+
| "clipboard.js#imageUrlFromClipboardText"
|
|
67
69
|
| "clipboard.js#pastedImageCount"
|
|
68
70
|
| "clipboard.js#readClipboardContent"
|
|
69
71
|
| "clipboard.js#readClipboardContentAsync"
|
|
72
|
+
| "clipboard.js#readClipboardTextOnly"
|
|
70
73
|
| "clipboard.js#readText"
|
|
71
74
|
| "clipboard.js#stopClipboardHelper"
|
|
72
75
|
| "clipboard.js#warmClipboard"
|
|
@@ -245,6 +248,12 @@ export type PatchTarget =
|
|
|
245
248
|
| "i18n.js#LANGUAGES"
|
|
246
249
|
| "i18n.js#MESSAGES"
|
|
247
250
|
| "i18n.js#t"
|
|
251
|
+
| "image-row.js#encodeImageRow"
|
|
252
|
+
| "image-row.js#IMAGE_MARK"
|
|
253
|
+
| "image-row.js#imageBytes"
|
|
254
|
+
| "image-row.js#isImageRow"
|
|
255
|
+
| "image-row.js#parseImageRow"
|
|
256
|
+
| "image-row.js#SOURCE_TAG"
|
|
248
257
|
| "index.js#main"
|
|
249
258
|
| "index.js#parseArgs"
|
|
250
259
|
| "index.js#parseWebArg"
|
|
@@ -256,6 +265,7 @@ export type PatchTarget =
|
|
|
256
265
|
| "keybindings.js#readOrEmpty"
|
|
257
266
|
| "keybindings.js#resolveKey"
|
|
258
267
|
| "keybindings.js#writeKeybindings"
|
|
268
|
+
| "latex.js#renderLatex"
|
|
259
269
|
| "llm.js#anthropicToolDefs"
|
|
260
270
|
| "llm.js#consumeNonStreaming"
|
|
261
271
|
| "llm.js#LLM._requestTextOnce"
|
|
@@ -420,6 +430,37 @@ export type PatchTarget =
|
|
|
420
430
|
| "schedule.js#readHistory"
|
|
421
431
|
| "schedule.js#validateEntry"
|
|
422
432
|
| "schedule.js#writeHistory"
|
|
433
|
+
| "screen-diff.js#diffScreens"
|
|
434
|
+
| "screen-diff.js#placementKey"
|
|
435
|
+
| "screen-diff.js#placementRows"
|
|
436
|
+
| "screen-diff.js#setImageRegenerator"
|
|
437
|
+
| "screen-diff.js#sixelCursorAdvance"
|
|
438
|
+
| "screen-paint.js#displayWidth"
|
|
439
|
+
| "screen-paint.js#paintRows"
|
|
440
|
+
| "screen-paint.js#screenToRows"
|
|
441
|
+
| "screen-paint.js#stripEscapes"
|
|
442
|
+
| "screen-paint.js#styledRuns"
|
|
443
|
+
| "screen.js#CELL_WIDTH"
|
|
444
|
+
| "screen.js#CharPool.get"
|
|
445
|
+
| "screen.js#CharPool.intern"
|
|
446
|
+
| "screen.js#charWidth"
|
|
447
|
+
| "screen.js#createScreen"
|
|
448
|
+
| "screen.js#pools"
|
|
449
|
+
| "screen.js#rect"
|
|
450
|
+
| "screen.js#rectsOverlap"
|
|
451
|
+
| "screen.js#Screen._mark"
|
|
452
|
+
| "screen.js#Screen.at"
|
|
453
|
+
| "screen.js#Screen.clear"
|
|
454
|
+
| "screen.js#Screen.diffRows"
|
|
455
|
+
| "screen.js#Screen.inBounds"
|
|
456
|
+
| "screen.js#Screen.isSpacer"
|
|
457
|
+
| "screen.js#Screen.reset"
|
|
458
|
+
| "screen.js#Screen.rowCount"
|
|
459
|
+
| "screen.js#Screen.set"
|
|
460
|
+
| "screen.js#Screen.write"
|
|
461
|
+
| "screen.js#StylePool.get"
|
|
462
|
+
| "screen.js#StylePool.intern"
|
|
463
|
+
| "screen.js#unionRect"
|
|
423
464
|
| "session-approvals.js#approvalKey"
|
|
424
465
|
| "session-approvals.js#describeSessionApprovals"
|
|
425
466
|
| "session-approvals.js#forgetApproval"
|
|
@@ -663,6 +704,7 @@ export type PatchTarget =
|
|
|
663
704
|
| "tui.js#csiName"
|
|
664
705
|
| "tui.js#ctrlLetter"
|
|
665
706
|
| "tui.js#cycleMs"
|
|
707
|
+
| "tui.js#deleteHistory"
|
|
666
708
|
| "tui.js#diffFrame"
|
|
667
709
|
| "tui.js#dispatch"
|
|
668
710
|
| "tui.js#editDiffRows"
|
|
@@ -692,7 +734,9 @@ export type PatchTarget =
|
|
|
692
734
|
| "tui.js#makeState"
|
|
693
735
|
| "tui.js#makeThinkingLineForTest"
|
|
694
736
|
| "tui.js#mergeRefreshedModelEntry"
|
|
737
|
+
| "tui.js#messageSignature"
|
|
695
738
|
| "tui.js#metricsSignature"
|
|
739
|
+
| "tui.js#paintCellFrame"
|
|
696
740
|
| "tui.js#pasteMarker"
|
|
697
741
|
| "tui.js#pasteMarkerIdAt"
|
|
698
742
|
| "tui.js#pickerFiltered"
|
|
@@ -701,6 +745,7 @@ export type PatchTarget =
|
|
|
701
745
|
| "tui.js#PLAN_MODE_INSTRUCTION"
|
|
702
746
|
| "tui.js#PLAN_OPEN_TAG"
|
|
703
747
|
| "tui.js#planCompaction"
|
|
748
|
+
| "tui.js#pruneHistory"
|
|
704
749
|
| "tui.js#questionBoxClampedHeight"
|
|
705
750
|
| "tui.js#questionBoxHeight"
|
|
706
751
|
| "tui.js#queuePanelHeight"
|
|
@@ -714,6 +759,8 @@ export type PatchTarget =
|
|
|
714
759
|
| "tui.js#renderChatLines"
|
|
715
760
|
| "tui.js#renderMdIncremental"
|
|
716
761
|
| "tui.js#renderMdText"
|
|
762
|
+
| "tui.js#resetCellFrame"
|
|
763
|
+
| "tui.js#resetShownImages"
|
|
717
764
|
| "tui.js#resolveHoverHit"
|
|
718
765
|
| "tui.js#REST_MS"
|
|
719
766
|
| "tui.js#sanitizeText"
|
package/targets.js
CHANGED
|
@@ -66,9 +66,12 @@ export const PATCH_TARGETS = [
|
|
|
66
66
|
"ci.js#trackEvent",
|
|
67
67
|
"clipboard.js#cleanupPastedImages",
|
|
68
68
|
"clipboard.js#copyText",
|
|
69
|
+
"clipboard.js#copyTextAsync",
|
|
70
|
+
"clipboard.js#imageUrlFromClipboardText",
|
|
69
71
|
"clipboard.js#pastedImageCount",
|
|
70
72
|
"clipboard.js#readClipboardContent",
|
|
71
73
|
"clipboard.js#readClipboardContentAsync",
|
|
74
|
+
"clipboard.js#readClipboardTextOnly",
|
|
72
75
|
"clipboard.js#readText",
|
|
73
76
|
"clipboard.js#stopClipboardHelper",
|
|
74
77
|
"clipboard.js#warmClipboard",
|
|
@@ -247,6 +250,12 @@ export const PATCH_TARGETS = [
|
|
|
247
250
|
"i18n.js#LANGUAGES",
|
|
248
251
|
"i18n.js#MESSAGES",
|
|
249
252
|
"i18n.js#t",
|
|
253
|
+
"image-row.js#encodeImageRow",
|
|
254
|
+
"image-row.js#IMAGE_MARK",
|
|
255
|
+
"image-row.js#imageBytes",
|
|
256
|
+
"image-row.js#isImageRow",
|
|
257
|
+
"image-row.js#parseImageRow",
|
|
258
|
+
"image-row.js#SOURCE_TAG",
|
|
250
259
|
"index.js#main",
|
|
251
260
|
"index.js#parseArgs",
|
|
252
261
|
"index.js#parseWebArg",
|
|
@@ -258,6 +267,7 @@ export const PATCH_TARGETS = [
|
|
|
258
267
|
"keybindings.js#readOrEmpty",
|
|
259
268
|
"keybindings.js#resolveKey",
|
|
260
269
|
"keybindings.js#writeKeybindings",
|
|
270
|
+
"latex.js#renderLatex",
|
|
261
271
|
"llm.js#anthropicToolDefs",
|
|
262
272
|
"llm.js#consumeNonStreaming",
|
|
263
273
|
"llm.js#LLM._requestTextOnce",
|
|
@@ -422,6 +432,37 @@ export const PATCH_TARGETS = [
|
|
|
422
432
|
"schedule.js#readHistory",
|
|
423
433
|
"schedule.js#validateEntry",
|
|
424
434
|
"schedule.js#writeHistory",
|
|
435
|
+
"screen-diff.js#diffScreens",
|
|
436
|
+
"screen-diff.js#placementKey",
|
|
437
|
+
"screen-diff.js#placementRows",
|
|
438
|
+
"screen-diff.js#setImageRegenerator",
|
|
439
|
+
"screen-diff.js#sixelCursorAdvance",
|
|
440
|
+
"screen-paint.js#displayWidth",
|
|
441
|
+
"screen-paint.js#paintRows",
|
|
442
|
+
"screen-paint.js#screenToRows",
|
|
443
|
+
"screen-paint.js#stripEscapes",
|
|
444
|
+
"screen-paint.js#styledRuns",
|
|
445
|
+
"screen.js#CELL_WIDTH",
|
|
446
|
+
"screen.js#CharPool.get",
|
|
447
|
+
"screen.js#CharPool.intern",
|
|
448
|
+
"screen.js#charWidth",
|
|
449
|
+
"screen.js#createScreen",
|
|
450
|
+
"screen.js#pools",
|
|
451
|
+
"screen.js#rect",
|
|
452
|
+
"screen.js#rectsOverlap",
|
|
453
|
+
"screen.js#Screen._mark",
|
|
454
|
+
"screen.js#Screen.at",
|
|
455
|
+
"screen.js#Screen.clear",
|
|
456
|
+
"screen.js#Screen.diffRows",
|
|
457
|
+
"screen.js#Screen.inBounds",
|
|
458
|
+
"screen.js#Screen.isSpacer",
|
|
459
|
+
"screen.js#Screen.reset",
|
|
460
|
+
"screen.js#Screen.rowCount",
|
|
461
|
+
"screen.js#Screen.set",
|
|
462
|
+
"screen.js#Screen.write",
|
|
463
|
+
"screen.js#StylePool.get",
|
|
464
|
+
"screen.js#StylePool.intern",
|
|
465
|
+
"screen.js#unionRect",
|
|
425
466
|
"session-approvals.js#approvalKey",
|
|
426
467
|
"session-approvals.js#describeSessionApprovals",
|
|
427
468
|
"session-approvals.js#forgetApproval",
|
|
@@ -665,6 +706,7 @@ export const PATCH_TARGETS = [
|
|
|
665
706
|
"tui.js#csiName",
|
|
666
707
|
"tui.js#ctrlLetter",
|
|
667
708
|
"tui.js#cycleMs",
|
|
709
|
+
"tui.js#deleteHistory",
|
|
668
710
|
"tui.js#diffFrame",
|
|
669
711
|
"tui.js#dispatch",
|
|
670
712
|
"tui.js#editDiffRows",
|
|
@@ -694,7 +736,9 @@ export const PATCH_TARGETS = [
|
|
|
694
736
|
"tui.js#makeState",
|
|
695
737
|
"tui.js#makeThinkingLineForTest",
|
|
696
738
|
"tui.js#mergeRefreshedModelEntry",
|
|
739
|
+
"tui.js#messageSignature",
|
|
697
740
|
"tui.js#metricsSignature",
|
|
741
|
+
"tui.js#paintCellFrame",
|
|
698
742
|
"tui.js#pasteMarker",
|
|
699
743
|
"tui.js#pasteMarkerIdAt",
|
|
700
744
|
"tui.js#pickerFiltered",
|
|
@@ -703,6 +747,7 @@ export const PATCH_TARGETS = [
|
|
|
703
747
|
"tui.js#PLAN_MODE_INSTRUCTION",
|
|
704
748
|
"tui.js#PLAN_OPEN_TAG",
|
|
705
749
|
"tui.js#planCompaction",
|
|
750
|
+
"tui.js#pruneHistory",
|
|
706
751
|
"tui.js#questionBoxClampedHeight",
|
|
707
752
|
"tui.js#questionBoxHeight",
|
|
708
753
|
"tui.js#queuePanelHeight",
|
|
@@ -716,6 +761,8 @@ export const PATCH_TARGETS = [
|
|
|
716
761
|
"tui.js#renderChatLines",
|
|
717
762
|
"tui.js#renderMdIncremental",
|
|
718
763
|
"tui.js#renderMdText",
|
|
764
|
+
"tui.js#resetCellFrame",
|
|
765
|
+
"tui.js#resetShownImages",
|
|
719
766
|
"tui.js#resolveHoverHit",
|
|
720
767
|
"tui.js#REST_MS",
|
|
721
768
|
"tui.js#sanitizeText",
|
|
@@ -816,4 +863,4 @@ export const PATCH_TARGET_SET = new Set(PATCH_TARGETS);
|
|
|
816
863
|
/** True when `target` names a real, patchable symbol. */
|
|
817
864
|
export function isPatchTarget(target) { return PATCH_TARGET_SET.has(String(target)); }
|
|
818
865
|
|
|
819
|
-
export const GENERATED_FROM = "hncode src/ (
|
|
866
|
+
export const GENERATED_FROM = "hncode src/ (76 files, 850 symbols)";
|