@package-broker/cli 0.19.7 → 2.0.0-rc.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.
- package/LICENSE +661 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +12 -0
- package/dist/bin.js.map +1 -0
- package/dist/build-artifacts.d.ts +27 -0
- package/dist/build-artifacts.d.ts.map +1 -0
- package/dist/build-artifacts.js +169 -0
- package/dist/build-artifacts.js.map +1 -0
- package/dist/build-assets.d.ts +36 -0
- package/dist/build-assets.d.ts.map +1 -0
- package/dist/build-assets.js +224 -0
- package/dist/build-assets.js.map +1 -0
- package/dist/build.d.ts +31 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/build.js +277 -0
- package/dist/build.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +801 -0
- package/dist/cli.js.map +1 -0
- package/dist/cloudflare/d1-http-executor.d.ts +30 -0
- package/dist/cloudflare/d1-http-executor.d.ts.map +1 -0
- package/dist/cloudflare/d1-http-executor.js +230 -0
- package/dist/cloudflare/d1-http-executor.js.map +1 -0
- package/dist/cloudflare/d1-http-response.d.ts +4 -0
- package/dist/cloudflare/d1-http-response.d.ts.map +1 -0
- package/dist/cloudflare/d1-http-response.js +113 -0
- package/dist/cloudflare/d1-http-response.js.map +1 -0
- package/dist/commands/admin.d.ts +47 -0
- package/dist/commands/admin.d.ts.map +1 -0
- package/dist/commands/admin.js +447 -0
- package/dist/commands/admin.js.map +1 -0
- package/dist/commands/built-manifest.d.ts +13 -0
- package/dist/commands/built-manifest.d.ts.map +1 -0
- package/dist/commands/built-manifest.js +197 -0
- package/dist/commands/built-manifest.js.map +1 -0
- package/dist/commands/cloudflare/api.d.ts +129 -0
- package/dist/commands/cloudflare/api.d.ts.map +1 -0
- package/dist/commands/cloudflare/api.js +480 -0
- package/dist/commands/cloudflare/api.js.map +1 -0
- package/dist/commands/cloudflare/deploy.d.ts +81 -0
- package/dist/commands/cloudflare/deploy.d.ts.map +1 -0
- package/dist/commands/cloudflare/deploy.js +1848 -0
- package/dist/commands/cloudflare/deploy.js.map +1 -0
- package/dist/commands/cloudflare/inventory.d.ts +243 -0
- package/dist/commands/cloudflare/inventory.d.ts.map +1 -0
- package/dist/commands/cloudflare/inventory.js +786 -0
- package/dist/commands/cloudflare/inventory.js.map +1 -0
- package/dist/commands/cloudflare/janitor.d.ts +10 -0
- package/dist/commands/cloudflare/janitor.d.ts.map +1 -0
- package/dist/commands/cloudflare/janitor.js +84 -0
- package/dist/commands/cloudflare/janitor.js.map +1 -0
- package/dist/commands/cloudflare/migrations-check.d.ts +5 -0
- package/dist/commands/cloudflare/migrations-check.d.ts.map +1 -0
- package/dist/commands/cloudflare/migrations-check.js +10 -0
- package/dist/commands/cloudflare/migrations-check.js.map +1 -0
- package/dist/commands/cloudflare/provision.d.ts +79 -0
- package/dist/commands/cloudflare/provision.d.ts.map +1 -0
- package/dist/commands/cloudflare/provision.js +961 -0
- package/dist/commands/cloudflare/provision.js.map +1 -0
- package/dist/commands/cloudflare/queue-consumer.d.ts +4 -0
- package/dist/commands/cloudflare/queue-consumer.d.ts.map +1 -0
- package/dist/commands/cloudflare/queue-consumer.js +57 -0
- package/dist/commands/cloudflare/queue-consumer.js.map +1 -0
- package/dist/commands/cloudflare/setup.d.ts +48 -0
- package/dist/commands/cloudflare/setup.d.ts.map +1 -0
- package/dist/commands/cloudflare/setup.js +836 -0
- package/dist/commands/cloudflare/setup.js.map +1 -0
- package/dist/commands/cloudflare/smoke.d.ts +29 -0
- package/dist/commands/cloudflare/smoke.d.ts.map +1 -0
- package/dist/commands/cloudflare/smoke.js +715 -0
- package/dist/commands/cloudflare/smoke.js.map +1 -0
- package/dist/commands/cloudflare/teardown.d.ts +62 -0
- package/dist/commands/cloudflare/teardown.d.ts.map +1 -0
- package/dist/commands/cloudflare/teardown.js +906 -0
- package/dist/commands/cloudflare/teardown.js.map +1 -0
- package/dist/commands/cloudflare/worker-settings.d.ts +4 -0
- package/dist/commands/cloudflare/worker-settings.d.ts.map +1 -0
- package/dist/commands/cloudflare/worker-settings.js +93 -0
- package/dist/commands/cloudflare/worker-settings.js.map +1 -0
- package/dist/commands/cloudflare.d.ts +55 -0
- package/dist/commands/cloudflare.d.ts.map +1 -0
- package/dist/commands/cloudflare.js +393 -0
- package/dist/commands/cloudflare.js.map +1 -0
- package/dist/commands/import-cutover.d.ts +5 -0
- package/dist/commands/import-cutover.d.ts.map +1 -0
- package/dist/commands/import-cutover.js +25 -0
- package/dist/commands/import-cutover.js.map +1 -0
- package/dist/commands/import-private-packagist.d.ts +38 -0
- package/dist/commands/import-private-packagist.d.ts.map +1 -0
- package/dist/commands/import-private-packagist.js +232 -0
- package/dist/commands/import-private-packagist.js.map +1 -0
- package/dist/commands/import-satis.d.ts +11 -0
- package/dist/commands/import-satis.d.ts.map +1 -0
- package/dist/commands/import-satis.js +112 -0
- package/dist/commands/import-satis.js.map +1 -0
- package/dist/commands/import.d.ts +22 -0
- package/dist/commands/import.d.ts.map +1 -0
- package/dist/commands/import.js +343 -0
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/openapi-specs.d.ts +4 -0
- package/dist/commands/openapi-specs.d.ts.map +1 -0
- package/dist/commands/openapi-specs.js +94 -0
- package/dist/commands/openapi-specs.js.map +1 -0
- package/dist/commands/openapi.d.ts +12 -0
- package/dist/commands/openapi.d.ts.map +1 -0
- package/dist/commands/openapi.js +44 -0
- package/dist/commands/openapi.js.map +1 -0
- package/dist/commands/source.d.ts +8 -0
- package/dist/commands/source.d.ts.map +1 -0
- package/dist/commands/source.js +61 -0
- package/dist/commands/source.js.map +1 -0
- package/dist/commands/sqlite.d.ts +11 -0
- package/dist/commands/sqlite.d.ts.map +1 -0
- package/dist/commands/sqlite.js +76 -0
- package/dist/commands/sqlite.js.map +1 -0
- package/dist/import/client.d.ts +71 -0
- package/dist/import/client.d.ts.map +1 -0
- package/dist/import/client.js +348 -0
- package/dist/import/client.js.map +1 -0
- package/dist/import/credential-refs.d.ts +2 -0
- package/dist/import/credential-refs.d.ts.map +1 -0
- package/dist/import/credential-refs.js +22 -0
- package/dist/import/credential-refs.js.map +1 -0
- package/dist/import/cutover.d.ts +64 -0
- package/dist/import/cutover.d.ts.map +1 -0
- package/dist/import/cutover.js +544 -0
- package/dist/import/cutover.js.map +1 -0
- package/dist/import/private-packagist/api.d.ts +57 -0
- package/dist/import/private-packagist/api.d.ts.map +1 -0
- package/dist/import/private-packagist/api.js +246 -0
- package/dist/import/private-packagist/api.js.map +1 -0
- package/dist/import/private-packagist/dates.d.ts +30 -0
- package/dist/import/private-packagist/dates.d.ts.map +1 -0
- package/dist/import/private-packagist/dates.js +189 -0
- package/dist/import/private-packagist/dates.js.map +1 -0
- package/dist/import/private-packagist/map.d.ts +48 -0
- package/dist/import/private-packagist/map.d.ts.map +1 -0
- package/dist/import/private-packagist/map.js +162 -0
- package/dist/import/private-packagist/map.js.map +1 -0
- package/dist/import/private-packagist/plan.d.ts +61 -0
- package/dist/import/private-packagist/plan.d.ts.map +1 -0
- package/dist/import/private-packagist/plan.js +936 -0
- package/dist/import/private-packagist/plan.js.map +1 -0
- package/dist/import/private-packagist/snapshot.d.ts +31 -0
- package/dist/import/private-packagist/snapshot.d.ts.map +1 -0
- package/dist/import/private-packagist/snapshot.js +406 -0
- package/dist/import/private-packagist/snapshot.js.map +1 -0
- package/dist/import/satis.d.ts +93 -0
- package/dist/import/satis.d.ts.map +1 -0
- package/dist/import/satis.js +873 -0
- package/dist/import/satis.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -96
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +55 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +125 -0
- package/dist/manifest.js.map +1 -0
- package/dist/migrations-collect.d.ts +6 -0
- package/dist/migrations-collect.d.ts.map +1 -0
- package/dist/migrations-collect.js +39 -0
- package/dist/migrations-collect.js.map +1 -0
- package/dist/prebuilt-expected.json +7 -0
- package/dist/prebuilt.d.ts +27 -0
- package/dist/prebuilt.d.ts.map +1 -0
- package/dist/prebuilt.js +391 -0
- package/dist/prebuilt.js.map +1 -0
- package/package.json +21 -25
- package/README.md +0 -29
- package/dist/__tests__/migrate.test.d.ts +0 -2
- package/dist/__tests__/migrate.test.d.ts.map +0 -1
- package/dist/__tests__/migrate.test.js +0 -116
- package/dist/__tests__/migrate.test.js.map +0 -1
- package/dist/migrate.d.ts +0 -40
- package/dist/migrate.d.ts.map +0 -1
- package/dist/migrate.js +0 -335
- package/dist/migrate.js.map +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type ParsedManifest } from '@package-broker/core/import/manifest';
|
|
2
|
+
export declare const DIAGNOSTIC_TEXT: {
|
|
3
|
+
readonly invalid_satis_config: "Invalid or unsupported Satis configuration; see the field path.";
|
|
4
|
+
readonly invalid_repository_url: "Use a canonical repository URL without credentials, query or fragment.";
|
|
5
|
+
readonly repository_driver_required: "Declare the Git driver and package name in the local repository map; remote probing is disabled.";
|
|
6
|
+
readonly repository_package_required: "Declare the Composer package name for this repository in the local repository map.";
|
|
7
|
+
readonly unsupported_github_repository: "Use one concrete GitHub repository and supply its package mapping.";
|
|
8
|
+
readonly unsupported_driver_options: "Only a concrete Git HTTPS repository is supported; remove API driver options.";
|
|
9
|
+
readonly selection_required: "Provide explicit package names or supported vendor filters for this Composer repository.";
|
|
10
|
+
readonly inline_package_unsupported: "Inline package definitions cannot be imported; publish them to a Composer repository first.";
|
|
11
|
+
readonly local_repository_unsupported: "Local path repositories cannot be imported; publish them to a reachable repository first.";
|
|
12
|
+
readonly artifact_repository_unsupported: "Artifact directories cannot be imported; publish their packages to a Composer repository first.";
|
|
13
|
+
readonly repository_transport_unsupported: "This importer supports HTTPS Git and Composer repositories only.";
|
|
14
|
+
readonly package_filter_unsupported: "Use a canonical package name or a single vendor/* filter.";
|
|
15
|
+
readonly require_all_composer_unsupported: "Enumerate the Composer packages or vendor filters before planning; require-all cannot be expanded offline.";
|
|
16
|
+
readonly conflicting_selection: "Choose require-all or explicit require filters.";
|
|
17
|
+
readonly dependency_resolution_unsupported: "Dependency expansion requires a resolver and cannot be represented by this import plan.";
|
|
18
|
+
readonly dev_dependency_resolution_unsupported: "Development dependency expansion is not supported by this import plan.";
|
|
19
|
+
readonly only_dependencies_unsupported: "A dependencies-only selection requires dependency resolution and is not supported.";
|
|
20
|
+
readonly stability_filter_unsupported: "Set minimum-stability to 'dev' in a reviewed package-only configuration; this plan cannot preserve a stability filter.";
|
|
21
|
+
readonly archive_policy_unsupported: "Satis archive settings are not transferable; remove them from a reviewed package-only configuration and configure Broker storage separately.";
|
|
22
|
+
readonly empty_selection: "No packages are selected; no manifest was written.";
|
|
23
|
+
readonly ambiguous_package_owner: "Assign each package or vendor filter to one source in the local repository map.";
|
|
24
|
+
readonly selection_coverage: "Repository selections must cover the requested filters without adding packages.";
|
|
25
|
+
readonly duplicate_repository: "Each repository may be configured only once.";
|
|
26
|
+
readonly source_name_collision: "Two repositories produce the same source name.";
|
|
27
|
+
readonly invalid_repository_map: "Invalid repository map; see the field path.";
|
|
28
|
+
readonly invalid_credential_map: "Use a supported credential reference and explicit repository binding; inline material is forbidden.";
|
|
29
|
+
readonly invalid_project: "Use a valid project slug.";
|
|
30
|
+
readonly invalid_baseline: "The baseline is not a valid Satis import manifest.";
|
|
31
|
+
readonly incomplete_baseline: "Supply the full retained baseline manifest for this import.";
|
|
32
|
+
readonly existing_source_change: "This plan changes an existing source; review it through source administration before importing further additions.";
|
|
33
|
+
readonly destructive_delta_unsupported: "This change removes or replaces imported configuration; reconcile it in the UI before creating a new baseline.";
|
|
34
|
+
readonly override_mode_unsupported: "Override mode needs an ownership marker the import manifest cannot carry; use merge mode.";
|
|
35
|
+
readonly single_run_limit_exceeded: "This plan exceeds a single-run import limit. Queue-backed multi-part import requires the T669 follow-up; no manifest was written.";
|
|
36
|
+
readonly manifest_invalid: "The planned manifest was refused by the import manifest validator.";
|
|
37
|
+
};
|
|
38
|
+
export type DiagnosticCode = keyof typeof DIAGNOSTIC_TEXT;
|
|
39
|
+
export type DiagnosticFile = 'satis' | 'repository-map' | 'credentials' | 'baseline' | 'options' | 'plan';
|
|
40
|
+
export interface Diagnostic {
|
|
41
|
+
readonly code: DiagnosticCode;
|
|
42
|
+
readonly file: DiagnosticFile;
|
|
43
|
+
readonly pointer: string;
|
|
44
|
+
readonly cap?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const WARNING_TEXT: {
|
|
47
|
+
readonly version_constraint_ignored: "The version constraint is not enforced; the broker serves all upstream versions of this package.";
|
|
48
|
+
readonly blacklist_ignored: "The blacklist entry is not enforced; the broker serves all upstream versions of this package.";
|
|
49
|
+
};
|
|
50
|
+
export interface PlanWarning {
|
|
51
|
+
readonly code: keyof typeof WARNING_TEXT;
|
|
52
|
+
readonly package: string;
|
|
53
|
+
readonly pointer: string;
|
|
54
|
+
}
|
|
55
|
+
export interface PlanSummary {
|
|
56
|
+
readonly sources: readonly {
|
|
57
|
+
name: string;
|
|
58
|
+
kind: string;
|
|
59
|
+
target: string;
|
|
60
|
+
}[];
|
|
61
|
+
readonly existingSources: readonly string[];
|
|
62
|
+
readonly names: readonly string[];
|
|
63
|
+
readonly attachments: readonly {
|
|
64
|
+
project: string;
|
|
65
|
+
source: string;
|
|
66
|
+
}[];
|
|
67
|
+
readonly unselectedRepositories: number;
|
|
68
|
+
readonly ignoredPresentationKeys: number;
|
|
69
|
+
readonly disabledDefaultRepositories: number;
|
|
70
|
+
readonly noChanges: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface PlanInput {
|
|
73
|
+
readonly satis: string;
|
|
74
|
+
readonly repositoryMap?: string;
|
|
75
|
+
readonly credentials?: string;
|
|
76
|
+
readonly baseline?: string;
|
|
77
|
+
readonly project?: string;
|
|
78
|
+
readonly mode?: 'merge' | 'override';
|
|
79
|
+
}
|
|
80
|
+
export type PlanResult = {
|
|
81
|
+
readonly ok: true;
|
|
82
|
+
readonly manifest: ParsedManifest;
|
|
83
|
+
readonly canonical: string;
|
|
84
|
+
readonly hash: string;
|
|
85
|
+
readonly summary: PlanSummary;
|
|
86
|
+
readonly warnings: readonly PlanWarning[];
|
|
87
|
+
} | {
|
|
88
|
+
readonly ok: false;
|
|
89
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
90
|
+
readonly warnings: readonly PlanWarning[];
|
|
91
|
+
};
|
|
92
|
+
export declare function planSatisImport(input: PlanInput): Promise<PlanResult>;
|
|
93
|
+
//# sourceMappingURL=satis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"satis.d.ts","sourceRoot":"","sources":["../../src/import/satis.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,sCAAsC,CAAC;AAK9C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDlB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,eAAe,CAAC;AAC1D,MAAM,MAAM,cAAc,GACxB,OAAO,GAAG,gBAAgB,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE/E,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,YAAY;;;CAKf,CAAC;AAEX,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,YAAY,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAA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