@@ -61,7 +61,7 @@ export interface UploadResult {
6161
6262export interface CLIConfiguration {
6363 version : string ;
64- hookTrigger ?: string | null ;
64+ origin ?: string | null ;
6565 statusline : {
6666 personality : 'gordon' | 'vibe-log' | 'custom' ;
6767 customPersonality ?: {
@@ -89,7 +89,7 @@ function generateRequestId(): string {
8989}
9090
9191// Gather current CLI configuration for sending to server
92- async function gatherCLIConfiguration ( hookTrigger ?: string ) : Promise < CLIConfiguration | null > {
92+ async function gatherCLIConfiguration ( origin ?: string ) : Promise < CLIConfiguration | null > {
9393 try {
9494 // Get statusline configuration
9595 const statuslineConfig = getStatusLinePersonality ( ) ;
@@ -99,7 +99,7 @@ async function gatherCLIConfiguration(hookTrigger?: string): Promise<CLIConfigur
9999
100100 return {
101101 version : require ( '../../package.json' ) . version ,
102- hookTrigger : hookTrigger || null ,
102+ origin : origin || null , // No fallback - must be explicitly set
103103 statusline : {
104104 personality : statuslineConfig . personality ,
105105 customPersonality : statuslineConfig . customPersonality
@@ -393,10 +393,10 @@ class SecureApiClient {
393393 async uploadSessions (
394394 sessions : Session [ ] ,
395395 onProgress ?: ( current : number , total : number , sizeKB ?: number ) => void ,
396- hookTrigger ?: string
396+ origin ?: string
397397 ) : Promise < any > {
398398 // Gather CLI configuration to send with the upload
399- const cliConfig = await gatherCLIConfiguration ( hookTrigger ) ;
399+ const cliConfig = await gatherCLIConfiguration ( origin ) ;
400400
401401 // Validate and sanitize sessions
402402 const sanitizedSessions = sessions . map ( session => this . sanitizeSession ( session ) ) ;
@@ -476,8 +476,8 @@ class SecureApiClient {
476476 const configHeaders : Record < string , string > = { } ;
477477 if ( cliConfig ) {
478478 configHeaders [ 'x-vibe-config-version' ] = cliConfig . version ;
479- if ( cliConfig . hookTrigger ) {
480- configHeaders [ 'x-vibe-config-hook-trigger ' ] = cliConfig . hookTrigger ;
479+ if ( cliConfig . origin ) {
480+ configHeaders [ 'x-vibe-config-origin ' ] = cliConfig . origin ;
481481 }
482482 configHeaders [ 'x-vibe-config-statusline' ] = JSON . stringify ( cliConfig . statusline ) ;
483483 configHeaders [ 'x-vibe-config-hooks' ] = JSON . stringify ( cliConfig . hooks ) ;
0 commit comments