autokap 1.0.10 → 1.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.
@@ -1,6 +1,6 @@
1
1
  import type { SupabaseClient } from '@supabase/supabase-js';
2
2
  import type { StepUsage } from './types.js';
3
- export type BillingOperationType = 'screenshot' | 'clip' | 'video' | 'interactive_demo';
3
+ export type BillingOperationType = 'screenshot' | 'clip' | 'interactive_demo';
4
4
  type BillingOperationOutcome = 'succeeded' | 'failed' | 'cancelled';
5
5
  interface BillingOperationContext {
6
6
  runId: string;
@@ -12,7 +12,7 @@ interface BillingOperationContext {
12
12
  clipRecordId?: string | null;
13
13
  interactiveDemoStateId?: string | null;
14
14
  operationType: BillingOperationType;
15
- captureType?: 'fullpage' | 'element' | 'video' | null;
15
+ captureType?: 'fullpage' | 'element' | null;
16
16
  lang?: string | null;
17
17
  theme?: 'light' | 'dark' | string | null;
18
18
  elementName?: string;
@@ -33,7 +33,6 @@ interface BillingOperationParams {
33
33
  export declare function insertBillingOperationLog(supabase: SupabaseClient, ctx: BillingOperationContext, params: BillingOperationParams): Promise<string | null>;
34
34
  export declare function insertScreenshotOperationLog(supabase: SupabaseClient, ctx: Omit<BillingOperationContext, 'operationType'>, params: BillingOperationParams): Promise<string | null>;
35
35
  export declare function insertClipOperationLog(supabase: SupabaseClient, ctx: Omit<BillingOperationContext, 'operationType'>, params: BillingOperationParams): Promise<string | null>;
36
- export declare function insertVideoOperationLog(supabase: SupabaseClient, ctx: Omit<BillingOperationContext, 'operationType'>, params: BillingOperationParams): Promise<string | null>;
37
36
  export declare function insertInteractiveDemoOperationLog(supabase: SupabaseClient, ctx: Omit<BillingOperationContext, 'operationType'>, params: BillingOperationParams): Promise<string | null>;
38
37
  export declare function cancelScreenshotOperationLogsForCapture(supabase: SupabaseClient, captureId: string, reason: string): Promise<void>;
39
38
  export declare function reconcilePendingBillingOperationCosts(supabase: SupabaseClient, operationIds?: string[]): Promise<void>;
@@ -178,9 +178,6 @@ export async function insertScreenshotOperationLog(supabase, ctx, params) {
178
178
  export async function insertClipOperationLog(supabase, ctx, params) {
179
179
  return insertBillingOperationLog(supabase, { ...ctx, operationType: 'clip' }, params);
180
180
  }
181
- export async function insertVideoOperationLog(supabase, ctx, params) {
182
- return insertBillingOperationLog(supabase, { ...ctx, operationType: 'video' }, params);
183
- }
184
181
  export async function insertInteractiveDemoOperationLog(supabase, ctx, params) {
185
182
  return insertBillingOperationLog(supabase, { ...ctx, operationType: 'interactive_demo' }, params);
186
183
  }
@@ -7,7 +7,7 @@ export interface CostLogContext {
7
7
  presetId?: string;
8
8
  lang?: string;
9
9
  theme?: string;
10
- captureType?: 'fullpage' | 'element' | 'video';
10
+ captureType?: 'fullpage' | 'element';
11
11
  elementName?: string;
12
12
  targetId?: string;
13
13
  captureId?: string | null;
@@ -1,5 +1,5 @@
1
1
  import type { SupabaseClient } from '@supabase/supabase-js';
2
- export type CreditUsageType = 'screenshot' | 'clip' | 'video' | 'preset_analysis' | 'ai_chat' | 'interactive_demo_state';
2
+ export type CreditUsageType = 'screenshot' | 'clip' | 'preset_analysis' | 'ai_chat' | 'interactive_demo_state';
3
3
  export declare function recordCreditUsage(supabase: SupabaseClient, params: {
4
4
  userId: string;
5
5
  projectId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autokap",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "description": "AI-powered CLI tool for capturing clean screenshots of websites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",