@nudojs/service 1.0.0 → 1.1.0

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.
@@ -0,0 +1,20 @@
1
+ import { Abs, Environment } from '@nudojs/core';
2
+
3
+ type LoadedEnv = {
4
+ /** Abs 原生模块导出(B 路径 / Abs 模块图) */
5
+ modules: Record<string, Record<string, Abs>>;
6
+ globals: Record<string, Abs>;
7
+ };
8
+ /** 测试/诊断:path-env 驻留规模(均 ≤ 对应上限) */
9
+ declare function getPathEnvCacheSizes(): {
10
+ byKey: number;
11
+ byPath: number;
12
+ baseDirs: number;
13
+ };
14
+ /** Host cache-clear hooks (CLI watch / vite / tests) must drop path-env modules too */
15
+ declare function clearPathEnvCaches(): void;
16
+ declare function preloadPathEnvs(envNames: string[], baseDir: string): Promise<void>;
17
+ declare function loadEnvsAsync(envNames: string[], globalEnv: Environment, baseDir?: string): Promise<LoadedEnv>;
18
+ declare function loadEnvs(envNames: string[], globalEnv: Environment): LoadedEnv;
19
+
20
+ export { type LoadedEnv as L, loadEnvsAsync as a, clearPathEnvCaches as c, getPathEnvCacheSizes as g, loadEnvs as l, preloadPathEnvs as p };
@@ -1,28 +1,19 @@
1
- export { C as CallRecord, I as InterfaceConfig, N as NudoConfig, U as USAGE_SITE_MODULE, a as UnknownRecord, e as evaluate, b as evaluateFunction, c as evaluateFunctionFull, d as evaluateProgram, f as findProjectConfig, g as getUnreachableRanges, i as interfaceConfig, m as memberMayExistOn, r as resetEnvModules, h as resetMemo, j as resetMockModules, k as resetUnreachableRanges, s as setCallCollector, l as setCurrentFileDir, n as setCurrentSource, o as setEnvModules, p as setMaxConcreteIter, q as setMockModules, t as setModuleResolver, u as setNodeTypeCollector, v as setProvenanceTracking, w as setSampleCount, x as setUnknownBuiltinHandler, y as setUnknownCollector, z as setUsageSiteTag } from '../config-UlReSTfh.js';
2
- import { Node } from '@babel/types';
3
- import { Environment, TypeValue } from '@nudojs/core';
1
+ export { C as CallRecord } from '../call-record-CkyCFkT9.js';
2
+ import { Abs } from '@nudojs/core';
3
+ export { L as LoadedEnv, l as loadEnvs, a as loadEnvsAsync, p as preloadPathEnvs } from '../env-loader-fj0TSCcA.js';
4
+ export { A as AnalysisConfig, a as AnalysisMode, C as CheckConfig, D as DiagnosticsLevel, I as InterfaceConfig, N as NudoConfig, b as analysisConfig, c as checkConfig, d as diskCacheRoot, f as findProjectConfig, i as interfaceConfig, m as matchesEmitAllowlist } from '../config-DDB588oA.js';
4
5
 
5
6
  /**
6
- * Given a test expression and the current environment, produce two
7
- * environments: one where the test is truthy, one where it is falsy.
7
+ * 内置类原型成员近似表(Abs 声明)。
8
+ * LSP 补全唯一真值;TypeValue 求值器已删,不再承载 impl 微求值。
8
9
  */
9
- declare function narrow(test: Node, env: Environment): [trueEnv: Environment, falseEnv: Environment];
10
10
 
11
- /**
12
- * 内置类原型机制:错误类集合、可构造内置类、Object/Array/Map/Set/…/Buffer
13
- * 的原型成员近似表,以及 `X.prototype` 单例与类命名空间记忆化。
14
- * 求值器成员分派与补全侧成员派生共用本表的唯一真值。
15
- */
16
-
17
- declare const BUILTIN_PROTOTYPE_METHOD_APPROXIMATIONS: Record<string, Record<string, TypeValue>>;
18
-
19
- type LoadedEnv = {
20
- modules: Record<string, Record<string, TypeValue>>;
21
- };
22
- declare function preloadPathEnvs(envNames: string[], baseDir: string): Promise<void>;
23
- declare function loadEnvsAsync(envNames: string[], globalEnv: Environment, baseDir?: string): Promise<LoadedEnv>;
24
- declare function loadEnvs(envNames: string[], globalEnv: Environment): LoadedEnv;
11
+ declare const BUILTIN_PROTOTYPE_METHOD_APPROXIMATIONS: Record<string, Record<string, Abs>>;
12
+ /** LSP detail:Abs fn → `(a: number) => string` 形态 */
13
+ declare function describeAbsMember(a: Abs): string | null;
14
+ declare function builtinProtoMemberNames(className: string): string[];
15
+ declare function builtinProtoMember(className: string, member: string): Abs | null;
25
16
 
26
17
  declare function resolveNpmNudo(source: string, fromDir: string): string | null;
27
18
 
28
- export { BUILTIN_PROTOTYPE_METHOD_APPROXIMATIONS, type LoadedEnv, loadEnvs, loadEnvsAsync, narrow, preloadPathEnvs, resolveNpmNudo };
19
+ export { BUILTIN_PROTOTYPE_METHOD_APPROXIMATIONS, builtinProtoMember, builtinProtoMemberNames, describeAbsMember, resolveNpmNudo };
@@ -1,68 +1,32 @@
1
1
  import {
2
2
  BUILTIN_PROTOTYPE_METHOD_APPROXIMATIONS,
3
- USAGE_SITE_MODULE,
4
- evaluate,
5
- evaluateFunction,
6
- evaluateFunctionFull,
7
- evaluateProgram,
3
+ analysisConfig,
4
+ builtinProtoMember,
5
+ builtinProtoMemberNames,
6
+ checkConfig,
7
+ describeAbsMember,
8
+ diskCacheRoot,
8
9
  findProjectConfig,
9
- getUnreachableRanges,
10
10
  interfaceConfig,
11
11
  loadEnvs,
12
12
  loadEnvsAsync,
13
- memberMayExistOn,
14
- narrow,
13
+ matchesEmitAllowlist,
15
14
  preloadPathEnvs,
16
- resetEnvModules,
17
- resetMemo,
18
- resetMockModules,
19
- resetUnreachableRanges,
20
- resolveNpmNudo,
21
- setCallCollector,
22
- setCurrentFileDir,
23
- setCurrentSource,
24
- setEnvModules,
25
- setMaxConcreteIter,
26
- setMockModules,
27
- setModuleResolver,
28
- setNodeTypeCollector,
29
- setProvenanceTracking,
30
- setSampleCount,
31
- setUnknownBuiltinHandler,
32
- setUnknownCollector,
33
- setUsageSiteTag
34
- } from "../chunk-FSIHAE7I.js";
15
+ resolveNpmNudo
16
+ } from "../chunk-ZXVAX7DE.js";
35
17
  export {
36
18
  BUILTIN_PROTOTYPE_METHOD_APPROXIMATIONS,
37
- USAGE_SITE_MODULE,
38
- evaluate,
39
- evaluateFunction,
40
- evaluateFunctionFull,
41
- evaluateProgram,
19
+ analysisConfig,
20
+ builtinProtoMember,
21
+ builtinProtoMemberNames,
22
+ checkConfig,
23
+ describeAbsMember,
24
+ diskCacheRoot,
42
25
  findProjectConfig,
43
- getUnreachableRanges,
44
26
  interfaceConfig,
45
27
  loadEnvs,
46
28
  loadEnvsAsync,
47
- memberMayExistOn,
48
- narrow,
29
+ matchesEmitAllowlist,
49
30
  preloadPathEnvs,
50
- resetEnvModules,
51
- resetMemo,
52
- resetMockModules,
53
- resetUnreachableRanges,
54
- resolveNpmNudo,
55
- setCallCollector,
56
- setCurrentFileDir,
57
- setCurrentSource,
58
- setEnvModules,
59
- setMaxConcreteIter,
60
- setMockModules,
61
- setModuleResolver,
62
- setNodeTypeCollector,
63
- setProvenanceTracking,
64
- setSampleCount,
65
- setUnknownBuiltinHandler,
66
- setUnknownCollector,
67
- setUsageSiteTag
31
+ resolveNpmNudo
68
32
  };