@contextecf/guardian-cli 0.1.6 → 0.1.9

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,16 +1,20 @@
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.6";
4
+ export declare const GUARDIAN_CLI_VERSION = "0.1.9";
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/";
8
+ export declare const GUARDIAN_DEFAULT_NPM_PUBLISH_AUTH = "trusted_publisher";
8
9
  export declare const GUARDIAN_GLOBAL_INSTALL_COMMAND = "npm install -g @contextecf/guardian-cli";
9
10
  export declare const GUARDIAN_NPX_SETUP_COMMAND = "npx @contextecf/guardian-cli@latest setup";
10
11
  export declare const GUARDIAN_FIRST_RUN_COMMAND = "guardian setup";
11
12
  export declare const GUARDIAN_OPEN_CONTROL_TOWER_COMMAND = "guardian open";
13
+ export declare const GUARDIAN_HALO_CHROME_EXTENSION_ID = "dopkdppbiakhbglhgjfacfdhpheejkck";
14
+ export declare const GUARDIAN_HALO_CHROME_WEB_STORE_LISTING_URL = "https://chromewebstore.google.com/detail/contextecf-halo/dopkdppbiakhbglhgjfacfdhpheejkck";
12
15
  export declare const GUARDIAN_RELEASE_DISPATCH_WORKFLOW = "guardian-release-dispatch.yml";
13
16
  export declare const GUARDIAN_RELEASE_REPOSITORY = "Intelligent-Context-AI-Inc/ContextECF-GITHUB";
17
+ 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
18
  export declare const GUARDIAN_CONTROL_TOWER_URL_ENV = "GUARDIAN_CONTROL_TOWER_URL";
15
19
  export declare const GUARDIAN_DEFAULT_CONTROL_TOWER_URL = "http://127.0.0.1:4317/control-tower";
16
20
  export declare const GUARDIAN_LOCAL_DATA_ENCRYPTION_KEY_ENV = "GUARDIAN_LOCAL_DATA_ENCRYPTION_KEY";
@@ -148,8 +152,11 @@ export interface GuardianReleaseDispatchCommandResult {
148
152
  channels: string;
149
153
  dryRun: boolean;
150
154
  runDockerSmoke: boolean;
155
+ publishAuth: 'token' | 'trusted_publisher';
156
+ browserStorePublish: 'manual' | 'api';
151
157
  command: string;
152
158
  requiredPublishCredentialName?: 'NPM_TOKEN';
159
+ requiredBrowserStoreCredentialNames?: readonly string[];
153
160
  provenance: 'github_actions_oidc_supported';
154
161
  boundaries: string[];
155
162
  tokenPrinted: false;
@@ -181,6 +188,7 @@ export interface GuardianBrowserStoreHandoffCommandResult {
181
188
  cli_version: string;
182
189
  status: 'chrome_distribution_proven_next_submission_pack_ready';
183
190
  primaryStore: 'chrome_web_store';
191
+ publicListingUrl: typeof GUARDIAN_HALO_CHROME_WEB_STORE_LISTING_URL;
184
192
  productionGate: {
185
193
  id: 'browser-store-distribution';
186
194
  status: 'proven';
@@ -210,13 +218,23 @@ export interface GuardianReleaseSecretSetupResult {
210
218
  schema_version: 'contextecf/project-guardian-release-secret-setup/v1';
211
219
  cli_version: string;
212
220
  repository: typeof GUARDIAN_RELEASE_REPOSITORY;
213
- requiredForPublish: 'NPM_TOKEN';
221
+ defaultPublishAuth: typeof GUARDIAN_DEFAULT_NPM_PUBLISH_AUTH;
222
+ requiredForPublish: 'npm_trusted_publisher_connection';
223
+ tokenFallbackCredentialName: 'NPM_TOKEN';
224
+ requiredForBrowserStoreApi: typeof GUARDIAN_CHROME_WEB_STORE_API_SECRET_NAMES;
214
225
  githubActionsSecretUrl: string;
215
226
  commands: {
216
227
  setNpmToken: string;
228
+ setChromeWebStoreClientId: string;
229
+ setChromeWebStoreClientSecret: string;
230
+ setChromeWebStoreRefreshToken: string;
231
+ setChromeWebStorePublisherId: string;
232
+ setChromeWebStoreExtensionId: string;
217
233
  verifyNpmTokenPresence: string;
234
+ verifyChromeWebStoreSecretsPresence: string;
218
235
  dryRunDispatch: string;
219
236
  publishDispatch: string;
237
+ browserStoreApiPublishDispatch: string;
220
238
  };
221
239
  boundaries: string[];
222
240
  tokenPrinted: false;
@@ -235,7 +253,9 @@ export interface GuardianReleaseChecklistResult {
235
253
  browserStoreHandoff: string;
236
254
  readiness: string;
237
255
  };
238
- requiredRepositoryCredentialName: 'NPM_TOKEN';
256
+ defaultPublishAuth: typeof GUARDIAN_DEFAULT_NPM_PUBLISH_AUTH;
257
+ requiredRepositoryCredentialName?: 'NPM_TOKEN';
258
+ tokenFallbackCredentialName: 'NPM_TOKEN';
239
259
  evidenceOutputs: string[];
240
260
  notProvenProductionGates: Array<{
241
261
  id: string;
@@ -258,9 +278,9 @@ export interface GuardianReleaseVerifyResult {
258
278
  commands: {
259
279
  registryVersion: string;
260
280
  publicInstall: string;
281
+ chromeWebStoreListing: string;
261
282
  installedVersion: string;
262
283
  setup: string;
263
- launch: string;
264
284
  status: string;
265
285
  openControlTower: string;
266
286
  copyPasteLocalSmoke: string;
@@ -307,8 +327,38 @@ export interface GuardianReleasePasteResult {
307
327
  tokenPrinted: false;
308
328
  rawContentIncluded: false;
309
329
  }
330
+ export type GuardianPromptCardDisposition = 'allow' | 'warn' | 'rewrite' | 'confirm' | 'block' | 'unavailable' | 'live_sensitive_warning';
331
+ export interface GuardianPromptCardActionOption {
332
+ id: string;
333
+ label: string;
334
+ role: 'recommended' | 'allowed_override' | 'safe_escape' | 'none';
335
+ sendsPrompt: boolean;
336
+ sendsRevisedPrompt: boolean;
337
+ requiresConfirmation: boolean;
338
+ visibleToUser: boolean;
339
+ }
340
+ export interface GuardianPromptCardCatalogEntry {
341
+ disposition: GuardianPromptCardDisposition;
342
+ cardStyle: string;
343
+ whenShown: string;
344
+ actions: readonly GuardianPromptCardActionOption[];
345
+ sendAsIsAllowed: boolean;
346
+ hardBlock: boolean;
347
+ receiptExpected: boolean;
348
+ }
349
+ export interface GuardianPromptCardOptionsResult {
350
+ schema_version: 'contextecf/project-guardian-prompt-card-options/v1';
351
+ cli_version: string;
352
+ status: 'catalog_ready';
353
+ summary: string;
354
+ catalog: readonly GuardianPromptCardCatalogEntry[];
355
+ rules: readonly string[];
356
+ tokenPrinted: false;
357
+ rawContentIncluded: false;
358
+ }
310
359
  declare const PROMPT_COACH_MODES: readonly ["off", "quiet", "balanced", "hands_on"];
311
360
  export type GuardianPromptCoachMode = (typeof PROMPT_COACH_MODES)[number];
361
+ export declare const GUARDIAN_PROMPT_CARD_OPTIONS_CATALOG: readonly GuardianPromptCardCatalogEntry[];
312
362
  export declare const GUARDIAN_POSTURE_PROFILE_IDS: readonly ["calm", "balanced", "guided", "high_assurance", "autopilot_lite"];
313
363
  export type GuardianPostureProfileId = (typeof GUARDIAN_POSTURE_PROFILE_IDS)[number];
314
364
  export interface GuardianPostureProfileDefinition {
@@ -554,8 +604,8 @@ export interface GuardianProductionReadinessStatus {
554
604
  };
555
605
  aiToolIntegration: {
556
606
  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>';
607
+ browserSetupCommand: 'guardian connect';
608
+ nativeHostInstallCommand: string;
559
609
  };
560
610
  browserStoreHandoff: {
561
611
  status: 'operator_handoff_ready_not_submitted' | 'blocked_until_preview_ready';
@@ -571,7 +621,9 @@ export interface GuardianProductionReadinessStatus {
571
621
  workflow: typeof GUARDIAN_RELEASE_DISPATCH_WORKFLOW;
572
622
  dryRunCommand: string;
573
623
  publishCommand: string;
574
- requiredPublishCredentialName: 'NPM_TOKEN';
624
+ defaultPublishAuth: typeof GUARDIAN_DEFAULT_NPM_PUBLISH_AUTH;
625
+ requiredPublishCredentialName?: 'NPM_TOKEN';
626
+ tokenFallbackCredentialName: 'NPM_TOKEN';
575
627
  channels: readonly ['all', 'npm', 'browser', 'evidence'];
576
628
  defaultDockerSmoke: true;
577
629
  provenance: 'github_actions_oidc_supported';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextecf/guardian-cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.9",
4
4
  "description": "Project Guardian local-first Personal Context Fabric CLI",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",