@prampta/sdk 0.3.2 → 0.4.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/package.json CHANGED
@@ -1,69 +1,51 @@
1
1
  {
2
2
  "name": "@prampta/sdk",
3
- "version": "0.3.2",
4
- "description": "Official Node.js SDK for PRAMPTA — create, search, and manage AI prompts. Includes built-in MCP server for Claude, Cursor and other AI assistants.",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "bin": {
9
- "prampta-mcp": "./dist/mcp.js"
10
- },
3
+ "version": "0.4.0",
4
+ "description": "PRAMPTA SDK \u2014 authorization before generation",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
11
8
  "exports": {
12
9
  ".": {
13
- "import": "./dist/index.js",
14
10
  "types": "./dist/index.d.ts",
15
- "require": "./dist/index.cjs"
16
- },
17
- "./mcp": {
18
- "import": "./dist/mcp.js",
19
- "types": "./dist/mcp.d.ts"
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
20
13
  }
21
14
  },
22
15
  "files": [
23
16
  "dist",
24
- "README.md"
17
+ "LICENSE"
25
18
  ],
26
19
  "scripts": {
27
- "build": "tsc",
28
- "test": "node --import tsx --test src/client.test.ts",
29
- "prepare": "npm run build",
30
- "typecheck": "tsc --noEmit"
20
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
21
+ "typecheck": "tsc --noEmit",
22
+ "test": "vitest run",
23
+ "typecheck:examples": "tsc -p tsconfig.examples.json"
31
24
  },
32
25
  "keywords": [
33
26
  "prampta",
34
- "prompt",
35
- "pp-code",
27
+ "pre-gen",
36
28
  "ai",
37
- "llm",
38
- "mcp",
39
- "model-context-protocol",
40
- "claude",
41
- "cursor",
42
- "prompt-engineering",
43
- "ai-prompts",
44
- "sdk"
29
+ "authorization",
30
+ "licensing"
45
31
  ],
46
- "author": "PRAMPTA Team",
47
- "license": "MIT",
48
- "repository": {
49
- "type": "git",
50
- "url": "https://github.com/prampta/prampta"
51
- },
52
- "bugs": {
53
- "url": "https://github.com/prampta/prampta/issues"
32
+ "license": "Apache-2.0",
33
+ "devDependencies": {
34
+ "@types/node": "^20.0.0",
35
+ "tsup": "^8.0.0",
36
+ "typescript": "^5.4.0",
37
+ "vitest": "^4.1.8"
54
38
  },
55
- "homepage": "https://prampta.com",
56
39
  "engines": {
57
- "node": ">=18"
40
+ "node": ">=18.0.0"
58
41
  },
59
42
  "dependencies": {
60
- "@modelcontextprotocol/sdk": "^1.12.1",
61
- "zod": "^3.24.2"
43
+ "@noble/ed25519": "^3.1.0"
62
44
  },
63
- "devDependencies": {
64
- "tsx": "^4.21.0",
65
- "typescript": "^5.7.0"
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/Pastheroza/PRE-GEN-PRAMPTA.git",
48
+ "directory": "typescript"
66
49
  },
67
- "peerDependencies": {},
68
- "sideEffects": false
50
+ "homepage": "https://github.com/Pastheroza/PRE-GEN-PRAMPTA"
69
51
  }
package/dist/client.d.ts DELETED
@@ -1,75 +0,0 @@
1
- import type { PramptaConfig, Prompt, PromptMetadata, CreateResult, SearchResult, CreateOptions, SearchOptions } from './types.js';
2
- export declare class Prampta {
3
- private readonly apiKey;
4
- private readonly baseUrl;
5
- private readonly timeoutMs;
6
- private readonly maxRetries;
7
- constructor(config: PramptaConfig);
8
- private sleep;
9
- private request;
10
- /**
11
- * Decode a PP code — returns the full prompt with content and media.
12
- * @param code - The PP code to decode (e.g., "PP-3YGBM5V0HN-4")
13
- * @param options - Optional request options including abort signal
14
- */
15
- decode(code: string, options?: {
16
- signal?: AbortSignal;
17
- }): Promise<Prompt>;
18
- /**
19
- * Look up a PP code — returns metadata without content.
20
- * Increments the prompt's usage counter.
21
- * @param code - The PP code to look up
22
- * @param options - Optional request options including abort signal
23
- */
24
- lookup(code: string, options?: {
25
- signal?: AbortSignal;
26
- }): Promise<PromptMetadata>;
27
- /**
28
- * Search the public prompt library.
29
- * @param searchOptions - Search filters and pagination
30
- * @param requestOptions - Optional request options including abort signal
31
- */
32
- search(searchOptions?: SearchOptions, requestOptions?: {
33
- signal?: AbortSignal;
34
- }): Promise<SearchResult>;
35
- /**
36
- * Create a new prompt and get its PP code.
37
- * @param createOptions - Prompt content and optional metadata
38
- * @param requestOptions - Optional request options including abort signal
39
- */
40
- create(createOptions: CreateOptions, requestOptions?: {
41
- signal?: AbortSignal;
42
- }): Promise<CreateResult>;
43
- /**
44
- * List your own prompts.
45
- * @param options - Optional request options including abort signal
46
- */
47
- myPrompts(options?: {
48
- signal?: AbortSignal;
49
- }): Promise<Prompt[]>;
50
- /**
51
- * Register an existing PP code to your account (increments usage).
52
- * @param ppCode - The PP code to register
53
- * @param options - Optional request options including abort signal
54
- */
55
- register(ppCode: string, options?: {
56
- signal?: AbortSignal;
57
- }): Promise<{
58
- registered: boolean;
59
- prompt: Prompt;
60
- }>;
61
- /**
62
- * Check API connectivity and authentication.
63
- * Useful for testing your API key before making other requests.
64
- */
65
- healthCheck(): Promise<{
66
- healthy: boolean;
67
- latencyMs: number;
68
- authenticated: boolean;
69
- }>;
70
- }
71
- export declare class PramptaError extends Error {
72
- readonly status: number;
73
- constructor(message: string, status: number);
74
- }
75
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,MAAM,EACN,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACd,MAAM,YAAY,CAAC;AAYpB,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;gBAExB,MAAM,EAAE,aAA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ist/client.js DELETED
@@ -1,221 +0,0 @@
1
- const DEFAULT_TIMEOUT_MS = 30_000;
2
- const DEFAULT_MAX_RETRIES = 3;
3
- const RETRY_DELAY_MS = 1000;
4
- const SDK_VERSION = '0.2.0';
5
- export class Prampta {
6
- apiKey;
7
- baseUrl;
8
- timeoutMs;
9
- maxRetries;
10
- constructor(config) {
11
- if (!config.apiKey) {
12
- throw new PramptaError('apiKey is required', 0);
13
- }
14
- if (!config.apiKey.startsWith('pk_')) {
15
- throw new PramptaError('apiKey must start with "pk_"', 0);
16
- }
17
- this.apiKey = config.apiKey;
18
- this.baseUrl = (config.baseUrl || 'https://api.prampta.com').replace(/\/$/, '');
19
- this.timeoutMs = config.timeoutMs ?? DEFAULT_TIMEOUT_MS;
20
- this.maxRetries = config.maxRetries ?? DEFAULT_MAX_RETRIES;
21
- }
22
- async sleep(ms) {
23
- return new Promise(resolve => setTimeout(resolve, ms));
24
- }
25
- async request(method, path, body, options) {
26
- const maxRetries = options?.retries ?? this.maxRetries;
27
- let lastError = null;
28
- for (let attempt = 0; attempt <= maxRetries; attempt++) {
29
- const headers = {
30
- 'Authorization': `Bearer ${this.apiKey}`,
31
- 'Accept': 'application/json',
32
- 'User-Agent': `prampta-sdk/${SDK_VERSION}`,
33
- };
34
- if (body)
35
- headers['Content-Type'] = 'application/json';
36
- const controller = new AbortController();
37
- const timeout = setTimeout(() => controller.abort(), this.timeoutMs);
38
- // Allow external abort signal to cancel request
39
- if (options?.signal) {
40
- options.signal.addEventListener('abort', () => controller.abort());
41
- }
42
- try {
43
- const res = await fetch(`${this.baseUrl}${path}`, {
44
- method,
45
- headers,
46
- body: body ? JSON.stringify(body) : undefined,
47
- signal: controller.signal,
48
- });
49
- clearTimeout(timeout);
50
- if (res.status === 204)
51
- return undefined;
52
- // Handle rate limiting with retry
53
- if (res.status === 429) {
54
- const retryAfter = res.headers.get('Retry-After');
55
- const waitMs = retryAfter
56
- ? parseInt(retryAfter, 10) * 1000
57
- : RETRY_DELAY_MS * Math.pow(2, attempt);
58
- if (attempt < maxRetries) {
59
- await this.sleep(waitMs);
60
- continue;
61
- }
62
- throw new PramptaError('Rate limit exceeded. Try again later.', 429);
63
- }
64
- // Retry on server errors
65
- if (res.status >= 500 && attempt < maxRetries) {
66
- lastError = new PramptaError(`Server error (${res.status})`, res.status);
67
- await this.sleep(RETRY_DELAY_MS * Math.pow(2, attempt));
68
- continue;
69
- }
70
- let data;
71
- try {
72
- data = await res.json();
73
- }
74
- catch {
75
- throw new PramptaError(`API returned non-JSON response (${res.status})`, res.status);
76
- }
77
- if (!res.ok) {
78
- const message = (data && typeof data === 'object' && 'error' in data)
79
- ? String(data.error)
80
- : `API error ${res.status}`;
81
- throw new PramptaError(message, res.status);
82
- }
83
- return data;
84
- }
85
- catch (e) {
86
- clearTimeout(timeout);
87
- if (e instanceof PramptaError) {
88
- throw e;
89
- }
90
- if (e instanceof Error) {
91
- if (e.name === 'AbortError') {
92
- // Check if it was an external abort
93
- if (options?.signal?.aborted) {
94
- throw new PramptaError('Request was cancelled', 0);
95
- }
96
- throw new PramptaError(`Request timed out after ${this.timeoutMs}ms`, 0);
97
- }
98
- // Network errors are retryable
99
- lastError = new PramptaError(`Network error: ${e.message}`, 0);
100
- if (attempt < maxRetries) {
101
- await this.sleep(RETRY_DELAY_MS * Math.pow(2, attempt));
102
- continue;
103
- }
104
- }
105
- throw lastError ?? new PramptaError('Unknown error occurred', 0);
106
- }
107
- }
108
- throw lastError ?? new PramptaError('Request failed after retries', 0);
109
- }
110
- /**
111
- * Decode a PP code — returns the full prompt with content and media.
112
- * @param code - The PP code to decode (e.g., "PP-3YGBM5V0HN-4")
113
- * @param options - Optional request options including abort signal
114
- */
115
- async decode(code, options) {
116
- if (!code || typeof code !== 'string') {
117
- throw new PramptaError('PP code is required', 0);
118
- }
119
- return this.request('GET', `/api/decode?code=${encodeURIComponent(code.trim())}`, undefined, options);
120
- }
121
- /**
122
- * Look up a PP code — returns metadata without content.
123
- * Increments the prompt's usage counter.
124
- * @param code - The PP code to look up
125
- * @param options - Optional request options including abort signal
126
- */
127
- async lookup(code, options) {
128
- if (!code || typeof code !== 'string') {
129
- throw new PramptaError('PP code is required', 0);
130
- }
131
- return this.request('GET', `/api/lookup?code=${encodeURIComponent(code.trim())}`, undefined, options);
132
- }
133
- /**
134
- * Search the public prompt library.
135
- * @param searchOptions - Search filters and pagination
136
- * @param requestOptions - Optional request options including abort signal
137
- */
138
- async search(searchOptions = {}, requestOptions) {
139
- const params = new URLSearchParams();
140
- if (searchOptions.query)
141
- params.set('search', searchOptions.query.slice(0, 200));
142
- if (searchOptions.category)
143
- params.set('category', searchOptions.category);
144
- if (searchOptions.limit)
145
- params.set('limit', String(Math.min(100, Math.max(1, searchOptions.limit))));
146
- if (searchOptions.page)
147
- params.set('page', String(Math.max(1, searchOptions.page)));
148
- const qs = params.toString();
149
- return this.request('GET', `/api/library${qs ? `?${qs}` : ''}`, undefined, requestOptions);
150
- }
151
- /**
152
- * Create a new prompt and get its PP code.
153
- * @param createOptions - Prompt content and optional metadata
154
- * @param requestOptions - Optional request options including abort signal
155
- */
156
- async create(createOptions, requestOptions) {
157
- if (!createOptions.content || createOptions.content.length < 10) {
158
- throw new PramptaError('Prompt content must be at least 10 characters', 0);
159
- }
160
- if (createOptions.content.length > 50_000) {
161
- throw new PramptaError('Prompt content must be at most 50,000 characters', 0);
162
- }
163
- return this.request('POST', '/api/create', createOptions, requestOptions);
164
- }
165
- /**
166
- * List your own prompts.
167
- * @param options - Optional request options including abort signal
168
- */
169
- async myPrompts(options) {
170
- return this.request('GET', '/api/mine', undefined, options);
171
- }
172
- /**
173
- * Register an existing PP code to your account (increments usage).
174
- * @param ppCode - The PP code to register
175
- * @param options - Optional request options including abort signal
176
- */
177
- async register(ppCode, options) {
178
- if (!ppCode || typeof ppCode !== 'string') {
179
- throw new PramptaError('PP code is required', 0);
180
- }
181
- return this.request('POST', '/api/register', { ppCode: ppCode.trim() }, options);
182
- }
183
- /**
184
- * Check API connectivity and authentication.
185
- * Useful for testing your API key before making other requests.
186
- */
187
- async healthCheck() {
188
- const start = Date.now();
189
- try {
190
- await this.myPrompts({ signal: AbortSignal.timeout(5000) });
191
- return {
192
- healthy: true,
193
- latencyMs: Date.now() - start,
194
- authenticated: true,
195
- };
196
- }
197
- catch (err) {
198
- if (err instanceof PramptaError && err.status === 401) {
199
- return {
200
- healthy: true,
201
- latencyMs: Date.now() - start,
202
- authenticated: false,
203
- };
204
- }
205
- return {
206
- healthy: false,
207
- latencyMs: Date.now() - start,
208
- authenticated: false,
209
- };
210
- }
211
- }
212
- }
213
- export class PramptaError extends Error {
214
- status;
215
- constructor(message, status) {
216
- super(message);
217
- this.status = status;
218
- this.name = 'PramptaError';
219
- }
220
- }
221
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAUA,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAClC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAC9B,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,WAAW,GAAG,OAAO,CAAC;AAO5B,MAAM,OAAO,OAAO;IACD,MAAM,CAAS;IACf,OAAO,CAAS;IAChB,SAAS,CAAS;IAClB,UAAU,CAAS;IAEpC,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACnB,MAAM,IAAI,YAAY,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YACrC,MAAM,IAAI,YAAY,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,yBAAyB,CAA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BACd,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;gBAC7B,aAAa,EAAE,KAAK;aACrB,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,KAAK;IACQ;IAA7C,YAAY,OAAe,EAAkB,MAAc;QACzD,KAAK,CAAC,OAAO,CAAC,CAAC;QAD4B,WAAM,GAAN,MAAM,CAAQ;QAEzD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EACV,MAAM,EACN,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,GACd,MAAM,YAAY,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
package/dist/mcp.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=mcp.d.ts.map
package/dist/mcp.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":""}