@hncode/hncode-sdk 0.5.6 → 0.6.6
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 +50 -1
- package/targets.js +50 -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
|
+
// 852 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"
|
|
@@ -509,9 +550,11 @@ export type PatchTarget =
|
|
|
509
550
|
| "skills.js#addSkillFromText"
|
|
510
551
|
| "skills.js#deleteSkill"
|
|
511
552
|
| "skills.js#importSkill"
|
|
553
|
+
| "skills.js#installSkillFromGitHub"
|
|
512
554
|
| "skills.js#listSkills"
|
|
513
555
|
| "skills.js#normalizeSkillName"
|
|
514
556
|
| "skills.js#parseFrontMatter"
|
|
557
|
+
| "skills.js#parseRepoSpec"
|
|
515
558
|
| "skills.js#readSkill"
|
|
516
559
|
| "skills.js#SKILL_PREFIX"
|
|
517
560
|
| "skills.js#skillCompletions"
|
|
@@ -663,6 +706,7 @@ export type PatchTarget =
|
|
|
663
706
|
| "tui.js#csiName"
|
|
664
707
|
| "tui.js#ctrlLetter"
|
|
665
708
|
| "tui.js#cycleMs"
|
|
709
|
+
| "tui.js#deleteHistory"
|
|
666
710
|
| "tui.js#diffFrame"
|
|
667
711
|
| "tui.js#dispatch"
|
|
668
712
|
| "tui.js#editDiffRows"
|
|
@@ -692,7 +736,9 @@ export type PatchTarget =
|
|
|
692
736
|
| "tui.js#makeState"
|
|
693
737
|
| "tui.js#makeThinkingLineForTest"
|
|
694
738
|
| "tui.js#mergeRefreshedModelEntry"
|
|
739
|
+
| "tui.js#messageSignature"
|
|
695
740
|
| "tui.js#metricsSignature"
|
|
741
|
+
| "tui.js#paintCellFrame"
|
|
696
742
|
| "tui.js#pasteMarker"
|
|
697
743
|
| "tui.js#pasteMarkerIdAt"
|
|
698
744
|
| "tui.js#pickerFiltered"
|
|
@@ -701,6 +747,7 @@ export type PatchTarget =
|
|
|
701
747
|
| "tui.js#PLAN_MODE_INSTRUCTION"
|
|
702
748
|
| "tui.js#PLAN_OPEN_TAG"
|
|
703
749
|
| "tui.js#planCompaction"
|
|
750
|
+
| "tui.js#pruneHistory"
|
|
704
751
|
| "tui.js#questionBoxClampedHeight"
|
|
705
752
|
| "tui.js#questionBoxHeight"
|
|
706
753
|
| "tui.js#queuePanelHeight"
|
|
@@ -714,6 +761,8 @@ export type PatchTarget =
|
|
|
714
761
|
| "tui.js#renderChatLines"
|
|
715
762
|
| "tui.js#renderMdIncremental"
|
|
716
763
|
| "tui.js#renderMdText"
|
|
764
|
+
| "tui.js#resetCellFrame"
|
|
765
|
+
| "tui.js#resetShownImages"
|
|
717
766
|
| "tui.js#resolveHoverHit"
|
|
718
767
|
| "tui.js#REST_MS"
|
|
719
768
|
| "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",
|
|
@@ -511,9 +552,11 @@ export const PATCH_TARGETS = [
|
|
|
511
552
|
"skills.js#addSkillFromText",
|
|
512
553
|
"skills.js#deleteSkill",
|
|
513
554
|
"skills.js#importSkill",
|
|
555
|
+
"skills.js#installSkillFromGitHub",
|
|
514
556
|
"skills.js#listSkills",
|
|
515
557
|
"skills.js#normalizeSkillName",
|
|
516
558
|
"skills.js#parseFrontMatter",
|
|
559
|
+
"skills.js#parseRepoSpec",
|
|
517
560
|
"skills.js#readSkill",
|
|
518
561
|
"skills.js#SKILL_PREFIX",
|
|
519
562
|
"skills.js#skillCompletions",
|
|
@@ -665,6 +708,7 @@ export const PATCH_TARGETS = [
|
|
|
665
708
|
"tui.js#csiName",
|
|
666
709
|
"tui.js#ctrlLetter",
|
|
667
710
|
"tui.js#cycleMs",
|
|
711
|
+
"tui.js#deleteHistory",
|
|
668
712
|
"tui.js#diffFrame",
|
|
669
713
|
"tui.js#dispatch",
|
|
670
714
|
"tui.js#editDiffRows",
|
|
@@ -694,7 +738,9 @@ export const PATCH_TARGETS = [
|
|
|
694
738
|
"tui.js#makeState",
|
|
695
739
|
"tui.js#makeThinkingLineForTest",
|
|
696
740
|
"tui.js#mergeRefreshedModelEntry",
|
|
741
|
+
"tui.js#messageSignature",
|
|
697
742
|
"tui.js#metricsSignature",
|
|
743
|
+
"tui.js#paintCellFrame",
|
|
698
744
|
"tui.js#pasteMarker",
|
|
699
745
|
"tui.js#pasteMarkerIdAt",
|
|
700
746
|
"tui.js#pickerFiltered",
|
|
@@ -703,6 +749,7 @@ export const PATCH_TARGETS = [
|
|
|
703
749
|
"tui.js#PLAN_MODE_INSTRUCTION",
|
|
704
750
|
"tui.js#PLAN_OPEN_TAG",
|
|
705
751
|
"tui.js#planCompaction",
|
|
752
|
+
"tui.js#pruneHistory",
|
|
706
753
|
"tui.js#questionBoxClampedHeight",
|
|
707
754
|
"tui.js#questionBoxHeight",
|
|
708
755
|
"tui.js#queuePanelHeight",
|
|
@@ -716,6 +763,8 @@ export const PATCH_TARGETS = [
|
|
|
716
763
|
"tui.js#renderChatLines",
|
|
717
764
|
"tui.js#renderMdIncremental",
|
|
718
765
|
"tui.js#renderMdText",
|
|
766
|
+
"tui.js#resetCellFrame",
|
|
767
|
+
"tui.js#resetShownImages",
|
|
719
768
|
"tui.js#resolveHoverHit",
|
|
720
769
|
"tui.js#REST_MS",
|
|
721
770
|
"tui.js#sanitizeText",
|
|
@@ -816,4 +865,4 @@ export const PATCH_TARGET_SET = new Set(PATCH_TARGETS);
|
|
|
816
865
|
/** True when `target` names a real, patchable symbol. */
|
|
817
866
|
export function isPatchTarget(target) { return PATCH_TARGET_SET.has(String(target)); }
|
|
818
867
|
|
|
819
|
-
export const GENERATED_FROM = "hncode src/ (
|
|
868
|
+
export const GENERATED_FROM = "hncode src/ (76 files, 852 symbols)";
|