@agenttrail/cli 0.1.0 → 0.2.1
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 +65 -12
- package/dist/chunk-FHYZ2UTD.js +168 -0
- package/dist/cli/index.cjs +65 -50
- package/dist/cli/index.js +1 -1
- package/dist/cursor/capture-hook.mjs +2 -2
- package/dist/cursor/flush.mjs +6 -6
- package/dist/cursor/pep-hook.mjs +305 -64
- package/dist/index.cjs +70 -50
- package/dist/index.d.cts +80 -7
- package/dist/index.d.ts +80 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/marketplace.json +2 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/scripts/pep-hook.mjs +305 -64
- package/dist/chunk-F6FLYISV.js +0 -148
package/dist/index.d.cts
CHANGED
|
@@ -68,6 +68,21 @@ interface AcquireOptions {
|
|
|
68
68
|
}
|
|
69
69
|
declare function withRefreshLock<T>(opts: AcquireOptions, fn: () => Promise<T>): Promise<T>;
|
|
70
70
|
|
|
71
|
+
interface HooksFileIO {
|
|
72
|
+
readText(path: string): string | undefined;
|
|
73
|
+
fileMode(path: string): number | undefined;
|
|
74
|
+
writeText(path: string, text: string, mode: number): void;
|
|
75
|
+
deleteFile(path: string): void;
|
|
76
|
+
dirExists(path: string): boolean;
|
|
77
|
+
removeDirIfEmpty(path: string): void;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface GitResult {
|
|
81
|
+
readonly code: number;
|
|
82
|
+
readonly stdout: string;
|
|
83
|
+
}
|
|
84
|
+
type GitRunner = (args: readonly string[], cwd: string) => GitResult;
|
|
85
|
+
|
|
71
86
|
declare const REFRESH_STALE_WINDOW_MS: number;
|
|
72
87
|
type RefreshOutcome = "no-op" | "rotated" | "not-logged-in";
|
|
73
88
|
|
|
@@ -84,6 +99,7 @@ interface LoginEnv {
|
|
|
84
99
|
readonly projectSlug?: string;
|
|
85
100
|
readonly captureContent?: boolean;
|
|
86
101
|
readonly global?: boolean;
|
|
102
|
+
readonly setup?: boolean;
|
|
87
103
|
readonly host: string;
|
|
88
104
|
readonly fetchFn?: FetchFn$1;
|
|
89
105
|
readonly sleepFn?: SleepFn;
|
|
@@ -92,6 +108,8 @@ interface LoginEnv {
|
|
|
92
108
|
readonly credentialsIO?: CredentialsIO;
|
|
93
109
|
readonly settingsIO?: SettingsIO;
|
|
94
110
|
readonly lockIO?: LockIO;
|
|
111
|
+
readonly git?: GitRunner;
|
|
112
|
+
readonly processEnv?: Readonly<Record<string, string | undefined>>;
|
|
95
113
|
readonly log: (msg: string) => void;
|
|
96
114
|
}
|
|
97
115
|
declare function runLogin(env: LoginEnv): Promise<DeviceCredentials>;
|
|
@@ -258,6 +276,7 @@ interface MapOptions {
|
|
|
258
276
|
readonly captureContent: boolean;
|
|
259
277
|
readonly scopeVersion?: string;
|
|
260
278
|
readonly resolved?: ResolvedScrubbers | null;
|
|
279
|
+
readonly provenance?: "backfill" | "live";
|
|
261
280
|
}
|
|
262
281
|
declare function sessionToResourceSpans(session: ParsedSession, opts: MapOptions): BackfillResourceSpans;
|
|
263
282
|
|
|
@@ -403,6 +422,39 @@ declare function buildSpanTree(session: ParsedSession): SpanNode[];
|
|
|
403
422
|
|
|
404
423
|
type FetchFn = typeof fetch;
|
|
405
424
|
|
|
425
|
+
interface StateIO {
|
|
426
|
+
readFile?: (p: string) => string;
|
|
427
|
+
writeFile?: (p: string, c: string, mode?: number) => void;
|
|
428
|
+
mkdir?: (p: string, mode: number) => void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface CaptureLogEntry {
|
|
432
|
+
readonly event?: string;
|
|
433
|
+
readonly session?: string;
|
|
434
|
+
readonly outcome: string;
|
|
435
|
+
readonly reason?: string;
|
|
436
|
+
readonly traces?: number;
|
|
437
|
+
readonly sent?: number;
|
|
438
|
+
readonly spans?: number;
|
|
439
|
+
readonly httpStatus?: number;
|
|
440
|
+
readonly project?: string;
|
|
441
|
+
}
|
|
442
|
+
interface CaptureContext {
|
|
443
|
+
readonly env: NodeJS.ProcessEnv;
|
|
444
|
+
readonly homeDir: string;
|
|
445
|
+
readonly endpointFlag?: string;
|
|
446
|
+
readonly readStdin?: () => Promise<string>;
|
|
447
|
+
readonly spawnWorker?: (payload: string) => void;
|
|
448
|
+
readonly armDeadline?: (ms: number) => void;
|
|
449
|
+
readonly sleep?: (ms: number) => Promise<void>;
|
|
450
|
+
readonly upload?: UploadDeps;
|
|
451
|
+
readonly stateIO?: StateIO;
|
|
452
|
+
readonly loginEnv?: Partial<LoginEnv>;
|
|
453
|
+
readonly managedPaths?: readonly string[];
|
|
454
|
+
readonly log?: (entry: CaptureLogEntry) => void;
|
|
455
|
+
}
|
|
456
|
+
declare function runCaptureCommand(ctx: CaptureContext): Promise<number>;
|
|
457
|
+
|
|
406
458
|
declare const AGENTTRAIL_PROJECT_NS: "18a5d968-0fa2-5c8a-88da-0b29d80105d4";
|
|
407
459
|
declare const AGENTTRAIL_AGENT_NS: "7f050af4-796e-5b05-94c2-dba78bcdc7c2";
|
|
408
460
|
declare const AGENTTRAIL_INGEST_ENDPOINT: "https://ingest.agenttrail.sh";
|
|
@@ -420,18 +472,18 @@ declare const agenttrailConfigSchema: z.ZodObject<{
|
|
|
420
472
|
orgId: string;
|
|
421
473
|
projectSlug: string;
|
|
422
474
|
projectId?: string | undefined;
|
|
423
|
-
agentId?: string | undefined;
|
|
424
475
|
developerId?: string | undefined;
|
|
425
|
-
apiKey?: string | undefined;
|
|
426
476
|
captureContent?: boolean | undefined;
|
|
477
|
+
agentId?: string | undefined;
|
|
478
|
+
apiKey?: string | undefined;
|
|
427
479
|
}, {
|
|
428
480
|
orgId: string;
|
|
429
481
|
projectSlug: string;
|
|
430
482
|
projectId?: string | undefined;
|
|
431
|
-
agentId?: string | undefined;
|
|
432
483
|
developerId?: string | undefined;
|
|
433
|
-
apiKey?: string | undefined;
|
|
434
484
|
captureContent?: boolean | undefined;
|
|
485
|
+
agentId?: string | undefined;
|
|
486
|
+
apiKey?: string | undefined;
|
|
435
487
|
}>;
|
|
436
488
|
type AgentTrailConfig = z.infer<typeof agenttrailConfigSchema>;
|
|
437
489
|
declare function parseAgentTrailConfig(raw: unknown): AgentTrailConfig;
|
|
@@ -442,9 +494,14 @@ interface PersistIO {
|
|
|
442
494
|
exists?: (p: string) => boolean;
|
|
443
495
|
mkdir?: (p: string, mode?: number) => void;
|
|
444
496
|
home?: string;
|
|
497
|
+
git?: GitRunner;
|
|
498
|
+
excludeIO?: HooksFileIO;
|
|
499
|
+
unlink?: (p: string) => void;
|
|
445
500
|
}
|
|
446
501
|
declare function ensureGitignored(rootDir: string, io?: PersistIO, line?: string): boolean;
|
|
447
|
-
declare function writeAgentTrailConfig(rootDir: string, config: AgentTrailConfig, io?: PersistIO
|
|
502
|
+
declare function writeAgentTrailConfig(rootDir: string, config: AgentTrailConfig, io?: PersistIO, opts?: {
|
|
503
|
+
readonly committable?: boolean;
|
|
504
|
+
}): {
|
|
448
505
|
path: string;
|
|
449
506
|
gitignoreModified: boolean;
|
|
450
507
|
mode: number;
|
|
@@ -490,12 +547,20 @@ interface InstallOptions {
|
|
|
490
547
|
readonly runner?: ClaudeRunner;
|
|
491
548
|
readonly marketplaceSource?: string;
|
|
492
549
|
readonly pathExists?: (p: string) => boolean;
|
|
550
|
+
readonly refresh?: boolean;
|
|
551
|
+
readonly packagedVersion?: string;
|
|
493
552
|
}
|
|
494
|
-
type InstallStatus = "installed" | "already-installed";
|
|
553
|
+
type InstallStatus = "installed" | "already-installed" | "refreshed" | "refresh-failed";
|
|
495
554
|
interface InstallResult {
|
|
496
555
|
readonly status: InstallStatus;
|
|
497
556
|
readonly pluginId: string;
|
|
498
557
|
readonly scope: PluginScope;
|
|
558
|
+
readonly foundVersion?: string;
|
|
559
|
+
readonly expectedVersion?: string;
|
|
560
|
+
readonly afterVersion?: string;
|
|
561
|
+
readonly refreshError?: string;
|
|
562
|
+
readonly note?: string;
|
|
563
|
+
readonly warning?: string;
|
|
499
564
|
}
|
|
500
565
|
declare function installAgentTrailPlugin(options?: InstallOptions): InstallResult;
|
|
501
566
|
interface UninstallOptions {
|
|
@@ -524,6 +589,8 @@ interface CliIO {
|
|
|
524
589
|
fetchFn?: FetchFn;
|
|
525
590
|
pluginRunner?: ClaudeRunner;
|
|
526
591
|
readStdin?: () => Promise<string>;
|
|
592
|
+
managedPaths?: readonly string[];
|
|
593
|
+
captureOverrides?: Partial<Parameters<typeof runCaptureCommand>[0]>;
|
|
527
594
|
}
|
|
528
595
|
declare function run(io: CliIO): Promise<number>;
|
|
529
596
|
|
|
@@ -595,8 +662,10 @@ interface WriteSettingsResult {
|
|
|
595
662
|
}
|
|
596
663
|
declare function writeClaudeSettings(rootDir: string, env: Record<string, string>, io?: {
|
|
597
664
|
readFile?: (p: string) => string;
|
|
598
|
-
writeFile?: (p: string, c: string) => void;
|
|
665
|
+
writeFile?: (p: string, c: string, mode?: number) => void;
|
|
599
666
|
mkdir?: (p: string) => void;
|
|
667
|
+
}, opts?: {
|
|
668
|
+
mode?: number;
|
|
600
669
|
}): WriteSettingsResult;
|
|
601
670
|
|
|
602
671
|
interface SetupParams {
|
|
@@ -624,6 +693,10 @@ interface SetupResult {
|
|
|
624
693
|
readonly global: boolean;
|
|
625
694
|
readonly captureContent: boolean;
|
|
626
695
|
readonly resolvedEndpoint: string;
|
|
696
|
+
readonly sessionUpload: {
|
|
697
|
+
readonly hooksChanged: boolean;
|
|
698
|
+
readonly removedKeys: string[];
|
|
699
|
+
} | null;
|
|
627
700
|
}
|
|
628
701
|
declare function runSetup(params: SetupParams, io?: PersistIO): SetupResult;
|
|
629
702
|
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,21 @@ interface AcquireOptions {
|
|
|
68
68
|
}
|
|
69
69
|
declare function withRefreshLock<T>(opts: AcquireOptions, fn: () => Promise<T>): Promise<T>;
|
|
70
70
|
|
|
71
|
+
interface HooksFileIO {
|
|
72
|
+
readText(path: string): string | undefined;
|
|
73
|
+
fileMode(path: string): number | undefined;
|
|
74
|
+
writeText(path: string, text: string, mode: number): void;
|
|
75
|
+
deleteFile(path: string): void;
|
|
76
|
+
dirExists(path: string): boolean;
|
|
77
|
+
removeDirIfEmpty(path: string): void;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface GitResult {
|
|
81
|
+
readonly code: number;
|
|
82
|
+
readonly stdout: string;
|
|
83
|
+
}
|
|
84
|
+
type GitRunner = (args: readonly string[], cwd: string) => GitResult;
|
|
85
|
+
|
|
71
86
|
declare const REFRESH_STALE_WINDOW_MS: number;
|
|
72
87
|
type RefreshOutcome = "no-op" | "rotated" | "not-logged-in";
|
|
73
88
|
|
|
@@ -84,6 +99,7 @@ interface LoginEnv {
|
|
|
84
99
|
readonly projectSlug?: string;
|
|
85
100
|
readonly captureContent?: boolean;
|
|
86
101
|
readonly global?: boolean;
|
|
102
|
+
readonly setup?: boolean;
|
|
87
103
|
readonly host: string;
|
|
88
104
|
readonly fetchFn?: FetchFn$1;
|
|
89
105
|
readonly sleepFn?: SleepFn;
|
|
@@ -92,6 +108,8 @@ interface LoginEnv {
|
|
|
92
108
|
readonly credentialsIO?: CredentialsIO;
|
|
93
109
|
readonly settingsIO?: SettingsIO;
|
|
94
110
|
readonly lockIO?: LockIO;
|
|
111
|
+
readonly git?: GitRunner;
|
|
112
|
+
readonly processEnv?: Readonly<Record<string, string | undefined>>;
|
|
95
113
|
readonly log: (msg: string) => void;
|
|
96
114
|
}
|
|
97
115
|
declare function runLogin(env: LoginEnv): Promise<DeviceCredentials>;
|
|
@@ -258,6 +276,7 @@ interface MapOptions {
|
|
|
258
276
|
readonly captureContent: boolean;
|
|
259
277
|
readonly scopeVersion?: string;
|
|
260
278
|
readonly resolved?: ResolvedScrubbers | null;
|
|
279
|
+
readonly provenance?: "backfill" | "live";
|
|
261
280
|
}
|
|
262
281
|
declare function sessionToResourceSpans(session: ParsedSession, opts: MapOptions): BackfillResourceSpans;
|
|
263
282
|
|
|
@@ -403,6 +422,39 @@ declare function buildSpanTree(session: ParsedSession): SpanNode[];
|
|
|
403
422
|
|
|
404
423
|
type FetchFn = typeof fetch;
|
|
405
424
|
|
|
425
|
+
interface StateIO {
|
|
426
|
+
readFile?: (p: string) => string;
|
|
427
|
+
writeFile?: (p: string, c: string, mode?: number) => void;
|
|
428
|
+
mkdir?: (p: string, mode: number) => void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface CaptureLogEntry {
|
|
432
|
+
readonly event?: string;
|
|
433
|
+
readonly session?: string;
|
|
434
|
+
readonly outcome: string;
|
|
435
|
+
readonly reason?: string;
|
|
436
|
+
readonly traces?: number;
|
|
437
|
+
readonly sent?: number;
|
|
438
|
+
readonly spans?: number;
|
|
439
|
+
readonly httpStatus?: number;
|
|
440
|
+
readonly project?: string;
|
|
441
|
+
}
|
|
442
|
+
interface CaptureContext {
|
|
443
|
+
readonly env: NodeJS.ProcessEnv;
|
|
444
|
+
readonly homeDir: string;
|
|
445
|
+
readonly endpointFlag?: string;
|
|
446
|
+
readonly readStdin?: () => Promise<string>;
|
|
447
|
+
readonly spawnWorker?: (payload: string) => void;
|
|
448
|
+
readonly armDeadline?: (ms: number) => void;
|
|
449
|
+
readonly sleep?: (ms: number) => Promise<void>;
|
|
450
|
+
readonly upload?: UploadDeps;
|
|
451
|
+
readonly stateIO?: StateIO;
|
|
452
|
+
readonly loginEnv?: Partial<LoginEnv>;
|
|
453
|
+
readonly managedPaths?: readonly string[];
|
|
454
|
+
readonly log?: (entry: CaptureLogEntry) => void;
|
|
455
|
+
}
|
|
456
|
+
declare function runCaptureCommand(ctx: CaptureContext): Promise<number>;
|
|
457
|
+
|
|
406
458
|
declare const AGENTTRAIL_PROJECT_NS: "18a5d968-0fa2-5c8a-88da-0b29d80105d4";
|
|
407
459
|
declare const AGENTTRAIL_AGENT_NS: "7f050af4-796e-5b05-94c2-dba78bcdc7c2";
|
|
408
460
|
declare const AGENTTRAIL_INGEST_ENDPOINT: "https://ingest.agenttrail.sh";
|
|
@@ -420,18 +472,18 @@ declare const agenttrailConfigSchema: z.ZodObject<{
|
|
|
420
472
|
orgId: string;
|
|
421
473
|
projectSlug: string;
|
|
422
474
|
projectId?: string | undefined;
|
|
423
|
-
agentId?: string | undefined;
|
|
424
475
|
developerId?: string | undefined;
|
|
425
|
-
apiKey?: string | undefined;
|
|
426
476
|
captureContent?: boolean | undefined;
|
|
477
|
+
agentId?: string | undefined;
|
|
478
|
+
apiKey?: string | undefined;
|
|
427
479
|
}, {
|
|
428
480
|
orgId: string;
|
|
429
481
|
projectSlug: string;
|
|
430
482
|
projectId?: string | undefined;
|
|
431
|
-
agentId?: string | undefined;
|
|
432
483
|
developerId?: string | undefined;
|
|
433
|
-
apiKey?: string | undefined;
|
|
434
484
|
captureContent?: boolean | undefined;
|
|
485
|
+
agentId?: string | undefined;
|
|
486
|
+
apiKey?: string | undefined;
|
|
435
487
|
}>;
|
|
436
488
|
type AgentTrailConfig = z.infer<typeof agenttrailConfigSchema>;
|
|
437
489
|
declare function parseAgentTrailConfig(raw: unknown): AgentTrailConfig;
|
|
@@ -442,9 +494,14 @@ interface PersistIO {
|
|
|
442
494
|
exists?: (p: string) => boolean;
|
|
443
495
|
mkdir?: (p: string, mode?: number) => void;
|
|
444
496
|
home?: string;
|
|
497
|
+
git?: GitRunner;
|
|
498
|
+
excludeIO?: HooksFileIO;
|
|
499
|
+
unlink?: (p: string) => void;
|
|
445
500
|
}
|
|
446
501
|
declare function ensureGitignored(rootDir: string, io?: PersistIO, line?: string): boolean;
|
|
447
|
-
declare function writeAgentTrailConfig(rootDir: string, config: AgentTrailConfig, io?: PersistIO
|
|
502
|
+
declare function writeAgentTrailConfig(rootDir: string, config: AgentTrailConfig, io?: PersistIO, opts?: {
|
|
503
|
+
readonly committable?: boolean;
|
|
504
|
+
}): {
|
|
448
505
|
path: string;
|
|
449
506
|
gitignoreModified: boolean;
|
|
450
507
|
mode: number;
|
|
@@ -490,12 +547,20 @@ interface InstallOptions {
|
|
|
490
547
|
readonly runner?: ClaudeRunner;
|
|
491
548
|
readonly marketplaceSource?: string;
|
|
492
549
|
readonly pathExists?: (p: string) => boolean;
|
|
550
|
+
readonly refresh?: boolean;
|
|
551
|
+
readonly packagedVersion?: string;
|
|
493
552
|
}
|
|
494
|
-
type InstallStatus = "installed" | "already-installed";
|
|
553
|
+
type InstallStatus = "installed" | "already-installed" | "refreshed" | "refresh-failed";
|
|
495
554
|
interface InstallResult {
|
|
496
555
|
readonly status: InstallStatus;
|
|
497
556
|
readonly pluginId: string;
|
|
498
557
|
readonly scope: PluginScope;
|
|
558
|
+
readonly foundVersion?: string;
|
|
559
|
+
readonly expectedVersion?: string;
|
|
560
|
+
readonly afterVersion?: string;
|
|
561
|
+
readonly refreshError?: string;
|
|
562
|
+
readonly note?: string;
|
|
563
|
+
readonly warning?: string;
|
|
499
564
|
}
|
|
500
565
|
declare function installAgentTrailPlugin(options?: InstallOptions): InstallResult;
|
|
501
566
|
interface UninstallOptions {
|
|
@@ -524,6 +589,8 @@ interface CliIO {
|
|
|
524
589
|
fetchFn?: FetchFn;
|
|
525
590
|
pluginRunner?: ClaudeRunner;
|
|
526
591
|
readStdin?: () => Promise<string>;
|
|
592
|
+
managedPaths?: readonly string[];
|
|
593
|
+
captureOverrides?: Partial<Parameters<typeof runCaptureCommand>[0]>;
|
|
527
594
|
}
|
|
528
595
|
declare function run(io: CliIO): Promise<number>;
|
|
529
596
|
|
|
@@ -595,8 +662,10 @@ interface WriteSettingsResult {
|
|
|
595
662
|
}
|
|
596
663
|
declare function writeClaudeSettings(rootDir: string, env: Record<string, string>, io?: {
|
|
597
664
|
readFile?: (p: string) => string;
|
|
598
|
-
writeFile?: (p: string, c: string) => void;
|
|
665
|
+
writeFile?: (p: string, c: string, mode?: number) => void;
|
|
599
666
|
mkdir?: (p: string) => void;
|
|
667
|
+
}, opts?: {
|
|
668
|
+
mode?: number;
|
|
600
669
|
}): WriteSettingsResult;
|
|
601
670
|
|
|
602
671
|
interface SetupParams {
|
|
@@ -624,6 +693,10 @@ interface SetupResult {
|
|
|
624
693
|
readonly global: boolean;
|
|
625
694
|
readonly captureContent: boolean;
|
|
626
695
|
readonly resolvedEndpoint: string;
|
|
696
|
+
readonly sessionUpload: {
|
|
697
|
+
readonly hooksChanged: boolean;
|
|
698
|
+
readonly removedKeys: string[];
|
|
699
|
+
} | null;
|
|
627
700
|
}
|
|
628
701
|
declare function runSetup(params: SetupParams, io?: PersistIO): SetupResult;
|
|
629
702
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$,A as N,Aa as Ne,B as _,Ba as _e,C as x,Ca as xe,D as O,Da as Oe,E as h,F as G,G as k,H as v,I as D,J as U,K as F,L as b,M as j,N as B,O as M,P as w,Q as V,R as J,S as K,T as W,U as z,V as H,W as Q,X as q,Y as X,Z as Y,_ as Z,a as e,aa as ee,b as t,ba as te,c as o,ca as oe,d as r,da as re,e as n,ea as ne,f as p,fa as pe,g as i,ga as ie,h as s,ha as se,i as l,ia as le,j as a,ja as ae,k as u,ka as ue,l as c,la as ce,m as y,ma as ye,n as f,na as fe,o as S,oa as Se,p as d,pa as de,q as T,qa as Te,r as I,ra as Ie,s as m,sa as me,t as E,ta as Ee,u as R,ua as Re,v as C,va as Ce,w as g,wa as ge,x as A,xa as Ae,y as P,ya as Pe,z as L,za as Le}from"./chunk-
|
|
1
|
+
import{$,A as N,Aa as Ne,B as _,Ba as _e,C as x,Ca as xe,D as O,Da as Oe,E as h,F as G,G as k,H as v,I as D,J as U,K as F,L as b,M as j,N as B,O as M,P as w,Q as V,R as J,S as K,T as W,U as z,V as H,W as Q,X as q,Y as X,Z as Y,_ as Z,a as e,aa as ee,b as t,ba as te,c as o,ca as oe,d as r,da as re,e as n,ea as ne,f as p,fa as pe,g as i,ga as ie,h as s,ha as se,i as l,ia as le,j as a,ja as ae,k as u,ka as ue,l as c,la as ce,m as y,ma as ye,n as f,na as fe,o as S,oa as Se,p as d,pa as de,q as T,qa as Te,r as I,ra as Ie,s as m,sa as me,t as E,ta as Ee,u as R,ua as Re,v as C,va as Ce,w as g,wa as ge,x as A,xa as Ae,y as P,ya as Pe,z as L,za as Le}from"./chunk-FHYZ2UTD.js";export{t as AGENTTRAIL_AGENT_NS,d as AGENTTRAIL_API_ENDPOINT,o as AGENTTRAIL_INGEST_ENDPOINT,Se as AGENTTRAIL_MARKETPLACE_NAME,Te as AGENTTRAIL_PLUGIN_ID,de as AGENTTRAIL_PLUGIN_NAME,e as AGENTTRAIL_PROJECT_NS,n as CLAUDE_CODE_VENDOR_SLUG,p as CONTENT_FLAGS,Ee as ClaudeCliNotFoundError,R as DEFAULT_LOCK_STALE_MS,Ie as MIN_CLAUDE_VERSION,P as PROJECT_CONFIG_FILE,Ce as PluginCommandError,Re as PluginUnsupportedError,oe as QuarantineError,w as REFRESH_STALE_WINDOW_MS,g as agenttrailConfigSchema,$ as backfillSpanId,Z as backfillTraceId,ue as boundedPool,l as buildEnvBlock,s as buildResourceAttributes,ee as buildSpanTree,W as checkpointPath,S as clearCredentials,b as computeAgentId,F as computeProjectId,c as credentialsPath,me as defaultClaudeRunner,pe as defaultProjectsRoot,D as deriveProjectIdentity,U as deriveProjectSlug,i as encodeResourceValue,Pe as ensureClaudeSupportsPlugins,j as ensureGitignored,re as fileLineSource,_ as findGitRoot,N as findProjectConfig,L as globalConfigPath,Y as hashContent,X as hashFile,Ne as installAgentTrailPlugin,ie as isSessionInProject,Ae as isVersionAtLeast,r as normalizeEndpoint,A as parseAgentTrailConfig,ge as parseClaudeVersion,k as parseGitRemote,ne as parseSession,I as pollDeviceToken,y as readCredentials,v as readGitRemote,z as readState,m as refreshDeviceToken,h as resolveApiKey,O as resolveConfig,Le as resolvePluginScaffoldDir,x as resolveProjectRoot,E as revokeDeviceToken,Oe as run,fe as runImport,V as runLogin,K as runLogout,J as runRefresh,ce as runScan,xe as runSetup,ye as runStatus,se as scanTranscripts,te as sessionToResourceSpans,a as settingsPath,q as shouldProcess,G as slugify,T as startDeviceAuth,le as toOtlpJson,_e as uninstallAgentTrailPlugin,ae as uploadResourceSpans,Q as upsertSession,C as withRefreshLock,B as writeAgentTrailConfig,u as writeClaudeSettings,f as writeCredentials,M as writeGlobalConfig,H as writeState};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenttrail/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The AgentTrail command-line tool: connects an AI coding agent's sessions to AgentTrail, with setup, sign-in, status and history import for the agent named by --agent.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "AgentTrail's plugin marketplace — the enforcement plugin for agent governance.",
|
|
9
|
-
"version": "0.1
|
|
9
|
+
"version": "0.2.1"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "agenttrail",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "AgentTrail enforcement plugin — PreToolUse governance hook (a fail-closed command shim).",
|
|
16
|
-
"version": "0.1
|
|
16
|
+
"version": "0.2.1",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "AgentTrail"
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agenttrail",
|
|
3
3
|
"description": "AgentTrail enforcement plugin for Claude Code — carries the PreToolUse governance hook, a fail-closed command shim.",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "AgentTrail",
|
|
7
7
|
"url": "https://agenttrail.sh"
|