@teamvibe/poller 0.1.0 → 0.1.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/dist/config.d.ts CHANGED
@@ -3,7 +3,7 @@ declare const configSchema: z.ZodObject<{
3
3
  AWS_REGION: z.ZodDefault<z.ZodString>;
4
4
  SQS_QUEUE_URL: z.ZodOptional<z.ZodString>;
5
5
  SESSIONS_TABLE: z.ZodOptional<z.ZodString>;
6
- TEAMVIBE_API_URL: z.ZodOptional<z.ZodString>;
6
+ TEAMVIBE_API_URL: z.ZodDefault<z.ZodString>;
7
7
  TEAMVIBE_POLLER_TOKEN: z.ZodOptional<z.ZodString>;
8
8
  MAX_CONCURRENT_SESSIONS: z.ZodDefault<z.ZodNumber>;
9
9
  POLL_WAIT_TIME_SECONDS: z.ZodDefault<z.ZodNumber>;
@@ -18,6 +18,7 @@ declare const configSchema: z.ZodObject<{
18
18
  KB_UPDATE_COOLDOWN_MS: z.ZodDefault<z.ZodNumber>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  AWS_REGION: string;
21
+ TEAMVIBE_API_URL: string;
21
22
  MAX_CONCURRENT_SESSIONS: number;
22
23
  POLL_WAIT_TIME_SECONDS: number;
23
24
  VISIBILITY_TIMEOUT_SECONDS: number;
@@ -31,7 +32,6 @@ declare const configSchema: z.ZodObject<{
31
32
  KB_UPDATE_COOLDOWN_MS: number;
32
33
  SQS_QUEUE_URL?: string | undefined;
33
34
  SESSIONS_TABLE?: string | undefined;
34
- TEAMVIBE_API_URL?: string | undefined;
35
35
  TEAMVIBE_POLLER_TOKEN?: string | undefined;
36
36
  }, {
37
37
  AWS_REGION?: string | undefined;
@@ -55,6 +55,7 @@ export type Config = z.infer<typeof configSchema>;
55
55
  export declare function loadConfig(): Config;
56
56
  export declare const config: {
57
57
  AWS_REGION: string;
58
+ TEAMVIBE_API_URL: string;
58
59
  MAX_CONCURRENT_SESSIONS: number;
59
60
  POLL_WAIT_TIME_SECONDS: number;
60
61
  VISIBILITY_TIMEOUT_SECONDS: number;
@@ -68,7 +69,6 @@ export declare const config: {
68
69
  KB_UPDATE_COOLDOWN_MS: number;
69
70
  SQS_QUEUE_URL?: string | undefined;
70
71
  SESSIONS_TABLE?: string | undefined;
71
- TEAMVIBE_API_URL?: string | undefined;
72
72
  TEAMVIBE_POLLER_TOKEN?: string | undefined;
73
73
  };
74
74
  export {};
package/dist/config.js CHANGED
@@ -7,7 +7,7 @@ const configSchema = z.object({
7
7
  SQS_QUEUE_URL: z.string().optional(),
8
8
  SESSIONS_TABLE: z.string().optional(),
9
9
  // Token-based auth (alternative to direct AWS credentials)
10
- TEAMVIBE_API_URL: z.string().optional(),
10
+ TEAMVIBE_API_URL: z.string().default('https://poller.api.teamvibe.ai'),
11
11
  TEAMVIBE_POLLER_TOKEN: z.string().optional(),
12
12
  // Poller settings
13
13
  MAX_CONCURRENT_SESSIONS: z.coerce.number().default(5),
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@teamvibe/poller",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
7
- "teamvibe-poller": "./dist/index.js"
7
+ "poller": "./dist/index.js"
8
8
  },
9
9
  "files": [
10
10
  "dist"