@blinkhost/cli 2.4.0 → 2.5.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.
@@ -0,0 +1,7 @@
1
+ export declare function validateModuleBuild(value: unknown, expected: {
2
+ project: string;
3
+ review?: string;
4
+ module?: string;
5
+ revision?: string;
6
+ digest?: string;
7
+ }, action: string): void;
@@ -0,0 +1,37 @@
1
+ import { CliError, EXIT } from './errors.js';
2
+ const uuid = (value) => typeof value === 'string' && /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i.exec(value)?.[0] === value;
3
+ const hash = (value) => typeof value === 'string' && /^[a-f0-9]{64}$/.exec(value)?.[0] === value;
4
+ const date = (value) => typeof value === 'string' && Number.isFinite(Date.parse(value));
5
+ const states = ['requested', 'queued', 'provisioning', 'compiling', 'validating', 'signing',
6
+ 'succeeded', 'rejected', 'failed_user', 'failed_security', 'failed_platform', 'cancelled'];
7
+ export function validateModuleBuild(value, expected, action) {
8
+ const fail = () => { throw new CliError('The build response could not be verified. Inspect build-status for the existing review before any further approval; never retry automatically.', EXIT.remote, 'build_response_invalid'); };
9
+ if (!value || typeof value !== 'object' || Array.isArray(value))
10
+ return fail();
11
+ const item = value;
12
+ if (item.project_id !== expected.project || !hash(item.revision))
13
+ return fail();
14
+ if (action === 'build-modules') {
15
+ if (!Array.isArray(item.modules) || item.modules.length > 1000 || item.modules.some(module => !module
16
+ || !uuid(module.id) || typeof module.name !== 'string' || /^[a-z0-9](?:[a-z0-9-]{0,98}[a-z0-9])?$/.exec(module.name)?.[0] !== module.name
17
+ || typeof module.language !== 'string' || /^[a-z]{1,24}-wasi$/.exec(module.language)?.[0] !== module.language
18
+ || typeof module.build_available !== 'boolean')
19
+ || new Set(item.modules.map(module => module.id)).size !== item.modules.length)
20
+ return fail();
21
+ return;
22
+ }
23
+ const usage = item.usage;
24
+ if (!uuid(item.id) || !uuid(item.module_id) || !hash(item.source_digest) || !hash(item.action_digest)
25
+ || !date(item.expires_at) || (expected.review && item.id !== expected.review)
26
+ || (expected.module && item.module_id !== expected.module) || (expected.revision && item.revision !== expected.revision)
27
+ || (expected.digest && item.action_digest !== expected.digest) || !usage || usage.metric !== 'preview_builds'
28
+ || usage.quantity !== 1 || usage.ai_units !== 0 || usage.policy !== 'standard_build_allowance_and_configured_overages'
29
+ || (item.build_id !== null && !uuid(item.build_id)) || (item.artifact_id !== null && !uuid(item.artifact_id))
30
+ || (item.build_state !== null && !states.includes(String(item.build_state)))
31
+ || (item.build_id === null ? item.build_state !== null || item.artifact_id !== null : item.build_state === null)
32
+ || (item.applied_at === null ? item.verification !== 'not_applied' || item.build_id !== null
33
+ : !date(item.applied_at) || item.verification !== 'build_requested_not_published')
34
+ || (action === 'build-approve' && !item.applied_at))
35
+ return fail();
36
+ }
37
+ //# sourceMappingURL=module-build.js.map
@@ -0,0 +1,8 @@
1
+ export type PeerExpected = {
2
+ project: string;
3
+ task?: string;
4
+ peer?: string;
5
+ reviewer?: number;
6
+ digest?: string;
7
+ };
8
+ export declare function validatePeerResponse(value: unknown, expected: PeerExpected, action: string): void;
@@ -0,0 +1,55 @@
1
+ import { CliError, EXIT } from './errors.js';
2
+ const uuid = (v) => typeof v === 'string' && /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i.exec(v)?.[0] === v;
3
+ const date = (v) => typeof v === 'string' && Number.isFinite(Date.parse(v));
4
+ const object = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
5
+ const keys = (v, allowed) => Object.keys(v).every(k => allowed.includes(k));
6
+ export function validatePeerResponse(value, expected, action) {
7
+ const fail = () => { throw new CliError('The peer review response could not be verified. Refresh peer-options or peer-review before another action; never retry automatically.', EXIT.remote, 'peer_response_invalid'); };
8
+ if (!object(value))
9
+ return fail();
10
+ const peer = (v, source, bind) => {
11
+ if (!object(v) || !keys(v, ['id', 'project_id', 'reviewer_id', 'review_digest', 'expires_at', 'approved_at', 'declined_at', 'revoked_at', 'verification', ...(source ? ['diffs'] : [])])
12
+ || !uuid(v.id) || v.project_id !== expected.project || !Number.isSafeInteger(v.reviewer_id) || Number(v.reviewer_id) < 1
13
+ || typeof v.review_digest !== 'string' || /^[a-f0-9]{64}$/.exec(v.review_digest)?.[0] !== v.review_digest
14
+ || !date(v.expires_at) || [v.approved_at, v.declined_at, v.revoked_at].some(d => d !== null && !date(d))
15
+ || (v.approved_at && v.declined_at) || v.verification !== 'source_review_only'
16
+ || (bind && ((expected.peer && v.id !== expected.peer) || (expected.reviewer && v.reviewer_id !== expected.reviewer)
17
+ || (expected.digest && v.review_digest !== expected.digest))))
18
+ return fail();
19
+ if (source && (!Array.isArray(v.diffs) || !v.diffs.length || v.diffs.length > 20
20
+ || v.diffs.some(d => !object(d) || !keys(d, ['path', 'diff']) || typeof d.path !== 'string' || !d.path
21
+ || typeof d.diff !== 'string') || new Set(v.diffs.map(d => d.path)).size !== v.diffs.length))
22
+ return fail();
23
+ };
24
+ if (action === 'peer-withdraw') {
25
+ if (!keys(value, ['id', 'revoked_at']) || value.id !== expected.peer || !date(value.revoked_at))
26
+ return fail();
27
+ }
28
+ else if (action === 'peer-options') {
29
+ if (!keys(value, ['project_id', 'task_id', 'truncated', 'required', 'reviewers', 'active']) || value.project_id !== expected.project
30
+ || value.task_id !== expected.task || typeof value.truncated !== 'boolean' || typeof value.required !== 'boolean'
31
+ || !Array.isArray(value.reviewers) || value.reviewers.length > 100
32
+ || value.reviewers.some(r => !object(r) || !keys(r, ['id', 'name', 'role']) || !Number.isSafeInteger(r.id)
33
+ || Number(r.id) < 1 || typeof r.name !== 'string' || !['owner', 'admin'].includes(String(r.role)))
34
+ || new Set(value.reviewers.map(r => r.id)).size !== value.reviewers.length)
35
+ return fail();
36
+ if (value.active !== null)
37
+ peer(value.active, false, false);
38
+ }
39
+ else if (action === 'peer-inbox') {
40
+ if (!keys(value, ['project_id', 'truncated', 'reviews']) || value.project_id !== expected.project
41
+ || typeof value.truncated !== 'boolean' || !Array.isArray(value.reviews) || value.reviews.length > 100)
42
+ return fail();
43
+ for (const item of value.reviews)
44
+ peer(item, false, false);
45
+ if (new Set(value.reviews.map(r => r.id)).size !== value.reviews.length)
46
+ return fail();
47
+ }
48
+ else {
49
+ peer(value, action !== 'peer-invite', true);
50
+ if ((action === 'peer-approve' && (!value.approved_at || value.revoked_at))
51
+ || (action === 'peer-decline' && (!value.declined_at || value.revoked_at)))
52
+ return fail();
53
+ }
54
+ }
55
+ //# sourceMappingURL=peer-review.js.map
@@ -0,0 +1 @@
1
+ export declare function exportProject(input: string[], profile?: string): Promise<Record<string, unknown>>;
@@ -0,0 +1,79 @@
1
+ import { createHash, randomUUID } from 'node:crypto';
2
+ import { link, lstat, open, unlink } from 'node:fs/promises';
3
+ import { basename, dirname, join, parse, relative } from 'node:path';
4
+ import { ApiClient } from './api.js';
5
+ import { CliError, EXIT } from './errors.js';
6
+ import { resolveLocalPath } from './project.js';
7
+ async function checkDestination(destination) {
8
+ let cursor = parse(destination).root;
9
+ for (const segment of relative(cursor, dirname(destination)).split(/[\\/]/).filter(Boolean)) {
10
+ cursor = join(cursor, segment);
11
+ const info = await lstat(cursor);
12
+ if (!info.isDirectory() || info.isSymbolicLink())
13
+ throw new CliError('Export requires an existing directory without symbolic links.', EXIT.filesystem, 'unsafe_export_directory');
14
+ }
15
+ try {
16
+ await lstat(destination);
17
+ }
18
+ catch (error) {
19
+ if (error.code === 'ENOENT')
20
+ return;
21
+ throw error;
22
+ }
23
+ throw new CliError('The export destination already exists. Choose a new filename.', EXIT.filesystem, 'target_exists');
24
+ }
25
+ export async function exportProject(input, profile) {
26
+ const args = [...input];
27
+ const projectId = args.shift();
28
+ if (!projectId || !/^[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}$/i.test(projectId)) {
29
+ throw new CliError('Use projects export PROJECT_UUID --output ./project.zip.', EXIT.usage, 'invalid_project_id');
30
+ }
31
+ let output;
32
+ let sourceOnly = false;
33
+ while (args.length) {
34
+ const option = args.shift();
35
+ if (option === '--source-only' && !sourceOnly)
36
+ sourceOnly = true;
37
+ else if (option === '--output' && output === undefined && args[0] && !args[0].startsWith('--'))
38
+ output = args.shift();
39
+ else
40
+ throw new CliError('Use projects export PROJECT_UUID [--source-only] --output ./project.zip. Do not repeat options.', EXIT.usage, 'export_output_required');
41
+ }
42
+ if (!output) {
43
+ throw new CliError('Choose a new ZIP filename with --output. Existing files are never replaced.', EXIT.usage, 'export_output_required');
44
+ }
45
+ const destination = resolveLocalPath(output);
46
+ if (!basename(destination).toLowerCase().endsWith('.zip'))
47
+ throw new CliError('The export filename must end in .zip.', EXIT.usage, 'export_output_invalid');
48
+ await checkDestination(destination);
49
+ const client = await ApiClient.create(profile);
50
+ const mode = sourceOnly ? 'source' : 'portable';
51
+ const body = await client.projectArchive(projectId, mode);
52
+ await checkDestination(destination);
53
+ const temporary = join(dirname(destination), `.blinkhost-export-${randomUUID()}.tmp`);
54
+ const file = await open(temporary, 'wx', 0o600);
55
+ try {
56
+ await file.writeFile(body);
57
+ await file.sync();
58
+ await file.close();
59
+ // A hard link publishes only the complete archive and fails if the destination
60
+ // was created meanwhile. Never rename over an existing customer file.
61
+ await link(temporary, destination);
62
+ }
63
+ catch (error) {
64
+ if (error.code === 'EEXIST')
65
+ throw new CliError('The export destination already exists. Choose a new filename.', EXIT.filesystem, 'target_exists');
66
+ throw error;
67
+ }
68
+ finally {
69
+ await file.close().catch(() => undefined);
70
+ await unlink(temporary);
71
+ }
72
+ return { project_id: projectId, path: destination, size_bytes: body.length,
73
+ sha256: createHash('sha256').update(body).digest('hex'), format: 'zip', extracted: false,
74
+ includes_database_backup: false, includes_runtime_secrets: false,
75
+ export_mode: mode,
76
+ next_steps: [...(sourceOnly ? ['Source only: build configuration was not generated or validated.'] : []),
77
+ 'Review the archive before extracting or sharing it.', 'Configure resources and secrets separately in the destination environment.'] };
78
+ }
79
+ //# sourceMappingURL=project-export.js.map
@@ -0,0 +1 @@
1
+ export declare function validateResearchCatalog(raw: unknown, project: string): void;
@@ -0,0 +1,42 @@
1
+ import { CliError, EXIT } from './errors.js';
2
+ // This is a display/selection boundary, not a URL fetcher. The server verifies
3
+ // the content digest, review, expiry and allowlist again at admission and claim.
4
+ export function validateResearchCatalog(raw, project) {
5
+ const fail = () => { throw new CliError('The public source catalog could not be verified. No research was started.', EXIT.remote, 'research_catalog_invalid'); };
6
+ const text = (value, max, multiline = false) => typeof value === 'string'
7
+ && !!value.trim() && Buffer.byteLength(value) <= max
8
+ && !/[\p{Cc}\p{Cf}\p{Cs}]/u.test(multiline ? value.replace(/[\n\t]/g, '') : value);
9
+ const value = raw;
10
+ if (!value || value.project_id !== project.toLowerCase() || value.live_search !== false
11
+ || value.max_selection !== 4 || typeof value.truncated !== 'boolean'
12
+ || !Array.isArray(value.sources) || value.sources.length > 100)
13
+ fail();
14
+ const seen = new Set();
15
+ for (const source of value.sources) {
16
+ if (!source || typeof source !== 'object' || Array.isArray(source)
17
+ || Object.keys(source).sort().join(',') !== 'attribution,captured_at,excerpt,expires_at,id,publisher,schema,title,url'
18
+ || source.schema !== 'blinkhost.idam.public-source/v1' || typeof source.id !== 'string'
19
+ || !/^[a-f0-9]{64}$/.test(source.id) || seen.has(source.id)
20
+ || !text(source.title, 300) || !text(source.publisher, 200) || !text(source.attribution, 1000)
21
+ || !text(source.excerpt, 6000, true) || !text(source.url, 1500)
22
+ || !/^https:\/\/[a-z0-9.-]+\/[A-Za-z0-9_./~%\-]*$/.test(source.url))
23
+ fail();
24
+ let url;
25
+ try {
26
+ url = new URL(source.url);
27
+ }
28
+ catch {
29
+ return fail();
30
+ }
31
+ if (!/\.[a-z]{2,63}$/.test(url.hostname) || /\.(localhost|local|internal|test|invalid)$/.test(url.hostname)
32
+ || url.hostname.split('.').some(label => !label || label.length > 63 || label.startsWith('-') || label.endsWith('-'))
33
+ || /%(?![0-9a-f]{2})|%(0[0-9a-f]|1[0-9a-f]|7f|25|2f|5c)/i.test(url.pathname))
34
+ fail();
35
+ const captured = typeof source.captured_at === 'string' ? Date.parse(source.captured_at) : NaN;
36
+ const expires = typeof source.expires_at === 'string' ? Date.parse(source.expires_at) : NaN;
37
+ if (!Number.isFinite(captured) || !Number.isFinite(expires) || expires <= captured || expires - captured > 90 * 86400000)
38
+ fail();
39
+ seen.add(source.id);
40
+ }
41
+ }
42
+ //# sourceMappingURL=research.js.map
@@ -0,0 +1,11 @@
1
+ export declare const starterName: (value: unknown) => value is string;
2
+ export declare const starterLanguage: (value: unknown) => value is string;
3
+ export type StarterExpected = {
4
+ project: string;
5
+ review?: string;
6
+ name?: string;
7
+ language?: string;
8
+ revision?: string;
9
+ digest?: string;
10
+ };
11
+ export declare function validateStarter(value: unknown, expected: StarterExpected, action: string): void;
@@ -0,0 +1,45 @@
1
+ import { CliError, EXIT } from './errors.js';
2
+ const matches = (pattern, value) => typeof value === 'string' && pattern.exec(value)?.[0] === value;
3
+ const hash = (value) => matches(/^[a-f0-9]{64}$/, value);
4
+ const uuid = (value) => matches(/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i, value);
5
+ const date = (value) => typeof value === 'string' && Number.isFinite(Date.parse(value));
6
+ export const starterName = (value) => matches(/^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$/, value);
7
+ export const starterLanguage = (value) => matches(/^[a-z]{1,24}-wasi$/, value);
8
+ export function validateStarter(value, expected, action) {
9
+ const fail = () => { throw new CliError('The starter response could not be verified. Use starter-status with the existing review ID before any further approval. Do not retry a save automatically.', EXIT.remote, 'starter_response_invalid'); };
10
+ if (!value || typeof value !== 'object' || Array.isArray(value))
11
+ return fail();
12
+ const item = value;
13
+ if (item.project_id !== expected.project || !hash(item.revision))
14
+ return fail();
15
+ if (action === 'starters') {
16
+ if (item.verification !== 'starter_only' || !Array.isArray(item.languages) || item.languages.length > 20
17
+ || item.languages.some((entry) => !entry || !starterLanguage(entry.id)
18
+ || typeof entry.label !== 'string' || !entry.label || entry.label.length > 80
19
+ || /[\x00-\x1f\x7f-\x9f]/.test(entry.label) || !['ga', 'beta'].includes(entry.status))
20
+ || new Set(item.languages.map((entry) => entry.id)).size !== item.languages.length)
21
+ return fail();
22
+ return;
23
+ }
24
+ if (!uuid(item.id) || !starterName(item.name) || !starterLanguage(item.language)
25
+ || !hash(item.action_digest) || !date(item.expires_at) || typeof item.template_current !== 'boolean'
26
+ || (expected.review !== undefined && item.id !== expected.review)
27
+ || (expected.name !== undefined && item.name !== expected.name)
28
+ || (expected.language !== undefined && item.language !== expected.language)
29
+ || (expected.revision !== undefined && item.revision !== expected.revision)
30
+ || (expected.digest !== undefined && item.action_digest !== expected.digest)
31
+ || !Array.isArray(item.files) || item.files.length > 20
32
+ || (item.template_current ? item.files.length === 0 : item.files.length !== 0)
33
+ || item.files.some((file) => !file || typeof file.path !== 'string'
34
+ || !file.path.startsWith(`_server_islands/${item.name}/`) || file.path.length > 512
35
+ || file.path.split('/').some((part) => !part || part === '.' || part === '..')
36
+ || /[\\:\x00-\x1f\x7f-\x9f]/.test(file.path) || typeof file.content !== 'string'
37
+ || Buffer.byteLength(file.content, 'utf8') > 65536 || typeof file.managed !== 'boolean')
38
+ || new Set(item.files.map((file) => file.path.toLowerCase())).size !== item.files.length
39
+ || (item.module_id !== null && !uuid(item.module_id))
40
+ || (item.applied_at === null ? item.verification !== 'not_applied' || item.module_id !== null || item.applied_revision !== ''
41
+ : !date(item.applied_at) || item.verification !== 'source_saved_not_built' || !hash(item.applied_revision))
42
+ || (action === 'starter-approve' && !item.applied_at))
43
+ return fail();
44
+ }
45
+ //# sourceMappingURL=starter.js.map
@@ -0,0 +1,2 @@
1
+ export declare function terminalText(value: string): string;
2
+ export declare function terminalJson(serialized: string): string;
@@ -0,0 +1,12 @@
1
+ // Presentation only. Never feed annotated text back into source or approvals.
2
+ export function terminalText(value) {
3
+ return value.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu, char => char === '\n' || char === '\t' ? char
4
+ : `[U+${char.codePointAt(0).toString(16).toUpperCase().padStart(4, '0')}]`);
5
+ }
6
+ // Escape already serialized JSON, including object keys. JSON.parse preserves
7
+ // the exact original values; supplementary controls require two UTF-16 escapes.
8
+ // JSON.stringify already escapes C0 controls within strings.
9
+ export function terminalJson(serialized) {
10
+ return serialized.replace(/[\p{Cf}\p{Zl}\p{Zp}\u007f-\u009f]/gu, char => char.split('').map(unit => `\\u${unit.charCodeAt(0).toString(16).padStart(4, '0')}`).join(''));
11
+ }
12
+ //# sourceMappingURL=terminal.js.map
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.4.0";
1
+ export declare const VERSION = "2.5.1";
2
2
  export declare const DOCUMENTATION_URL = "https://app.blinkhost.me/docs/source-control/cli";
3
3
  export declare const RELEASES_URL = "https://github.com/blinkhost-ltd/blinkhost-cli/releases";
4
4
  export declare function supportedNodeVersion(version?: string): boolean;
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = '2.4.0';
1
+ export const VERSION = '2.5.1';
2
2
  export const DOCUMENTATION_URL = 'https://app.blinkhost.me/docs/source-control/cli';
3
3
  export const RELEASES_URL = 'https://github.com/blinkhost-ltd/blinkhost-cli/releases';
4
4
  export function supportedNodeVersion(version = process.versions.node) {
@@ -0,0 +1,12 @@
1
+ /** Read-only type loading; cold PowerShell startup may exceed five seconds. */
2
+ export declare function windowsVaultProbe(): {
3
+ command: string;
4
+ args: string[];
5
+ timeoutMs: number;
6
+ };
7
+ /** Fixed PowerShell program; credentials travel only through the input pipe. */
8
+ export declare function windowsVaultCommand(action: 'get' | 'set' | 'delete', profile: string, token?: string): {
9
+ command: string;
10
+ args: string[];
11
+ input?: string;
12
+ };
@@ -0,0 +1,42 @@
1
+ import { CliError, EXIT } from './errors.js';
2
+ /** Read-only type loading; cold PowerShell startup may exceed five seconds. */
3
+ export function windowsVaultProbe() {
4
+ return {
5
+ command: 'powershell.exe',
6
+ args: ['-NoProfile', '-NonInteractive', '-Command',
7
+ "$ErrorActionPreference='Stop';try{[void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime]}catch{exit 3}"],
8
+ timeoutMs: 15_000,
9
+ };
10
+ }
11
+ /** Fixed PowerShell program; credentials travel only through the input pipe. */
12
+ export function windowsVaultCommand(action, profile, token) {
13
+ if (!profile || profile.length > 128 || !/^[\x20-\x7e]+$/.test(profile)) {
14
+ throw new CliError('The credential profile is invalid.', EXIT.auth, 'invalid_profile');
15
+ }
16
+ if (action === 'set' && (typeof token !== 'string' || !/^bhr_[A-Za-z0-9_-]{32,256}$/.test(token))) {
17
+ throw new CliError('The server returned an invalid refresh credential.', EXIT.auth, 'invalid_refresh_credential');
18
+ }
19
+ const user = profile.replace(/'/g, "''");
20
+ const prefix = `$ErrorActionPreference='Stop';try{$r='blinkhost-cli';$u='${user}';[void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime];$p=New-Object Windows.Security.Credentials.PasswordVault}catch{exit 3};`;
21
+ const missing = 'catch{if($_.Exception.GetBaseException().HResult -eq -2147023728){exit 2}else{exit 3}}';
22
+ let operation;
23
+ if (action === 'get') {
24
+ operation = `try{$c=$p.Retrieve($r,$u);$c.RetrievePassword();[Console]::Out.Write($c.Password)}${missing}`;
25
+ }
26
+ else if (action === 'delete') {
27
+ operation = `try{$c=$p.Retrieve($r,$u);$p.Remove($c)}${missing}`;
28
+ }
29
+ else if (action === 'set') {
30
+ // Do not delete the prior credential before Add. A failed write must not
31
+ // become an application-created missing-item window. No fallback/retry.
32
+ // Validate again after pipe transport; PowerShell must fail nonzero even
33
+ // for non-terminating errors. Never print exceptions or credential values.
34
+ operation = "try{$s=[Console]::In.ReadToEnd();if($s -cnotmatch '\\Abhr_[A-Za-z0-9_-]{32,256}\\z'){exit 3};$p.Add((New-Object Windows.Security.Credentials.PasswordCredential($r,$u,$s)))}catch{exit 3}";
35
+ }
36
+ else {
37
+ throw new CliError('Invalid credential-service operation.', EXIT.internal, 'credential_store_configuration_invalid');
38
+ }
39
+ return { command: 'powershell.exe', args: ['-NoProfile', '-NonInteractive', '-Command', prefix + operation],
40
+ ...(action === 'set' ? { input: token } : {}) };
41
+ }
42
+ //# sourceMappingURL=windows-vault-command.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkhost/cli",
3
- "version": "2.4.0",
3
+ "version": "2.5.1",
4
4
  "description": "Secure local and remote developer workflows for BlinkHost",
5
5
  "keywords": ["blinkhost", "deployment", "hosting", "cloud", "cli", "developer-tools"],
6
6
  "homepage": "https://app.blinkhost.me/docs/source-control/cli",