@hncode/hncode-sdk 0.8.1 → 0.8.2
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 +39 -1
- package/targets.js +39 -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
|
+
// 976 patchable symbols across 96 files.
|
|
3
3
|
|
|
4
4
|
/** A symbol a plugin may pass to `api.patch(target, handler)`. */
|
|
5
5
|
export type PatchTarget =
|
|
@@ -31,6 +31,7 @@ export type PatchTarget =
|
|
|
31
31
|
| "agent.js#SYSTEM_PROMPT"
|
|
32
32
|
| "animate.js#ANIM_FPS"
|
|
33
33
|
| "animate.js#bandCharsFor"
|
|
34
|
+
| "animate.js#breatheColour"
|
|
34
35
|
| "animate.js#crossMs"
|
|
35
36
|
| "animate.js#cycleMs"
|
|
36
37
|
| "animate.js#ENTRY_EXIT_CHARS"
|
|
@@ -318,9 +319,15 @@ export type PatchTarget =
|
|
|
318
319
|
| "hooks.js#runShellHooks"
|
|
319
320
|
| "i18n.js#catalog"
|
|
320
321
|
| "i18n.js#DEFAULT_LANG"
|
|
322
|
+
| "i18n.js#getUiLang"
|
|
321
323
|
| "i18n.js#LANGUAGES"
|
|
322
324
|
| "i18n.js#MESSAGES"
|
|
325
|
+
| "i18n.js#NOTICE_ZH"
|
|
326
|
+
| "i18n.js#noticeText"
|
|
327
|
+
| "i18n.js#setUiLang"
|
|
323
328
|
| "i18n.js#t"
|
|
329
|
+
| "i18n.js#tOr"
|
|
330
|
+
| "i18n.js#uiText"
|
|
324
331
|
| "image-row.js#encodeImageRow"
|
|
325
332
|
| "image-row.js#IMAGE_MARK"
|
|
326
333
|
| "image-row.js#imageBytes"
|
|
@@ -353,6 +360,10 @@ export type PatchTarget =
|
|
|
353
360
|
| "llm.js#toAnthropic"
|
|
354
361
|
| "llm.js#toOpenAi"
|
|
355
362
|
| "llm.js#toResponsesInput"
|
|
363
|
+
| "log-file.js#appendLog"
|
|
364
|
+
| "log-file.js#DEFAULT_MAX_BYTES"
|
|
365
|
+
| "log-file.js#forgetLogSize"
|
|
366
|
+
| "log-file.js#rotateIfLarge"
|
|
356
367
|
| "lsp.js#availableServers"
|
|
357
368
|
| "lsp.js#changeDocument"
|
|
358
369
|
| "lsp.js#commandExists"
|
|
@@ -406,6 +417,20 @@ export type PatchTarget =
|
|
|
406
417
|
| "memory-profile.js#memoryHeadline"
|
|
407
418
|
| "memory-profile.js#profileMemory"
|
|
408
419
|
| "memory-profile.js#renderMemoryProfile"
|
|
420
|
+
| "migrate-index.js#INDEX_ENTRY"
|
|
421
|
+
| "migrate-index.js#mapPath"
|
|
422
|
+
| "migrate-index.js#parseIndex"
|
|
423
|
+
| "migrate-index.js#renderIndex"
|
|
424
|
+
| "migrate.js#EXCLUDED"
|
|
425
|
+
| "migrate.js#fmtBytes"
|
|
426
|
+
| "migrate.js#hncodeHome"
|
|
427
|
+
| "migrate.js#MARKER"
|
|
428
|
+
| "migrate.js#planExport"
|
|
429
|
+
| "migrate.js#PORTABLE"
|
|
430
|
+
| "migrate.js#readArchive"
|
|
431
|
+
| "migrate.js#readArchiveManifest"
|
|
432
|
+
| "migrate.js#sizeOf"
|
|
433
|
+
| "migrate.js#writeArchive"
|
|
409
434
|
| "notebook.js#cellSource"
|
|
410
435
|
| "notebook.js#checkIndex"
|
|
411
436
|
| "notebook.js#deleteCell"
|
|
@@ -615,11 +640,17 @@ export type PatchTarget =
|
|
|
615
640
|
| "session-hub.js#SessionHub.statusChanged"
|
|
616
641
|
| "session-hub.js#SessionHub.subscribe"
|
|
617
642
|
| "session-hub.js#SessionHub.syncChat"
|
|
643
|
+
| "session-recover.js#recoverSessionFile"
|
|
644
|
+
| "session-recover.js#recoverSessionText"
|
|
645
|
+
| "session-recover.js#salvageMessages"
|
|
646
|
+
| "session-recover.js#sanitizeToolPairs"
|
|
618
647
|
| "session-view.js#HEADLESS_VIEW"
|
|
619
648
|
| "session-view.js#tuiView"
|
|
649
|
+
| "session.js#bumpMessage"
|
|
620
650
|
| "session.js#clearSaveFailure"
|
|
621
651
|
| "session.js#convRowFor"
|
|
622
652
|
| "session.js#deleteSession"
|
|
653
|
+
| "session.js#flushSaves"
|
|
623
654
|
| "session.js#invalidateSessionCache"
|
|
624
655
|
| "session.js#lastSaveFailure"
|
|
625
656
|
| "session.js#latestSession"
|
|
@@ -628,6 +659,8 @@ export type PatchTarget =
|
|
|
628
659
|
| "session.js#newId"
|
|
629
660
|
| "session.js#readSessionMeta"
|
|
630
661
|
| "session.js#saveSession"
|
|
662
|
+
| "session.js#saveSessionNow"
|
|
663
|
+
| "session.js#saveSessionSoon"
|
|
631
664
|
| "session.js#sessionFile"
|
|
632
665
|
| "session.js#sessionsDir"
|
|
633
666
|
| "settings-schema.js#changedSettings"
|
|
@@ -833,6 +866,7 @@ export type PatchTarget =
|
|
|
833
866
|
| "tui.js#failureReason"
|
|
834
867
|
| "tui.js#feedArgStream"
|
|
835
868
|
| "tui.js#findCommand"
|
|
869
|
+
| "tui.js#getUiLang"
|
|
836
870
|
| "tui.js#highlightCommandName"
|
|
837
871
|
| "tui.js#highlightMatches"
|
|
838
872
|
| "tui.js#isFailureResult"
|
|
@@ -846,6 +880,7 @@ export type PatchTarget =
|
|
|
846
880
|
| "tui.js#mergeRefreshedModelEntry"
|
|
847
881
|
| "tui.js#messageSignature"
|
|
848
882
|
| "tui.js#metricsSignature"
|
|
883
|
+
| "tui.js#metricsSignatureIncremental"
|
|
849
884
|
| "tui.js#paintCellFrame"
|
|
850
885
|
| "tui.js#pickerFiltered"
|
|
851
886
|
| "tui.js#PLAN_CLOSE_TAG"
|
|
@@ -871,12 +906,15 @@ export type PatchTarget =
|
|
|
871
906
|
| "tui.js#scrollFromThumbPos"
|
|
872
907
|
| "tui.js#setArgCompletionProvider"
|
|
873
908
|
| "tui.js#setTip"
|
|
909
|
+
| "tui.js#setUiLang"
|
|
874
910
|
| "tui.js#startTUI"
|
|
875
911
|
| "tui.js#startupChat"
|
|
876
912
|
| "tui.js#SWARM_MODE_INSTRUCTION"
|
|
877
913
|
| "tui.js#tintRange"
|
|
878
914
|
| "tui.js#TIPS"
|
|
879
915
|
| "tui.js#tokenize"
|
|
916
|
+
| "tui.js#tr"
|
|
917
|
+
| "tui.js#trTitle"
|
|
880
918
|
| "tui.js#windowOffset"
|
|
881
919
|
| "tui.js#writeWindowTitle"
|
|
882
920
|
| "update.js#AUTO_UPDATE_INTERVAL_MS"
|
package/targets.js
CHANGED
|
@@ -33,6 +33,7 @@ export const PATCH_TARGETS = [
|
|
|
33
33
|
"agent.js#SYSTEM_PROMPT",
|
|
34
34
|
"animate.js#ANIM_FPS",
|
|
35
35
|
"animate.js#bandCharsFor",
|
|
36
|
+
"animate.js#breatheColour",
|
|
36
37
|
"animate.js#crossMs",
|
|
37
38
|
"animate.js#cycleMs",
|
|
38
39
|
"animate.js#ENTRY_EXIT_CHARS",
|
|
@@ -320,9 +321,15 @@ export const PATCH_TARGETS = [
|
|
|
320
321
|
"hooks.js#runShellHooks",
|
|
321
322
|
"i18n.js#catalog",
|
|
322
323
|
"i18n.js#DEFAULT_LANG",
|
|
324
|
+
"i18n.js#getUiLang",
|
|
323
325
|
"i18n.js#LANGUAGES",
|
|
324
326
|
"i18n.js#MESSAGES",
|
|
327
|
+
"i18n.js#NOTICE_ZH",
|
|
328
|
+
"i18n.js#noticeText",
|
|
329
|
+
"i18n.js#setUiLang",
|
|
325
330
|
"i18n.js#t",
|
|
331
|
+
"i18n.js#tOr",
|
|
332
|
+
"i18n.js#uiText",
|
|
326
333
|
"image-row.js#encodeImageRow",
|
|
327
334
|
"image-row.js#IMAGE_MARK",
|
|
328
335
|
"image-row.js#imageBytes",
|
|
@@ -355,6 +362,10 @@ export const PATCH_TARGETS = [
|
|
|
355
362
|
"llm.js#toAnthropic",
|
|
356
363
|
"llm.js#toOpenAi",
|
|
357
364
|
"llm.js#toResponsesInput",
|
|
365
|
+
"log-file.js#appendLog",
|
|
366
|
+
"log-file.js#DEFAULT_MAX_BYTES",
|
|
367
|
+
"log-file.js#forgetLogSize",
|
|
368
|
+
"log-file.js#rotateIfLarge",
|
|
358
369
|
"lsp.js#availableServers",
|
|
359
370
|
"lsp.js#changeDocument",
|
|
360
371
|
"lsp.js#commandExists",
|
|
@@ -408,6 +419,20 @@ export const PATCH_TARGETS = [
|
|
|
408
419
|
"memory-profile.js#memoryHeadline",
|
|
409
420
|
"memory-profile.js#profileMemory",
|
|
410
421
|
"memory-profile.js#renderMemoryProfile",
|
|
422
|
+
"migrate-index.js#INDEX_ENTRY",
|
|
423
|
+
"migrate-index.js#mapPath",
|
|
424
|
+
"migrate-index.js#parseIndex",
|
|
425
|
+
"migrate-index.js#renderIndex",
|
|
426
|
+
"migrate.js#EXCLUDED",
|
|
427
|
+
"migrate.js#fmtBytes",
|
|
428
|
+
"migrate.js#hncodeHome",
|
|
429
|
+
"migrate.js#MARKER",
|
|
430
|
+
"migrate.js#planExport",
|
|
431
|
+
"migrate.js#PORTABLE",
|
|
432
|
+
"migrate.js#readArchive",
|
|
433
|
+
"migrate.js#readArchiveManifest",
|
|
434
|
+
"migrate.js#sizeOf",
|
|
435
|
+
"migrate.js#writeArchive",
|
|
411
436
|
"notebook.js#cellSource",
|
|
412
437
|
"notebook.js#checkIndex",
|
|
413
438
|
"notebook.js#deleteCell",
|
|
@@ -617,11 +642,17 @@ export const PATCH_TARGETS = [
|
|
|
617
642
|
"session-hub.js#SessionHub.statusChanged",
|
|
618
643
|
"session-hub.js#SessionHub.subscribe",
|
|
619
644
|
"session-hub.js#SessionHub.syncChat",
|
|
645
|
+
"session-recover.js#recoverSessionFile",
|
|
646
|
+
"session-recover.js#recoverSessionText",
|
|
647
|
+
"session-recover.js#salvageMessages",
|
|
648
|
+
"session-recover.js#sanitizeToolPairs",
|
|
620
649
|
"session-view.js#HEADLESS_VIEW",
|
|
621
650
|
"session-view.js#tuiView",
|
|
651
|
+
"session.js#bumpMessage",
|
|
622
652
|
"session.js#clearSaveFailure",
|
|
623
653
|
"session.js#convRowFor",
|
|
624
654
|
"session.js#deleteSession",
|
|
655
|
+
"session.js#flushSaves",
|
|
625
656
|
"session.js#invalidateSessionCache",
|
|
626
657
|
"session.js#lastSaveFailure",
|
|
627
658
|
"session.js#latestSession",
|
|
@@ -630,6 +661,8 @@ export const PATCH_TARGETS = [
|
|
|
630
661
|
"session.js#newId",
|
|
631
662
|
"session.js#readSessionMeta",
|
|
632
663
|
"session.js#saveSession",
|
|
664
|
+
"session.js#saveSessionNow",
|
|
665
|
+
"session.js#saveSessionSoon",
|
|
633
666
|
"session.js#sessionFile",
|
|
634
667
|
"session.js#sessionsDir",
|
|
635
668
|
"settings-schema.js#changedSettings",
|
|
@@ -835,6 +868,7 @@ export const PATCH_TARGETS = [
|
|
|
835
868
|
"tui.js#failureReason",
|
|
836
869
|
"tui.js#feedArgStream",
|
|
837
870
|
"tui.js#findCommand",
|
|
871
|
+
"tui.js#getUiLang",
|
|
838
872
|
"tui.js#highlightCommandName",
|
|
839
873
|
"tui.js#highlightMatches",
|
|
840
874
|
"tui.js#isFailureResult",
|
|
@@ -848,6 +882,7 @@ export const PATCH_TARGETS = [
|
|
|
848
882
|
"tui.js#mergeRefreshedModelEntry",
|
|
849
883
|
"tui.js#messageSignature",
|
|
850
884
|
"tui.js#metricsSignature",
|
|
885
|
+
"tui.js#metricsSignatureIncremental",
|
|
851
886
|
"tui.js#paintCellFrame",
|
|
852
887
|
"tui.js#pickerFiltered",
|
|
853
888
|
"tui.js#PLAN_CLOSE_TAG",
|
|
@@ -873,12 +908,15 @@ export const PATCH_TARGETS = [
|
|
|
873
908
|
"tui.js#scrollFromThumbPos",
|
|
874
909
|
"tui.js#setArgCompletionProvider",
|
|
875
910
|
"tui.js#setTip",
|
|
911
|
+
"tui.js#setUiLang",
|
|
876
912
|
"tui.js#startTUI",
|
|
877
913
|
"tui.js#startupChat",
|
|
878
914
|
"tui.js#SWARM_MODE_INSTRUCTION",
|
|
879
915
|
"tui.js#tintRange",
|
|
880
916
|
"tui.js#TIPS",
|
|
881
917
|
"tui.js#tokenize",
|
|
918
|
+
"tui.js#tr",
|
|
919
|
+
"tui.js#trTitle",
|
|
882
920
|
"tui.js#windowOffset",
|
|
883
921
|
"tui.js#writeWindowTitle",
|
|
884
922
|
"update.js#AUTO_UPDATE_INTERVAL_MS",
|
|
@@ -951,4 +989,4 @@ export const PATCH_TARGET_SET = new Set(PATCH_TARGETS);
|
|
|
951
989
|
/** True when `target` names a real, patchable symbol. */
|
|
952
990
|
export function isPatchTarget(target) { return PATCH_TARGET_SET.has(String(target)); }
|
|
953
991
|
|
|
954
|
-
export const GENERATED_FROM = "hncode src/ (
|
|
992
|
+
export const GENERATED_FROM = "hncode src/ (96 files, 976 symbols)";
|