@contextecf/guardian-cli 0.1.5 → 0.1.8

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,7 +1,7 @@
1
1
  import type { Writable } from 'node:stream';
2
2
  import { type PolicyPackMarketplaceManifest } from '@contextecf/personal-fabric-contracts';
3
3
  import { SQLitePersonalFabricStore, type PersonalFabricDataImportResult, type PersonalFabricMutableDataDeleteResult, type SQLitePersonalFabricBackupResult } from '@contextecf/personal-fabric-store';
4
- export declare const GUARDIAN_CLI_VERSION = "0.1.5";
4
+ export declare const GUARDIAN_CLI_VERSION = "0.1.8";
5
5
  export declare const GUARDIAN_PROFILE_SCHEMA_VERSION = "contextecf/project-guardian-profile/v1";
6
6
  export declare const GUARDIAN_NPM_PACKAGE_NAME = "@contextecf/guardian-cli";
7
7
  export declare const GUARDIAN_NPM_REGISTRY = "https://registry.npmjs.org/";
@@ -9,8 +9,11 @@ export declare const GUARDIAN_GLOBAL_INSTALL_COMMAND = "npm install -g @contexte
9
9
  export declare const GUARDIAN_NPX_SETUP_COMMAND = "npx @contextecf/guardian-cli@latest setup";
10
10
  export declare const GUARDIAN_FIRST_RUN_COMMAND = "guardian setup";
11
11
  export declare const GUARDIAN_OPEN_CONTROL_TOWER_COMMAND = "guardian open";
12
+ export declare const GUARDIAN_HALO_CHROME_EXTENSION_ID = "dopkdppbiakhbglhgjfacfdhpheejkck";
13
+ export declare const GUARDIAN_HALO_CHROME_WEB_STORE_LISTING_URL = "https://chromewebstore.google.com/detail/contextecf-halo/dopkdppbiakhbglhgjfacfdhpheejkck";
12
14
  export declare const GUARDIAN_RELEASE_DISPATCH_WORKFLOW = "guardian-release-dispatch.yml";
13
15
  export declare const GUARDIAN_RELEASE_REPOSITORY = "Intelligent-Context-AI-Inc/ContextECF-GITHUB";
16
+ export declare const GUARDIAN_CHROME_WEB_STORE_API_SECRET_NAMES: readonly ["CHROME_WEB_STORE_CLIENT_ID", "CHROME_WEB_STORE_CLIENT_SECRET", "CHROME_WEB_STORE_REFRESH_TOKEN", "CHROME_WEB_STORE_PUBLISHER_ID", "CHROME_WEB_STORE_EXTENSION_ID"];
14
17
  export declare const GUARDIAN_CONTROL_TOWER_URL_ENV = "GUARDIAN_CONTROL_TOWER_URL";
15
18
  export declare const GUARDIAN_DEFAULT_CONTROL_TOWER_URL = "http://127.0.0.1:4317/control-tower";
16
19
  export declare const GUARDIAN_LOCAL_DATA_ENCRYPTION_KEY_ENV = "GUARDIAN_LOCAL_DATA_ENCRYPTION_KEY";
@@ -148,8 +151,11 @@ export interface GuardianReleaseDispatchCommandResult {
148
151
  channels: string;
149
152
  dryRun: boolean;
150
153
  runDockerSmoke: boolean;
154
+ publishAuth: 'token' | 'trusted_publisher';
155
+ browserStorePublish: 'manual' | 'api';
151
156
  command: string;
152
157
  requiredPublishCredentialName?: 'NPM_TOKEN';
158
+ requiredBrowserStoreCredentialNames?: readonly string[];
153
159
  provenance: 'github_actions_oidc_supported';
154
160
  boundaries: string[];
155
161
  tokenPrinted: false;
@@ -181,6 +187,7 @@ export interface GuardianBrowserStoreHandoffCommandResult {
181
187
  cli_version: string;
182
188
  status: 'chrome_distribution_proven_next_submission_pack_ready';
183
189
  primaryStore: 'chrome_web_store';
190
+ publicListingUrl: typeof GUARDIAN_HALO_CHROME_WEB_STORE_LISTING_URL;
184
191
  productionGate: {
185
192
  id: 'browser-store-distribution';
186
193
  status: 'proven';
@@ -211,12 +218,20 @@ export interface GuardianReleaseSecretSetupResult {
211
218
  cli_version: string;
212
219
  repository: typeof GUARDIAN_RELEASE_REPOSITORY;
213
220
  requiredForPublish: 'NPM_TOKEN';
221
+ requiredForBrowserStoreApi: typeof GUARDIAN_CHROME_WEB_STORE_API_SECRET_NAMES;
214
222
  githubActionsSecretUrl: string;
215
223
  commands: {
216
224
  setNpmToken: string;
225
+ setChromeWebStoreClientId: string;
226
+ setChromeWebStoreClientSecret: string;
227
+ setChromeWebStoreRefreshToken: string;
228
+ setChromeWebStorePublisherId: string;
229
+ setChromeWebStoreExtensionId: string;
217
230
  verifyNpmTokenPresence: string;
231
+ verifyChromeWebStoreSecretsPresence: string;
218
232
  dryRunDispatch: string;
219
233
  publishDispatch: string;
234
+ browserStoreApiPublishDispatch: string;
220
235
  };
221
236
  boundaries: string[];
222
237
  tokenPrinted: false;
@@ -258,9 +273,9 @@ export interface GuardianReleaseVerifyResult {
258
273
  commands: {
259
274
  registryVersion: string;
260
275
  publicInstall: string;
276
+ chromeWebStoreListing: string;
261
277
  installedVersion: string;
262
278
  setup: string;
263
- launch: string;
264
279
  status: string;
265
280
  openControlTower: string;
266
281
  copyPasteLocalSmoke: string;
@@ -307,8 +322,38 @@ export interface GuardianReleasePasteResult {
307
322
  tokenPrinted: false;
308
323
  rawContentIncluded: false;
309
324
  }
325
+ export type GuardianPromptCardDisposition = 'allow' | 'warn' | 'rewrite' | 'confirm' | 'block' | 'unavailable' | 'live_sensitive_warning';
326
+ export interface GuardianPromptCardActionOption {
327
+ id: string;
328
+ label: string;
329
+ role: 'recommended' | 'allowed_override' | 'safe_escape' | 'none';
330
+ sendsPrompt: boolean;
331
+ sendsRevisedPrompt: boolean;
332
+ requiresConfirmation: boolean;
333
+ visibleToUser: boolean;
334
+ }
335
+ export interface GuardianPromptCardCatalogEntry {
336
+ disposition: GuardianPromptCardDisposition;
337
+ cardStyle: string;
338
+ whenShown: string;
339
+ actions: readonly GuardianPromptCardActionOption[];
340
+ sendAsIsAllowed: boolean;
341
+ hardBlock: boolean;
342
+ receiptExpected: boolean;
343
+ }
344
+ export interface GuardianPromptCardOptionsResult {
345
+ schema_version: 'contextecf/project-guardian-prompt-card-options/v1';
346
+ cli_version: string;
347
+ status: 'catalog_ready';
348
+ summary: string;
349
+ catalog: readonly GuardianPromptCardCatalogEntry[];
350
+ rules: readonly string[];
351
+ tokenPrinted: false;
352
+ rawContentIncluded: false;
353
+ }
310
354
  declare const PROMPT_COACH_MODES: readonly ["off", "quiet", "balanced", "hands_on"];
311
355
  export type GuardianPromptCoachMode = (typeof PROMPT_COACH_MODES)[number];
356
+ export declare const GUARDIAN_PROMPT_CARD_OPTIONS_CATALOG: readonly GuardianPromptCardCatalogEntry[];
312
357
  export declare const GUARDIAN_POSTURE_PROFILE_IDS: readonly ["calm", "balanced", "guided", "high_assurance", "autopilot_lite"];
313
358
  export type GuardianPostureProfileId = (typeof GUARDIAN_POSTURE_PROFILE_IDS)[number];
314
359
  export interface GuardianPostureProfileDefinition {
@@ -554,8 +599,8 @@ export interface GuardianProductionReadinessStatus {
554
599
  };
555
600
  aiToolIntegration: {
556
601
  mcpInstallCommand: 'guardian mcp install --client=all --write';
557
- browserSetupCommand: 'guardian extension open-setup';
558
- nativeHostInstallCommand: 'guardian extension native-host install --extension-id=<browser-extension-id>';
602
+ browserSetupCommand: 'guardian connect';
603
+ nativeHostInstallCommand: string;
559
604
  };
560
605
  browserStoreHandoff: {
561
606
  status: 'operator_handoff_ready_not_submitted' | 'blocked_until_preview_ready';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextecf/guardian-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "Project Guardian local-first Personal Context Fabric CLI",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",