@akala/pm 15.2.7 → 15.2.9

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.
Files changed (57) hide show
  1. package/changelog.md +3 -2
  2. package/cli-commands.json +59 -59
  3. package/commands.json +61 -55
  4. package/dist/esm/akala.mjs +1 -1
  5. package/dist/esm/akala.mjs.map +1 -1
  6. package/dist/esm/cli-commands/link.js +1 -1
  7. package/dist/esm/cli-commands/link.js.map +1 -1
  8. package/dist/esm/cli-commands/run.js +2 -2
  9. package/dist/esm/cli-commands/run.js.map +1 -1
  10. package/dist/esm/cli-commands/start.js +1 -1
  11. package/dist/esm/cli-commands/start.js.map +1 -1
  12. package/dist/esm/cli-container.js +1 -1
  13. package/dist/esm/cli-container.js.map +1 -1
  14. package/dist/esm/commands/$init.js +2 -2
  15. package/dist/esm/commands/$init.js.map +1 -1
  16. package/dist/esm/container.js +1 -1
  17. package/dist/esm/container.js.map +1 -1
  18. package/dist/esm/fork.js +1 -1
  19. package/dist/esm/fork.js.map +1 -1
  20. package/dist/esm/runtimes/child_process.js +2 -1
  21. package/dist/esm/runtimes/child_process.js.map +1 -1
  22. package/dist/esm/standalone.js +1 -1
  23. package/dist/esm/standalone.js.map +1 -1
  24. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  25. package/package.json +7 -7
  26. package/src/akala.mts +1 -1
  27. package/src/cli-commands/connect.json +3 -3
  28. package/src/cli-commands/discover.json +3 -3
  29. package/src/cli-commands/install.json +3 -3
  30. package/src/cli-commands/link.json +5 -5
  31. package/src/cli-commands/link.ts +1 -1
  32. package/src/cli-commands/log.json +3 -3
  33. package/src/cli-commands/map.json +5 -5
  34. package/src/cli-commands/run.json +2 -2
  35. package/src/cli-commands/run.ts +2 -2
  36. package/src/cli-commands/start.json +2 -2
  37. package/src/cli-commands/start.ts +1 -1
  38. package/src/cli-commands/uninstall.json +3 -3
  39. package/src/cli-commands/update.json +3 -3
  40. package/src/cli-commands/version.json +7 -7
  41. package/src/cli-container.ts +1 -1
  42. package/src/commands/$init.json +1 -1
  43. package/src/commands/$init.ts +2 -2
  44. package/src/commands/bridge.json +4 -4
  45. package/src/commands/proxy.json +4 -4
  46. package/src/commands/ready.json +2 -2
  47. package/src/commands/reload-metadata.json +3 -3
  48. package/src/commands/restart.json +10 -10
  49. package/src/commands/start.json +13 -13
  50. package/src/commands/status.json +6 -6
  51. package/src/commands/stop.json +5 -5
  52. package/src/container.ts +1 -1
  53. package/src/fork.ts +1 -1
  54. package/src/runtimes/child_process.ts +2 -1
  55. package/src/standalone.ts +1 -1
  56. package/src/test/pwet.json +2 -2
  57. package/test.json +5 -5
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "pm": "dist/esm/cli.js",
5
5
  "pm-fork": "dist/esm/fork.js"
6
6
  },
7
- "version": "15.2.7",
7
+ "version": "15.2.9",
8
8
  "scripts": {
9
9
  "test": "echo 1",
10
10
  "generate": "ac generate dist/esm/commands commands.json --name pm && ac generate dist/esm/cli-commands cli-commands.json --name pm",
@@ -29,18 +29,18 @@
29
29
  "src/fork.ts"
30
30
  ],
31
31
  "dependencies": {
32
- "@akala/cli": "^5.9.2",
33
- "@akala/commands": "^15.1.3",
34
- "@akala/config": "^6.0.73",
35
- "@akala/core": "^39.3.1",
36
- "@akala/json-rpc-ws": "^11.0.81",
32
+ "@akala/cli": "^5.9.3",
33
+ "@akala/commands": "^16.0.0",
34
+ "@akala/config": "^6.0.74",
35
+ "@akala/core": "^39.4.0",
36
+ "@akala/json-rpc-ws": "^11.0.82",
37
37
  "reflect-metadata": "^0.2.2",
38
38
  "source-map-support": "^0.5.21"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/debug": "^4.1.12",
42
42
  "@types/mock-require": "^3.0.0",
43
- "@types/node": "^22.15.18",
43
+ "@types/node": "^22.15.29",
44
44
  "@types/source-map-support": "^0.5.10",
45
45
  "@types/ws": "^8.18.1",
46
46
  "typescript": "^5.8.3"
package/src/akala.mts CHANGED
@@ -41,7 +41,7 @@ if (process.connected)
41
41
 
42
42
  return {
43
43
  processor: new Processors.JsonRpc(connection),
44
- getMetadata: () => new Promise<Metadata.Container>((resolve, reject) => connection.sendMethod<any, any>('$metadata', { param: true }, (err, metadata) =>
44
+ getMetadata: () => new Promise<Metadata.Container>((resolve, reject) => connection.sendMethod<any, any>('$metadata', { params: true }, (err, metadata) =>
45
45
  typeof (err) == 'undefined' ? resolve(metadata) : reject(err)
46
46
  ))
47
47
  };
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "": {
3
3
  "inject": [
4
- "param.0",
5
- "param.1"
4
+ "params.0",
5
+ "params.1"
6
6
  ]
7
7
  },
8
8
  "cli": {
@@ -30,4 +30,4 @@
30
30
  }
31
31
  },
32
32
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json"
33
- }
33
+ }
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1",
5
+ "params.0",
6
+ "params.1",
7
7
  "$container"
8
8
  ]
9
9
  },
@@ -20,4 +20,4 @@
20
20
  "$container"
21
21
  ]
22
22
  }
23
- }
23
+ }
@@ -2,14 +2,14 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
5
+ "params.0",
6
6
  "$container"
7
7
  ]
8
8
  },
9
9
  "cli": {
10
10
  "inject": [
11
- "param.0",
11
+ "params.0",
12
12
  "$container"
13
13
  ]
14
14
  }
15
- }
15
+ }
@@ -2,16 +2,16 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1",
5
+ "params.0",
6
+ "params.1",
7
7
  "$container"
8
8
  ]
9
9
  },
10
10
  "cli": {
11
11
  "inject": [
12
- "param.0",
13
- "param.1",
12
+ "params.0",
13
+ "params.1",
14
14
  "$container"
15
15
  ]
16
16
  }
17
- }
17
+ }
@@ -15,4 +15,4 @@ export default async function link(this: State, packageName: string, folder: str
15
15
  return await pm.dispatch('discover', packageName, folder) as ReturnType<typeof discover>;
16
16
  }
17
17
 
18
- exports.default.$inject = ['param.0', 'param.1', '$container']
18
+ exports.default.$inject = ['params.0', 'params.1', '$container']
@@ -2,12 +2,12 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0"
5
+ "params.0"
6
6
  ]
7
7
  },
8
8
  "cli": {
9
9
  "inject": [
10
- "param.0"
10
+ "params.0"
11
11
  ]
12
12
  }
13
- }
13
+ }
@@ -2,11 +2,11 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1",
7
- "param.2",
8
- "param.3",
9
- "param.4"
5
+ "params.0",
6
+ "params.1",
7
+ "params.2",
8
+ "params.3",
9
+ "params.4"
10
10
  ]
11
11
  },
12
12
  "cli": {
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1"
5
+ "params.0",
6
+ "params.1"
7
7
  ]
8
8
  },
9
9
  "jsonrpc": false,
@@ -68,7 +68,7 @@ export default async function run(program: string, name: string, c: CliContext<{
68
68
  pm2.container.register(Metadata.extractCommandMetadata(pm.resolve('bridge')));
69
69
  if (!await pm2.container.dispatch('bridge', connectionId))
70
70
  throw new Error('connection could not be established');
71
- }, '$bridge', ['param.0']));
71
+ }, '$bridge', ['params.0']));
72
72
 
73
73
  if (init)
74
74
  {
@@ -102,7 +102,7 @@ export default async function run(program: string, name: string, c: CliContext<{
102
102
  if (pm !== cliContainer)
103
103
  await pm.dispatch('ready')
104
104
  else
105
- await pm.dispatch('ready', { _trigger: 'pm', param: [pm] })
105
+ await pm.dispatch('ready', { _trigger: 'pm', params: [pm] })
106
106
 
107
107
 
108
108
  return new Promise(resolve => c.abort.signal.addEventListener('abort', resolve))
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1"
5
+ "params.0",
6
+ "params.1"
7
7
  ]
8
8
  },
9
9
  "cli": {
@@ -37,4 +37,4 @@ export default async function start(this: State, name: string, context?: CliCont
37
37
  });
38
38
  }
39
39
 
40
- start.$inject = ['$container', 'param.0', 'options']
40
+ start.$inject = ['$container', 'params.0', 'options']
@@ -2,14 +2,14 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
5
+ "params.0",
6
6
  "$container"
7
7
  ]
8
8
  },
9
9
  "cli": {
10
10
  "inject": [
11
- "param.0",
11
+ "params.0",
12
12
  "$container"
13
13
  ]
14
14
  }
15
- }
15
+ }
@@ -2,9 +2,9 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "cli": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1",
5
+ "params.0",
6
+ "params.1",
7
7
  "$container"
8
8
  ]
9
9
  }
10
- }
10
+ }
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
6
- "param.1"
5
+ "params.0",
6
+ "params.1"
7
7
  ]
8
8
  },
9
9
  "cli": {
@@ -15,16 +15,16 @@
15
15
  },
16
16
  "schema": {
17
17
  "inject": [
18
- "param.0",
19
- "param.1"
18
+ "params.0",
19
+ "params.1"
20
20
  ],
21
21
  "$defs": {
22
- "param.0": {
22
+ "params.0": {
23
23
  "type": "string"
24
24
  },
25
- "param.1": {
25
+ "params.1": {
26
26
  "type": "string"
27
27
  }
28
28
  }
29
29
  }
30
- }
30
+ }
@@ -38,7 +38,7 @@ namespace cliCommands
38
38
  'update'(...args: [Argument0<typeof import('./cli-commands/update.js').default>, Argument1<typeof import('./cli-commands/update.js').default>, Argument2<typeof import('./cli-commands/update.js').default>]): ReturnType<typeof import('./cli-commands/update.js').default>
39
39
  'version'(...args: [Argument0<typeof import('./cli-commands/version.js').default>, Argument1<typeof import('./cli-commands/version.js').default>]): ReturnType<typeof import('./cli-commands/version.js').default>
40
40
  }
41
- export const meta={"name":"pm","commands":[{"name":"$init","config":{"fs":{"path":"dist/esm/cli-commands/$init.js","source":"src/cli-commands/$init.ts","inject":["param.0"]},"cli":{"inject":["context"],"options":{"pmSock":{"aliases":["pm-sock"],"needsValue":true}}},"":{"inject":["param.0"]}}},{"name":"connect","config":{"fs":{"path":"dist/esm/cli-commands/connect.js","source":"src/cli-commands/connect.ts","inject":["param.0","param.1"]},"":{"inject":["param.0","param.1"]},"cli":{"usage":"connect <name>","inject":["options.name","context"],"options":{"tcpPort":{"needsValue":true,"aliases":["tcp-port"]},"port":{"needsValue":true},"key":{"needsValue":true},"cert":{"needsValue":true}}}}},{"name":"discover","config":{"fs":{"path":"dist/esm/cli-commands/discover.js","source":"src/cli-commands/discover.ts","inject":["param.0","param.1","$container"]},"":{"inject":["param.0","param.1","$container"]},"cli":{"usage":"discover <name> <folder>","options":{"folder":{"normalize":true}},"inject":["options.name","options.folder","$container"]}}},{"name":"install","config":{"fs":{"path":"dist/esm/cli-commands/install.js","source":"src/cli-commands/install.ts","inject":["param.0","$container"]},"":{"inject":["param.0","$container"]},"cli":{"inject":["param.0","$container"]}}},{"name":"link","config":{"fs":{"path":"dist/esm/cli-commands/link.js","source":"src/cli-commands/link.ts","inject":["param.0","param.1","$container"]},"":{"inject":["param.0","param.1","$container"]},"cli":{"inject":["param.0","param.1","$container"]}}},{"name":"log","config":{"fs":{"path":"dist/esm/cli-commands/log.js","source":"src/cli-commands/log.ts","inject":["param.0"]},"":{"inject":["param.0"]},"cli":{"inject":["param.0"]}}},{"name":"ls","config":{"fs":{"path":"dist/esm/cli-commands/ls.js","source":"src/cli-commands/ls.ts","inject":[]},"":{"inject":[]},"cli":{"inject":[]},"html-form":{"inject":[]}}},{"name":"map","config":{"fs":{"path":"dist/esm/cli-commands/map.js","source":"src/cli-commands/map.ts","inject":["param.0","param.1","param.2","param.3","param.4"]},"":{"inject":["param.0","param.1","param.2","param.3","param.4"]},"cli":{"inject":["options.name","options.path","options.runtime","cwd","options"],"options":{"commandable":{"aliases":["c"],"needsValue":false},"stateless":{"aliases":["s"],"needsValue":false},"runtime":{"aliases":["r"],"needsValue":true}},"usage":"map <name> <path>"}}},{"name":"run","config":{"fs":{"path":"dist/esm/cli-commands/run.js","source":"src/cli-commands/run.ts","inject":["param.0","param.1"]},"":{"inject":["param.0","param.1"]},"jsonrpc":false,"cli":{"options":{"output":{"aliases":["o"],"needsValue":true,"doc":"output as `table` if array otherwise falls back to standard node output"},"verbose":{"aliases":["v"]},"tls":{"doc":"enables tls connection to the `pmSock`"},"pmSock":{"aliases":["pm-sock"],"needsValue":true,"doc":"path to the unix socket or destination in the form host:port"},"help":{"doc":"displays this help message"},"keepAttached":{"aliases":["keep-attached"],"needsValue":false,"doc":"keeps the process attached to the current terminal"},"wait":{"aliases":["w"],"needsValue":false,"doc":"waits for the program to be started before returning, otherwise, returns after the start command is sent to the pm daemon"},"inspect":{"needsValue":false,"doc":"starts the process with --inspect-brk parameter to help debugging"},"new":{"needsValue":false},"name":{"doc":"name to assign to the process","needsValue":true},"program":{"doc":"program to start"}},"inject":["options.program","options.name","context","options.pmSock"],"usage":"run <name> [...args]"}}},{"name":"start","config":{"fs":{"path":"dist/esm/cli-commands/start.js","source":"src/cli-commands/start.ts","inject":["param.0","param.1"]},"":{"inject":["param.0","param.1"]},"cli":{"options":{"output":{"aliases":["o"],"needsValue":true,"doc":"output as `table` if array otherwise falls back to standard node output"},"verbose":{"aliases":["v"]},"tls":{"doc":"enables tls connection to the `pmSock`"},"pmSock":{"aliases":["pm-sock"],"needsValue":true,"doc":"path to the unix socket or destination in the form host:port"},"help":{"doc":"displays this help message"},"keepAttached":{"aliases":["keep-attached"],"needsValue":false,"doc":"keeps the process attached to the current terminal"},"wait":{"aliases":["w"],"needsValue":false,"doc":"waits for the program to be started before returning, otherwise, returns after the start command is sent to the pm daemon"},"inspect":{"needsValue":false,"doc":"starts the process with --inspect-brk parameter to help debugging"}},"inject":["options.program","context"],"usage":"start pm"}}},{"name":"uninstall","config":{"fs":{"path":"dist/esm/cli-commands/uninstall.js","source":"src/cli-commands/uninstall.ts","inject":["param.0","$container"]},"":{"inject":["param.0","$container"]},"cli":{"inject":["param.0","$container"]}}},{"name":"update","config":{"fs":{"path":"dist/esm/cli-commands/update.js","source":"src/cli-commands/update.ts","inject":["param.0","param.1","param.2"]},"cli":{"inject":["param.0","param.1","$container"]},"":{"inject":["param.0","param.1","param.2"]}}},{"name":"version","config":{"fs":{"path":"dist/esm/cli-commands/version.js","source":"src/cli-commands/version.ts","inject":["param.0","param.1"]},"":{"inject":["param.0","param.1"]},"cli":{"inject":["options.packageName","options.folder"],"usage":"version <packageName> [folder]"},"schema":{"inject":["param.0","param.1"],"$defs":{"param.0":{"type":"string"},"param.1":{"type":"string"}}}}}],"$schema":"https://raw.githubusercontent.com/npenin/akala/main/packages/commands/container-schema.json"} as Metadata.Container;
41
+ export const meta={"name":"pm","commands":[{"name":"$init","config":{"fs":{"path":"dist/esm/cli-commands/$init.js","source":"src/cli-commands/$init.ts","inject":["params.0"]},"cli":{"inject":["context"],"options":{"pmSock":{"aliases":["pm-sock"],"needsValue":true}}},"":{"inject":["params.0"]}}},{"name":"connect","config":{"fs":{"path":"dist/esm/cli-commands/connect.js","source":"src/cli-commands/connect.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"cli":{"usage":"connect <name>","inject":["options.name","context"],"options":{"tcpPort":{"needsValue":true,"aliases":["tcp-port"]},"port":{"needsValue":true},"key":{"needsValue":true},"cert":{"needsValue":true}}}}},{"name":"discover","config":{"fs":{"path":"dist/esm/cli-commands/discover.js","source":"src/cli-commands/discover.ts","inject":["params.0","params.1","$container"]},"":{"inject":["params.0","params.1","$container"]},"cli":{"usage":"discover <name> <folder>","options":{"folder":{"normalize":true}},"inject":["options.name","options.folder","$container"]}}},{"name":"install","config":{"fs":{"path":"dist/esm/cli-commands/install.js","source":"src/cli-commands/install.ts","inject":["params.0","$container"]},"":{"inject":["params.0","$container"]},"cli":{"inject":["params.0","$container"]}}},{"name":"link","config":{"fs":{"path":"dist/esm/cli-commands/link.js","source":"src/cli-commands/link.ts","inject":["params.0","params.1","$container"]},"":{"inject":["params.0","params.1","$container"]},"cli":{"inject":["params.0","params.1","$container"]}}},{"name":"log","config":{"fs":{"path":"dist/esm/cli-commands/log.js","source":"src/cli-commands/log.ts","inject":["params.0"]},"":{"inject":["params.0"]},"cli":{"inject":["params.0"]}}},{"name":"ls","config":{"fs":{"path":"dist/esm/cli-commands/ls.js","source":"src/cli-commands/ls.ts","inject":[]},"":{"inject":[]},"cli":{"inject":[]},"html-form":{"inject":[]}}},{"name":"map","config":{"fs":{"path":"dist/esm/cli-commands/map.js","source":"src/cli-commands/map.ts","inject":["params.0","params.1","params.2","params.3","params.4"]},"":{"inject":["params.0","params.1","params.2","params.3","params.4"]},"cli":{"inject":["options.name","options.path","options.runtime","cwd","options"],"options":{"commandable":{"aliases":["c"],"needsValue":false},"stateless":{"aliases":["s"],"needsValue":false},"runtime":{"aliases":["r"],"needsValue":true}},"usage":"map <name> <path>"}}},{"name":"run","config":{"fs":{"path":"dist/esm/cli-commands/run.js","source":"src/cli-commands/run.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"jsonrpc":false,"cli":{"options":{"output":{"aliases":["o"],"needsValue":true,"doc":"output as `table` if array otherwise falls back to standard node output"},"verbose":{"aliases":["v"]},"tls":{"doc":"enables tls connection to the `pmSock`"},"pmSock":{"aliases":["pm-sock"],"needsValue":true,"doc":"path to the unix socket or destination in the form host:port"},"help":{"doc":"displays this help message"},"keepAttached":{"aliases":["keep-attached"],"needsValue":false,"doc":"keeps the process attached to the current terminal"},"wait":{"aliases":["w"],"needsValue":false,"doc":"waits for the program to be started before returning, otherwise, returns after the start command is sent to the pm daemon"},"inspect":{"needsValue":false,"doc":"starts the process with --inspect-brk parameter to help debugging"},"new":{"needsValue":false},"name":{"doc":"name to assign to the process","needsValue":true},"program":{"doc":"program to start"}},"inject":["options.program","options.name","context","options.pmSock"],"usage":"run <name> [...args]"}}},{"name":"start","config":{"fs":{"path":"dist/esm/cli-commands/start.js","source":"src/cli-commands/start.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"cli":{"options":{"output":{"aliases":["o"],"needsValue":true,"doc":"output as `table` if array otherwise falls back to standard node output"},"verbose":{"aliases":["v"]},"tls":{"doc":"enables tls connection to the `pmSock`"},"pmSock":{"aliases":["pm-sock"],"needsValue":true,"doc":"path to the unix socket or destination in the form host:port"},"help":{"doc":"displays this help message"},"keepAttached":{"aliases":["keep-attached"],"needsValue":false,"doc":"keeps the process attached to the current terminal"},"wait":{"aliases":["w"],"needsValue":false,"doc":"waits for the program to be started before returning, otherwise, returns after the start command is sent to the pm daemon"},"inspect":{"needsValue":false,"doc":"starts the process with --inspect-brk parameter to help debugging"}},"inject":["options.program","context"],"usage":"start pm"}}},{"name":"uninstall","config":{"fs":{"path":"dist/esm/cli-commands/uninstall.js","source":"src/cli-commands/uninstall.ts","inject":["params.0","$container"]},"":{"inject":["params.0","$container"]},"cli":{"inject":["params.0","$container"]}}},{"name":"update","config":{"fs":{"path":"dist/esm/cli-commands/update.js","source":"src/cli-commands/update.ts","inject":["params.0","params.1","params.2"]},"cli":{"inject":["params.0","params.1","$container"]},"":{"inject":["params.0","params.1","params.2"]}}},{"name":"version","config":{"fs":{"path":"dist/esm/cli-commands/version.js","source":"src/cli-commands/version.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"cli":{"inject":["options.packageName","options.folder"],"usage":"version <packageName> [folder]"},"schema":{"inject":["params.0","params.1"],"$defs":{"params.0":{"type":"string"},"params.1":{"type":"string"}}}}}],"$schema":"https://raw.githubusercontent.com/npenin/akala/main/packages/commands/container-schema.json"} as Metadata.Container;
42
42
 
43
43
  export function connect(processor?:ICommandProcessor) {
44
44
  const container = new Container<void>("cliCommands", void 0);
@@ -6,7 +6,7 @@
6
6
  "": {
7
7
  "inject": [
8
8
  "$container",
9
- "param.0"
9
+ "params.0"
10
10
  ]
11
11
  },
12
12
  "cli": {
@@ -112,7 +112,7 @@ export default async function (this: State, container: RunningContainer & pmCont
112
112
  container.name = 'pm';
113
113
  const config = container.resolve<Metadata.Configurations>('$metadata.config');
114
114
  container.unregister('$metadata');
115
- container.register(configure(config)(new SelfDefinedCommand(metadata, '$metadata', ['$container', 'param.0'])));
115
+ container.register(configure(config)(new SelfDefinedCommand(metadata, '$metadata', ['$container', 'params.0'])));
116
116
 
117
117
  const setup = this.config.setup?.packages;
118
118
  if (setup?.length > 0)
@@ -159,6 +159,6 @@ export default async function (this: State, container: RunningContainer & pmCont
159
159
 
160
160
  context.abort.signal.addEventListener('abort', async () =>
161
161
  {
162
- await container.dispatch('stop', { param: ['pm'] });
162
+ await container.dispatch('stop', { params: ['pm'] });
163
163
  });
164
164
  }
@@ -2,14 +2,14 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "jsonrpc": {
4
4
  "inject": [
5
- "param.0",
5
+ "params.0",
6
6
  "socket"
7
7
  ]
8
8
  },
9
9
  "": {
10
10
  "inject": [
11
- "param.0",
12
- "param.1"
11
+ "params.0",
12
+ "params.1"
13
13
  ]
14
14
  }
15
- }
15
+ }
@@ -2,14 +2,14 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "jsonrpc": {
4
4
  "inject": [
5
- "param.0",
5
+ "params.0",
6
6
  "socket"
7
7
  ]
8
8
  },
9
9
  "": {
10
10
  "inject": [
11
- "param.0",
12
- "param.1"
11
+ "params.0",
12
+ "params.1"
13
13
  ]
14
14
  }
15
- }
15
+ }
@@ -10,13 +10,13 @@
10
10
  "pm": {
11
11
  "inject": [
12
12
  "$container",
13
- "param.0"
13
+ "params.0"
14
14
  ]
15
15
  },
16
16
  "": {
17
17
  "inject": [
18
18
  "$container",
19
- "param.0"
19
+ "params.0"
20
20
  ]
21
21
  }
22
22
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "fs": {
4
4
  "inject": [
5
- "param.0"
5
+ "params.0"
6
6
  ]
7
7
  },
8
8
  "jsonrpc": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "": {
14
14
  "inject": [
15
- "param.0"
15
+ "params.0"
16
16
  ]
17
17
  }
18
- }
18
+ }
@@ -3,8 +3,8 @@
3
3
  "": {
4
4
  "inject": [
5
5
  "$container",
6
- "param.0",
7
- "param.1"
6
+ "params.0",
7
+ "params.1"
8
8
  ]
9
9
  },
10
10
  "cli": {
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "inject": [
35
35
  "$container",
36
- "param.0",
36
+ "params.0",
37
37
  "context"
38
38
  ],
39
39
  "usage": "restart <program>"
@@ -41,14 +41,14 @@
41
41
  "schema": {
42
42
  "inject": [
43
43
  "$container",
44
- "param.0",
45
- "param.1"
44
+ "params.0",
45
+ "params.1"
46
46
  ],
47
47
  "$defs": {
48
- "param.0": {
48
+ "params.0": {
49
49
  "type": "string"
50
50
  },
51
- "param.1": {
51
+ "params.1": {
52
52
  "type": "object",
53
53
  "properties": {
54
54
  "wait": {
@@ -61,8 +61,8 @@
61
61
  "html-form": {
62
62
  "inject": [
63
63
  "$container",
64
- "param.0",
65
- "param.1"
64
+ "params.0",
65
+ "params.1"
66
66
  ]
67
67
  }
68
- }
68
+ }
@@ -3,9 +3,9 @@
3
3
  "": {
4
4
  "inject": [
5
5
  "$container",
6
- "param.0",
7
- "param.1",
8
- "param.2"
6
+ "params.0",
7
+ "params.1",
8
+ "params.2"
9
9
  ]
10
10
  },
11
11
  "cli": {
@@ -46,23 +46,23 @@
46
46
  "html-form": {
47
47
  "inject": [
48
48
  "$container",
49
- "param.0",
50
- "param.1",
51
- "param.2"
49
+ "params.0",
50
+ "params.1",
51
+ "params.2"
52
52
  ]
53
53
  },
54
54
  "schema": {
55
55
  "inject": [
56
56
  "$container",
57
- "param.0",
58
- "param.1",
59
- "param.2"
57
+ "params.0",
58
+ "params.1",
59
+ "params.2"
60
60
  ],
61
61
  "$defs": {
62
- "param.0": {
62
+ "params.0": {
63
63
  "type": "string"
64
64
  },
65
- "param.1": {
65
+ "params.1": {
66
66
  "type": "object",
67
67
  "properties": {
68
68
  "wait": {
@@ -82,7 +82,7 @@
82
82
  }
83
83
  }
84
84
  },
85
- "param.2": {
85
+ "params.2": {
86
86
  "type": "object",
87
87
  "properties": {
88
88
  "args": {
@@ -95,4 +95,4 @@
95
95
  }
96
96
  }
97
97
  }
98
- }
98
+ }
@@ -2,28 +2,28 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0"
5
+ "params.0"
6
6
  ]
7
7
  },
8
8
  "cli": {
9
9
  "inject": [
10
- "param.0"
10
+ "params.0"
11
11
  ]
12
12
  },
13
13
  "html-form": {
14
14
  "inject": [
15
- "param.0"
15
+ "params.0"
16
16
  ]
17
17
  },
18
18
  "schema": {
19
19
  "inject": [
20
- "param.0"
20
+ "params.0"
21
21
  ],
22
22
  "$defs": {
23
- "param.0": {
23
+ "params.0": {
24
24
  "type": "string",
25
25
  "description": "The name of the container to get the status of"
26
26
  }
27
27
  }
28
28
  }
29
- }
29
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
3
3
  "": {
4
4
  "inject": [
5
- "param.0",
5
+ "params.0",
6
6
  "$container"
7
7
  ]
8
8
  },
@@ -20,19 +20,19 @@
20
20
  },
21
21
  "html-form": {
22
22
  "inject": [
23
- "param.0",
23
+ "params.0",
24
24
  "$container"
25
25
  ]
26
26
  },
27
27
  "schema": {
28
28
  "inject": [
29
- "param.0",
29
+ "params.0",
30
30
  "$container"
31
31
  ],
32
32
  "$defs": {
33
- "param.0": {
33
+ "params.0": {
34
34
  "type": "string"
35
35
  }
36
36
  }
37
37
  }
38
- }
38
+ }