@theaiplatform/miniapp-sdk 0.0.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.
- package/LICENSE.md +528 -0
- package/README.md +39 -0
- package/THIRD_PARTY_NOTICES.md +257 -0
- package/config-schema.json +3192 -0
- package/dist/config.d.ts +35 -0
- package/dist/config.js +4 -0
- package/dist/index.d.ts +475 -0
- package/dist/index.js +2 -0
- package/dist/rspack/css-entry-loader.cjs +27 -0
- package/dist/rspack/html-loader.cjs +150 -0
- package/dist/rspack/index.d.ts +53 -0
- package/dist/rspack/index.js +2655 -0
- package/dist/sdk.d.ts +441 -0
- package/dist/sdk.js +27 -0
- package/dist/surface.d.ts +49 -0
- package/dist/surface.js +28 -0
- package/dist/web.d.ts +507 -0
- package/dist/web.js +146 -0
- package/package.json +113 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { LibConfig } from '@rslib/core';
|
|
2
|
+
import { ModuleFederationOptions } from '@module-federation/rsbuild-plugin';
|
|
3
|
+
import { RsbuildPlugin } from '@rsbuild/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Transactionally assembles independently compiled targets into one descriptor-backed
|
|
7
|
+
* physical package. Target code stays under `targets/<target>`; only the
|
|
8
|
+
* host-owned surface shell and descriptor-declared presentation files may be
|
|
9
|
+
* byte-identical shared assets.
|
|
10
|
+
*/
|
|
11
|
+
export declare const assembleTapPackage: ({ manifest, output, targets, }: TapPackageAssemblyOptions) => Promise<void>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Fails a package build when generated artifacts retain a local file URL or
|
|
15
|
+
* an absolute checkout path. This validates emitted bytes, not source text.
|
|
16
|
+
*/
|
|
17
|
+
export declare const assertPortableTapPackageArtifacts: ({ output, forbiddenRoots, }: TapPackageArtifactPortabilityOptions) => Promise<void>;
|
|
18
|
+
|
|
19
|
+
declare type Config = {
|
|
20
|
+
manifest?: string;
|
|
21
|
+
entryName?: string;
|
|
22
|
+
output?: string;
|
|
23
|
+
federation?: ModuleFederationOptions;
|
|
24
|
+
/** Descriptor target updated by this build, such as desktop or mobile. */
|
|
25
|
+
packageTarget?: 'desktop' | 'mobile' | 'quickjs' | 'worker' | 'node' | 'workflow-host';
|
|
26
|
+
/** Filesystem root for this independently compiled target graph. */
|
|
27
|
+
packageOutputRoot?: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const pluginTap: (options?: Config) => RsbuildPlugin;
|
|
31
|
+
|
|
32
|
+
export declare const tapLib: (options?: Config) => LibConfig;
|
|
33
|
+
|
|
34
|
+
/** Emitted-package scan used to reject machine-local build artifacts. */
|
|
35
|
+
export declare type TapPackageArtifactPortabilityOptions = {
|
|
36
|
+
output: string;
|
|
37
|
+
/** Absolute source or checkout roots that must never be embedded in output. */
|
|
38
|
+
forbiddenRoots?: readonly string[];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Independently built target roots assembled into one immutable TAP package.
|
|
43
|
+
* Every descriptor target must be present exactly once.
|
|
44
|
+
*/
|
|
45
|
+
export declare type TapPackageAssemblyOptions = {
|
|
46
|
+
manifest: string;
|
|
47
|
+
output: string;
|
|
48
|
+
targets: Partial<Record<TapPackageTarget, string>>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export declare type TapPackageTarget = NonNullable<Config['packageTarget']>;
|
|
52
|
+
|
|
53
|
+
export { }
|