@nwire/please 0.10.1 → 0.11.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.
@@ -21,7 +21,7 @@
21
21
  * back to the action/query surface. This keeps the action graph clean and
22
22
  * pushes ops scripts to the layer they belong on.
23
23
  */
24
- import type { ForgeApp } from "@nwire/forge";
24
+ import type { App } from "@nwire/app";
25
25
  import type { SourceLocation } from "@nwire/messages";
26
26
  /**
27
27
  * Minimal zod-like schema contract — anything with `.parse(input) → output`.
@@ -42,7 +42,7 @@ export interface CommandContext {
42
42
  /** Look up a dependency by name (container.resolve shortcut). */
43
43
  resolve<T = unknown>(name: string): T;
44
44
  /** The booted app the command was dispatched against. */
45
- readonly app: ForgeApp;
45
+ readonly app: App;
46
46
  }
47
47
  export interface CommandHandlerArgs<TArgs> {
48
48
  readonly args: TArgs;
package/dist/please.d.ts CHANGED
@@ -10,10 +10,10 @@
10
10
  * Dispatches against any registered action/query in any provided app, or
11
11
  * a named operator-script command.
12
12
  */
13
- import { type ForgeApp } from "@nwire/forge";
13
+ import type { App } from "@nwire/app";
14
14
  import type { CommandDefinition } from "./define-command.js";
15
15
  export interface RunPleaseOptions {
16
- readonly apps: readonly ForgeApp[];
16
+ readonly apps: readonly App[];
17
17
  readonly argv: readonly string[];
18
18
  readonly stdout?: (line: string) => void;
19
19
  readonly stderr?: (line: string) => void;
package/dist/please.js CHANGED
@@ -10,7 +10,7 @@
10
10
  * Dispatches against any registered action/query in any provided app, or
11
11
  * a named operator-script command.
12
12
  */
13
- import { runCli } from "@nwire/forge";
13
+ import { runCli, forgeDispatcher } from "@nwire/forge";
14
14
  export async function runPlease(options) {
15
15
  const instances = options.apps;
16
16
  await Promise.all(instances.map((a) => a.start()));
@@ -125,7 +125,7 @@ function coerceFlag(value) {
125
125
  return value;
126
126
  }
127
127
  function actionOrQueryNames(app) {
128
- const dispatcher = app.dispatcher();
128
+ const dispatcher = forgeDispatcher(app);
129
129
  return [...dispatcher.listHandlers(), ...dispatcher.listQueries()];
130
130
  }
131
131
  function printAllHelp(instances, commands, out) {
@@ -140,7 +140,7 @@ function printAllHelp(instances, commands, out) {
140
140
  }
141
141
  for (const app of instances) {
142
142
  out(`# App: ${app.appName}`);
143
- const dispatcher = app.dispatcher();
143
+ const dispatcher = forgeDispatcher(app);
144
144
  for (const name of dispatcher.listHandlers())
145
145
  out(` ${name}`);
146
146
  for (const name of dispatcher.listQueries())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nwire/please",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "Nwire — operator CLI. runPlease dispatches actions/queries by name across all registered apps; --tenant for tenant scoping; --help lists everything. Scaffolding (make:module / make:action) lands on top.",
5
5
  "keywords": [
6
6
  "ace",
@@ -28,8 +28,9 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@nwire/forge": "0.10.1",
32
- "@nwire/messages": "0.10.1"
31
+ "@nwire/messages": "0.11.0",
32
+ "@nwire/app": "0.11.0",
33
+ "@nwire/forge": "0.11.0"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@types/node": "^22.19.9",