@siftline/core 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Todayweb
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @siftline/core
2
+
3
+ The Siftline engine: recipes, rules, fixtures and the judge wrapper.
4
+
5
+ This package is a walking skeleton. It exports a placeholder constant, its own version
6
+ and a placeholder fake client, which is enough to prove the build, type, test, pack and
7
+ publish path. The Engine itself lands next.
8
+
9
+ ```ts
10
+ import { PLACEHOLDER, VERSION } from "@siftline/core";
11
+ import { createFakeTypeSafeClient } from "@siftline/core/testing";
12
+ ```
13
+
14
+ ESM only. Node 22.14 or newer.
15
+
16
+ ## Licence
17
+
18
+ MIT — see [LICENSE](./LICENSE).
@@ -0,0 +1,14 @@
1
+ //#region src/index.d.ts
2
+ /**
3
+ * The published version of `@siftline/core`, baked in at build time.
4
+ *
5
+ * Changesets bumps `package.json`; this constant follows it without a second edit.
6
+ */
7
+ export declare const VERSION: string;
8
+ /**
9
+ * Walking-skeleton export. It exists so the build, type, test, pack and publish path
10
+ * can be proven before any Engine behaviour is written, and it will be deleted when
11
+ * the first recipe lands.
12
+ */
13
+ export declare const PLACEHOLDER = "siftline-core-walking-skeleton";
14
+ //#endregion
package/dist/index.mjs ADDED
@@ -0,0 +1,16 @@
1
+ //#endregion
2
+ //#region src/index.ts
3
+ /**
4
+ * The published version of `@siftline/core`, baked in at build time.
5
+ *
6
+ * Changesets bumps `package.json`; this constant follows it without a second edit.
7
+ */
8
+ const VERSION = "0.0.2";
9
+ /**
10
+ * Walking-skeleton export. It exists so the build, type, test, pack and publish path
11
+ * can be proven before any Engine behaviour is written, and it will be deleted when
12
+ * the first recipe lands.
13
+ */
14
+ const PLACEHOLDER = "siftline-core-walking-skeleton";
15
+ //#endregion
16
+ export { PLACEHOLDER, VERSION };
@@ -0,0 +1,14 @@
1
+ //#region src/testing.d.ts
2
+ /**
3
+ * A stand-in for the TypeSafe client the Engine will judge through. Test code depends
4
+ * on this shape so that swapping the real client in never reaches a test file.
5
+ */
6
+ export interface FakeTypeSafeClient {
7
+ readonly kind: "fake";
8
+ }
9
+ /**
10
+ * Walking-skeleton factory for the `./testing` entry. It proves the second export
11
+ * condition resolves for consumers; the real fake arrives with the Engine.
12
+ */
13
+ export declare function createFakeTypeSafeClient(): FakeTypeSafeClient;
14
+ //#endregion
@@ -0,0 +1,10 @@
1
+ //#region src/testing.ts
2
+ /**
3
+ * Walking-skeleton factory for the `./testing` entry. It proves the second export
4
+ * condition resolves for consumers; the real fake arrives with the Engine.
5
+ */
6
+ function createFakeTypeSafeClient() {
7
+ return { kind: "fake" };
8
+ }
9
+ //#endregion
10
+ export { createFakeTypeSafeClient };
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@siftline/core",
3
+ "version": "0.0.2",
4
+ "description": "The Siftline engine: recipes, rules, fixtures and the judge wrapper.",
5
+ "keywords": [
6
+ "classification",
7
+ "siftline",
8
+ "triage"
9
+ ],
10
+ "homepage": "https://docs.siftline.dev",
11
+ "bugs": {
12
+ "url": "https://github.com/Siftline/toolkit/issues"
13
+ },
14
+ "license": "MIT",
15
+ "author": "Todayweb",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Siftline/toolkit.git",
19
+ "directory": "packages/core"
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "type": "module",
25
+ "sideEffects": false,
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.mts",
29
+ "default": "./dist/index.mjs"
30
+ },
31
+ "./testing": {
32
+ "types": "./dist/testing.d.mts",
33
+ "default": "./dist/testing.mjs"
34
+ }
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "build": "tsdown",
41
+ "dev": "tsdown --watch",
42
+ "lint": "oxlint --type-aware --deny-warnings",
43
+ "lint:fix": "oxlint --type-aware --deny-warnings --fix",
44
+ "test": "vitest run",
45
+ "test:live": "vitest run --config vitest.live.config.ts",
46
+ "typecheck": "tsc --noEmit"
47
+ },
48
+ "dependencies": {
49
+ "zod": "4.6.5"
50
+ },
51
+ "devDependencies": {
52
+ "@arethetypeswrong/core": "0.18.5",
53
+ "@siftline/config": "workspace:*",
54
+ "publint": "0.3.24",
55
+ "tsdown": "0.23.0",
56
+ "typescript": "7.0.2",
57
+ "vitest": "4.1.11"
58
+ },
59
+ "engines": {
60
+ "node": ">=22.14"
61
+ }
62
+ }