@crewx/sdk 0.9.0-rc.160 → 0.9.0-rc.161
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/dist/app/app.d.ts +10 -1
- package/dist/app/index.d.ts +2 -0
- package/dist/app/index.js +10 -10
- package/dist/app/schedule-contract.d.ts +59 -0
- package/dist/esm/app/index.js +10 -10
- package/dist/esm/index.js +295 -295
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/skills/index.js +2 -2
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +8 -2
- package/dist/index.js +223 -223
- package/dist/mcp-app/app-icon-read.d.ts +7 -0
- package/dist/mcp-app/app-schedule.d.ts +85 -0
- package/dist/mcp-app/dev-checks.d.ts +2 -0
- package/dist/mcp-app/discovery.d.ts +3 -0
- package/dist/mcp-app/index.d.ts +5 -1
- package/dist/mcp-app/skill-backend.d.ts +5 -2
- package/dist/mcp-app/workspace-snapshot.d.ts +3 -0
- package/dist/publish/errors.d.ts +1 -1
- package/dist/publish/index.d.ts +5 -0
- package/dist/publish/index.js +2 -2
- package/dist/skills/index.js +2 -2
- package/dist/ui-instance/types.d.ts +8 -0
- package/dist/ui-plugin/app-icon.d.ts +50 -0
- package/dist/ui-plugin/index.d.ts +2 -0
- package/dist/ui-plugin/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AppIconContentType, AppIconFile } from '../ui-plugin/app-icon.js';
|
|
2
|
+
export interface WorkspaceAppIconBytes {
|
|
3
|
+
readonly bytes: Uint8Array;
|
|
4
|
+
readonly contentType: AppIconContentType;
|
|
5
|
+
readonly sha256: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function readWorkspaceAppIconFile(workspaceRoot: string, appRelativePath: string, iconFile: AppIconFile): Promise<WorkspaceAppIconBytes | undefined>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type SkillBackendExecutionRequest, type SkillBackendPayloadV1 } from './skill-backend.js';
|
|
2
|
+
import { type AppScheduleIntervalMinutes, type AppSchedulePeriodicReason, type AppScheduleRunVerdict, type AppScheduleSnapshot } from '../app/schedule-contract.js';
|
|
3
|
+
import type { UiDefinitionInput } from '../ui-instance/types.js';
|
|
4
|
+
import type { WorkspaceAppSource } from './discovery.js';
|
|
5
|
+
export { decideScheduleDirective } from '../app/schedule-contract.js';
|
|
6
|
+
export type { AppScheduleActorKind, ScheduleDirectiveDecision } from '../app/schedule-contract.js';
|
|
7
|
+
export type AppScheduleOwnerSource = WorkspaceAppSource | 'bundled';
|
|
8
|
+
export interface AppScheduleOwner {
|
|
9
|
+
readonly appId: string;
|
|
10
|
+
readonly actionId: string;
|
|
11
|
+
readonly source: AppScheduleOwnerSource;
|
|
12
|
+
}
|
|
13
|
+
export interface AppScheduleBinding extends AppScheduleOwner {
|
|
14
|
+
readonly enabled: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ResolvedAppSchedule {
|
|
17
|
+
readonly actionId: string;
|
|
18
|
+
readonly everyMinutes: AppScheduleIntervalMinutes;
|
|
19
|
+
readonly timeoutMs: number;
|
|
20
|
+
}
|
|
21
|
+
export interface AppScheduleTemplate {
|
|
22
|
+
readonly cron: string;
|
|
23
|
+
readonly timeout_ms: number;
|
|
24
|
+
readonly name: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface AppScheduleRowView extends AppScheduleTemplate {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly app: AppScheduleBinding;
|
|
29
|
+
readonly last_started_at?: string;
|
|
30
|
+
readonly last_run?: string;
|
|
31
|
+
readonly last_outcome?: string;
|
|
32
|
+
readonly last_error_code?: string;
|
|
33
|
+
readonly next_run?: string | null;
|
|
34
|
+
}
|
|
35
|
+
export type AppScheduleAvailability = {
|
|
36
|
+
readonly periodic: 'available';
|
|
37
|
+
} | {
|
|
38
|
+
readonly periodic: 'unavailable';
|
|
39
|
+
readonly reason: AppSchedulePeriodicReason;
|
|
40
|
+
};
|
|
41
|
+
export type ScheduleLifecycleEntry = {
|
|
42
|
+
readonly kind: 'absent';
|
|
43
|
+
} | {
|
|
44
|
+
readonly kind: 'invalid';
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: 'verified';
|
|
47
|
+
readonly source: AppScheduleOwnerSource;
|
|
48
|
+
readonly declaration: ResolvedAppSchedule | undefined;
|
|
49
|
+
readonly name: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type AppScheduledRunPayload = SkillBackendPayloadV1 & {
|
|
52
|
+
readonly schedule: AppScheduleSnapshot;
|
|
53
|
+
};
|
|
54
|
+
export interface AppScheduledRunPlan {
|
|
55
|
+
readonly actorKind: 'schedule';
|
|
56
|
+
readonly instanceId: string;
|
|
57
|
+
readonly threadId: null;
|
|
58
|
+
readonly actionId: string;
|
|
59
|
+
readonly payload: AppScheduledRunPayload;
|
|
60
|
+
}
|
|
61
|
+
export type ScheduledAppLaunchRequest = AppScheduledRunPlan & Pick<SkillBackendExecutionRequest, 'appId' | 'definitionId' | 'definitionVersion' | 'definitionHash' | 'command' | 'entry' | 'relativePath'>;
|
|
62
|
+
export type ScheduleLifecyclePlan = {
|
|
63
|
+
readonly kind: 'run';
|
|
64
|
+
readonly run: AppScheduledRunPlan;
|
|
65
|
+
} | {
|
|
66
|
+
readonly kind: 'refresh';
|
|
67
|
+
readonly owner: AppScheduleOwner;
|
|
68
|
+
readonly template: AppScheduleTemplate;
|
|
69
|
+
} | {
|
|
70
|
+
readonly kind: 'skip';
|
|
71
|
+
readonly code: 'APP_INVALID' | 'APP_SCHEDULE_OFF';
|
|
72
|
+
} | {
|
|
73
|
+
readonly kind: 'disable';
|
|
74
|
+
readonly code: 'APP_SCHEDULE_UNDECLARED' | 'APP_SCHEDULE_SOURCE_CHANGED';
|
|
75
|
+
} | {
|
|
76
|
+
readonly kind: 'remove';
|
|
77
|
+
readonly code: 'APP_MISSING';
|
|
78
|
+
};
|
|
79
|
+
export declare function cronExpressionForInterval(everyMinutes: AppScheduleIntervalMinutes): string;
|
|
80
|
+
export declare function appScheduleCommandLabel(owner: Pick<AppScheduleOwner, 'appId' | 'actionId'>): string;
|
|
81
|
+
export declare function resolveDeclaredSchedule(definition: Pick<UiDefinitionInput, 'actions'>): ResolvedAppSchedule | undefined;
|
|
82
|
+
export declare function scheduleTemplateFor(declaration: ResolvedAppSchedule, name: string | null): AppScheduleTemplate;
|
|
83
|
+
export declare function toScheduleSnapshot(row: Pick<AppScheduleRowView, 'app' | 'last_started_at' | 'last_run' | 'last_outcome' | 'last_error_code' | 'next_run'> | undefined, declared: Pick<ResolvedAppSchedule, 'everyMinutes'>, availability: AppScheduleAvailability): AppScheduleSnapshot;
|
|
84
|
+
export declare function toScheduledRunVerdict(response: unknown): AppScheduleRunVerdict;
|
|
85
|
+
export declare function planScheduledFire(row: AppScheduleRowView, entry: ScheduleLifecycleEntry, availability: AppScheduleAvailability): ScheduleLifecyclePlan;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AppIconDiagnostic } from '../ui-plugin/app-icon.js';
|
|
1
2
|
export type AppDevCheckItem = {
|
|
2
3
|
readonly rule: 'manifest' | 'external_resource' | 'output_unsafe_string' | 'output_invalid' | 'output_size' | 'call_duration';
|
|
3
4
|
readonly severity: 'error' | 'warning' | 'ok';
|
|
@@ -27,3 +28,4 @@ export interface ScanExternalResourcesOptions {
|
|
|
27
28
|
export declare function inspectSkillBackendOutput(stdoutText: string, options: InspectSkillBackendOutputOptions): AppDevCheckItem[];
|
|
28
29
|
export declare function scanExternalResources(html: string, options: ScanExternalResourcesOptions): ExternalResourceFinding[];
|
|
29
30
|
export declare function externalResourceCheckItems(entryRelativePath: string, findings: readonly ExternalResourceFinding[]): AppDevCheckItem[];
|
|
31
|
+
export declare function appIconCheckItems(diagnostics: readonly AppIconDiagnostic[]): AppDevCheckItem[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { UiDefinitionLineageEntry } from '../ui-instance/lineage.js';
|
|
2
2
|
import type { JsonObject, JsonValue, UiDefinition } from '../ui-instance/types.js';
|
|
3
3
|
import type { AppManifestFileName, AppManifestReason } from '../ui-plugin/index.js';
|
|
4
|
+
import type { AppIconDiagnostic, AppIconFile } from '../ui-plugin/app-icon.js';
|
|
4
5
|
import type { UiPluginHandlerMetadata, UiPluginManifestV2, UiPluginNormalizedManifestV2 } from '../ui-plugin/types.js';
|
|
5
6
|
import { createWorkspaceAppScanCache, type WorkspaceAppScanCache, type WorkspaceAppScanRootIdentity } from './workspace-app-scan-cache.js';
|
|
6
7
|
import { AppDiscoveryFsError, NodeAppDiscoveryFs, NodeAppDiscoveryFsAdapter, defaultAppDiscoveryFs, defaultNodeAppDiscoveryFs, type AppDiscoveryFsErrorCode } from './node-app-discovery-fs.js';
|
|
@@ -118,6 +119,8 @@ interface WorkspaceAppCandidateBase {
|
|
|
118
119
|
readonly description: string;
|
|
119
120
|
readonly icon?: string;
|
|
120
121
|
readonly tone?: UiPluginManifestV2['tone'];
|
|
122
|
+
readonly iconFile?: AppIconFile;
|
|
123
|
+
readonly iconDiagnostics?: readonly AppIconDiagnostic[];
|
|
121
124
|
readonly definition: UiDefinition;
|
|
122
125
|
readonly handlers: Readonly<Record<string, UiPluginHandlerMetadata>>;
|
|
123
126
|
readonly resources: WorkspaceAppResourceSnapshot;
|
package/dist/mcp-app/index.d.ts
CHANGED
|
@@ -29,9 +29,13 @@ export { buildStateSetHandler, createStateSetHandler, } from './state-set.js';
|
|
|
29
29
|
export type { StateSetHandlerBuildInput } from './state-set.js';
|
|
30
30
|
export { SKILL_BACKEND_DEFAULT_TIMEOUT_MS, SKILL_BACKEND_INHERITED_ENV_ALLOWLIST, SKILL_BACKEND_CONTENT_SCHEMA_VERSION, SKILL_BACKEND_MAX_INPUT_BYTES, SKILL_BACKEND_MAX_OUTPUT_BYTES, SKILL_BACKEND_SCHEMA_VERSION, buildSkillBackendChildEnvironment, buildSkillBackendHandler, buildVerifiedBundleSkillBackendHandler, } from './skill-backend.js';
|
|
31
31
|
export type { SkillBackendChildEnvironment, SkillBackendExecutionPort, SkillBackendExecutionRequest, SkillBackendExecutionResponse, SkillBackendHandlerBuildInput, SkillBackendInfrastructureErrorCode, SkillBackendPayload, VerifiedBundleSkillBackendBuildInput, VerifiedBundleSkillRunnerPort, VerifiedBundleSkillSpawnRequest, SkillBackendPayloadV1, SkillBackendPayloadV2, SkillBackendContentInputHeader, SkillBackendContentOutputHeader, } from './skill-backend.js';
|
|
32
|
-
export { externalResourceCheckItems, inspectSkillBackendOutput, scanExternalResources, } from './dev-checks.js';
|
|
32
|
+
export { externalResourceCheckItems, appIconCheckItems, inspectSkillBackendOutput, scanExternalResources, } from './dev-checks.js';
|
|
33
|
+
export { readWorkspaceAppIconFile } from './app-icon-read.js';
|
|
34
|
+
export type { WorkspaceAppIconBytes } from './app-icon-read.js';
|
|
33
35
|
export type { AppDevCheckItem, ExternalResourceFinding, ExternalResourceKind, InspectSkillBackendOutputOptions, ScanExternalResourcesOptions, } from './dev-checks.js';
|
|
34
36
|
export { MCP_APP_HOST_TOOL_ALLOWLIST, MCP_CORE_TOOL_NAMES, MCP_APP_LOCAL_RESOURCE_MIME_TYPE, MCP_APP_RESOURCE_MIME_TYPE, MCP_APP_RESOURCE_URI_PREFIX, } from './types.js';
|
|
35
37
|
export type { McpAppActionDispatcherToolInput, McpAppActionToolDescriptor, McpAppActionToolInput, McpAppButtonDescriptor, McpAppButtonInput, McpAppDescriptor, McpAppDescriptorInput, McpAppInputSchema, McpAppTone, McpUiResourceCsp, McpAppRegistry, McpAppResource, McpAppServerStateInput, McpAppStateDescriptor, McpAppStateProjections, McpAppHostToolInput, McpAppLayoutSnapshot, McpAppPromptResult, McpAppPromptStatus, McpAppWindowState, McpAppStateView, McpAppHostToolName, McpCoreToolName, McpAppReadToolInput, McpAppSingleActionToolInput, McpAppToolCommonInput, McpAppToolDescriptor, McpAppFixedResult, McpAppFixedResultCall, McpAppFixedResultInvalidParams, McpAppFixedResultResolution, McpAppFixedResultUnavailable, McpAppToolInput, McpAppToolMetadata, McpAppToolRegistration, McpAppToolResult, McpAppToolVisibility, McpAppInstanceResourceBinding, McpAppMcpResourceBinding, McpAppResourceBinding, McpAppLocalResource, McpAppLocalRegistrationInput, McpAppLocalReadToolDescriptor, McpAppLocalActionToolDescriptor, McpAppLocalSingleActionToolDescriptor, McpAppLocalHostToolDescriptor, McpAppLocalToolDiagnostic, McpAppLocalToolDescriptor, McpAppLocalRegistration, McpAppBuiltinRegistration, McpAppResolvedRegistration, McpAppLocalLauncher, McpAppBuiltinLauncher, McpAppLauncher, WorkspaceAppLauncher, WorkspaceAppResolvedRegistration, McpAppWorkspaceRegistry, WorkspaceAppRegistry, McpAppWorkspaceRegistryInput, McpAppRegistryOptions, McpAppBundleHostToolTemplate, McpAppBundleAgentActionDescriptor, } from './types.js';
|
|
36
38
|
export { buildWorkspaceAppSnapshot, discoverWorkspaceAppSnapshot, reconfirmWorkspaceAppSnapshot, } from './workspace-snapshot.js';
|
|
37
39
|
export type { WorkspaceAppSnapshot, WorkspaceAppSnapshotBuildOptions, WorkspaceAppSnapshotOptions, WorkspaceAppSnapshotReconfirmResult, WorkspaceAppSnapshotResource, WorkspaceAppSnapshotInitialState, WorkspaceAppInitialState, } from './workspace-snapshot.js';
|
|
40
|
+
export { appScheduleCommandLabel, cronExpressionForInterval, decideScheduleDirective, planScheduledFire, resolveDeclaredSchedule, scheduleTemplateFor, toScheduledRunVerdict, toScheduleSnapshot, } from './app-schedule.js';
|
|
41
|
+
export type { AppScheduleActorKind, AppScheduleAvailability, AppScheduleBinding, AppScheduleOwner, AppScheduleOwnerSource, AppScheduleRowView, AppScheduleTemplate, AppScheduledRunPayload, AppScheduledRunPlan, ResolvedAppSchedule, ScheduleDirectiveDecision, ScheduleLifecycleEntry, ScheduleLifecyclePlan, ScheduledAppLaunchRequest, } from './app-schedule.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SKILL_BACKEND_CONTENT_SCHEMA_VERSION, SKILL_BACKEND_MAX_INPUT_BYTES, SKILL_BACKEND_MAX_OUTPUT_BYTES } from '../app/protocol.js';
|
|
2
|
+
import { type AppScheduleDirective, type AppScheduleSnapshot } from '../app/schedule-contract.js';
|
|
2
3
|
import type { ContentFrame, UiContentMediaType, UiContentRangeRequest } from './content-channel.js';
|
|
3
4
|
import type { JsonObject, UiExternalActionHandlerRegistration, UiSkillBackendEnvironmentKey } from '../ui-instance/types.js';
|
|
4
5
|
import type { UiPluginNormalizedManifestV2 } from '../ui-plugin/types.js';
|
|
@@ -13,6 +14,7 @@ export interface SkillBackendPayloadV1 {
|
|
|
13
14
|
readonly actionId: string;
|
|
14
15
|
readonly input: JsonObject;
|
|
15
16
|
readonly state: JsonObject;
|
|
17
|
+
readonly schedule?: AppScheduleSnapshot;
|
|
16
18
|
}
|
|
17
19
|
export interface SkillBackendContentInputHeader {
|
|
18
20
|
readonly mediaType: UiContentMediaType;
|
|
@@ -39,6 +41,7 @@ export type SkillBackendExecutionResponse = {
|
|
|
39
41
|
readonly state?: JsonObject;
|
|
40
42
|
readonly result?: JsonObject;
|
|
41
43
|
readonly content?: ContentFrame;
|
|
44
|
+
readonly schedule?: AppScheduleDirective;
|
|
42
45
|
} | {
|
|
43
46
|
readonly outcome: 'rejected' | 'failed';
|
|
44
47
|
readonly errorCode: string;
|
|
@@ -49,7 +52,7 @@ export type SkillBackendExecutionResponse = {
|
|
|
49
52
|
interface SkillBackendExecutionRequestBase {
|
|
50
53
|
readonly requestId?: string;
|
|
51
54
|
readonly reservationNowMs?: number;
|
|
52
|
-
readonly actorKind?: 'user' | 'agent';
|
|
55
|
+
readonly actorKind?: 'user' | 'agent' | 'schedule';
|
|
53
56
|
readonly instanceId: string;
|
|
54
57
|
readonly appId: string;
|
|
55
58
|
readonly definitionId: string;
|
|
@@ -82,7 +85,7 @@ export interface SkillBackendExecutionPort {
|
|
|
82
85
|
export interface SkillBackendChildEnvironment {
|
|
83
86
|
readonly CREWX_APP_REQUEST_ID: string;
|
|
84
87
|
readonly CREWX_APP_NOW_MS: string;
|
|
85
|
-
readonly CREWX_APP_ACTOR_KIND: 'user' | 'agent';
|
|
88
|
+
readonly CREWX_APP_ACTOR_KIND: 'user' | 'agent' | 'schedule';
|
|
86
89
|
}
|
|
87
90
|
export declare function buildSkillBackendChildEnvironment(request: Pick<SkillBackendExecutionRequest, 'requestId' | 'reservationNowMs' | 'actorKind'>): SkillBackendChildEnvironment;
|
|
88
91
|
export interface VerifiedBundleSkillSpawnRequest {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AppDiscoveryFileSystem, type WorkspaceAppDiscoveryIncompleteReason, type WorkspaceAppDiagnostic, type WorkspaceAppDiscoveryOptions, type WorkspaceAppDiscoveryResult, type WorkspaceAppSource, type ProductAppBundleProvenance, type ProductAppBundleSnapshotMetadata } from './discovery.js';
|
|
2
2
|
import { type SkillBackendExecutionPort } from './skill-backend.js';
|
|
3
3
|
import { type WorkspaceAppAssetCatalog } from './workspace-app-assets.js';
|
|
4
|
+
import type { AppIconDiagnostic, AppIconFile } from '../ui-plugin/app-icon.js';
|
|
4
5
|
import type { JsonObject, UiActionHandlerRegistration, UiDefinition, UiDefinitionRef } from '../ui-instance/types.js';
|
|
5
6
|
import type { UiPluginManifestV2 } from '../ui-plugin/types.js';
|
|
6
7
|
import type { McpAppLauncher, McpAppLocalResource, McpAppRegistry, McpAppWorkspaceRegistry } from './types.js';
|
|
@@ -8,6 +9,8 @@ export interface WorkspaceAppSnapshotResource extends McpAppLocalResource {
|
|
|
8
9
|
readonly appId: string;
|
|
9
10
|
readonly definition: UiDefinitionRef;
|
|
10
11
|
readonly relativePath?: string;
|
|
12
|
+
readonly iconFile?: AppIconFile;
|
|
13
|
+
readonly iconDiagnostics?: readonly AppIconDiagnostic[];
|
|
11
14
|
readonly runtime?: NonNullable<UiPluginManifestV2['runtime']>;
|
|
12
15
|
readonly csp?: NonNullable<UiPluginManifestV2['csp']>;
|
|
13
16
|
readonly source?: WorkspaceAppSource;
|
package/dist/publish/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PublishErrorCode = 'APP_ID_REQUIRED' | 'APP_DEFINITION_HASH_REQUIRED' | 'APP_NOT_FOUND' | 'APP_AMBIGUOUS' | 'APP_NAME_CONFLICT' | 'APP_DEFINITION_CONFLICT' | 'APP_PACKAGE_ROOT_INVALID' | 'APP_UI_MANIFEST_INVALID' | 'APP_SKILL_MISSING' | 'APP_INITIAL_STATE_OUT_OF_SCOPE' | 'PACKAGE_PATH_TRAVERSAL' | 'PACKAGE_SYMLINK' | 'PACKAGE_FILE_INVALID' | 'PACKAGE_SIZE_LIMIT' | 'PACKAGE_GENERATED_FILE_MISSING' | 'PACKAGE_STAGED_BYTES_MISMATCH' | 'PUBLISH_SECRET_FINDINGS' | 'PUBLISH_CONTENT_ID_MISSING' | 'PUBLISH_CONTENT_SUSPENDED' | 'CONTENT_REJECTED' | 'APP_VERSION_MUST_INCREASE' | 'APP_VERSION_INVALID';
|
|
1
|
+
export type PublishErrorCode = 'APP_ID_REQUIRED' | 'APP_DEFINITION_HASH_REQUIRED' | 'APP_NOT_FOUND' | 'APP_AMBIGUOUS' | 'APP_NAME_CONFLICT' | 'APP_DEFINITION_CONFLICT' | 'APP_PACKAGE_ROOT_INVALID' | 'APP_UI_MANIFEST_INVALID' | 'ICON_INVALID' | 'APP_SKILL_MISSING' | 'APP_INITIAL_STATE_OUT_OF_SCOPE' | 'PACKAGE_PATH_TRAVERSAL' | 'PACKAGE_SYMLINK' | 'PACKAGE_FILE_INVALID' | 'PACKAGE_SIZE_LIMIT' | 'PACKAGE_GENERATED_FILE_MISSING' | 'PACKAGE_STAGED_BYTES_MISMATCH' | 'PUBLISH_SECRET_FINDINGS' | 'PUBLISH_CONTENT_ID_MISSING' | 'PUBLISH_CONTENT_SUSPENDED' | 'CONTENT_REJECTED' | 'APP_VERSION_MUST_INCREASE' | 'APP_VERSION_INVALID';
|
|
2
2
|
export declare class PublishError extends Error {
|
|
3
3
|
readonly code: PublishErrorCode;
|
|
4
4
|
readonly name = "PublishError";
|
package/dist/publish/index.d.ts
CHANGED
|
@@ -14,11 +14,16 @@ export interface PublishOptions {
|
|
|
14
14
|
maxFiles?: number;
|
|
15
15
|
maxBytes?: number;
|
|
16
16
|
}
|
|
17
|
+
export interface PublishWarning {
|
|
18
|
+
readonly code: 'ICON_NOT_FILE' | 'ICON_NOT_SQUARE';
|
|
19
|
+
readonly path: string;
|
|
20
|
+
}
|
|
17
21
|
export interface PublishPlan {
|
|
18
22
|
manifest: PublishManifest;
|
|
19
23
|
included: string[];
|
|
20
24
|
excluded: ExcludedEntry[];
|
|
21
25
|
secretFindings: SecretFinding[];
|
|
26
|
+
warnings?: PublishWarning[];
|
|
22
27
|
}
|
|
23
28
|
export declare function planPublish(dir: string, opts?: PublishOptions): Promise<PublishPlan>;
|
|
24
29
|
export declare function packPublish(dir: string, opts?: PublishOptions): Promise<{
|