@hncode/hncode-sdk 0.1.3 → 0.5.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 +30 -1
- package/targets.js +30 -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
|
+
// 803 patchable symbols across 71 files.
|
|
3
3
|
|
|
4
4
|
/** A symbol a plugin may pass to `api.patch(target, handler)`. */
|
|
5
5
|
export type PatchTarget =
|
|
@@ -26,6 +26,7 @@ export type PatchTarget =
|
|
|
26
26
|
| "agent.js#Agent.run"
|
|
27
27
|
| "agent.js#Agent.steer"
|
|
28
28
|
| "agent.js#Agent.usedTokens"
|
|
29
|
+
| "agent.js#canSplitAfter"
|
|
29
30
|
| "agent.js#formatEditDiffForModel"
|
|
30
31
|
| "agent.js#SYSTEM_PROMPT"
|
|
31
32
|
| "bootstrap.js#bootstrap"
|
|
@@ -67,6 +68,7 @@ export type PatchTarget =
|
|
|
67
68
|
| "clipboard.js#readClipboardContent"
|
|
68
69
|
| "clipboard.js#readClipboardContentAsync"
|
|
69
70
|
| "clipboard.js#readText"
|
|
71
|
+
| "clipboard.js#stopClipboardHelper"
|
|
70
72
|
| "clipboard.js#warmClipboard"
|
|
71
73
|
| "colors.js#alternateScreen"
|
|
72
74
|
| "colors.js#AUTO_THEME"
|
|
@@ -256,10 +258,12 @@ export type PatchTarget =
|
|
|
256
258
|
| "keybindings.js#writeKeybindings"
|
|
257
259
|
| "llm.js#anthropicToolDefs"
|
|
258
260
|
| "llm.js#consumeNonStreaming"
|
|
261
|
+
| "llm.js#LLM._requestTextOnce"
|
|
259
262
|
| "llm.js#LLM.abort"
|
|
260
263
|
| "llm.js#LLM.request"
|
|
261
264
|
| "llm.js#LLM.requestText"
|
|
262
265
|
| "llm.js#LLM.resetThink"
|
|
266
|
+
| "llm.js#LLM.setTools"
|
|
263
267
|
| "llm.js#openAiToolDefs"
|
|
264
268
|
| "llm.js#responsesToolDefs"
|
|
265
269
|
| "llm.js#setToolsList"
|
|
@@ -356,6 +360,7 @@ export type PatchTarget =
|
|
|
356
360
|
| "plugin.js#pluginLoaded"
|
|
357
361
|
| "plugin.js#pluginLogger"
|
|
358
362
|
| "plugin.js#pluginPatches"
|
|
363
|
+
| "plugin.js#pluginToolGeneration"
|
|
359
364
|
| "plugin.js#pluginWidgets"
|
|
360
365
|
| "plugin.js#renderWidgets"
|
|
361
366
|
| "plugin.js#runHooks"
|
|
@@ -365,6 +370,7 @@ export type PatchTarget =
|
|
|
365
370
|
| "plugin.js#runPatchSync"
|
|
366
371
|
| "plugin.js#setPluginContext"
|
|
367
372
|
| "plugin.js#setPluginHost"
|
|
373
|
+
| "plugin.js#setPluginLoggerTui"
|
|
368
374
|
| "plugin.js#takePluginNotices"
|
|
369
375
|
| "plugin.js#unloadPlugins"
|
|
370
376
|
| "prompt-presets.js#buildPreset"
|
|
@@ -560,8 +566,11 @@ export type PatchTarget =
|
|
|
560
566
|
| "team-panel.js#handleTeamPanelKey"
|
|
561
567
|
| "team-panel.js#makeTeamPanel"
|
|
562
568
|
| "team-panel.js#memberTraffic"
|
|
569
|
+
| "team-panel.js#noteActivity"
|
|
570
|
+
| "team-panel.js#previewLines"
|
|
563
571
|
| "team-panel.js#renderTeamPanel"
|
|
564
572
|
| "team-panel.js#sendFromPanel"
|
|
573
|
+
| "team-panel.js#shouldAutoExit"
|
|
565
574
|
| "team-panel.js#teamRows"
|
|
566
575
|
| "teleport.js#describeTeleport"
|
|
567
576
|
| "teleport.js#packSession"
|
|
@@ -575,6 +584,7 @@ export type PatchTarget =
|
|
|
575
584
|
| "teleport.js#unpackInto"
|
|
576
585
|
| "term-caps.js#isLightBg"
|
|
577
586
|
| "term-caps.js#kittyKeysUsable"
|
|
587
|
+
| "term-caps.js#MOUSE_MODES"
|
|
578
588
|
| "term-caps.js#parseProbeReplies"
|
|
579
589
|
| "term-caps.js#PROBE_QUERY"
|
|
580
590
|
| "term-caps.js#PROBE_TIMEOUT_MS"
|
|
@@ -599,6 +609,7 @@ export type PatchTarget =
|
|
|
599
609
|
| "term.js#forgetMessageTokens"
|
|
600
610
|
| "term.js#isAmbiguousWide"
|
|
601
611
|
| "term.js#isTTY"
|
|
612
|
+
| "term.js#measureToolDefTokens"
|
|
602
613
|
| "term.js#messageTokens"
|
|
603
614
|
| "term.js#setAmbiguousWide"
|
|
604
615
|
| "term.js#size"
|
|
@@ -627,6 +638,7 @@ export type PatchTarget =
|
|
|
627
638
|
| "tool-result.js#trimToolResults"
|
|
628
639
|
| "tui.js#acceptMenuSelection"
|
|
629
640
|
| "tui.js#adjacentPasteMarker"
|
|
641
|
+
| "tui.js#ANIM_FPS"
|
|
630
642
|
| "tui.js#appendTranscriptRow"
|
|
631
643
|
| "tui.js#argCompletionsFor"
|
|
632
644
|
| "tui.js#argStreamLineCount"
|
|
@@ -637,6 +649,7 @@ export type PatchTarget =
|
|
|
637
649
|
| "tui.js#caretBlock"
|
|
638
650
|
| "tui.js#chatRowTotal"
|
|
639
651
|
| "tui.js#COMMANDS"
|
|
652
|
+
| "tui.js#COMPACTING_MSG"
|
|
640
653
|
| "tui.js#composeFrame"
|
|
641
654
|
| "tui.js#composerHeight"
|
|
642
655
|
| "tui.js#composerInput"
|
|
@@ -646,11 +659,14 @@ export type PatchTarget =
|
|
|
646
659
|
| "tui.js#contextSegments"
|
|
647
660
|
| "tui.js#costCurrency"
|
|
648
661
|
| "tui.js#createArgStream"
|
|
662
|
+
| "tui.js#crossMs"
|
|
649
663
|
| "tui.js#csiName"
|
|
650
664
|
| "tui.js#ctrlLetter"
|
|
665
|
+
| "tui.js#cycleMs"
|
|
651
666
|
| "tui.js#diffFrame"
|
|
652
667
|
| "tui.js#dispatch"
|
|
653
668
|
| "tui.js#editDiffRows"
|
|
669
|
+
| "tui.js#expandPasteMarkerAt"
|
|
654
670
|
| "tui.js#expandPastes"
|
|
655
671
|
| "tui.js#extractJsonString"
|
|
656
672
|
| "tui.js#extractPlan"
|
|
@@ -658,6 +674,7 @@ export type PatchTarget =
|
|
|
658
674
|
| "tui.js#feedArgStream"
|
|
659
675
|
| "tui.js#findCommand"
|
|
660
676
|
| "tui.js#formatToolLine"
|
|
677
|
+
| "tui.js#FRAME_MS"
|
|
661
678
|
| "tui.js#framesPerChar"
|
|
662
679
|
| "tui.js#highlightPasteMarkers"
|
|
663
680
|
| "tui.js#highlightSelection"
|
|
@@ -666,6 +683,9 @@ export type PatchTarget =
|
|
|
666
683
|
| "tui.js#isPluginCommand"
|
|
667
684
|
| "tui.js#isReadOnlyCommand"
|
|
668
685
|
| "tui.js#isRealUserPrompt"
|
|
686
|
+
| "tui.js#LIGHT_FRACTION"
|
|
687
|
+
| "tui.js#lightAt"
|
|
688
|
+
| "tui.js#lightWidth"
|
|
669
689
|
| "tui.js#lineDiff"
|
|
670
690
|
| "tui.js#LIVE_OUTPUT_MAX_CHARS"
|
|
671
691
|
| "tui.js#loadHistory"
|
|
@@ -674,6 +694,7 @@ export type PatchTarget =
|
|
|
674
694
|
| "tui.js#mergeRefreshedModelEntry"
|
|
675
695
|
| "tui.js#metricsSignature"
|
|
676
696
|
| "tui.js#pasteMarker"
|
|
697
|
+
| "tui.js#pasteMarkerIdAt"
|
|
677
698
|
| "tui.js#pickerFiltered"
|
|
678
699
|
| "tui.js#PLAN_CLOSE_TAG"
|
|
679
700
|
| "tui.js#PLAN_EXECUTE_PREFIX"
|
|
@@ -694,6 +715,7 @@ export type PatchTarget =
|
|
|
694
715
|
| "tui.js#renderMdIncremental"
|
|
695
716
|
| "tui.js#renderMdText"
|
|
696
717
|
| "tui.js#resolveHoverHit"
|
|
718
|
+
| "tui.js#REST_MS"
|
|
697
719
|
| "tui.js#sanitizeText"
|
|
698
720
|
| "tui.js#saveHistory"
|
|
699
721
|
| "tui.js#scrollbarGeometry"
|
|
@@ -702,17 +724,24 @@ export type PatchTarget =
|
|
|
702
724
|
| "tui.js#selectVisibleTodos"
|
|
703
725
|
| "tui.js#setArgCompletionProvider"
|
|
704
726
|
| "tui.js#setTip"
|
|
727
|
+
| "tui.js#SPIN_TICK_MS"
|
|
705
728
|
| "tui.js#spinnerFrame"
|
|
706
729
|
| "tui.js#splitBlocks"
|
|
707
730
|
| "tui.js#startTUI"
|
|
731
|
+
| "tui.js#STEP_CHARS"
|
|
732
|
+
| "tui.js#STEP_MS"
|
|
708
733
|
| "tui.js#SWARM_MODE_INSTRUCTION"
|
|
709
734
|
| "tui.js#SWEEP_TICKS"
|
|
735
|
+
| "tui.js#sweepPulse"
|
|
710
736
|
| "tui.js#sweepSettle"
|
|
737
|
+
| "tui.js#TAIL_CHARS"
|
|
711
738
|
| "tui.js#tailChars"
|
|
712
739
|
| "tui.js#tintRange"
|
|
713
740
|
| "tui.js#TIPS"
|
|
741
|
+
| "tui.js#todoListFinished"
|
|
714
742
|
| "tui.js#todoPanelHeight"
|
|
715
743
|
| "tui.js#todoRowCount"
|
|
744
|
+
| "tui.js#todosAllComplete"
|
|
716
745
|
| "tui.js#tokenize"
|
|
717
746
|
| "tui.js#windowOffset"
|
|
718
747
|
| "tui.js#writeWindowTitle"
|
package/targets.js
CHANGED
|
@@ -28,6 +28,7 @@ export const PATCH_TARGETS = [
|
|
|
28
28
|
"agent.js#Agent.run",
|
|
29
29
|
"agent.js#Agent.steer",
|
|
30
30
|
"agent.js#Agent.usedTokens",
|
|
31
|
+
"agent.js#canSplitAfter",
|
|
31
32
|
"agent.js#formatEditDiffForModel",
|
|
32
33
|
"agent.js#SYSTEM_PROMPT",
|
|
33
34
|
"bootstrap.js#bootstrap",
|
|
@@ -69,6 +70,7 @@ export const PATCH_TARGETS = [
|
|
|
69
70
|
"clipboard.js#readClipboardContent",
|
|
70
71
|
"clipboard.js#readClipboardContentAsync",
|
|
71
72
|
"clipboard.js#readText",
|
|
73
|
+
"clipboard.js#stopClipboardHelper",
|
|
72
74
|
"clipboard.js#warmClipboard",
|
|
73
75
|
"colors.js#alternateScreen",
|
|
74
76
|
"colors.js#AUTO_THEME",
|
|
@@ -258,10 +260,12 @@ export const PATCH_TARGETS = [
|
|
|
258
260
|
"keybindings.js#writeKeybindings",
|
|
259
261
|
"llm.js#anthropicToolDefs",
|
|
260
262
|
"llm.js#consumeNonStreaming",
|
|
263
|
+
"llm.js#LLM._requestTextOnce",
|
|
261
264
|
"llm.js#LLM.abort",
|
|
262
265
|
"llm.js#LLM.request",
|
|
263
266
|
"llm.js#LLM.requestText",
|
|
264
267
|
"llm.js#LLM.resetThink",
|
|
268
|
+
"llm.js#LLM.setTools",
|
|
265
269
|
"llm.js#openAiToolDefs",
|
|
266
270
|
"llm.js#responsesToolDefs",
|
|
267
271
|
"llm.js#setToolsList",
|
|
@@ -358,6 +362,7 @@ export const PATCH_TARGETS = [
|
|
|
358
362
|
"plugin.js#pluginLoaded",
|
|
359
363
|
"plugin.js#pluginLogger",
|
|
360
364
|
"plugin.js#pluginPatches",
|
|
365
|
+
"plugin.js#pluginToolGeneration",
|
|
361
366
|
"plugin.js#pluginWidgets",
|
|
362
367
|
"plugin.js#renderWidgets",
|
|
363
368
|
"plugin.js#runHooks",
|
|
@@ -367,6 +372,7 @@ export const PATCH_TARGETS = [
|
|
|
367
372
|
"plugin.js#runPatchSync",
|
|
368
373
|
"plugin.js#setPluginContext",
|
|
369
374
|
"plugin.js#setPluginHost",
|
|
375
|
+
"plugin.js#setPluginLoggerTui",
|
|
370
376
|
"plugin.js#takePluginNotices",
|
|
371
377
|
"plugin.js#unloadPlugins",
|
|
372
378
|
"prompt-presets.js#buildPreset",
|
|
@@ -562,8 +568,11 @@ export const PATCH_TARGETS = [
|
|
|
562
568
|
"team-panel.js#handleTeamPanelKey",
|
|
563
569
|
"team-panel.js#makeTeamPanel",
|
|
564
570
|
"team-panel.js#memberTraffic",
|
|
571
|
+
"team-panel.js#noteActivity",
|
|
572
|
+
"team-panel.js#previewLines",
|
|
565
573
|
"team-panel.js#renderTeamPanel",
|
|
566
574
|
"team-panel.js#sendFromPanel",
|
|
575
|
+
"team-panel.js#shouldAutoExit",
|
|
567
576
|
"team-panel.js#teamRows",
|
|
568
577
|
"teleport.js#describeTeleport",
|
|
569
578
|
"teleport.js#packSession",
|
|
@@ -577,6 +586,7 @@ export const PATCH_TARGETS = [
|
|
|
577
586
|
"teleport.js#unpackInto",
|
|
578
587
|
"term-caps.js#isLightBg",
|
|
579
588
|
"term-caps.js#kittyKeysUsable",
|
|
589
|
+
"term-caps.js#MOUSE_MODES",
|
|
580
590
|
"term-caps.js#parseProbeReplies",
|
|
581
591
|
"term-caps.js#PROBE_QUERY",
|
|
582
592
|
"term-caps.js#PROBE_TIMEOUT_MS",
|
|
@@ -601,6 +611,7 @@ export const PATCH_TARGETS = [
|
|
|
601
611
|
"term.js#forgetMessageTokens",
|
|
602
612
|
"term.js#isAmbiguousWide",
|
|
603
613
|
"term.js#isTTY",
|
|
614
|
+
"term.js#measureToolDefTokens",
|
|
604
615
|
"term.js#messageTokens",
|
|
605
616
|
"term.js#setAmbiguousWide",
|
|
606
617
|
"term.js#size",
|
|
@@ -629,6 +640,7 @@ export const PATCH_TARGETS = [
|
|
|
629
640
|
"tool-result.js#trimToolResults",
|
|
630
641
|
"tui.js#acceptMenuSelection",
|
|
631
642
|
"tui.js#adjacentPasteMarker",
|
|
643
|
+
"tui.js#ANIM_FPS",
|
|
632
644
|
"tui.js#appendTranscriptRow",
|
|
633
645
|
"tui.js#argCompletionsFor",
|
|
634
646
|
"tui.js#argStreamLineCount",
|
|
@@ -639,6 +651,7 @@ export const PATCH_TARGETS = [
|
|
|
639
651
|
"tui.js#caretBlock",
|
|
640
652
|
"tui.js#chatRowTotal",
|
|
641
653
|
"tui.js#COMMANDS",
|
|
654
|
+
"tui.js#COMPACTING_MSG",
|
|
642
655
|
"tui.js#composeFrame",
|
|
643
656
|
"tui.js#composerHeight",
|
|
644
657
|
"tui.js#composerInput",
|
|
@@ -648,11 +661,14 @@ export const PATCH_TARGETS = [
|
|
|
648
661
|
"tui.js#contextSegments",
|
|
649
662
|
"tui.js#costCurrency",
|
|
650
663
|
"tui.js#createArgStream",
|
|
664
|
+
"tui.js#crossMs",
|
|
651
665
|
"tui.js#csiName",
|
|
652
666
|
"tui.js#ctrlLetter",
|
|
667
|
+
"tui.js#cycleMs",
|
|
653
668
|
"tui.js#diffFrame",
|
|
654
669
|
"tui.js#dispatch",
|
|
655
670
|
"tui.js#editDiffRows",
|
|
671
|
+
"tui.js#expandPasteMarkerAt",
|
|
656
672
|
"tui.js#expandPastes",
|
|
657
673
|
"tui.js#extractJsonString",
|
|
658
674
|
"tui.js#extractPlan",
|
|
@@ -660,6 +676,7 @@ export const PATCH_TARGETS = [
|
|
|
660
676
|
"tui.js#feedArgStream",
|
|
661
677
|
"tui.js#findCommand",
|
|
662
678
|
"tui.js#formatToolLine",
|
|
679
|
+
"tui.js#FRAME_MS",
|
|
663
680
|
"tui.js#framesPerChar",
|
|
664
681
|
"tui.js#highlightPasteMarkers",
|
|
665
682
|
"tui.js#highlightSelection",
|
|
@@ -668,6 +685,9 @@ export const PATCH_TARGETS = [
|
|
|
668
685
|
"tui.js#isPluginCommand",
|
|
669
686
|
"tui.js#isReadOnlyCommand",
|
|
670
687
|
"tui.js#isRealUserPrompt",
|
|
688
|
+
"tui.js#LIGHT_FRACTION",
|
|
689
|
+
"tui.js#lightAt",
|
|
690
|
+
"tui.js#lightWidth",
|
|
671
691
|
"tui.js#lineDiff",
|
|
672
692
|
"tui.js#LIVE_OUTPUT_MAX_CHARS",
|
|
673
693
|
"tui.js#loadHistory",
|
|
@@ -676,6 +696,7 @@ export const PATCH_TARGETS = [
|
|
|
676
696
|
"tui.js#mergeRefreshedModelEntry",
|
|
677
697
|
"tui.js#metricsSignature",
|
|
678
698
|
"tui.js#pasteMarker",
|
|
699
|
+
"tui.js#pasteMarkerIdAt",
|
|
679
700
|
"tui.js#pickerFiltered",
|
|
680
701
|
"tui.js#PLAN_CLOSE_TAG",
|
|
681
702
|
"tui.js#PLAN_EXECUTE_PREFIX",
|
|
@@ -696,6 +717,7 @@ export const PATCH_TARGETS = [
|
|
|
696
717
|
"tui.js#renderMdIncremental",
|
|
697
718
|
"tui.js#renderMdText",
|
|
698
719
|
"tui.js#resolveHoverHit",
|
|
720
|
+
"tui.js#REST_MS",
|
|
699
721
|
"tui.js#sanitizeText",
|
|
700
722
|
"tui.js#saveHistory",
|
|
701
723
|
"tui.js#scrollbarGeometry",
|
|
@@ -704,17 +726,24 @@ export const PATCH_TARGETS = [
|
|
|
704
726
|
"tui.js#selectVisibleTodos",
|
|
705
727
|
"tui.js#setArgCompletionProvider",
|
|
706
728
|
"tui.js#setTip",
|
|
729
|
+
"tui.js#SPIN_TICK_MS",
|
|
707
730
|
"tui.js#spinnerFrame",
|
|
708
731
|
"tui.js#splitBlocks",
|
|
709
732
|
"tui.js#startTUI",
|
|
733
|
+
"tui.js#STEP_CHARS",
|
|
734
|
+
"tui.js#STEP_MS",
|
|
710
735
|
"tui.js#SWARM_MODE_INSTRUCTION",
|
|
711
736
|
"tui.js#SWEEP_TICKS",
|
|
737
|
+
"tui.js#sweepPulse",
|
|
712
738
|
"tui.js#sweepSettle",
|
|
739
|
+
"tui.js#TAIL_CHARS",
|
|
713
740
|
"tui.js#tailChars",
|
|
714
741
|
"tui.js#tintRange",
|
|
715
742
|
"tui.js#TIPS",
|
|
743
|
+
"tui.js#todoListFinished",
|
|
716
744
|
"tui.js#todoPanelHeight",
|
|
717
745
|
"tui.js#todoRowCount",
|
|
746
|
+
"tui.js#todosAllComplete",
|
|
718
747
|
"tui.js#tokenize",
|
|
719
748
|
"tui.js#windowOffset",
|
|
720
749
|
"tui.js#writeWindowTitle",
|
|
@@ -787,4 +816,4 @@ export const PATCH_TARGET_SET = new Set(PATCH_TARGETS);
|
|
|
787
816
|
/** True when `target` names a real, patchable symbol. */
|
|
788
817
|
export function isPatchTarget(target) { return PATCH_TARGET_SET.has(String(target)); }
|
|
789
818
|
|
|
790
|
-
export const GENERATED_FROM = "hncode src/ (71 files,
|
|
819
|
+
export const GENERATED_FROM = "hncode src/ (71 files, 803 symbols)";
|