agent-scenario-loop 0.1.0 → 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.
@@ -10,6 +10,12 @@ type DemoLoopResult = {
10
10
  outputDir: string;
11
11
  preflightDir: string;
12
12
  };
13
+ /**
14
+ * Resolves files shipped with the installed package.
15
+ *
16
+ * @returns {string}
17
+ */
18
+ declare function resolvePackageRoot(): string;
13
19
  /**
14
20
  * Prints CLI usage.
15
21
  *
@@ -41,5 +47,5 @@ declare function runDemoLoop({ outputDir }?: {
41
47
  * @returns {Promise<void>}
42
48
  */
43
49
  declare function main(): Promise<void>;
44
- export { main, parseArgs, runDemoLoop, usage, };
50
+ export { main, parseArgs, runDemoLoop, resolvePackageRoot, usage, };
45
51
  export type { CliArgs, DemoLoopResult, };
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.main = main;
5
5
  exports.parseArgs = parseArgs;
6
6
  exports.runDemoLoop = runDemoLoop;
7
+ exports.resolvePackageRoot = resolvePackageRoot;
7
8
  exports.usage = usage;
8
9
  const path = require('node:path');
9
10
  const { buildAgentSummaryMarkdown } = require('../core/agent-summary');
@@ -15,6 +16,14 @@ const { buildPlanArtifacts } = require('./check-plan');
15
16
  const { hasHelpFlag, writeUsage } = require('./cli');
16
17
  const { compareLatestTrustedRun } = require('./compare-latest');
17
18
  const { runProfileIos } = require('./profile-ios');
19
+ /**
20
+ * Resolves files shipped with the installed package.
21
+ *
22
+ * @returns {string}
23
+ */
24
+ function resolvePackageRoot() {
25
+ return path.resolve(__dirname, '..', '..');
26
+ }
18
27
  /**
19
28
  * Prints CLI usage.
20
29
  *
@@ -60,16 +69,16 @@ function parseArgs(argv) {
60
69
  * @returns {Promise<DemoLoopResult>}
61
70
  */
62
71
  async function runDemoLoop({ outputDir = path.resolve('artifacts/demo-loop') } = {}) {
63
- const root = process.cwd();
72
+ const packageRoot = resolvePackageRoot();
64
73
  const resolvedOutputDir = path.resolve(outputDir);
65
74
  const preflightDir = path.join(resolvedOutputDir, 'preflight', 'app-startup');
66
75
  const profileRoot = path.join(resolvedOutputDir, 'profile-runs');
67
- const configPath = path.join(root, 'core/config-template.json');
68
- const profileScenarioPath = path.join(root, 'examples/scenarios/ios/app-startup.json');
69
- const mobileScenarioPath = path.join(root, 'examples/scenarios/mobile/app-startup.json');
70
- const runnerPath = path.join(root, 'examples/runners/xcodebuildmcp-ios.json');
71
- const baselineLogPath = path.join(root, 'examples/event-logs/app-startup-baseline.log');
72
- const currentLogPath = path.join(root, 'examples/event-logs/app-startup-current.log');
76
+ const configPath = path.join(packageRoot, 'core/config-template.json');
77
+ const profileScenarioPath = path.join(packageRoot, 'examples/scenarios/ios/app-startup.json');
78
+ const mobileScenarioPath = path.join(packageRoot, 'examples/scenarios/mobile/app-startup.json');
79
+ const runnerPath = path.join(packageRoot, 'examples/runners/xcodebuildmcp-ios.json');
80
+ const baselineLogPath = path.join(packageRoot, 'examples/event-logs/app-startup-baseline.log');
81
+ const currentLogPath = path.join(packageRoot, 'examples/event-logs/app-startup-current.log');
73
82
  const preflight = await buildPlanArtifacts({
74
83
  scenarioPath: mobileScenarioPath,
75
84
  runnerPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-scenario-loop",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "Scenario orchestration and evidence collection for agent-driven software development. Bring your own runner. Keep your scenarios. Keep your evidence.",
6
6
  "license": "MIT",
@@ -55,95 +55,141 @@
55
55
  "exports": {
56
56
  ".": {
57
57
  "types": "./dist/index.d.ts",
58
- "require": "./dist/index.js"
58
+ "import": "./dist/index.js",
59
+ "require": "./dist/index.js",
60
+ "default": "./dist/index.js"
59
61
  },
60
62
  "./runner/android-adb": {
61
63
  "types": "./dist/runner/android-adb.d.ts",
62
- "require": "./dist/runner/android-adb.js"
64
+ "import": "./dist/runner/android-adb.js",
65
+ "require": "./dist/runner/android-adb.js",
66
+ "default": "./dist/runner/android-adb.js"
63
67
  },
64
68
  "./runner/android-adb-driver": {
65
69
  "types": "./dist/runner/android-adb-driver.d.ts",
66
- "require": "./dist/runner/android-adb-driver.js"
70
+ "import": "./dist/runner/android-adb-driver.js",
71
+ "require": "./dist/runner/android-adb-driver.js",
72
+ "default": "./dist/runner/android-adb-driver.js"
67
73
  },
68
74
  "./runner/agent-device-driver": {
69
75
  "types": "./dist/runner/agent-device-driver.d.ts",
70
- "require": "./dist/runner/agent-device-driver.js"
76
+ "import": "./dist/runner/agent-device-driver.js",
77
+ "require": "./dist/runner/agent-device-driver.js",
78
+ "default": "./dist/runner/agent-device-driver.js"
71
79
  },
72
80
  "./runner/argent-driver": {
73
81
  "types": "./dist/runner/argent-driver.d.ts",
74
- "require": "./dist/runner/argent-driver.js"
82
+ "import": "./dist/runner/argent-driver.js",
83
+ "require": "./dist/runner/argent-driver.js",
84
+ "default": "./dist/runner/argent-driver.js"
75
85
  },
76
86
  "./runner/agent-device": {
77
87
  "types": "./dist/runner/agent-device.d.ts",
78
- "require": "./dist/runner/agent-device.js"
88
+ "import": "./dist/runner/agent-device.js",
89
+ "require": "./dist/runner/agent-device.js",
90
+ "default": "./dist/runner/agent-device.js"
79
91
  },
80
92
  "./runner/argent": {
81
93
  "types": "./dist/runner/argent.d.ts",
82
- "require": "./dist/runner/argent.js"
94
+ "import": "./dist/runner/argent.js",
95
+ "require": "./dist/runner/argent.js",
96
+ "default": "./dist/runner/argent.js"
83
97
  },
84
98
  "./runner/check-plan": {
85
99
  "types": "./dist/runner/check-plan.d.ts",
86
- "require": "./dist/runner/check-plan.js"
100
+ "import": "./dist/runner/check-plan.js",
101
+ "require": "./dist/runner/check-plan.js",
102
+ "default": "./dist/runner/check-plan.js"
87
103
  },
88
104
  "./runner/compare": {
89
105
  "types": "./dist/runner/compare.d.ts",
90
- "require": "./dist/runner/compare.js"
106
+ "import": "./dist/runner/compare.js",
107
+ "require": "./dist/runner/compare.js",
108
+ "default": "./dist/runner/compare.js"
91
109
  },
92
110
  "./runner/compare-latest": {
93
111
  "types": "./dist/runner/compare-latest.d.ts",
94
- "require": "./dist/runner/compare-latest.js"
112
+ "import": "./dist/runner/compare-latest.js",
113
+ "require": "./dist/runner/compare-latest.js",
114
+ "default": "./dist/runner/compare-latest.js"
95
115
  },
96
116
  "./runner/demo-loop": {
97
117
  "types": "./dist/runner/demo-loop.d.ts",
98
- "require": "./dist/runner/demo-loop.js"
118
+ "import": "./dist/runner/demo-loop.js",
119
+ "require": "./dist/runner/demo-loop.js",
120
+ "default": "./dist/runner/demo-loop.js"
99
121
  },
100
122
  "./runner/example-android-live": {
101
123
  "types": "./dist/runner/example-android-live.d.ts",
102
- "require": "./dist/runner/example-android-live.js"
124
+ "import": "./dist/runner/example-android-live.js",
125
+ "require": "./dist/runner/example-android-live.js",
126
+ "default": "./dist/runner/example-android-live.js"
103
127
  },
104
128
  "./runner/example-ios-live": {
105
129
  "types": "./dist/runner/example-ios-live.d.ts",
106
- "require": "./dist/runner/example-ios-live.js"
130
+ "import": "./dist/runner/example-ios-live.js",
131
+ "require": "./dist/runner/example-ios-live.js",
132
+ "default": "./dist/runner/example-ios-live.js"
107
133
  },
108
134
  "./runner/host-doctor": {
109
135
  "types": "./dist/runner/host-doctor.d.ts",
110
- "require": "./dist/runner/host-doctor.js"
136
+ "import": "./dist/runner/host-doctor.js",
137
+ "require": "./dist/runner/host-doctor.js",
138
+ "default": "./dist/runner/host-doctor.js"
111
139
  },
112
140
  "./runner/init-project": {
113
141
  "types": "./dist/runner/init-project.d.ts",
114
- "require": "./dist/runner/init-project.js"
142
+ "import": "./dist/runner/init-project.js",
143
+ "require": "./dist/runner/init-project.js",
144
+ "default": "./dist/runner/init-project.js"
115
145
  },
116
146
  "./runner/ios-simctl": {
117
147
  "types": "./dist/runner/ios-simctl.d.ts",
118
- "require": "./dist/runner/ios-simctl.js"
148
+ "import": "./dist/runner/ios-simctl.js",
149
+ "require": "./dist/runner/ios-simctl.js",
150
+ "default": "./dist/runner/ios-simctl.js"
119
151
  },
120
152
  "./runner/ios-simctl-driver": {
121
153
  "types": "./dist/runner/ios-simctl-driver.d.ts",
122
- "require": "./dist/runner/ios-simctl-driver.js"
154
+ "import": "./dist/runner/ios-simctl-driver.js",
155
+ "require": "./dist/runner/ios-simctl-driver.js",
156
+ "default": "./dist/runner/ios-simctl-driver.js"
123
157
  },
124
158
  "./runner/live-android": {
125
159
  "types": "./dist/runner/live-android.d.ts",
126
- "require": "./dist/runner/live-android.js"
160
+ "import": "./dist/runner/live-android.js",
161
+ "require": "./dist/runner/live-android.js",
162
+ "default": "./dist/runner/live-android.js"
127
163
  },
128
164
  "./runner/live-ios": {
129
165
  "types": "./dist/runner/live-ios.d.ts",
130
- "require": "./dist/runner/live-ios.js"
166
+ "import": "./dist/runner/live-ios.js",
167
+ "require": "./dist/runner/live-ios.js",
168
+ "default": "./dist/runner/live-ios.js"
131
169
  },
132
170
  "./runner/live-proof": {
133
171
  "types": "./dist/runner/live-proof.d.ts",
134
- "require": "./dist/runner/live-proof.js"
172
+ "import": "./dist/runner/live-proof.js",
173
+ "require": "./dist/runner/live-proof.js",
174
+ "default": "./dist/runner/live-proof.js"
135
175
  },
136
176
  "./runner/profile-ios": {
137
177
  "types": "./dist/runner/profile-ios.d.ts",
138
- "require": "./dist/runner/profile-ios.js"
178
+ "import": "./dist/runner/profile-ios.js",
179
+ "require": "./dist/runner/profile-ios.js",
180
+ "default": "./dist/runner/profile-ios.js"
139
181
  },
140
182
  "./runner/profile-android": {
141
183
  "types": "./dist/runner/profile-android.d.ts",
142
- "require": "./dist/runner/profile-android.js"
184
+ "import": "./dist/runner/profile-android.js",
185
+ "require": "./dist/runner/profile-android.js",
186
+ "default": "./dist/runner/profile-android.js"
143
187
  },
144
188
  "./runner/validate-project": {
145
189
  "types": "./dist/runner/validate-project.d.ts",
146
- "require": "./dist/runner/validate-project.js"
190
+ "import": "./dist/runner/validate-project.js",
191
+ "require": "./dist/runner/validate-project.js",
192
+ "default": "./dist/runner/validate-project.js"
147
193
  },
148
194
  "./schemas/*": "./schemas/*",
149
195
  "./examples/*": "./examples/*",