tcdona_unilib 1.0.10 → 1.0.12

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.
Files changed (71) hide show
  1. package/.prettierrc.json +6 -0
  2. package/animejs.ts +13 -1
  3. package/ast-grep.ts +42 -0
  4. package/big.ts +2 -2
  5. package/clipboardy.ts +1 -1
  6. package/dayjs.ts +2 -2
  7. package/dotenvx.ts +15 -2
  8. package/eff/eff.delay.ts +21 -0
  9. package/eff/eff.ts +226 -0
  10. package/eff/effcan.ts +286 -0
  11. package/eff/throwable.ts +11 -0
  12. package/effector.ts +33 -2
  13. package/es-toolkit.ts +1 -7
  14. package/exome.ts +10 -2
  15. package/hono.ts +18 -2
  16. package/hotkeys-js.ts +3 -2
  17. package/idmeta.json +42 -0
  18. package/inquirer.ts +1 -1
  19. package/koka/async.ts +4 -0
  20. package/koka/ctx.ts +4 -0
  21. package/koka/err.ts +4 -0
  22. package/koka/gen.ts +4 -0
  23. package/koka/index.ts +2 -0
  24. package/koka/opt.ts +4 -0
  25. package/koka/result.ts +10 -0
  26. package/koka/task.ts +4 -0
  27. package/koka-domain.ts +18 -0
  28. package/koka.ts +34 -0
  29. package/magic-regexp.ts +28 -2
  30. package/marked.ts +28 -2
  31. package/nanoid.ts +7 -1
  32. package/nanostores.ts +31 -2
  33. package/neverthrow.ts +2 -2
  34. package/package.json +15 -15
  35. package/pathe.ts +16 -1
  36. package/pinyin-pro.ts +16 -2
  37. package/prettier.ts +20 -2
  38. package/staticMeta/enum.api.ts +111 -82
  39. package/staticMeta/err.ts +64 -0
  40. package/staticMeta/file.yml.ts +12 -12
  41. package/staticMeta/md.html2md.ts +38 -0
  42. package/staticMeta/md.md2html.ts +203 -0
  43. package/staticMeta/path.init.ts +12 -12
  44. package/staticMeta/string.nanoid.ts +7 -7
  45. package/staticMeta/url.ts +57 -54
  46. package/tinypool.ts +29 -2
  47. package/turndown.ts +1 -1
  48. package/vite.ts +2 -2
  49. package/viteplugin/md.plugin.dist.d.ts +18 -0
  50. package/viteplugin/md.plugin.dist.js +1133 -0
  51. package/viteplugin/md.plugin.ts +22 -0
  52. package/viteplugin/vite-env.d.ts +6 -0
  53. package/viteplugin/vite.config.ts +62 -0
  54. package/vue.ts +2 -12
  55. package/zod.ts +19 -2
  56. package/zx.ts +25 -1
  57. package/@ast-grep.ts +0 -18
  58. package/comctx.ts +0 -2
  59. package/hono/cors.ts +0 -1
  60. package/hono/logger.ts +0 -1
  61. package/hono/timeout.ts +0 -1
  62. package/staticMeta/ast.scan.ts +0 -131
  63. package/staticMeta/ast.ts +0 -259
  64. package/staticMeta/eff.delay.ts +0 -17
  65. package/staticMeta/eff.ts +0 -203
  66. package/staticMeta/iduniq.ts +0 -320
  67. package/staticMeta/idupdate.ts +0 -374
  68. package/staticMeta/pkg.json.ts +0 -138
  69. package/staticMeta/project.ts +0 -98
  70. package/staticMeta/sync.ts +0 -296
  71. package/tcproject.ts +0 -60
package/es-toolkit.ts CHANGED
@@ -50,14 +50,12 @@ export {
50
50
  zip,
51
51
  zipObject,
52
52
  zipWith,
53
-
54
53
  debounce,
55
54
  throttle,
56
55
  once,
57
56
  noop,
58
57
  identity,
59
58
  range,
60
-
61
59
  clone,
62
60
  cloneDeep,
63
61
  isEqual,
@@ -70,7 +68,6 @@ export {
70
68
  invert,
71
69
  mapKeys,
72
70
  mapValues,
73
-
74
71
  camelCase,
75
72
  capitalize,
76
73
  kebabCase,
@@ -84,7 +81,6 @@ export {
84
81
  trimEnd,
85
82
  trimStart,
86
83
  pad,
87
-
88
84
  mean,
89
85
  meanBy,
90
86
  sum,
@@ -93,11 +89,9 @@ export {
93
89
  clamp,
94
90
  random,
95
91
  randomInt,
96
-
97
92
  delay,
98
93
  timeout,
99
94
  retry,
100
-
101
95
  isNil,
102
96
  isNull,
103
97
  isUndefined,
@@ -109,4 +103,4 @@ export {
109
103
  isSymbol,
110
104
  isLength,
111
105
  isTypedArray,
112
- } from 'es-toolkit';
106
+ } from 'es-toolkit'
package/exome.ts CHANGED
@@ -1,2 +1,10 @@
1
- export { Exome, addMiddleware, getExomeId, onAction, subscribe, update, runMiddleware } from 'exome';
2
- export type { Middleware } from 'exome';
1
+ export {
2
+ Exome,
3
+ addMiddleware,
4
+ getExomeId,
5
+ onAction,
6
+ subscribe,
7
+ update,
8
+ runMiddleware,
9
+ } from 'exome'
10
+ export type { Middleware } from 'exome'
package/hono.ts CHANGED
@@ -1,4 +1,20 @@
1
- export { Hono } from "hono"
1
+ // 导入所有需要的模块
2
+ import { Hono } from 'hono'
3
+ import { cors } from 'hono/cors'
4
+ import { logger } from 'hono/logger'
5
+ import { timeout } from 'hono/timeout'
6
+
7
+ // 导出 Hono 主类
8
+ export { Hono }
9
+
10
+ // 导出 hono 中间件为对象,避免命名冲突
11
+ export const honoMiddleware = {
12
+ cors,
13
+ logger,
14
+ timeout,
15
+ }
16
+
17
+ // 导出类型
2
18
  export type {
3
19
  Env,
4
20
  ErrorHandler,
@@ -20,4 +36,4 @@ export type {
20
36
  InferRequestType,
21
37
  InferResponseType,
22
38
  ClientRequestOptions,
23
- } from "hono"
39
+ } from 'hono'
package/hotkeys-js.ts CHANGED
@@ -1,2 +1,3 @@
1
- export { default } from 'hotkeys-js';
2
- export type { HotkeysEvent, KeyHandler } from 'hotkeys-js';
1
+ import { default as hotkey } from 'hotkeys-js'
2
+ export { hotkey }
3
+ export type { HotkeysEvent, KeyHandler } from 'hotkeys-js'
package/idmeta.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "generatedAt": "2026-01-02T15:48:35.553Z",
3
+ "projectRoot": "/Users/admin/Documents/tc/tcdona_unilib",
4
+ "totalFiles": 50,
5
+ "files": [
6
+ [
7
+ "/Users/admin/Documents/tc/tcdona_unilib/staticMeta/ast.scan.ts",
8
+ "staticMeta/ast.scan.ts",
9
+ true,
10
+ "fileId",
11
+ [[595, 629]],
12
+ []
13
+ ],
14
+ [
15
+ "/Users/admin/Documents/tc/tcdona_unilib/staticMeta/sync.ts",
16
+ "staticMeta/sync.ts",
17
+ true,
18
+ "fileId",
19
+ [[337, 371]],
20
+ [
21
+ "deleteFileFailed",
22
+ "cleanupFailed",
23
+ "syncEntryFailed",
24
+ "syncStart",
25
+ "syncDirectoryFailed",
26
+ "syncComplete",
27
+ "syncStatsCopied",
28
+ "syncStatsSkipped",
29
+ "syncStatsDeleted",
30
+ "syncStatsErrors"
31
+ ]
32
+ ],
33
+ [
34
+ "/Users/admin/Documents/tc/tcdona_unilib/eff/throwable.ts",
35
+ "eff/throwable.ts",
36
+ true,
37
+ "fileId",
38
+ [[116, 139]],
39
+ ["jsonParse"]
40
+ ]
41
+ ]
42
+ }
package/inquirer.ts CHANGED
@@ -10,4 +10,4 @@ export {
10
10
  password,
11
11
  search,
12
12
  select,
13
- } from "@inquirer/prompts"
13
+ } from '@inquirer/prompts'
package/koka/async.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Async effect types and utilities from 'koka'
2
+ export type { Async, MaybePromise } from 'koka'
3
+
4
+ export { Eff } from 'koka'
package/koka/ctx.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Context effect types and utilities from 'koka'
2
+ export type { Ctx, AnyCtx, CtxValue } from 'koka'
3
+
4
+ export { Eff, EffSymbol } from 'koka'
package/koka/err.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Error effect types and utilities from 'koka'
2
+ export type { Err, AnyErr, ExtractErr, ExcludeErr } from 'koka'
3
+
4
+ export { Eff } from 'koka'
package/koka/gen.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Generator utilities and stream types from 'koka'
2
+ export type { StreamResult, StreamResults, StreamHandler } from 'koka'
3
+
4
+ export { Eff, isGenerator } from 'koka'
package/koka/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Main koka re-export file - exports everything from koka
2
+ export * from '../koka.ts'
package/koka/opt.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Optional context effect types and utilities from 'koka'
2
+ export type { Opt, AnyOpt } from 'koka'
3
+
4
+ export { Eff } from 'koka'
package/koka/result.ts ADDED
@@ -0,0 +1,10 @@
1
+ // Result types and utilities from 'koka'
2
+ export type {
3
+ Ok,
4
+ AnyOk,
5
+ Result as ResultType,
6
+ AnyResult,
7
+ InferOkValue,
8
+ } from 'koka'
9
+
10
+ export { Result, Eff } from 'koka'
package/koka/task.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Task types and utilities from 'koka'
2
+ export type { Task, MaybeFunction } from 'koka'
3
+
4
+ export { Eff, isGenerator } from 'koka'
package/koka-domain.ts ADDED
@@ -0,0 +1,18 @@
1
+ // Type exports from 'koka-domain'
2
+ export type {
3
+ DomainErr,
4
+ Getter,
5
+ Updater,
6
+ Setter,
7
+ DomainOptions,
8
+ MaybeDomainEff,
9
+ Selector,
10
+ InferDomainState,
11
+ InferDomainRoot,
12
+ AnyDomain,
13
+ NestedArray,
14
+ NestedReadonlyArray,
15
+ } from 'koka-domain'
16
+
17
+ // Value exports from 'koka-domain'
18
+ export { getDomainValue, Domain } from 'koka-domain'
package/koka.ts ADDED
@@ -0,0 +1,34 @@
1
+ // Type exports from 'koka'
2
+ export type {
3
+ Err,
4
+ AnyErr,
5
+ Ctx,
6
+ Opt,
7
+ AnyCtx,
8
+ Async,
9
+ AnyOpt,
10
+ Msg,
11
+ AnyMsg,
12
+ SendMsg,
13
+ WaitMsg,
14
+ EffType,
15
+ AnyEff,
16
+ EffectHandlers,
17
+ ExtractErr,
18
+ ExcludeErr,
19
+ Ok,
20
+ AnyOk,
21
+ AnyResult,
22
+ InferOkValue,
23
+ Task,
24
+ MaybePromise,
25
+ MaybeFunction,
26
+ CtxValue,
27
+ MsgValue,
28
+ StreamResult,
29
+ StreamResults,
30
+ StreamHandler,
31
+ } from 'koka'
32
+
33
+ // Value exports from 'koka'
34
+ export { EffSymbol, Result, Eff, isGenerator } from 'koka'
package/magic-regexp.ts CHANGED
@@ -1,2 +1,28 @@
1
- export { createRegExp, exactly, oneOrMore, anyOf, char, charIn, charNotIn, word, wordChar, wordBoundary, digit, whitespace, letter, tab, linefeed, carriageReturn, not, maybe, global, multiline, caseInsensitive, sticky, unicode, dotAll, withIndices } from 'magic-regexp';
2
- export type { Input, MagicRegExp } from 'magic-regexp';
1
+ export {
2
+ createRegExp,
3
+ exactly,
4
+ oneOrMore,
5
+ anyOf,
6
+ char,
7
+ charIn,
8
+ charNotIn,
9
+ word,
10
+ wordChar,
11
+ wordBoundary,
12
+ digit,
13
+ whitespace,
14
+ letter,
15
+ tab,
16
+ linefeed,
17
+ carriageReturn,
18
+ not,
19
+ maybe,
20
+ global,
21
+ multiline,
22
+ caseInsensitive,
23
+ sticky,
24
+ unicode,
25
+ dotAll,
26
+ withIndices,
27
+ } from 'magic-regexp'
28
+ export type { Input, MagicRegExp } from 'magic-regexp'
package/marked.ts CHANGED
@@ -1,2 +1,28 @@
1
- export { marked, Marked, Lexer, Parser, Tokenizer, Renderer, TextRenderer, Hooks, getDefaults, setOptions, use, parse, parseInline, lexer, parser, walkTokens } from 'marked';
2
- export type { Token, Tokens, TokensList, MarkedExtension, MarkedOptions, RendererObject, TokenizerObject, TokenizerExtension } from 'marked';
1
+ export {
2
+ marked,
3
+ Marked,
4
+ Lexer,
5
+ Parser,
6
+ Tokenizer,
7
+ Renderer,
8
+ TextRenderer,
9
+ Hooks,
10
+ getDefaults,
11
+ setOptions,
12
+ use,
13
+ parse,
14
+ parseInline,
15
+ lexer,
16
+ parser,
17
+ walkTokens,
18
+ } from 'marked'
19
+ export type {
20
+ Token,
21
+ Tokens,
22
+ TokensList,
23
+ MarkedExtension,
24
+ MarkedOptions,
25
+ RendererObject,
26
+ TokenizerObject,
27
+ TokenizerExtension,
28
+ } from 'marked'
package/nanoid.ts CHANGED
@@ -1 +1,7 @@
1
- export { nanoid, customAlphabet, customRandom, urlAlphabet, random } from 'nanoid';
1
+ export {
2
+ nanoid,
3
+ customAlphabet,
4
+ customRandom,
5
+ urlAlphabet,
6
+ random,
7
+ } from 'nanoid'
package/nanostores.ts CHANGED
@@ -1,2 +1,31 @@
1
- export { atom, map, deepMap, computed, onMount, onSet, onNotify, onStart, onStop, listenKeys, keepMount, task, startTask, allTasks, cleanTasks, batched, STORE_UNMOUNT_DELAY } from 'nanostores';
2
- export type { Atom, MapStore, DeepMapStore, ReadableAtom, WritableAtom, PreinitializedWritableAtom, MapStoreKeys, AnyStore, Store, StoreValue } from 'nanostores';
1
+ export {
2
+ atom,
3
+ map,
4
+ deepMap,
5
+ computed,
6
+ onMount,
7
+ onSet,
8
+ onNotify,
9
+ onStart,
10
+ onStop,
11
+ listenKeys,
12
+ keepMount,
13
+ task,
14
+ startTask,
15
+ allTasks,
16
+ cleanTasks,
17
+ batched,
18
+ STORE_UNMOUNT_DELAY,
19
+ } from 'nanostores'
20
+ export type {
21
+ Atom,
22
+ MapStore,
23
+ DeepMapStore,
24
+ ReadableAtom,
25
+ WritableAtom,
26
+ PreinitializedWritableAtom,
27
+ MapStoreKeys,
28
+ AnyStore,
29
+ Store,
30
+ StoreValue,
31
+ } from 'nanostores'
package/neverthrow.ts CHANGED
@@ -11,5 +11,5 @@ export {
11
11
  fromSafePromise,
12
12
  fromThrowable,
13
13
  safeTry,
14
- } from 'neverthrow';
15
- export type { Result as ResultType } from 'neverthrow';
14
+ } from 'neverthrow'
15
+ export type { Result as ResultType } from 'neverthrow'
package/package.json CHANGED
@@ -1,21 +1,20 @@
1
1
  {
2
2
  "name": "tcdona_unilib",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Unified dependency aggregation layer for shared libraries",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "exports": {
8
- "./astgrep": "./@ast-grep.ts",
9
- "./staticMeta/eff": "./staticMeta/eff.ts",
8
+ "./astgrep": "./ast-grep.ts",
9
+ "./eff/eff": "./eff/eff.ts",
10
+ "./eff/effcan": "./eff/effcan.ts",
11
+ "./eff/throwable": "./eff/throwable.ts",
12
+ "./staticMeta/enum.api": "./staticMeta/enum.api.ts",
10
13
  "./staticMeta/file": "./staticMeta/file.yml.ts",
11
14
  "./staticMeta/path": "./staticMeta/path.init.ts",
12
15
  "./staticMeta/string": "./staticMeta/string.nanoid.ts",
13
16
  "./staticMeta/url": "./staticMeta/url.ts",
14
- "./staticMeta/enum.api": "./staticMeta/enum.api.ts",
15
- "./staticMeta/iduniq": "./staticMeta/iduniq.ts",
16
- "./staticMeta/idupdate": "./staticMeta/idupdate.ts",
17
- "./staticMeta/pkgjson": "./staticMeta/pkg.json.ts",
18
- "./staticMeta/project": "./staticMeta/project.ts",
17
+ "./staticMeta/err": "./staticMeta/err.ts",
19
18
  "./neverthrow": "./neverthrow.ts",
20
19
  "./zod": "./zod.ts",
21
20
  "./zx": "./zx.ts",
@@ -30,24 +29,24 @@
30
29
  "./prettier": "./prettier.ts",
31
30
  "./turndown": "./turndown.ts",
32
31
  "./effector": "./effector.ts",
33
- "./comctx": "./comctx.ts",
34
32
  "./estk": "./es-toolkit.ts",
35
33
  "./magicreg": "./magic-regexp.ts",
36
34
  "./exome": "./exome.ts",
37
35
  "./vue": "./vue.ts",
38
36
  "./vite": "./vite.ts",
39
37
  "./hono": "./hono.ts",
40
- "./hono/cors": "./hono/cors.ts",
41
- "./hono/logger": "./hono/logger.ts",
42
- "./hono/timeout": "./hono/timeout.ts",
43
38
  "./hotkeys": "./hotkeys-js.ts",
44
39
  "./pinyinpro": "./pinyin-pro.ts",
45
40
  "./tinypool": "./tinypool.ts",
46
41
  "./dotenvx": "./dotenvx.ts",
47
- "./inquirer": "./inquirer.ts"
42
+ "./inquirer": "./inquirer.ts",
43
+ "./koka": "./koka.ts",
44
+ "./koka-domain": "./koka-domain.ts",
45
+ "./viteplugin/*.js": "./viteplugin/*.js",
46
+ "./viteplugin/*.ts": "./viteplugin/*.ts"
48
47
  },
49
48
  "scripts": {
50
- "test": "echo \"Error: no test specified\" && exit 1",
49
+ "viteplugin": "vite build -c viteplugin/vite.config.ts",
51
50
  "pub": "bun run ./tc.pub.ts"
52
51
  },
53
52
  "keywords": [],
@@ -67,13 +66,14 @@
67
66
  "animejs": "^4.1.3",
68
67
  "big.js": "^7.0.1",
69
68
  "clipboardy": "^5.0.2",
70
- "comctx": "^1.4.3",
71
69
  "dayjs": "^1.11.19",
72
70
  "effector": "^23.4.4",
73
71
  "es-toolkit": "^1.43.0",
74
72
  "exome": "^2.8.0",
75
73
  "hono": "^4.11.3",
76
74
  "hotkeys-js": "^4.0.0",
75
+ "koka": "^1.0.9",
76
+ "koka-domain": "^1.0.0",
77
77
  "magic-regexp": "^0.10.0",
78
78
  "marked": "^17.0.1",
79
79
  "nanoid": "^5.1.6",
package/pathe.ts CHANGED
@@ -1 +1,16 @@
1
- export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from 'pathe';
1
+ export {
2
+ basename,
3
+ delimiter,
4
+ dirname,
5
+ extname,
6
+ format,
7
+ isAbsolute,
8
+ join,
9
+ normalize,
10
+ normalizeString,
11
+ parse,
12
+ relative,
13
+ resolve,
14
+ sep,
15
+ toNamespacedPath,
16
+ } from 'pathe'
package/pinyin-pro.ts CHANGED
@@ -1,2 +1,16 @@
1
- export { getInitialAndFinal, getFinalParts, getNumOfTone, pinyin, customPinyin, clearCustomDict, addDict, removeDict, match, html, polyphonic, convert, segment } from 'pinyin-pro';
2
- export type { OutputFormat } from 'pinyin-pro';
1
+ export {
2
+ getInitialAndFinal,
3
+ getFinalParts,
4
+ getNumOfTone,
5
+ pinyin,
6
+ customPinyin,
7
+ clearCustomDict,
8
+ addDict,
9
+ removeDict,
10
+ match,
11
+ html,
12
+ polyphonic,
13
+ convert,
14
+ segment,
15
+ } from 'pinyin-pro'
16
+ export type { OutputFormat } from 'pinyin-pro'
package/prettier.ts CHANGED
@@ -1,2 +1,20 @@
1
- export { format, formatWithCursor, check, resolveConfig, resolveConfigFile, clearConfigCache, getFileInfo, getSupportInfo, doc, version } from 'prettier';
2
- export type { Options, Plugin, Printer, Parser, SupportLanguage, SupportOption } from 'prettier';
1
+ export {
2
+ format,
3
+ formatWithCursor,
4
+ check,
5
+ resolveConfig,
6
+ resolveConfigFile,
7
+ clearConfigCache,
8
+ getFileInfo,
9
+ getSupportInfo,
10
+ doc,
11
+ version,
12
+ } from 'prettier'
13
+ export type {
14
+ Options,
15
+ Plugin,
16
+ Printer,
17
+ Parser,
18
+ SupportLanguage,
19
+ SupportOption,
20
+ } from 'prettier'