@callsitehq/core 0.1.0 → 0.2.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 +21 -0
- package/README.md +17 -0
- package/dist/index.d.ts +91 -41
- package/dist/index.js +25 -26
- package/dist/index.js.map +1 -1
- package/package.json +24 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Callsite contributors
|
|
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,17 @@
|
|
|
1
|
+
# @callsitehq/core
|
|
2
|
+
|
|
3
|
+
Core authoring primitives for Callsite.
|
|
4
|
+
|
|
5
|
+
Use this package to define intent-level capabilities and build the intermediate
|
|
6
|
+
representation that Callsite renderers and runtimes consume.
|
|
7
|
+
Capabilities may also declare expected semantic errors; those errors become
|
|
8
|
+
part of the IR alongside input/output schemas.
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { capability, toIR } from "@callsitehq/core";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Status
|
|
15
|
+
|
|
16
|
+
Early `0.x` package. APIs may change while the capability definition model is
|
|
17
|
+
being finalized.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,64 +1,114 @@
|
|
|
1
1
|
type JsonPrimitive = string | number | boolean | null;
|
|
2
|
-
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3
|
-
[key: string]: JsonValue;
|
|
2
|
+
type JsonValue = JsonPrimitive | readonly JsonValue[] | {
|
|
3
|
+
readonly [key: string]: JsonValue;
|
|
4
4
|
};
|
|
5
5
|
type JsonObject = {
|
|
6
|
-
[key: string]: JsonValue;
|
|
6
|
+
readonly [key: string]: JsonValue;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
|
|
8
|
+
type JsonSchema = JsonObject;
|
|
9
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
10
|
+
readonly "~standard": {
|
|
11
|
+
readonly version: 1;
|
|
12
|
+
readonly vendor: string;
|
|
13
|
+
readonly validate: (value: unknown, options?: StandardSchemaOptions | undefined) => StandardResult<Output> | Promise<StandardResult<Output>>;
|
|
14
|
+
readonly types?: {
|
|
15
|
+
readonly input: Input;
|
|
16
|
+
readonly output: Output;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
12
19
|
}
|
|
20
|
+
interface StandardSchemaOptions {
|
|
21
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
22
|
+
}
|
|
23
|
+
type StandardResult<Output> = {
|
|
24
|
+
readonly value: Output;
|
|
25
|
+
readonly issues?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
readonly issues: readonly StandardIssue[];
|
|
28
|
+
};
|
|
29
|
+
interface StandardIssue {
|
|
30
|
+
readonly message: string;
|
|
31
|
+
readonly path?: readonly (PropertyKey | StandardPathSegment)[] | undefined;
|
|
32
|
+
}
|
|
33
|
+
interface StandardPathSegment {
|
|
34
|
+
readonly key: PropertyKey;
|
|
35
|
+
}
|
|
36
|
+
type Infer<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
37
|
+
type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
38
|
+
type JsonSchemaDirection = "input" | "output";
|
|
39
|
+
interface ToJsonSchemaOptions {
|
|
40
|
+
readonly direction: JsonSchemaDirection;
|
|
41
|
+
}
|
|
42
|
+
type ToJsonSchema = (schema: StandardSchemaV1, options: ToJsonSchemaOptions) => JsonSchema;
|
|
43
|
+
type CapabilityErrorCode = "invalid_input" | "not_found" | "unauthorized" | "forbidden" | "conflict" | "rate_limited" | "unavailable" | "internal";
|
|
44
|
+
type DeclaredCapabilityErrorCode = Exclude<CapabilityErrorCode, "invalid_input" | "internal">;
|
|
45
|
+
interface CapabilityErrorSpec {
|
|
46
|
+
readonly code: DeclaredCapabilityErrorCode;
|
|
47
|
+
readonly intent: string;
|
|
48
|
+
}
|
|
49
|
+
declare class CapabilityError extends Error {
|
|
50
|
+
readonly code: CapabilityErrorCode;
|
|
51
|
+
readonly details?: JsonObject | undefined;
|
|
52
|
+
constructor(code: CapabilityErrorCode, message: string, details?: JsonObject | undefined);
|
|
53
|
+
}
|
|
54
|
+
type SurfaceName = "mcp" | "openapi" | "chatgpt" | "claude-connector";
|
|
13
55
|
interface CapabilityContext {
|
|
14
|
-
readonly
|
|
56
|
+
readonly subject?: unknown;
|
|
57
|
+
readonly log: (event: string, data?: Record<string, unknown>) => void;
|
|
58
|
+
}
|
|
59
|
+
type AnyStandardSchema = StandardSchemaV1<any, any>;
|
|
60
|
+
type CapabilityRun<InputSchema extends AnyStandardSchema, OutputSchema extends AnyStandardSchema> = (input: Infer<InputSchema>, context: CapabilityContext) => InferInput<OutputSchema> | Promise<InferInput<OutputSchema>>;
|
|
61
|
+
interface CapabilityExample<InputSchema extends AnyStandardSchema, OutputSchema extends AnyStandardSchema> {
|
|
62
|
+
readonly input: InferInput<InputSchema> & JsonValue;
|
|
63
|
+
readonly output: Infer<OutputSchema> & JsonValue;
|
|
64
|
+
readonly note?: string;
|
|
15
65
|
}
|
|
16
|
-
type
|
|
17
|
-
interface
|
|
66
|
+
type SurfaceExtensions = Partial<Record<SurfaceName, JsonObject>>;
|
|
67
|
+
interface Capability<InputSchema extends AnyStandardSchema = AnyStandardSchema, OutputSchema extends AnyStandardSchema = AnyStandardSchema> {
|
|
18
68
|
readonly id: string;
|
|
19
69
|
readonly intent: string;
|
|
20
|
-
readonly input:
|
|
21
|
-
readonly output:
|
|
70
|
+
readonly input: InputSchema;
|
|
71
|
+
readonly output: OutputSchema;
|
|
22
72
|
readonly destructive?: boolean;
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
73
|
+
readonly errors?: readonly CapabilityErrorSpec[];
|
|
74
|
+
readonly examples?: readonly CapabilityExample<InputSchema, OutputSchema>[];
|
|
75
|
+
readonly run: CapabilityRun<InputSchema, OutputSchema>;
|
|
76
|
+
readonly overrides?: SurfaceExtensions;
|
|
77
|
+
readonly passthrough?: SurfaceExtensions;
|
|
25
78
|
}
|
|
26
|
-
interface
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
readonly
|
|
79
|
+
interface AnyCapability {
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly intent: string;
|
|
82
|
+
readonly input: AnyStandardSchema;
|
|
83
|
+
readonly output: AnyStandardSchema;
|
|
84
|
+
readonly destructive?: boolean;
|
|
85
|
+
readonly errors?: readonly CapabilityErrorSpec[];
|
|
86
|
+
readonly examples?: readonly CapabilityIRExample[];
|
|
87
|
+
readonly run: (input: any, context: CapabilityContext) => any;
|
|
88
|
+
readonly overrides?: SurfaceExtensions;
|
|
89
|
+
readonly passthrough?: SurfaceExtensions;
|
|
33
90
|
}
|
|
34
|
-
|
|
91
|
+
declare function capability<InputSchema extends AnyStandardSchema, OutputSchema extends AnyStandardSchema>(definition: Capability<InputSchema, OutputSchema>): Capability<InputSchema, OutputSchema>;
|
|
35
92
|
interface CapabilityIR {
|
|
36
|
-
readonly version: 1;
|
|
37
|
-
readonly capabilities: readonly CapabilityIRNode[];
|
|
38
|
-
}
|
|
39
|
-
interface CapabilityIRNode {
|
|
40
93
|
readonly id: string;
|
|
41
94
|
readonly intent: string;
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
95
|
+
readonly input: JsonSchema;
|
|
96
|
+
readonly output: JsonSchema;
|
|
44
97
|
readonly destructive: boolean;
|
|
98
|
+
readonly errors: readonly CapabilityErrorSpec[];
|
|
45
99
|
readonly examples: readonly CapabilityIRExample[];
|
|
100
|
+
readonly overrides: SurfaceExtensions;
|
|
101
|
+
readonly passthrough: SurfaceExtensions;
|
|
46
102
|
}
|
|
47
103
|
interface CapabilityIRExample {
|
|
48
104
|
readonly input: JsonValue;
|
|
49
|
-
readonly output
|
|
50
|
-
readonly
|
|
105
|
+
readonly output: JsonValue;
|
|
106
|
+
readonly note?: string;
|
|
51
107
|
}
|
|
52
|
-
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
constructor(code: CapabilityErrorCode, message: string, options?: CapabilityErrorOptions);
|
|
56
|
-
}
|
|
57
|
-
type CapabilityErrorCode = "bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "rate_limited" | "internal";
|
|
58
|
-
interface CapabilityErrorOptions {
|
|
59
|
-
readonly details?: JsonValue;
|
|
108
|
+
interface IR {
|
|
109
|
+
readonly version: 1;
|
|
110
|
+
readonly capabilities: readonly CapabilityIR[];
|
|
60
111
|
}
|
|
61
|
-
declare function
|
|
62
|
-
declare function defineCallsite(capabilities: readonly AnyCapability[]): CapabilityIR;
|
|
112
|
+
declare function toIR(capabilities: readonly AnyCapability[], toJsonSchema: ToJsonSchema): IR;
|
|
63
113
|
|
|
64
|
-
export { type AnyCapability, type
|
|
114
|
+
export { type AnyCapability, type AnyStandardSchema, type Capability, type CapabilityContext, CapabilityError, type CapabilityErrorCode, type CapabilityErrorSpec, type CapabilityExample, type CapabilityIR, type CapabilityIRExample, type CapabilityRun, type DeclaredCapabilityErrorCode, type IR, type Infer, type InferInput, type JsonObject, type JsonPrimitive, type JsonSchema, type JsonSchemaDirection, type JsonValue, type StandardIssue, type StandardPathSegment, type StandardResult, type StandardSchemaOptions, type StandardSchemaV1, type SurfaceExtensions, type SurfaceName, type ToJsonSchema, type ToJsonSchemaOptions, capability, toIR };
|
package/dist/index.js
CHANGED
|
@@ -1,49 +1,48 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
var CapabilityError = class extends Error {
|
|
3
|
-
code
|
|
4
|
-
details;
|
|
5
|
-
constructor(code, message, options = {}) {
|
|
3
|
+
constructor(code, message, details) {
|
|
6
4
|
super(message);
|
|
7
|
-
this.name = "CapabilityError";
|
|
8
5
|
this.code = code;
|
|
9
|
-
this.details =
|
|
6
|
+
this.details = details;
|
|
7
|
+
this.name = "CapabilityError";
|
|
10
8
|
}
|
|
9
|
+
code;
|
|
10
|
+
details;
|
|
11
11
|
};
|
|
12
12
|
function capability(definition) {
|
|
13
13
|
assertCapabilityId(definition.id);
|
|
14
|
-
return
|
|
15
|
-
...definition,
|
|
16
|
-
kind: "callsite.capability"
|
|
17
|
-
};
|
|
14
|
+
return definition;
|
|
18
15
|
}
|
|
19
|
-
function
|
|
16
|
+
function toIR(capabilities, toJsonSchema) {
|
|
20
17
|
return {
|
|
21
18
|
version: 1,
|
|
22
|
-
capabilities: capabilities.map(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
capabilities: capabilities.map((capabilityDefinition) => ({
|
|
20
|
+
id: capabilityDefinition.id,
|
|
21
|
+
intent: capabilityDefinition.intent,
|
|
22
|
+
input: toJsonSchema(capabilityDefinition.input, { direction: "input" }),
|
|
23
|
+
output: toJsonSchema(capabilityDefinition.output, { direction: "output" }),
|
|
24
|
+
destructive: capabilityDefinition.destructive ?? false,
|
|
25
|
+
errors: capabilityDefinition.errors ?? [],
|
|
26
|
+
examples: (capabilityDefinition.examples ?? []).map((example) => ({
|
|
27
|
+
input: example.input,
|
|
28
|
+
output: example.output,
|
|
29
|
+
...example.note === void 0 ? {} : { note: example.note }
|
|
30
|
+
})),
|
|
31
|
+
overrides: capabilityDefinition.overrides ?? {},
|
|
32
|
+
passthrough: capabilityDefinition.passthrough ?? {}
|
|
36
33
|
}))
|
|
37
34
|
};
|
|
38
35
|
}
|
|
39
36
|
function assertCapabilityId(id) {
|
|
40
37
|
if (!/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)*$/.test(id)) {
|
|
41
|
-
throw new TypeError(
|
|
38
|
+
throw new TypeError(
|
|
39
|
+
`Invalid capability id "${id}". Use lowercase letters, digits, underscores, and dot-separated namespaces.`
|
|
40
|
+
);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
export {
|
|
45
44
|
CapabilityError,
|
|
46
45
|
capability,
|
|
47
|
-
|
|
46
|
+
toIR
|
|
48
47
|
};
|
|
49
48
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export type JsonPrimitive = string | number | boolean | null;\nexport type JsonValue
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export type JsonPrimitive = string | number | boolean | null;\nexport type JsonValue =\n JsonPrimitive | readonly JsonValue[] | { readonly [key: string]: JsonValue };\nexport type JsonObject = { readonly [key: string]: JsonValue };\nexport type JsonSchema = JsonObject;\n\nexport interface StandardSchemaV1<Input = unknown, Output = Input> {\n readonly \"~standard\": {\n readonly version: 1;\n readonly vendor: string;\n readonly validate: (\n value: unknown,\n options?: StandardSchemaOptions | undefined\n ) => StandardResult<Output> | Promise<StandardResult<Output>>;\n readonly types?:\n | {\n readonly input: Input;\n readonly output: Output;\n }\n | undefined;\n };\n}\n\nexport interface StandardSchemaOptions {\n readonly libraryOptions?: Record<string, unknown> | undefined;\n}\n\nexport type StandardResult<Output> =\n | {\n readonly value: Output;\n readonly issues?: undefined;\n }\n | {\n readonly issues: readonly StandardIssue[];\n };\n\nexport interface StandardIssue {\n readonly message: string;\n readonly path?: readonly (PropertyKey | StandardPathSegment)[] | undefined;\n}\n\nexport interface StandardPathSegment {\n readonly key: PropertyKey;\n}\n\nexport type Infer<Schema extends StandardSchemaV1> = NonNullable<\n Schema[\"~standard\"][\"types\"]\n>[\"output\"];\n\nexport type InferInput<Schema extends StandardSchemaV1> = NonNullable<\n Schema[\"~standard\"][\"types\"]\n>[\"input\"];\n\nexport type JsonSchemaDirection = \"input\" | \"output\";\n\nexport interface ToJsonSchemaOptions {\n readonly direction: JsonSchemaDirection;\n}\n\nexport type ToJsonSchema = (schema: StandardSchemaV1, options: ToJsonSchemaOptions) => JsonSchema;\n\nexport type CapabilityErrorCode =\n | \"invalid_input\"\n | \"not_found\"\n | \"unauthorized\"\n | \"forbidden\"\n | \"conflict\"\n | \"rate_limited\"\n | \"unavailable\"\n | \"internal\";\n\nexport type DeclaredCapabilityErrorCode = Exclude<\n CapabilityErrorCode,\n \"invalid_input\" | \"internal\"\n>;\n\nexport interface CapabilityErrorSpec {\n readonly code: DeclaredCapabilityErrorCode;\n readonly intent: string;\n}\n\nexport class CapabilityError extends Error {\n public constructor(\n public readonly code: CapabilityErrorCode,\n message: string,\n public readonly details?: JsonObject\n ) {\n super(message);\n this.name = \"CapabilityError\";\n }\n}\n\nexport type SurfaceName = \"mcp\" | \"openapi\" | \"chatgpt\" | \"claude-connector\";\n\nexport interface CapabilityContext {\n readonly subject?: unknown;\n readonly log: (event: string, data?: Record<string, unknown>) => void;\n}\n\nexport type AnyStandardSchema = StandardSchemaV1<any, any>;\n\nexport type CapabilityRun<\n InputSchema extends AnyStandardSchema,\n OutputSchema extends AnyStandardSchema\n> = (\n input: Infer<InputSchema>,\n context: CapabilityContext\n) => InferInput<OutputSchema> | Promise<InferInput<OutputSchema>>;\n\nexport interface CapabilityExample<\n InputSchema extends AnyStandardSchema,\n OutputSchema extends AnyStandardSchema\n> {\n readonly input: InferInput<InputSchema> & JsonValue;\n readonly output: Infer<OutputSchema> & JsonValue;\n readonly note?: string;\n}\n\nexport type SurfaceExtensions = Partial<Record<SurfaceName, JsonObject>>;\n\nexport interface Capability<\n InputSchema extends AnyStandardSchema = AnyStandardSchema,\n OutputSchema extends AnyStandardSchema = AnyStandardSchema\n> {\n readonly id: string;\n readonly intent: string;\n readonly input: InputSchema;\n readonly output: OutputSchema;\n readonly destructive?: boolean;\n readonly errors?: readonly CapabilityErrorSpec[];\n readonly examples?: readonly CapabilityExample<InputSchema, OutputSchema>[];\n readonly run: CapabilityRun<InputSchema, OutputSchema>;\n readonly overrides?: SurfaceExtensions;\n readonly passthrough?: SurfaceExtensions;\n}\n\nexport interface AnyCapability {\n readonly id: string;\n readonly intent: string;\n readonly input: AnyStandardSchema;\n readonly output: AnyStandardSchema;\n readonly destructive?: boolean;\n readonly errors?: readonly CapabilityErrorSpec[];\n readonly examples?: readonly CapabilityIRExample[];\n readonly run: (input: any, context: CapabilityContext) => any;\n readonly overrides?: SurfaceExtensions;\n readonly passthrough?: SurfaceExtensions;\n}\n\nexport function capability<\n InputSchema extends AnyStandardSchema,\n OutputSchema extends AnyStandardSchema\n>(definition: Capability<InputSchema, OutputSchema>): Capability<InputSchema, OutputSchema> {\n assertCapabilityId(definition.id);\n\n return definition;\n}\n\nexport interface CapabilityIR {\n readonly id: string;\n readonly intent: string;\n readonly input: JsonSchema;\n readonly output: JsonSchema;\n readonly destructive: boolean;\n readonly errors: readonly CapabilityErrorSpec[];\n readonly examples: readonly CapabilityIRExample[];\n readonly overrides: SurfaceExtensions;\n readonly passthrough: SurfaceExtensions;\n}\n\nexport interface CapabilityIRExample {\n readonly input: JsonValue;\n readonly output: JsonValue;\n readonly note?: string;\n}\n\nexport interface IR {\n readonly version: 1;\n readonly capabilities: readonly CapabilityIR[];\n}\n\nexport function toIR(capabilities: readonly AnyCapability[], toJsonSchema: ToJsonSchema): IR {\n return {\n version: 1,\n capabilities: capabilities.map((capabilityDefinition) => ({\n id: capabilityDefinition.id,\n intent: capabilityDefinition.intent,\n input: toJsonSchema(capabilityDefinition.input, { direction: \"input\" }),\n output: toJsonSchema(capabilityDefinition.output, { direction: \"output\" }),\n destructive: capabilityDefinition.destructive ?? false,\n errors: capabilityDefinition.errors ?? [],\n examples: (capabilityDefinition.examples ?? []).map((example) => ({\n input: example.input,\n output: example.output,\n ...(example.note === undefined ? {} : { note: example.note })\n })),\n overrides: capabilityDefinition.overrides ?? {},\n passthrough: capabilityDefinition.passthrough ?? {}\n }))\n };\n}\n\nfunction assertCapabilityId(id: string): void {\n if (!/^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$/.test(id)) {\n throw new TypeError(\n `Invalid capability id \"${id}\". Use lowercase letters, digits, underscores, and dot-separated namespaces.`\n );\n }\n}\n"],"mappings":";AAiFO,IAAM,kBAAN,cAA8B,MAAM;AAAA,EAClC,YACW,MAChB,SACgB,SAChB;AACA,UAAM,OAAO;AAJG;AAEA;AAGhB,SAAK,OAAO;AAAA,EACd;AAAA,EANkB;AAAA,EAEA;AAKpB;AA2DO,SAAS,WAGd,YAA0F;AAC1F,qBAAmB,WAAW,EAAE;AAEhC,SAAO;AACT;AAyBO,SAAS,KAAK,cAAwC,cAAgC;AAC3F,SAAO;AAAA,IACL,SAAS;AAAA,IACT,cAAc,aAAa,IAAI,CAAC,0BAA0B;AAAA,MACxD,IAAI,qBAAqB;AAAA,MACzB,QAAQ,qBAAqB;AAAA,MAC7B,OAAO,aAAa,qBAAqB,OAAO,EAAE,WAAW,QAAQ,CAAC;AAAA,MACtE,QAAQ,aAAa,qBAAqB,QAAQ,EAAE,WAAW,SAAS,CAAC;AAAA,MACzE,aAAa,qBAAqB,eAAe;AAAA,MACjD,QAAQ,qBAAqB,UAAU,CAAC;AAAA,MACxC,WAAW,qBAAqB,YAAY,CAAC,GAAG,IAAI,CAAC,aAAa;AAAA,QAChE,OAAO,QAAQ;AAAA,QACf,QAAQ,QAAQ;AAAA,QAChB,GAAI,QAAQ,SAAS,SAAY,CAAC,IAAI,EAAE,MAAM,QAAQ,KAAK;AAAA,MAC7D,EAAE;AAAA,MACF,WAAW,qBAAqB,aAAa,CAAC;AAAA,MAC9C,aAAa,qBAAqB,eAAe,CAAC;AAAA,IACpD,EAAE;AAAA,EACJ;AACF;AAEA,SAAS,mBAAmB,IAAkB;AAC5C,MAAI,CAAC,wCAAwC,KAAK,EAAE,GAAG;AACrD,UAAM,IAAI;AAAA,MACR,0BAA0B,EAAE;AAAA,IAC9B;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@callsitehq/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Authoring API and IR types for Callsite capabilities.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"capabilities",
|
|
8
|
+
"mcp",
|
|
9
|
+
"openapi",
|
|
10
|
+
"typescript"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "https://github.com/callsitehq/callsite/tree/main/packages/core#readme",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/callsitehq/callsite.git",
|
|
17
|
+
"directory": "packages/core"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/callsitehq/callsite/issues"
|
|
21
|
+
},
|
|
5
22
|
"type": "module",
|
|
6
23
|
"exports": {
|
|
7
24
|
".": {
|
|
@@ -12,7 +29,13 @@
|
|
|
12
29
|
"files": [
|
|
13
30
|
"dist"
|
|
14
31
|
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
15
35
|
"sideEffects": false,
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"zod": "^4.0.0"
|
|
38
|
+
},
|
|
16
39
|
"scripts": {
|
|
17
40
|
"build": "tsup",
|
|
18
41
|
"clean": "rm -rf dist *.tsbuildinfo",
|