@contextecf/guardian-cli 0.1.2 → 0.1.4

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,13 +1,16 @@
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.2";
4
+ export declare const GUARDIAN_CLI_VERSION = "0.1.4";
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
+ export declare const GUARDIAN_NPM_REGISTRY = "https://registry.npmjs.org/";
7
8
  export declare const GUARDIAN_GLOBAL_INSTALL_COMMAND = "npm install -g @contextecf/guardian-cli";
8
9
  export declare const GUARDIAN_NPX_SETUP_COMMAND = "npx @contextecf/guardian-cli@latest setup";
9
10
  export declare const GUARDIAN_FIRST_RUN_COMMAND = "guardian setup";
10
- export declare const GUARDIAN_OPEN_CONTROL_TOWER_COMMAND = "guardian launch";
11
+ export declare const GUARDIAN_OPEN_CONTROL_TOWER_COMMAND = "guardian open";
12
+ export declare const GUARDIAN_RELEASE_DISPATCH_WORKFLOW = "guardian-release-dispatch.yml";
13
+ export declare const GUARDIAN_RELEASE_REPOSITORY = "Intelligent-Context-AI-Inc/ContextECF-GITHUB";
11
14
  export declare const GUARDIAN_CONTROL_TOWER_URL_ENV = "GUARDIAN_CONTROL_TOWER_URL";
12
15
  export declare const GUARDIAN_DEFAULT_CONTROL_TOWER_URL = "http://127.0.0.1:4317/control-tower";
13
16
  export declare const GUARDIAN_LOCAL_DATA_ENCRYPTION_KEY_ENV = "GUARDIAN_LOCAL_DATA_ENCRYPTION_KEY";
@@ -67,6 +70,7 @@ export interface GuardianDaemonHealthResult {
67
70
  statusCode?: number;
68
71
  service?: string;
69
72
  rawContentPersistence?: boolean;
73
+ version?: string;
70
74
  error?: string;
71
75
  }
72
76
  export interface GuardianDesktopActionExecutionRequest {
@@ -136,6 +140,173 @@ export interface GuardianReleaseEvidenceStatus {
136
140
  productionGateEvidence?: GuardianProductionGateEvidenceStatus;
137
141
  error?: string;
138
142
  }
143
+ export interface GuardianReleaseDispatchCommandResult {
144
+ schema_version: 'contextecf/project-guardian-release-dispatch-command/v1';
145
+ cli_version: string;
146
+ workflow: typeof GUARDIAN_RELEASE_DISPATCH_WORKFLOW;
147
+ releaseVersion: string;
148
+ channels: string;
149
+ dryRun: boolean;
150
+ runDockerSmoke: boolean;
151
+ command: string;
152
+ requiredPublishCredentialName?: 'NPM_TOKEN';
153
+ provenance: 'github_actions_oidc_supported';
154
+ boundaries: string[];
155
+ tokenPrinted: false;
156
+ rawContentIncluded: false;
157
+ }
158
+ export interface GuardianReleaseHelpResult {
159
+ schema_version: 'contextecf/project-guardian-release-help/v1';
160
+ cli_version: string;
161
+ repository: typeof GUARDIAN_RELEASE_REPOSITORY;
162
+ status: 'release_owner_quickstart';
163
+ commands: {
164
+ checklist: string;
165
+ flow: string;
166
+ secrets: string;
167
+ dryRunDispatch: string;
168
+ publishDispatch: string;
169
+ verifyPublishedVersion: string;
170
+ pasteLocalSmoke: string;
171
+ browserStoreHandoff: string;
172
+ readiness: string;
173
+ };
174
+ suggestedOrder: string[];
175
+ boundaries: string[];
176
+ tokenPrinted: false;
177
+ rawContentIncluded: false;
178
+ }
179
+ export interface GuardianBrowserStoreHandoffCommandResult {
180
+ schema_version: 'contextecf/project-guardian-browser-store-handoff-command/v1';
181
+ cli_version: string;
182
+ status: 'chrome_distribution_proven_next_submission_pack_ready';
183
+ primaryStore: 'chrome_web_store';
184
+ productionGate: {
185
+ id: 'browser-store-distribution';
186
+ status: 'proven';
187
+ nextSubmissionRequiresFreshOfficialReviewEvidence: true;
188
+ };
189
+ commands: {
190
+ submissionPack: string;
191
+ preSubmissionSmoke: string;
192
+ preSubmissionReadiness: string;
193
+ reviewPreflightAfterApproval: string;
194
+ collectorAfterApproval: string;
195
+ finalGateValidation: string;
196
+ };
197
+ evidence: {
198
+ submissionPackDir: string;
199
+ closeoutChecklistPath: string;
200
+ preSubmissionChecklistPath: string;
201
+ readinessOutput: string;
202
+ reviewPreflightOutput: string;
203
+ productionGatePacket: string;
204
+ };
205
+ boundaries: string[];
206
+ tokenPrinted: false;
207
+ rawContentIncluded: false;
208
+ }
209
+ export interface GuardianReleaseSecretSetupResult {
210
+ schema_version: 'contextecf/project-guardian-release-secret-setup/v1';
211
+ cli_version: string;
212
+ repository: typeof GUARDIAN_RELEASE_REPOSITORY;
213
+ requiredForPublish: 'NPM_TOKEN';
214
+ githubActionsSecretUrl: string;
215
+ commands: {
216
+ setNpmToken: string;
217
+ verifyNpmTokenPresence: string;
218
+ dryRunDispatch: string;
219
+ publishDispatch: string;
220
+ };
221
+ boundaries: string[];
222
+ tokenPrinted: false;
223
+ rawContentIncluded: false;
224
+ }
225
+ export interface GuardianReleaseChecklistResult {
226
+ schema_version: 'contextecf/project-guardian-release-checklist/v1';
227
+ cli_version: string;
228
+ releaseVersion: string;
229
+ repository: typeof GUARDIAN_RELEASE_REPOSITORY;
230
+ status: 'preview_release_operator_ready_full_production_blocked';
231
+ operatorCommands: {
232
+ secretSetup: string;
233
+ dryRunDispatch: string;
234
+ publishDispatch: string;
235
+ browserStoreHandoff: string;
236
+ readiness: string;
237
+ };
238
+ requiredRepositoryCredentialName: 'NPM_TOKEN';
239
+ evidenceOutputs: string[];
240
+ notProvenProductionGates: Array<{
241
+ id: string;
242
+ label: string;
243
+ owner?: string;
244
+ releaseBoundary?: string;
245
+ }>;
246
+ boundaries: string[];
247
+ tokenPrinted: false;
248
+ rawContentIncluded: false;
249
+ }
250
+ export interface GuardianReleaseVerifyResult {
251
+ schema_version: 'contextecf/project-guardian-release-verify/v1';
252
+ cli_version: string;
253
+ releaseVersion: string;
254
+ repository: typeof GUARDIAN_RELEASE_REPOSITORY;
255
+ packageName: typeof GUARDIAN_NPM_PACKAGE_NAME;
256
+ registry: typeof GUARDIAN_NPM_REGISTRY;
257
+ status: 'post_release_verification_required';
258
+ commands: {
259
+ registryVersion: string;
260
+ publicInstall: string;
261
+ installedVersion: string;
262
+ setup: string;
263
+ launch: string;
264
+ status: string;
265
+ openControlTower: string;
266
+ copyPasteLocalSmoke: string;
267
+ publishStatusVerification: string;
268
+ finishLineStatus: string;
269
+ };
270
+ evidenceOutputs: string[];
271
+ boundaries: string[];
272
+ tokenPrinted: false;
273
+ rawContentIncluded: false;
274
+ }
275
+ export interface GuardianReleaseFlowResult {
276
+ schema_version: 'contextecf/project-guardian-release-flow/v1';
277
+ cli_version: string;
278
+ releaseVersion: string;
279
+ repository: typeof GUARDIAN_RELEASE_REPOSITORY;
280
+ status: 'release_owner_flow_ready_full_production_blocked';
281
+ steps: Array<{
282
+ id: string;
283
+ label: string;
284
+ command: string;
285
+ credentialRequired: boolean;
286
+ }>;
287
+ copyPasteLocalSmoke: string;
288
+ evidenceOutputs: string[];
289
+ notProvenProductionGates: Array<{
290
+ id: string;
291
+ label: string;
292
+ releaseBoundary?: string;
293
+ }>;
294
+ boundaries: string[];
295
+ tokenPrinted: false;
296
+ rawContentIncluded: false;
297
+ }
298
+ export interface GuardianReleasePasteResult {
299
+ schema_version: 'contextecf/project-guardian-release-paste/v1';
300
+ cli_version: string;
301
+ releaseVersion: string;
302
+ packageName: typeof GUARDIAN_NPM_PACKAGE_NAME;
303
+ registry: typeof GUARDIAN_NPM_REGISTRY;
304
+ command: string;
305
+ commands: string[];
306
+ boundaries: string[];
307
+ tokenPrinted: false;
308
+ rawContentIncluded: false;
309
+ }
139
310
  declare const PROMPT_COACH_MODES: readonly ["off", "quiet", "balanced", "hands_on"];
140
311
  export type GuardianPromptCoachMode = (typeof PROMPT_COACH_MODES)[number];
141
312
  export declare const GUARDIAN_POSTURE_PROFILE_IDS: readonly ["calm", "balanced", "guided", "high_assurance", "autopilot_lite"];
@@ -369,6 +540,46 @@ export interface GuardianProductionReadinessStatus {
369
540
  productionGateEvidenceStatus: GuardianProductionGateEvidenceStatus['status'] | 'not_recorded';
370
541
  productionGateEvidencePath?: string;
371
542
  };
543
+ distribution: {
544
+ status: 'preview_install_ready' | 'setup_or_release_evidence_required';
545
+ oneLineInstallCommand: typeof GUARDIAN_GLOBAL_INSTALL_COMMAND;
546
+ oneLineTryCommand: typeof GUARDIAN_NPX_SETUP_COMMAND;
547
+ openControlTowerCommand: typeof GUARDIAN_OPEN_CONTROL_TOWER_COMMAND;
548
+ localUserCommands: {
549
+ setup: typeof GUARDIAN_FIRST_RUN_COMMAND;
550
+ launch: 'guardian launch';
551
+ open: 'guardian open';
552
+ status: 'guardian status';
553
+ readiness: 'guardian readiness';
554
+ };
555
+ aiToolIntegration: {
556
+ 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>';
559
+ };
560
+ browserStoreHandoff: {
561
+ status: 'operator_handoff_ready_not_submitted' | 'blocked_until_preview_ready';
562
+ submissionPackCommand: 'npm run guardian:browser-store:submission-pack';
563
+ closeoutChecklistPath: 'release/evidence/guardian-browser-store-submission-pack/browser-store-closeout-checklist.json';
564
+ productionGateStatus: 'not_proven';
565
+ };
566
+ enterpriseDeployment: {
567
+ status: 'managed_rollout_ready_for_customer_pack';
568
+ note: string;
569
+ };
570
+ releaseAutomation: {
571
+ workflow: typeof GUARDIAN_RELEASE_DISPATCH_WORKFLOW;
572
+ dryRunCommand: string;
573
+ publishCommand: string;
574
+ requiredPublishCredentialName: 'NPM_TOKEN';
575
+ channels: readonly ['all', 'npm', 'browser', 'evidence'];
576
+ defaultDockerSmoke: true;
577
+ provenance: 'github_actions_oidc_supported';
578
+ status: 'ready_for_dispatch_after_preview_evidence' | 'blocked_until_preview_release_evidence_passes';
579
+ boundaries: string[];
580
+ };
581
+ boundaries: string[];
582
+ };
372
583
  tokenPrinted: false;
373
584
  rawContentIncluded: false;
374
585
  }
@@ -520,4 +731,5 @@ export declare function executeGuardianDesktopActionPlan(home: string, profile:
520
731
  }>;
521
732
  export declare function buildGuardianReleaseEvidenceStatus(home: string): Promise<GuardianReleaseEvidenceStatus>;
522
733
  export declare function buildGuardianDoctorStatus(home: string, profile: GuardianProfile | undefined, env?: NodeJS.ProcessEnv | undefined): Promise<GuardianDoctorStatus>;
734
+ export declare function isGuardianSupportedNodeVersion(nodeVersion: string): boolean;
523
735
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextecf/guardian-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Project Guardian local-first Personal Context Fabric CLI",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -53,7 +53,7 @@
53
53
  "@contextecf/personal-fabric-contracts": "*",
54
54
  "@contextecf/personal-fabric-runtime": "*",
55
55
  "@contextecf/personal-fabric-store": "*",
56
- "esbuild": "^0.25.0",
56
+ "esbuild": "^0.28.1",
57
57
  "vitest": "^4.1.8"
58
58
  }
59
59
  }