agenter 0.0.1 → 0.0.2

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/bin/agenter.js CHANGED
File without changes
package/dist/agenter.js CHANGED
@@ -14708,6 +14708,7 @@ var init_descriptor = __esm(() => {
14708
14708
  productCommandDescriptorSchema = exports_external.object({
14709
14709
  productId: productIdSchema,
14710
14710
  command: productCommandSchema,
14711
+ description: exports_external.string().trim().min(1).optional(),
14711
14712
  packageName: productPackageNameSchema,
14712
14713
  bin: productBinDescriptorSchema,
14713
14714
  sourcePolicy: productSourcePolicySchema,
@@ -343951,6 +343952,7 @@ var init_src25 = __esm(async () => {
343951
343952
  // packages/cli/src/run-cli.ts
343952
343953
  import { spawn as spawnChildProcess } from "child_process";
343953
343954
  import { existsSync as existsSync38 } from "fs";
343955
+ import { createRequire as createRequire5 } from "module";
343954
343956
  import { request as httpRequest2 } from "http";
343955
343957
  import { request as httpsRequest } from "https";
343956
343958
  import { homedir as homedir25 } from "os";
@@ -348821,6 +348823,7 @@ var productCommandDescriptors = [
348821
348823
  productCommandDescriptorSchema.parse({
348822
348824
  productId: "cli-shell",
348823
348825
  command: "shell",
348826
+ description: "run cli-shell terminal workspace",
348824
348827
  packageName: "agenter-ext-shell",
348825
348828
  bin: {
348826
348829
  name: "agenter-cli-shell",
@@ -348837,6 +348840,7 @@ var productCommandDescriptors = [
348837
348840
  productCommandDescriptorSchema.parse({
348838
348841
  productId: "studio",
348839
348842
  command: "studio",
348843
+ description: "run Studio web UI",
348840
348844
  packageName: "agenter-ext-studio",
348841
348845
  bin: {
348842
348846
  name: "agenter-studio",
@@ -348852,6 +348856,7 @@ var productCommandDescriptors = [
348852
348856
  })
348853
348857
  ];
348854
348858
  var descriptorByCommand = new Map(productCommandDescriptors.map((descriptor) => [descriptor.command, descriptor]));
348859
+ var listProductCommandDescriptors = () => productCommandDescriptors;
348855
348860
  var resolveProductCommandDescriptor = (command2) => descriptorByCommand.get(command2) ?? null;
348856
348861
 
348857
348862
  // packages/cli/src/product-command-launcher.ts
@@ -349052,6 +349057,13 @@ var buildProductLaunchEnv = (input) => {
349052
349057
  };
349053
349058
  var resolveProductPackageRunner = (env2 = process.env) => env2.AGENTER_PRODUCT_PACKAGE_RUNNER?.trim() || DEFAULT_PRODUCT_PACKAGE_RUNNER;
349054
349059
  var isProductMetadataOnlyArgv = (productArgv) => productArgv.some((token) => metadataOnlyTokens.has(token));
349060
+ var applyProductCommandsToYargs = (builder) => {
349061
+ let next = builder;
349062
+ for (const descriptor of listProductCommandDescriptors()) {
349063
+ next = next.command(descriptor.command, descriptor.description ?? `run ${descriptor.productId}`, (commandBuilder) => commandBuilder, () => {});
349064
+ }
349065
+ return next;
349066
+ };
349055
349067
  var buildProductProcessCommand = (target, descriptor, productArgv, env2 = process.env) => {
349056
349068
  if (target.source !== "remote") {
349057
349069
  return [BUN_BIN, "run", target.binPath, ...productArgv];
@@ -349070,6 +349082,7 @@ init_daemon_runtime_descriptor();
349070
349082
  var INTERNAL_DAEMON_FOREGROUND_ENV = "AGENTER_INTERNAL_DAEMON_FOREGROUND";
349071
349083
  var BUNDLED_ASSETS_ROOT_ENV3 = "AGENTER_BUNDLED_ASSETS_ROOT";
349072
349084
  var MANAGED_DAEMON_START_TIMEOUT_MS = 15000;
349085
+ var packageJson = createRequire5(import.meta.url)("../package.json");
349073
349086
  var waitForSignal = async (cleanup) => {
349074
349087
  await new Promise((resolve58) => {
349075
349088
  const onSignal = async () => {
@@ -349504,7 +349517,7 @@ var runCli = async (argvInput = process.argv) => {
349504
349517
  if (await launchProductCommand(rawArgs)) {
349505
349518
  return;
349506
349519
  }
349507
- const argv = await yargs_default(rawArgs).scriptName("agenter").option("host", {
349520
+ const argv = await applyProductCommandsToYargs(yargs_default(rawArgs).scriptName("agenter").version(packageJson.version ?? "unknown").option("host", {
349508
349521
  type: "string",
349509
349522
  default: "127.0.0.1",
349510
349523
  describe: "daemon host"
@@ -349512,7 +349525,7 @@ var runCli = async (argvInput = process.argv) => {
349512
349525
  type: "number",
349513
349526
  default: 4580,
349514
349527
  describe: "daemon port"
349515
- }).command(["auth-service", "profile-service"], "start standalone auth-service (profile-service remains a deprecated compatibility alias)", (builder) => builder.option("port", {
349528
+ })).command(["auth-service", "profile-service"], "start standalone auth-service (profile-service remains a deprecated compatibility alias)", (builder) => builder.option("port", {
349516
349529
  type: "number",
349517
349530
  default: 4591,
349518
349531
  describe: "auth-service port"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenter",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "agenter": "bin/agenter.js"