@spaceflow/core 0.1.2 → 0.1.3

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/nest-cli.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/nest-cli",
3
- "collection": "@nestjs/schematics",
4
- "sourceRoot": "src",
5
- "compilerOptions": {
6
- "deleteOutDir": true,
7
- "webpack": true,
8
- "webpackConfigPath": "webpack.config.cjs"
9
- }
10
- }
package/rspack.config.mjs DELETED
@@ -1,62 +0,0 @@
1
- import { fileURLToPath } from "url";
2
- import { dirname, resolve } from "path";
3
-
4
- const __dirname = dirname(fileURLToPath(import.meta.url));
5
-
6
- export default {
7
- optimization: {
8
- minimize: false,
9
- },
10
- entry: {
11
- index: "./src/index.ts",
12
- },
13
- plugins: [],
14
- target: "node",
15
- mode: process.env.NODE_ENV === "production" ? "production" : "development",
16
- output: {
17
- filename: "[name].js",
18
- path: resolve(__dirname, "dist"),
19
- library: { type: "module" },
20
- chunkFormat: "module",
21
- clean: true,
22
- },
23
- experiments: {
24
- outputModule: true,
25
- },
26
- externalsType: "module-import",
27
- externals: [
28
- { micromatch: "node-commonjs micromatch" },
29
- /^(?!src\/)[^./]/, // node_modules 包(排除 src/ 别名)
30
- ],
31
- resolve: {
32
- extensions: [".ts", ".js"],
33
- extensionAlias: {
34
- ".js": [".ts", ".js"],
35
- },
36
- tsConfig: {
37
- configFile: resolve(__dirname, "tsconfig.json"),
38
- },
39
- },
40
- module: {
41
- rules: [
42
- {
43
- test: /\.ts$/,
44
- exclude: /node_modules/,
45
- loader: "builtin:swc-loader",
46
- options: {
47
- jsc: {
48
- parser: {
49
- syntax: "typescript",
50
- decorators: true,
51
- },
52
- transform: {
53
- legacyDecorator: true,
54
- decoratorMetadata: true,
55
- },
56
- target: "es2022",
57
- },
58
- },
59
- },
60
- ],
61
- },
62
- };
@@ -1,22 +0,0 @@
1
- import { Test, TestingModule } from "@nestjs/testing";
2
- import { INestApplication } from "@nestjs/common";
3
- import * as request from "supertest";
4
- import { App } from "supertest/types";
5
- import { AppModule } from "./../src/app.module";
6
-
7
- describe("AppController (e2e)", () => {
8
- let app: INestApplication<App>;
9
-
10
- beforeEach(async () => {
11
- const moduleFixture: TestingModule = await Test.createTestingModule({
12
- imports: [AppModule],
13
- }).compile();
14
-
15
- app = moduleFixture.createNestApplication();
16
- await app.init();
17
- });
18
-
19
- it("/ (GET)", () => {
20
- return request(app.getHttpServer()).get("/").expect(200).expect("Hello World!");
21
- });
22
- });
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4
- }
package/tsconfig.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "ESNext",
4
- "moduleResolution": "bundler",
5
- "declaration": true,
6
- "removeComments": true,
7
- "emitDecoratorMetadata": true,
8
- "experimentalDecorators": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "target": "ES2023",
12
- "sourceMap": true,
13
- "outDir": "./dist",
14
- "baseUrl": "./",
15
- "incremental": true,
16
- "skipLibCheck": true,
17
- "strictNullChecks": true,
18
- "forceConsistentCasingInFileNames": true,
19
- "noImplicitAny": false,
20
- "strictBindCallApply": false,
21
- "noFallthroughCasesInSwitch": false,
22
- "resolveJsonModule": true,
23
- "types": ["vitest/globals"]
24
- }
25
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "target": "ES2022",
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "lib": ["ES2022"],
8
- "strict": false,
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "experimentalDecorators": true,
13
- "emitDecoratorMetadata": true,
14
- "declaration": false,
15
- "sourceMap": true,
16
- "resolveJsonModule": true
17
- }
18
- }
package/vitest.config.ts DELETED
@@ -1,58 +0,0 @@
1
- import swc from "unplugin-swc";
2
- import { defineConfig } from "vitest/config";
3
-
4
- export default defineConfig({
5
- plugins: [swc.vite()],
6
- test: {
7
- root: "src",
8
- globals: true,
9
- environment: "node",
10
- include: ["**/*.spec.ts"],
11
- alias: {
12
- "^src/(.*)$": "$1",
13
- },
14
- coverage: {
15
- provider: "v8",
16
- include: ["shared/**/*.ts"],
17
- exclude: [
18
- "**/*.spec.ts",
19
- "**/*.module.ts",
20
- "**/index.ts",
21
- "**/__mocks__/**",
22
- "**/*.interface.ts",
23
- "**/*.types.ts",
24
- "**/types.ts",
25
- "**/types/**",
26
- "**/interfaces/**",
27
- "**/feishu-sdk/**",
28
- "**/storage/**",
29
- "**/rspack-config/**",
30
- "**/output/**",
31
- "**/parallel/**",
32
- "**/mcp/**",
33
- "**/editor-config/**",
34
- "**/package-manager/**",
35
- "**/source-utils/**",
36
- "**/spaceflow-dir/**",
37
- "**/verbose/**",
38
- "**/claude-setup/**",
39
- "**/git-sdk/git-sdk.service.ts",
40
- "**/i18n/locale-detect.ts",
41
- "**/tui.renderer.ts",
42
- "**/llm-jsonput/**",
43
- "**/stream-logger.ts",
44
- "**/open-code.adapter.ts",
45
- "**/claude-code.adapter.ts",
46
- "**/gitlab.adapter.ts",
47
- "**/gitea.adapter.ts",
48
- "**/github.adapter.ts",
49
- ],
50
- thresholds: {
51
- lines: 80,
52
- functions: 80,
53
- branches: 80,
54
- statements: 80,
55
- },
56
- },
57
- },
58
- });