@usepipr/runtime 0.4.2 → 0.5.0
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 +21 -0
- package/README.md +8 -5
- package/dist/commands-CF59DZXx.d.mts +27 -0
- package/dist/commands-CF59DZXx.d.mts.map +1 -0
- package/dist/{commands-EZV-Icbs.mjs → commands-DgZU7tf7.mjs} +2621 -2468
- package/dist/commands-DgZU7tf7.mjs.map +1 -0
- package/dist/index.d.mts +16 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +117 -15
- package/dist/index.mjs.map +1 -1
- package/dist/internal/action-result.d.mts +13 -0
- package/dist/internal/action-result.d.mts.map +1 -0
- package/dist/internal/action-result.mjs +62 -0
- package/dist/internal/action-result.mjs.map +1 -0
- package/dist/internal/docs.mjs +1 -1
- package/dist/internal/pipr-result.d.mts +24 -0
- package/dist/internal/pipr-result.d.mts.map +1 -0
- package/dist/internal/pipr-result.mjs +126 -0
- package/dist/internal/pipr-result.mjs.map +1 -0
- package/dist/internal/testing.d.mts +11 -10
- package/dist/internal/testing.d.mts.map +1 -1
- package/dist/internal/testing.mjs +1 -1
- package/dist/main-comment-envelope-DFirHYhW.mjs +69 -0
- package/dist/main-comment-envelope-DFirHYhW.mjs.map +1 -0
- package/dist/{official-github-workflow-BuZs6bOx.mjs → official-github-workflow-DNzV5Z70.mjs} +183 -33
- package/dist/official-github-workflow-DNzV5Z70.mjs.map +1 -0
- package/dist/{commands-DtdTtej_.d.mts → types-Dn1U3MDG.d.mts} +31 -43
- package/dist/types-Dn1U3MDG.d.mts.map +1 -0
- package/package.json +20 -8
- package/dist/commands-DtdTtej_.d.mts.map +0 -1
- package/dist/commands-EZV-Icbs.mjs.map +0 -1
- package/dist/official-github-workflow-BuZs6bOx.mjs.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 pipr contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# @usepipr/runtime
|
|
2
2
|
|
|
3
|
-
`@usepipr/runtime` owns Pipr's config loading,
|
|
4
|
-
execution, Diff Manifest creation, Pi execution,
|
|
5
|
-
publication planning.
|
|
3
|
+
`@usepipr/runtime` is an internal package that owns Pipr's config loading,
|
|
4
|
+
hosted and local command execution, Diff Manifest creation, Pi execution,
|
|
5
|
+
review validation, and publication planning. Direct user imports are
|
|
6
|
+
unsupported.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
Use the `pipr` CLI or a code host integration to run Pipr. Repository configs
|
|
9
|
+
should import only from `@usepipr/sdk`.
|
|
10
|
+
|
|
11
|
+
Executing this npm package requires Bun 1.3.14 or newer.
|
|
9
12
|
|
|
10
13
|
## Technical notes
|
|
11
14
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as HostRunCommandResult, c as LocalReviewCommandOptions, d as ValidateCommandResult, i as HostRunCommandOptions, l as LocalReviewCommandResult, n as DryRunCommandResult, o as InitCommandOptions, r as HostRunCommandDependencyOptions, s as InspectCommandResult, t as DryRunCommandOptions, u as RuntimeCommandOptions } from "./types-Dn1U3MDG.mjs";
|
|
2
|
+
//#region src/config/init.d.ts
|
|
3
|
+
type InitOfficialMinimalProjectResult = {
|
|
4
|
+
configDir: string;
|
|
5
|
+
created: string[];
|
|
6
|
+
overwritten: string[];
|
|
7
|
+
};
|
|
8
|
+
declare const supportedOfficialInitAdapters: readonly ["github", "gitlab", "azure-devops", "bitbucket"];
|
|
9
|
+
type OfficialInitAdapter = (typeof supportedOfficialInitAdapters)[number];
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/host-run/commands.d.ts
|
|
12
|
+
/** Initializes the official minimal `.pipr` project files. */
|
|
13
|
+
declare function runInitCommand(options: InitCommandOptions): Promise<InitOfficialMinimalProjectResult>;
|
|
14
|
+
/** Loads and validates the runtime project configuration. */
|
|
15
|
+
declare function runValidateCommand(options: RuntimeCommandOptions): Promise<ValidateCommandResult>;
|
|
16
|
+
/** Returns an inspectable summary of the configured runtime plan. */
|
|
17
|
+
declare function runInspectCommand(options: RuntimeCommandOptions): Promise<InspectCommandResult>;
|
|
18
|
+
/** Loads the runtime config and change request event without running review publication. */
|
|
19
|
+
declare function runDryRunCommand(options: DryRunCommandOptions): Promise<DryRunCommandResult>;
|
|
20
|
+
/** Runs configured change-request tasks against local Git base and head revisions. */
|
|
21
|
+
declare function runLocalReviewCommand(options: LocalReviewCommandOptions): Promise<LocalReviewCommandResult>;
|
|
22
|
+
/** Runs a normalized code host event through the selected adapter. */
|
|
23
|
+
declare function runHostRunCommand(options: HostRunCommandOptions): Promise<HostRunCommandResult>;
|
|
24
|
+
declare function runHostRunCommandWithDependencies(options: HostRunCommandDependencyOptions): Promise<HostRunCommandResult>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { runInspectCommand as a, OfficialInitAdapter as c, runInitCommand as i, supportedOfficialInitAdapters as l, runHostRunCommand as n, runLocalReviewCommand as o, runHostRunCommandWithDependencies as r, runValidateCommand as s, runDryRunCommand as t };
|
|
27
|
+
//# sourceMappingURL=commands-CF59DZXx.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands-CF59DZXx.d.mts","names":[],"sources":["../src/config/init.ts","../src/host-run/commands.ts"],"mappings":";;KAuBY;EACV;EACA;EACA;;cAGW;KAOD,8BAA8B;;;;iBCUpB,eACpB,SAAS,qBACR,QAAQ;;iBAYW,mBACpB,SAAS,wBACR,QAAQ;;iBAUW,kBACpB,SAAS,wBACR,QAAQ;;iBASW,iBACpB,SAAS,uBACR,QAAQ;;iBAoBW,sBACpB,SAAS,4BACR,QAAQ;;iBA4EW,kBACpB,SAAS,wBACR,QAAQ;iBAOW,kCACpB,SAAS,kCACR,QAAQ"}
|