agent-plugin-lifecycle 0.0.0-stage → 0.1.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,6 @@
1
+ export type { LockedPlugin } from './apm.js';
2
+ export { matchesSource, parseLock, sourceParts } from './apm.js';
3
+ export type { Config, PluginPolicy } from './config.js';
4
+ export { parseConfig, recordId } from './config.js';
5
+ export type { LifecycleEvent, Mode, RunOptions } from './runner.js';
6
+ export { runLifecycle } from './runner.js';
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get matchesSource () {
13
+ return _apm.matchesSource;
14
+ },
15
+ get parseConfig () {
16
+ return _config.parseConfig;
17
+ },
18
+ get parseLock () {
19
+ return _apm.parseLock;
20
+ },
21
+ get recordId () {
22
+ return _config.recordId;
23
+ },
24
+ get runLifecycle () {
25
+ return _runner.runLifecycle;
26
+ },
27
+ get sourceParts () {
28
+ return _apm.sourceParts;
29
+ }
30
+ });
31
+ var _apm = require("./apm.js");
32
+ var _config = require("./config.js");
33
+ var _runner = require("./runner.js");
34
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/ai/agent-plugin-lifecycle/src/index.ts"],"sourcesContent":["export type { LockedPlugin } from './apm.js';\nexport { matchesSource, parseLock, sourceParts } from './apm.js';\nexport type { Config, PluginPolicy } from './config.js';\nexport { parseConfig, recordId } from './config.js';\nexport type { LifecycleEvent, Mode, RunOptions } from './runner.js';\nexport { runLifecycle } from './runner.js';\n"],"names":["matchesSource","parseConfig","parseLock","recordId","runLifecycle","sourceParts"],"mappings":";;;;;;;;;;;QACSA;eAAAA,kBAAa;;QAEbC;eAAAA,mBAAW;;QAFIC;eAAAA,cAAS;;QAEXC;eAAAA,gBAAQ;;QAErBC;eAAAA,oBAAY;;QAJcC;eAAAA,gBAAW;;;mBAAQ;sBAEhB;sBAET"}
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
@@ -0,0 +1,19 @@
1
+ export type Mode = 'run' | 'check';
2
+ export interface LifecycleEvent {
3
+ schema_version: 1;
4
+ event: 'post-install' | 'post-update' | 'post-uninstall';
5
+ scope: 'user';
6
+ packages: {
7
+ name: string;
8
+ reference: string | null;
9
+ }[];
10
+ }
11
+ export interface RunOptions {
12
+ home?: string;
13
+ apmHome?: string;
14
+ configPath?: string;
15
+ environment?: NodeJS.ProcessEnv;
16
+ output?: (line: string) => void;
17
+ event?: LifecycleEvent;
18
+ }
19
+ export declare function runLifecycle(mode: Mode, options?: RunOptions): Promise<number>;
@@ -0,0 +1,19 @@
1
+ export type Mode = 'run' | 'check';
2
+ export interface LifecycleEvent {
3
+ schema_version: 1;
4
+ event: 'post-install' | 'post-update' | 'post-uninstall';
5
+ scope: 'user';
6
+ packages: {
7
+ name: string;
8
+ reference: string | null;
9
+ }[];
10
+ }
11
+ export interface RunOptions {
12
+ home?: string;
13
+ apmHome?: string;
14
+ configPath?: string;
15
+ environment?: NodeJS.ProcessEnv;
16
+ output?: (line: string) => void;
17
+ event?: LifecycleEvent;
18
+ }
19
+ export declare function runLifecycle(mode: Mode, options?: RunOptions): Promise<number>;