inputlayer-js-dev 0.1.0-dev.ec507e7
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/dist/chunk-S3PNNRWY.mjs +116 -0
- package/dist/functions.d.mts +76 -0
- package/dist/functions.d.ts +76 -0
- package/dist/functions.js +340 -0
- package/dist/functions.mjs +253 -0
- package/dist/index.d.mts +929 -0
- package/dist/index.d.ts +929 -0
- package/dist/index.js +2186 -0
- package/dist/index.mjs +2034 -0
- package/dist/proxy-CPWAPhZZ.d.mts +198 -0
- package/dist/proxy-CPWAPhZZ.d.ts +198 -0
- package/package.json +61 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal AST nodes for expression trees compiled to IQL.
|
|
3
|
+
*/
|
|
4
|
+
/** Base interface for all expression AST nodes. */
|
|
5
|
+
interface Expr {
|
|
6
|
+
readonly _tag: string;
|
|
7
|
+
}
|
|
8
|
+
/** Base interface for boolean expression AST nodes (conditions). */
|
|
9
|
+
interface BoolExpr {
|
|
10
|
+
readonly _tag: string;
|
|
11
|
+
}
|
|
12
|
+
/** Reference to a relation column. */
|
|
13
|
+
interface Column extends Expr {
|
|
14
|
+
readonly _tag: 'Column';
|
|
15
|
+
readonly relation: string;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly refAlias?: string;
|
|
18
|
+
}
|
|
19
|
+
/** A constant value. */
|
|
20
|
+
interface Literal extends Expr {
|
|
21
|
+
readonly _tag: 'Literal';
|
|
22
|
+
readonly value: any;
|
|
23
|
+
}
|
|
24
|
+
/** Binary arithmetic: +, -, *, /, %. */
|
|
25
|
+
interface Arithmetic extends Expr {
|
|
26
|
+
readonly _tag: 'Arithmetic';
|
|
27
|
+
readonly op: '+' | '-' | '*' | '/' | '%';
|
|
28
|
+
readonly left: Expr;
|
|
29
|
+
readonly right: Expr;
|
|
30
|
+
}
|
|
31
|
+
/** Built-in function call: distance(V1, V2), upper(S), etc. */
|
|
32
|
+
interface FuncCall extends Expr {
|
|
33
|
+
readonly _tag: 'FuncCall';
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly args: readonly Expr[];
|
|
36
|
+
}
|
|
37
|
+
/** Aggregation expression: count<X>, sum<X>, top_k<k, ...>, etc. */
|
|
38
|
+
interface AggExpr extends Expr {
|
|
39
|
+
readonly _tag: 'AggExpr';
|
|
40
|
+
readonly func: string;
|
|
41
|
+
readonly column?: Expr;
|
|
42
|
+
readonly params: readonly any[];
|
|
43
|
+
readonly passthrough: readonly Expr[];
|
|
44
|
+
readonly orderColumn?: Expr;
|
|
45
|
+
readonly desc: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** A column with sort direction. */
|
|
48
|
+
interface OrderedColumn extends Expr {
|
|
49
|
+
readonly _tag: 'OrderedColumn';
|
|
50
|
+
readonly column: Expr;
|
|
51
|
+
readonly descending: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** Binary comparison: ==, !=, <, <=, >, >=. */
|
|
54
|
+
interface Comparison extends BoolExpr {
|
|
55
|
+
readonly _tag: 'Comparison';
|
|
56
|
+
readonly op: '=' | '!=' | '<' | '<=' | '>' | '>=';
|
|
57
|
+
readonly left: Expr;
|
|
58
|
+
readonly right: Expr;
|
|
59
|
+
}
|
|
60
|
+
/** Logical AND of two conditions (IQL comma). */
|
|
61
|
+
interface And extends BoolExpr {
|
|
62
|
+
readonly _tag: 'And';
|
|
63
|
+
readonly left: BoolExpr;
|
|
64
|
+
readonly right: BoolExpr;
|
|
65
|
+
}
|
|
66
|
+
/** Logical OR - requires splitting into multiple queries. */
|
|
67
|
+
interface Or extends BoolExpr {
|
|
68
|
+
readonly _tag: 'Or';
|
|
69
|
+
readonly left: BoolExpr;
|
|
70
|
+
readonly right: BoolExpr;
|
|
71
|
+
}
|
|
72
|
+
/** Negation: !relation(X, Y) in IQL. */
|
|
73
|
+
interface Not extends BoolExpr {
|
|
74
|
+
readonly _tag: 'Not';
|
|
75
|
+
readonly operand: BoolExpr;
|
|
76
|
+
}
|
|
77
|
+
/** Membership test: Column appears in another relation's column. */
|
|
78
|
+
interface InExpr extends BoolExpr {
|
|
79
|
+
readonly _tag: 'InExpr';
|
|
80
|
+
readonly column: Expr;
|
|
81
|
+
readonly targetColumn: Expr;
|
|
82
|
+
}
|
|
83
|
+
/** Negated membership test. */
|
|
84
|
+
interface NegatedIn extends BoolExpr {
|
|
85
|
+
readonly _tag: 'NegatedIn';
|
|
86
|
+
readonly column: Expr;
|
|
87
|
+
readonly targetColumn: Expr;
|
|
88
|
+
}
|
|
89
|
+
/** Multi-column negation/existence check against a relation. */
|
|
90
|
+
interface MatchExpr extends BoolExpr {
|
|
91
|
+
readonly _tag: 'MatchExpr';
|
|
92
|
+
readonly relation: string;
|
|
93
|
+
readonly bindings: Record<string, Expr>;
|
|
94
|
+
readonly negated: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* InputLayer type system - TypeScript types that map to IQL storage types.
|
|
99
|
+
*/
|
|
100
|
+
/** Supported IQL column types. */
|
|
101
|
+
type IQLType = 'int' | 'float' | 'string' | 'bool' | 'timestamp' | 'vector' | 'vector_int8' | `vector[${number}]` | `vector_int8[${number}]`;
|
|
102
|
+
/** A float32 vector (plain number array). */
|
|
103
|
+
type Vector = number[];
|
|
104
|
+
/** An int8 quantized vector (plain number array with values in [-128, 127]). */
|
|
105
|
+
type VectorInt8 = number[];
|
|
106
|
+
/** Timestamp as Unix milliseconds since epoch. */
|
|
107
|
+
declare class Timestamp {
|
|
108
|
+
readonly ms: number;
|
|
109
|
+
constructor(ms: number);
|
|
110
|
+
static now(): Timestamp;
|
|
111
|
+
static fromDate(date: Date): Timestamp;
|
|
112
|
+
toDate(): Date;
|
|
113
|
+
valueOf(): number;
|
|
114
|
+
toString(): string;
|
|
115
|
+
}
|
|
116
|
+
/** Column definition for a relation schema. */
|
|
117
|
+
interface ColumnDef {
|
|
118
|
+
name: string;
|
|
119
|
+
type: IQLType;
|
|
120
|
+
}
|
|
121
|
+
/** A relation schema definition describing column names and types. */
|
|
122
|
+
interface RelationSchema {
|
|
123
|
+
/** Override relation name (defaults to camelToSnake of the key). */
|
|
124
|
+
name?: string;
|
|
125
|
+
columns: ColumnDef[];
|
|
126
|
+
}
|
|
127
|
+
/** Any value that can appear in a relation fact. */
|
|
128
|
+
type FieldValue = number | string | boolean | null | Timestamp | Vector | VectorInt8;
|
|
129
|
+
/** A record of field name -> value, representing one fact/row. */
|
|
130
|
+
type Fact = Record<string, FieldValue>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Column proxy objects for building expression ASTs via method chaining.
|
|
134
|
+
*
|
|
135
|
+
* In TypeScript we can't overload operators, so we use method names instead.
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/** Wrap a raw value or proxy into an AST Expr. */
|
|
139
|
+
declare function wrap(value: unknown): Expr;
|
|
140
|
+
/**
|
|
141
|
+
* Proxy returned by relation column accessors.
|
|
142
|
+
* Builds AST nodes via method calls (TypeScript has no operator overloading).
|
|
143
|
+
*/
|
|
144
|
+
declare class ColumnProxy {
|
|
145
|
+
readonly relation: string;
|
|
146
|
+
readonly name: string;
|
|
147
|
+
readonly refAlias?: string;
|
|
148
|
+
constructor(relation: string, name: string, refAlias?: string);
|
|
149
|
+
toAst(): Column;
|
|
150
|
+
eq(other: ColumnProxy | Expr | number | string | boolean | null): Comparison;
|
|
151
|
+
ne(other: ColumnProxy | Expr | number | string | boolean | null): Comparison;
|
|
152
|
+
lt(other: ColumnProxy | Expr | number | string): Comparison;
|
|
153
|
+
le(other: ColumnProxy | Expr | number | string): Comparison;
|
|
154
|
+
gt(other: ColumnProxy | Expr | number | string): Comparison;
|
|
155
|
+
ge(other: ColumnProxy | Expr | number | string): Comparison;
|
|
156
|
+
add(other: ColumnProxy | Expr | number): Arithmetic;
|
|
157
|
+
sub(other: ColumnProxy | Expr | number): Arithmetic;
|
|
158
|
+
mul(other: ColumnProxy | Expr | number): Arithmetic;
|
|
159
|
+
div(other: ColumnProxy | Expr | number): Arithmetic;
|
|
160
|
+
mod(other: ColumnProxy | Expr | number): Arithmetic;
|
|
161
|
+
in(other: ColumnProxy): InExpr;
|
|
162
|
+
notIn(other: ColumnProxy): NegatedIn;
|
|
163
|
+
asc(): OrderedColumn;
|
|
164
|
+
desc(): OrderedColumn;
|
|
165
|
+
matches(relationName: string, on: Record<string, string>): MatchExpr;
|
|
166
|
+
notMatches(relationName: string, on: Record<string, string>): MatchExpr;
|
|
167
|
+
}
|
|
168
|
+
/** Combine two boolean expressions with AND. */
|
|
169
|
+
declare function AND(left: BoolExpr, right: BoolExpr): And;
|
|
170
|
+
/** Combine two boolean expressions with OR. */
|
|
171
|
+
declare function OR(left: BoolExpr, right: BoolExpr): Or;
|
|
172
|
+
/** Negate a boolean expression. */
|
|
173
|
+
declare function NOT(operand: BoolExpr): Not;
|
|
174
|
+
/**
|
|
175
|
+
* Proxy object passed to where/on callbacks.
|
|
176
|
+
* Property access returns a ColumnProxy for the given column name.
|
|
177
|
+
*
|
|
178
|
+
* Usage:
|
|
179
|
+
* where: (e) => e.col("department").eq("eng")
|
|
180
|
+
*/
|
|
181
|
+
declare class RelationProxy {
|
|
182
|
+
readonly relationName: string;
|
|
183
|
+
readonly refAlias?: string;
|
|
184
|
+
constructor(relationName: string, refAlias?: string);
|
|
185
|
+
/** Get a ColumnProxy for the named column. */
|
|
186
|
+
col(name: string): ColumnProxy;
|
|
187
|
+
}
|
|
188
|
+
/** Independent reference to a relation for self-joins. */
|
|
189
|
+
declare class RelationRef {
|
|
190
|
+
readonly schema: RelationSchema;
|
|
191
|
+
readonly alias: string;
|
|
192
|
+
readonly relationName: string;
|
|
193
|
+
constructor(schema: RelationSchema, alias: string);
|
|
194
|
+
/** Get a ColumnProxy for the named column. */
|
|
195
|
+
col(name: string): ColumnProxy;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export { type AggExpr as A, type BoolExpr as B, ColumnProxy as C, type Expr as E, type FuncCall as F, type IQLType as I, type Literal as L, type MatchExpr as M, NOT as N, OR as O, RelationRef as R, Timestamp as T, type Vector as V, type Column as a, type Fact as b, RelationProxy as c, AND as d, type And as e, type Arithmetic as f, type ColumnDef as g, type Comparison as h, type FieldValue as i, type InExpr as j, type NegatedIn as k, type Not as l, type Or as m, type OrderedColumn as n, type RelationSchema as o, type VectorInt8 as p, wrap as w };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal AST nodes for expression trees compiled to IQL.
|
|
3
|
+
*/
|
|
4
|
+
/** Base interface for all expression AST nodes. */
|
|
5
|
+
interface Expr {
|
|
6
|
+
readonly _tag: string;
|
|
7
|
+
}
|
|
8
|
+
/** Base interface for boolean expression AST nodes (conditions). */
|
|
9
|
+
interface BoolExpr {
|
|
10
|
+
readonly _tag: string;
|
|
11
|
+
}
|
|
12
|
+
/** Reference to a relation column. */
|
|
13
|
+
interface Column extends Expr {
|
|
14
|
+
readonly _tag: 'Column';
|
|
15
|
+
readonly relation: string;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly refAlias?: string;
|
|
18
|
+
}
|
|
19
|
+
/** A constant value. */
|
|
20
|
+
interface Literal extends Expr {
|
|
21
|
+
readonly _tag: 'Literal';
|
|
22
|
+
readonly value: any;
|
|
23
|
+
}
|
|
24
|
+
/** Binary arithmetic: +, -, *, /, %. */
|
|
25
|
+
interface Arithmetic extends Expr {
|
|
26
|
+
readonly _tag: 'Arithmetic';
|
|
27
|
+
readonly op: '+' | '-' | '*' | '/' | '%';
|
|
28
|
+
readonly left: Expr;
|
|
29
|
+
readonly right: Expr;
|
|
30
|
+
}
|
|
31
|
+
/** Built-in function call: distance(V1, V2), upper(S), etc. */
|
|
32
|
+
interface FuncCall extends Expr {
|
|
33
|
+
readonly _tag: 'FuncCall';
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly args: readonly Expr[];
|
|
36
|
+
}
|
|
37
|
+
/** Aggregation expression: count<X>, sum<X>, top_k<k, ...>, etc. */
|
|
38
|
+
interface AggExpr extends Expr {
|
|
39
|
+
readonly _tag: 'AggExpr';
|
|
40
|
+
readonly func: string;
|
|
41
|
+
readonly column?: Expr;
|
|
42
|
+
readonly params: readonly any[];
|
|
43
|
+
readonly passthrough: readonly Expr[];
|
|
44
|
+
readonly orderColumn?: Expr;
|
|
45
|
+
readonly desc: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** A column with sort direction. */
|
|
48
|
+
interface OrderedColumn extends Expr {
|
|
49
|
+
readonly _tag: 'OrderedColumn';
|
|
50
|
+
readonly column: Expr;
|
|
51
|
+
readonly descending: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** Binary comparison: ==, !=, <, <=, >, >=. */
|
|
54
|
+
interface Comparison extends BoolExpr {
|
|
55
|
+
readonly _tag: 'Comparison';
|
|
56
|
+
readonly op: '=' | '!=' | '<' | '<=' | '>' | '>=';
|
|
57
|
+
readonly left: Expr;
|
|
58
|
+
readonly right: Expr;
|
|
59
|
+
}
|
|
60
|
+
/** Logical AND of two conditions (IQL comma). */
|
|
61
|
+
interface And extends BoolExpr {
|
|
62
|
+
readonly _tag: 'And';
|
|
63
|
+
readonly left: BoolExpr;
|
|
64
|
+
readonly right: BoolExpr;
|
|
65
|
+
}
|
|
66
|
+
/** Logical OR - requires splitting into multiple queries. */
|
|
67
|
+
interface Or extends BoolExpr {
|
|
68
|
+
readonly _tag: 'Or';
|
|
69
|
+
readonly left: BoolExpr;
|
|
70
|
+
readonly right: BoolExpr;
|
|
71
|
+
}
|
|
72
|
+
/** Negation: !relation(X, Y) in IQL. */
|
|
73
|
+
interface Not extends BoolExpr {
|
|
74
|
+
readonly _tag: 'Not';
|
|
75
|
+
readonly operand: BoolExpr;
|
|
76
|
+
}
|
|
77
|
+
/** Membership test: Column appears in another relation's column. */
|
|
78
|
+
interface InExpr extends BoolExpr {
|
|
79
|
+
readonly _tag: 'InExpr';
|
|
80
|
+
readonly column: Expr;
|
|
81
|
+
readonly targetColumn: Expr;
|
|
82
|
+
}
|
|
83
|
+
/** Negated membership test. */
|
|
84
|
+
interface NegatedIn extends BoolExpr {
|
|
85
|
+
readonly _tag: 'NegatedIn';
|
|
86
|
+
readonly column: Expr;
|
|
87
|
+
readonly targetColumn: Expr;
|
|
88
|
+
}
|
|
89
|
+
/** Multi-column negation/existence check against a relation. */
|
|
90
|
+
interface MatchExpr extends BoolExpr {
|
|
91
|
+
readonly _tag: 'MatchExpr';
|
|
92
|
+
readonly relation: string;
|
|
93
|
+
readonly bindings: Record<string, Expr>;
|
|
94
|
+
readonly negated: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* InputLayer type system - TypeScript types that map to IQL storage types.
|
|
99
|
+
*/
|
|
100
|
+
/** Supported IQL column types. */
|
|
101
|
+
type IQLType = 'int' | 'float' | 'string' | 'bool' | 'timestamp' | 'vector' | 'vector_int8' | `vector[${number}]` | `vector_int8[${number}]`;
|
|
102
|
+
/** A float32 vector (plain number array). */
|
|
103
|
+
type Vector = number[];
|
|
104
|
+
/** An int8 quantized vector (plain number array with values in [-128, 127]). */
|
|
105
|
+
type VectorInt8 = number[];
|
|
106
|
+
/** Timestamp as Unix milliseconds since epoch. */
|
|
107
|
+
declare class Timestamp {
|
|
108
|
+
readonly ms: number;
|
|
109
|
+
constructor(ms: number);
|
|
110
|
+
static now(): Timestamp;
|
|
111
|
+
static fromDate(date: Date): Timestamp;
|
|
112
|
+
toDate(): Date;
|
|
113
|
+
valueOf(): number;
|
|
114
|
+
toString(): string;
|
|
115
|
+
}
|
|
116
|
+
/** Column definition for a relation schema. */
|
|
117
|
+
interface ColumnDef {
|
|
118
|
+
name: string;
|
|
119
|
+
type: IQLType;
|
|
120
|
+
}
|
|
121
|
+
/** A relation schema definition describing column names and types. */
|
|
122
|
+
interface RelationSchema {
|
|
123
|
+
/** Override relation name (defaults to camelToSnake of the key). */
|
|
124
|
+
name?: string;
|
|
125
|
+
columns: ColumnDef[];
|
|
126
|
+
}
|
|
127
|
+
/** Any value that can appear in a relation fact. */
|
|
128
|
+
type FieldValue = number | string | boolean | null | Timestamp | Vector | VectorInt8;
|
|
129
|
+
/** A record of field name -> value, representing one fact/row. */
|
|
130
|
+
type Fact = Record<string, FieldValue>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Column proxy objects for building expression ASTs via method chaining.
|
|
134
|
+
*
|
|
135
|
+
* In TypeScript we can't overload operators, so we use method names instead.
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/** Wrap a raw value or proxy into an AST Expr. */
|
|
139
|
+
declare function wrap(value: unknown): Expr;
|
|
140
|
+
/**
|
|
141
|
+
* Proxy returned by relation column accessors.
|
|
142
|
+
* Builds AST nodes via method calls (TypeScript has no operator overloading).
|
|
143
|
+
*/
|
|
144
|
+
declare class ColumnProxy {
|
|
145
|
+
readonly relation: string;
|
|
146
|
+
readonly name: string;
|
|
147
|
+
readonly refAlias?: string;
|
|
148
|
+
constructor(relation: string, name: string, refAlias?: string);
|
|
149
|
+
toAst(): Column;
|
|
150
|
+
eq(other: ColumnProxy | Expr | number | string | boolean | null): Comparison;
|
|
151
|
+
ne(other: ColumnProxy | Expr | number | string | boolean | null): Comparison;
|
|
152
|
+
lt(other: ColumnProxy | Expr | number | string): Comparison;
|
|
153
|
+
le(other: ColumnProxy | Expr | number | string): Comparison;
|
|
154
|
+
gt(other: ColumnProxy | Expr | number | string): Comparison;
|
|
155
|
+
ge(other: ColumnProxy | Expr | number | string): Comparison;
|
|
156
|
+
add(other: ColumnProxy | Expr | number): Arithmetic;
|
|
157
|
+
sub(other: ColumnProxy | Expr | number): Arithmetic;
|
|
158
|
+
mul(other: ColumnProxy | Expr | number): Arithmetic;
|
|
159
|
+
div(other: ColumnProxy | Expr | number): Arithmetic;
|
|
160
|
+
mod(other: ColumnProxy | Expr | number): Arithmetic;
|
|
161
|
+
in(other: ColumnProxy): InExpr;
|
|
162
|
+
notIn(other: ColumnProxy): NegatedIn;
|
|
163
|
+
asc(): OrderedColumn;
|
|
164
|
+
desc(): OrderedColumn;
|
|
165
|
+
matches(relationName: string, on: Record<string, string>): MatchExpr;
|
|
166
|
+
notMatches(relationName: string, on: Record<string, string>): MatchExpr;
|
|
167
|
+
}
|
|
168
|
+
/** Combine two boolean expressions with AND. */
|
|
169
|
+
declare function AND(left: BoolExpr, right: BoolExpr): And;
|
|
170
|
+
/** Combine two boolean expressions with OR. */
|
|
171
|
+
declare function OR(left: BoolExpr, right: BoolExpr): Or;
|
|
172
|
+
/** Negate a boolean expression. */
|
|
173
|
+
declare function NOT(operand: BoolExpr): Not;
|
|
174
|
+
/**
|
|
175
|
+
* Proxy object passed to where/on callbacks.
|
|
176
|
+
* Property access returns a ColumnProxy for the given column name.
|
|
177
|
+
*
|
|
178
|
+
* Usage:
|
|
179
|
+
* where: (e) => e.col("department").eq("eng")
|
|
180
|
+
*/
|
|
181
|
+
declare class RelationProxy {
|
|
182
|
+
readonly relationName: string;
|
|
183
|
+
readonly refAlias?: string;
|
|
184
|
+
constructor(relationName: string, refAlias?: string);
|
|
185
|
+
/** Get a ColumnProxy for the named column. */
|
|
186
|
+
col(name: string): ColumnProxy;
|
|
187
|
+
}
|
|
188
|
+
/** Independent reference to a relation for self-joins. */
|
|
189
|
+
declare class RelationRef {
|
|
190
|
+
readonly schema: RelationSchema;
|
|
191
|
+
readonly alias: string;
|
|
192
|
+
readonly relationName: string;
|
|
193
|
+
constructor(schema: RelationSchema, alias: string);
|
|
194
|
+
/** Get a ColumnProxy for the named column. */
|
|
195
|
+
col(name: string): ColumnProxy;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export { type AggExpr as A, type BoolExpr as B, ColumnProxy as C, type Expr as E, type FuncCall as F, type IQLType as I, type Literal as L, type MatchExpr as M, NOT as N, OR as O, RelationRef as R, Timestamp as T, type Vector as V, type Column as a, type Fact as b, RelationProxy as c, AND as d, type And as e, type Arithmetic as f, type ColumnDef as g, type Comparison as h, type FieldValue as i, type InExpr as j, type NegatedIn as k, type Not as l, type Or as m, type OrderedColumn as n, type RelationSchema as o, type VectorInt8 as p, wrap as w };
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "inputlayer-js-dev",
|
|
3
|
+
"version": "0.1.0-dev.ec507e7",
|
|
4
|
+
"description": "TypeScript Object-Logic Mapper for InputLayer knowledge graph engine",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./functions": {
|
|
15
|
+
"types": "./dist/functions.d.ts",
|
|
16
|
+
"import": "./dist/functions.mjs",
|
|
17
|
+
"require": "./dist/functions.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup src/index.ts src/functions.ts --format cjs,esm --dts --clean",
|
|
26
|
+
"dev": "tsup src/index.ts src/functions.ts --format cjs,esm --dts --watch",
|
|
27
|
+
"test": "vitest run --exclude tests/integration.test.ts",
|
|
28
|
+
"test:integration": "vitest run tests/integration.test.ts",
|
|
29
|
+
"test:all": "vitest run",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"prepublishOnly": "npm run build"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"ws": "^8.18.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/ws": "^8.5.0",
|
|
39
|
+
"tsup": "^8.3.0",
|
|
40
|
+
"typescript": "^5.0.0",
|
|
41
|
+
"vitest": "^3.0.0"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "https://github.com/InputLayer/inputlayer.git",
|
|
46
|
+
"directory": "packages/inputlayer-js"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"inputlayer",
|
|
53
|
+
"knowledge-graph",
|
|
54
|
+
"datalog",
|
|
55
|
+
"reasoning",
|
|
56
|
+
"typescript",
|
|
57
|
+
"vector-search"
|
|
58
|
+
],
|
|
59
|
+
"license": "AGPL-3.0",
|
|
60
|
+
"author": "InputLayer Team"
|
|
61
|
+
}
|