sammy-sdk-shared 0.1.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/README.md +20 -0
- package/dist/constants.d.ts +9 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +33 -0
- package/dist/constants.js.map +1 -0
- package/dist/errors.d.ts +21 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +25 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +110 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# sammy-sdk-shared
|
|
2
|
+
|
|
3
|
+
Shared types and constants used by [`sammy-sdk`](https://www.npmjs.com/package/sammy-sdk) and the Sammy Cloud API.
|
|
4
|
+
|
|
5
|
+
You don't usually install this directly. It's a transitive dependency of `sammy-sdk`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install sammy-sdk-shared
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What's in here
|
|
14
|
+
|
|
15
|
+
- TypeScript types shared between the SDK, the API, and any first-party tooling (completions, key validation, streaming, etc.)
|
|
16
|
+
- Constants such as `SDK_VERSION`, `API_BASE_URL`, default token limits, and per-plan limit tables.
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
MIT
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PlanLimits } from "./types.js";
|
|
2
|
+
export declare const SDK_VERSION = "0.1.0";
|
|
3
|
+
export declare const API_BASE_URL = "https://sammyapi-production.up.railway.app";
|
|
4
|
+
export declare const DEFAULT_MAX_TOKENS = 4096;
|
|
5
|
+
export declare const DEFAULT_TEMPERATURE = 0.7;
|
|
6
|
+
export declare const DEFAULT_TOOL_TIMEOUT = 30000;
|
|
7
|
+
export declare const MAX_CONVERSATION_TURNS = 50;
|
|
8
|
+
export declare const PLAN_LIMITS: Record<string, PlanLimits>;
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,YAAY,+CAA+C,CAAC;AACzE,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAyBlD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const SDK_VERSION = "0.1.0";
|
|
2
|
+
export const API_BASE_URL = "https://sammyapi-production.up.railway.app";
|
|
3
|
+
export const DEFAULT_MAX_TOKENS = 4096;
|
|
4
|
+
export const DEFAULT_TEMPERATURE = 0.7;
|
|
5
|
+
export const DEFAULT_TOOL_TIMEOUT = 30000;
|
|
6
|
+
export const MAX_CONVERSATION_TURNS = 50;
|
|
7
|
+
export const PLAN_LIMITS = {
|
|
8
|
+
free: {
|
|
9
|
+
discoveryScansPerMonth: 3,
|
|
10
|
+
evalRunsPerMonth: 5,
|
|
11
|
+
runtimeMessagesPerMonth: 1000,
|
|
12
|
+
byokEnabled: false,
|
|
13
|
+
},
|
|
14
|
+
pro: {
|
|
15
|
+
discoveryScansPerMonth: -1,
|
|
16
|
+
evalRunsPerMonth: -1,
|
|
17
|
+
runtimeMessagesPerMonth: 25000,
|
|
18
|
+
byokEnabled: true,
|
|
19
|
+
},
|
|
20
|
+
scale: {
|
|
21
|
+
discoveryScansPerMonth: -1,
|
|
22
|
+
evalRunsPerMonth: -1,
|
|
23
|
+
runtimeMessagesPerMonth: 200000,
|
|
24
|
+
byokEnabled: true,
|
|
25
|
+
},
|
|
26
|
+
enterprise: {
|
|
27
|
+
discoveryScansPerMonth: -1,
|
|
28
|
+
evalRunsPerMonth: -1,
|
|
29
|
+
runtimeMessagesPerMonth: -1,
|
|
30
|
+
byokEnabled: true,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,4CAA4C,CAAC;AACzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AACvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAC1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC,MAAM,CAAC,MAAM,WAAW,GAA+B;IACrD,IAAI,EAAE;QACJ,sBAAsB,EAAE,CAAC;QACzB,gBAAgB,EAAE,CAAC;QACnB,uBAAuB,EAAE,IAAI;QAC7B,WAAW,EAAE,KAAK;KACnB;IACD,GAAG,EAAE;QACH,sBAAsB,EAAE,CAAC,CAAC;QAC1B,gBAAgB,EAAE,CAAC,CAAC;QACpB,uBAAuB,EAAE,KAAK;QAC9B,WAAW,EAAE,IAAI;KAClB;IACD,KAAK,EAAE;QACL,sBAAsB,EAAE,CAAC,CAAC;QAC1B,gBAAgB,EAAE,CAAC,CAAC;QACpB,uBAAuB,EAAE,MAAM;QAC/B,WAAW,EAAE,IAAI;KAClB;IACD,UAAU,EAAE;QACV,sBAAsB,EAAE,CAAC,CAAC;QAC1B,gBAAgB,EAAE,CAAC,CAAC;QACpB,uBAAuB,EAAE,CAAC,CAAC;QAC3B,WAAW,EAAE,IAAI;KAClB;CACF,CAAC"}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const ErrorCodes: {
|
|
2
|
+
readonly INVALID_KEY: "INVALID_KEY";
|
|
3
|
+
readonly RATE_LIMITED: "RATE_LIMITED";
|
|
4
|
+
readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
|
|
5
|
+
readonly PLAN_LIMIT: "PLAN_LIMIT";
|
|
6
|
+
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
7
|
+
readonly PROVIDER_ERROR: "PROVIDER_ERROR";
|
|
8
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
9
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
10
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
11
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
12
|
+
readonly CONFLICT: "CONFLICT";
|
|
13
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
14
|
+
};
|
|
15
|
+
export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
|
|
16
|
+
export declare class SammyError extends Error {
|
|
17
|
+
code: ErrorCode;
|
|
18
|
+
statusCode: number;
|
|
19
|
+
constructor(code: ErrorCode, message: string, statusCode?: number);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAab,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAErE,qBAAa,UAAW,SAAQ,KAAK;IAE1B,IAAI,EAAE,SAAS;IAEf,UAAU,EAAE,MAAM;gBAFlB,IAAI,EAAE,SAAS,EACtB,OAAO,EAAE,MAAM,EACR,UAAU,GAAE,MAAY;CAKlC"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const ErrorCodes = {
|
|
2
|
+
INVALID_KEY: "INVALID_KEY",
|
|
3
|
+
RATE_LIMITED: "RATE_LIMITED",
|
|
4
|
+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
|
|
5
|
+
PLAN_LIMIT: "PLAN_LIMIT",
|
|
6
|
+
INVALID_REQUEST: "INVALID_REQUEST",
|
|
7
|
+
PROVIDER_ERROR: "PROVIDER_ERROR",
|
|
8
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
9
|
+
UNAUTHORIZED: "UNAUTHORIZED",
|
|
10
|
+
FORBIDDEN: "FORBIDDEN",
|
|
11
|
+
NOT_FOUND: "NOT_FOUND",
|
|
12
|
+
CONFLICT: "CONFLICT",
|
|
13
|
+
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
14
|
+
};
|
|
15
|
+
export class SammyError extends Error {
|
|
16
|
+
code;
|
|
17
|
+
statusCode;
|
|
18
|
+
constructor(code, message, statusCode = 500) {
|
|
19
|
+
super(message);
|
|
20
|
+
this.code = code;
|
|
21
|
+
this.statusCode = statusCode;
|
|
22
|
+
this.name = "SammyError";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAIX,MAAM,OAAO,UAAW,SAAQ,KAAK;IAE1B;IAEA;IAHT,YACS,IAAe,EACtB,OAAe,EACR,aAAqB,GAAG;QAE/B,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,SAAI,GAAJ,IAAI,CAAW;QAEf,eAAU,GAAV,UAAU,CAAc;QAG/B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC3B,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export type ModelTier = "fast" | "balanced" | "powerful";
|
|
2
|
+
export type RequestPurpose = "discovery" | "runtime" | "eval" | "judge";
|
|
3
|
+
export type ToolPermission = "read" | "write" | "admin";
|
|
4
|
+
export type ToolType = "query" | "mutation";
|
|
5
|
+
export type ArchitectureType = "single-agent" | "multi-agent" | "hierarchical";
|
|
6
|
+
export type PlanTier = "free" | "pro" | "scale" | "enterprise";
|
|
7
|
+
export interface TextBlock {
|
|
8
|
+
type: "text";
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ToolUseBlock {
|
|
12
|
+
type: "tool_use";
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
input: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export interface ToolResultBlock {
|
|
18
|
+
type: "tool_result";
|
|
19
|
+
tool_use_id: string;
|
|
20
|
+
content: string;
|
|
21
|
+
is_error?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type ContentBlock = TextBlock | ToolUseBlock | ToolResultBlock;
|
|
24
|
+
export interface ToolDefinition {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
inputSchema: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
export interface CompletionRequest {
|
|
30
|
+
tier: ModelTier;
|
|
31
|
+
purpose: RequestPurpose;
|
|
32
|
+
messages: ChatMessage[];
|
|
33
|
+
maxTokens?: number;
|
|
34
|
+
temperature?: number;
|
|
35
|
+
responseFormat?: "text" | "json";
|
|
36
|
+
stream?: boolean;
|
|
37
|
+
tools?: ToolDefinition[];
|
|
38
|
+
toolChoice?: "auto" | "any" | "none";
|
|
39
|
+
}
|
|
40
|
+
export interface ChatMessage {
|
|
41
|
+
role: "system" | "user" | "assistant";
|
|
42
|
+
content: string | ContentBlock[];
|
|
43
|
+
}
|
|
44
|
+
export interface CompletionResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
content: string;
|
|
47
|
+
contentBlocks?: ContentBlock[];
|
|
48
|
+
model: string;
|
|
49
|
+
usage: TokenUsage;
|
|
50
|
+
finishReason: "stop" | "max_tokens" | "tool_use";
|
|
51
|
+
}
|
|
52
|
+
export interface TokenUsage {
|
|
53
|
+
inputTokens: number;
|
|
54
|
+
outputTokens: number;
|
|
55
|
+
totalTokens: number;
|
|
56
|
+
}
|
|
57
|
+
export interface StreamChunk {
|
|
58
|
+
type: "text" | "tool_call" | "tool_input_delta" | "agent_handoff" | "done" | "error" | "usage";
|
|
59
|
+
data: string;
|
|
60
|
+
}
|
|
61
|
+
export interface KeyValidationResponse {
|
|
62
|
+
valid: boolean;
|
|
63
|
+
plan: PlanTier;
|
|
64
|
+
org?: string;
|
|
65
|
+
limits: PlanLimits;
|
|
66
|
+
}
|
|
67
|
+
export interface PlanLimits {
|
|
68
|
+
discoveryScansPerMonth: number;
|
|
69
|
+
evalRunsPerMonth: number;
|
|
70
|
+
runtimeMessagesPerMonth: number;
|
|
71
|
+
byokEnabled: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface UserProfile {
|
|
74
|
+
id: string;
|
|
75
|
+
email: string;
|
|
76
|
+
name: string | null;
|
|
77
|
+
plan: PlanTier;
|
|
78
|
+
role: string;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
}
|
|
81
|
+
export interface ApiKeyInfo {
|
|
82
|
+
id: string;
|
|
83
|
+
prefix: string;
|
|
84
|
+
name: string;
|
|
85
|
+
lastUsedAt: string | null;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
revokedAt: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface UsageSummary {
|
|
90
|
+
totalRequests: number;
|
|
91
|
+
totalTokens: number;
|
|
92
|
+
totalCostUsd: number;
|
|
93
|
+
byTier: Record<string, {
|
|
94
|
+
requests: number;
|
|
95
|
+
tokens: number;
|
|
96
|
+
cost: number;
|
|
97
|
+
}>;
|
|
98
|
+
byPurpose: Record<string, {
|
|
99
|
+
requests: number;
|
|
100
|
+
tokens: number;
|
|
101
|
+
cost: number;
|
|
102
|
+
}>;
|
|
103
|
+
}
|
|
104
|
+
export interface SubscriptionInfo {
|
|
105
|
+
plan: PlanTier;
|
|
106
|
+
status: string;
|
|
107
|
+
currentPeriodEnd: string;
|
|
108
|
+
cancelAtPeriodEnd: boolean;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,MA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CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3E,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;CAC5B"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sammy-sdk-shared",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared types and constants used by the sammy-sdk and Sammy Cloud API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"sammy",
|
|
22
|
+
"sammy-sdk",
|
|
23
|
+
"types",
|
|
24
|
+
"shared"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/sammymitch0071/sammy.git",
|
|
30
|
+
"directory": "packages/shared"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/sammymitch0071/sammy/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://sammy.dev",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"rimraf": "^6.0.1",
|
|
38
|
+
"typescript": "^5.7.0"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc",
|
|
42
|
+
"dev": "tsc --watch",
|
|
43
|
+
"clean": "rimraf dist tsconfig.tsbuildinfo"
|
|
44
|
+
}
|
|
45
|
+
}
|