argsbarg 6.1.6 → 6.1.7

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 (132) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/package.json +1 -1
  3. package/src/builtins/builtins.test.ts +4 -4
  4. package/src/builtins/completion-bash.ts +1 -1
  5. package/src/builtins/completion-fish.ts +1 -1
  6. package/src/builtins/completion-group.ts +3 -3
  7. package/src/builtins/completion-zsh.ts +1 -1
  8. package/src/builtins/config.test.ts +3 -3
  9. package/src/builtins/config.ts +9 -9
  10. package/src/builtins/configure-copy.ts +2 -2
  11. package/src/builtins/configure.ts +3 -3
  12. package/src/builtins/dispatch.ts +10 -10
  13. package/src/builtins/export.ts +4 -4
  14. package/src/builtins/http.ts +5 -5
  15. package/src/builtins/mcp.ts +3 -3
  16. package/src/builtins/presentation.ts +5 -5
  17. package/src/builtins/registry.ts +3 -3
  18. package/src/builtins/scopes.ts +2 -2
  19. package/src/builtins/version.ts +1 -1
  20. package/src/cli-tool/full-example-capabilities.test.ts +2 -2
  21. package/src/cli-tool/main.ts +1 -1
  22. package/src/cli-tool/program.ts +1 -1
  23. package/src/cli-tool/prompt.ts +1 -1
  24. package/src/config/bindings.test.ts +1 -1
  25. package/src/config/bindings.ts +1 -1
  26. package/src/config/bootstrap.test.ts +1 -1
  27. package/src/config/bootstrap.ts +3 -3
  28. package/src/config/context.test.ts +1 -1
  29. package/src/config/context.ts +1 -1
  30. package/src/config/entry.ts +1 -1
  31. package/src/config/file.test.ts +1 -1
  32. package/src/config/file.ts +3 -3
  33. package/src/config/manifest.ts +1 -1
  34. package/src/config/resolve.test.ts +1 -1
  35. package/src/config/resolve.ts +1 -1
  36. package/src/config/schema.ts +1 -1
  37. package/src/config/validate.ts +1 -1
  38. package/src/configure/artifacts/binary-placement.test.ts +1 -1
  39. package/src/configure/artifacts/binary-placement.ts +1 -1
  40. package/src/configure/artifacts/gh-release-update.ts +1 -1
  41. package/src/configure/artifacts/install-validate.test.ts +3 -3
  42. package/src/configure/artifacts/mcp-config.ts +1 -1
  43. package/src/configure/artifacts/mcp-opencode.test.ts +1 -1
  44. package/src/configure/artifacts/mcp-opencode.ts +1 -1
  45. package/src/configure/artifacts/paths.ts +5 -5
  46. package/src/configure/artifacts/plan.ts +1 -1
  47. package/src/configure/artifacts/status.test.ts +1 -1
  48. package/src/configure/artifacts/status.ts +2 -2
  49. package/src/configure/artifacts/target-base.ts +1 -1
  50. package/src/configure/artifacts/target-detect.ts +1 -1
  51. package/src/configure/artifacts/target-effective.ts +3 -3
  52. package/src/configure/artifacts/target-mcp-cli.ts +1 -1
  53. package/src/configure/artifacts/target-mcp-json.ts +1 -1
  54. package/src/configure/artifacts/target-plan-build.ts +2 -2
  55. package/src/configure/artifacts/target-scope.ts +3 -3
  56. package/src/configure/artifacts/target-skill.ts +1 -1
  57. package/src/configure/artifacts/target-types.ts +2 -2
  58. package/src/configure/artifacts/targets/app.ts +5 -5
  59. package/src/configure/artifacts/targets/chatgpt-mcp.ts +2 -2
  60. package/src/configure/artifacts/targets/claude-code-mcp.ts +2 -2
  61. package/src/configure/artifacts/targets/claude-desktop-mcp.ts +2 -2
  62. package/src/configure/artifacts/targets/claude-skill.ts +2 -2
  63. package/src/configure/artifacts/targets/codex-mcp.ts +2 -2
  64. package/src/configure/artifacts/targets/codex-skill.ts +2 -2
  65. package/src/configure/artifacts/targets/configure.ts +5 -5
  66. package/src/configure/artifacts/targets/cursor-mcp.ts +2 -2
  67. package/src/configure/artifacts/targets/cursor-skill.ts +2 -2
  68. package/src/configure/artifacts/targets/index.ts +1 -1
  69. package/src/configure/artifacts/targets/openclaw-mcp.ts +2 -2
  70. package/src/configure/artifacts/targets/openclaw-skill.ts +3 -3
  71. package/src/configure/artifacts/targets/opencode-mcp.ts +5 -5
  72. package/src/configure/artifacts/targets/opencode-skill.ts +3 -3
  73. package/src/configure/artifacts/targets.test.ts +1 -1
  74. package/src/configure/artifacts/uninstall.ts +1 -1
  75. package/src/configure/configure.test.ts +9 -9
  76. package/src/configure/index.ts +5 -5
  77. package/src/configure/prompt.ts +1 -1
  78. package/src/core/context.ts +3 -3
  79. package/src/core/json-leaf.test.ts +1 -1
  80. package/src/core/leaf-inputs.test.ts +1 -1
  81. package/src/core/leaf-inputs.ts +2 -2
  82. package/src/core/parse.test.ts +9 -9
  83. package/src/core/parse.ts +2 -2
  84. package/src/core/schema.ts +3 -3
  85. package/src/core/types.ts +1 -1
  86. package/src/core/validate.ts +6 -6
  87. package/src/docs/builtin.ts +3 -3
  88. package/src/docs/cli-guide.test.ts +3 -3
  89. package/src/docs/cli-guide.ts +5 -5
  90. package/src/docs/docs.test.ts +8 -8
  91. package/src/docs/http-guide.ts +7 -7
  92. package/src/docs/mcp-guide.ts +7 -7
  93. package/src/docs/mcp-resources.test.ts +1 -1
  94. package/src/docs/mcp-resources.ts +1 -1
  95. package/src/docs/resolve.ts +4 -4
  96. package/src/docs/save.ts +2 -2
  97. package/src/exports/cli.ts +9 -9
  98. package/src/exports/headless.ts +2 -2
  99. package/src/exports/http.ts +2 -2
  100. package/src/exports/mcp.ts +2 -2
  101. package/src/headless/routing.ts +2 -2
  102. package/src/headless/tool-call.ts +11 -11
  103. package/src/hooks/run.ts +6 -6
  104. package/src/http/openapi.ts +3 -3
  105. package/src/http/paths.ts +1 -1
  106. package/src/http/readiness.ts +3 -3
  107. package/src/http/result.ts +1 -1
  108. package/src/http/routes.ts +4 -4
  109. package/src/http/server.ts +6 -6
  110. package/src/log/emitter.ts +1 -1
  111. package/src/mcp/bundle.ts +2 -2
  112. package/src/mcp/claude.test.ts +1 -1
  113. package/src/mcp/claude.ts +4 -4
  114. package/src/mcp/hidden-mcpb.test.ts +5 -5
  115. package/src/mcp/result.ts +2 -2
  116. package/src/mcp/server.ts +3 -3
  117. package/src/mcp/tools.ts +7 -7
  118. package/src/runtime/capabilities.ts +2 -2
  119. package/src/runtime/cli-errors.ts +3 -3
  120. package/src/runtime/cli.ts +22 -22
  121. package/src/runtime/exposure.ts +2 -2
  122. package/src/runtime/invoke.test.ts +6 -6
  123. package/src/server/context.ts +3 -3
  124. package/src/server/overrides.ts +3 -3
  125. package/src/skill/generate.ts +5 -5
  126. package/src/skill/hint.ts +1 -1
  127. package/src/skill/install.ts +2 -2
  128. package/src/skill/naming.ts +1 -1
  129. package/src/test/fixtures.ts +2 -2
  130. package/src/test/integration/config.test.ts +3 -3
  131. package/src/test/integration/http.test.ts +10 -10
  132. package/src/test/integration/mcp.test.ts +6 -6
@@ -1,7 +1,7 @@
1
1
  /** Agent skill install targets. */
2
2
  export type SkillTarget = "cursor" | "claude" | "codex" | "opencode" | "openclaw";
3
3
 
4
- import { sanitizeToolSegment } from "~/mcp/tools.ts";
4
+ import { sanitizeToolSegment } from "../mcp/tools.ts";
5
5
 
6
6
  /** Kebab-case skill folder + frontmatter name for agents that require hyphen slugs. */
7
7
  export function skillSlug(programKey: string): string {
@@ -1,5 +1,5 @@
1
- import type { CliProgram } from "~/core/types.ts";
2
- import { CliFallbackMode, CliOptionKind } from "~/core/types.ts";
1
+ import type { CliProgram } from "../core/types.ts";
2
+ import { CliFallbackMode, CliOptionKind } from "../core/types.ts";
3
3
 
4
4
  export function testProgram(prog: Record<string, unknown> & { key: string; description: string }): CliProgram {
5
5
  return { version: "0.0.0", ...prog } as CliProgram;
@@ -6,9 +6,9 @@ import { expect, test } from "bun:test";
6
6
  import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
7
7
  import { tmpdir } from "node:os";
8
8
  import { dirname, join } from "node:path";
9
- import { bootstrapAppConfig } from "~/config/bootstrap.ts";
10
- import { resolveAppConfigPath } from "~/config/file.ts";
11
- import { mcpRequest, testProgram } from "~/test/fixtures.ts";
9
+ import { bootstrapAppConfig } from "../../config/bootstrap.ts";
10
+ import { resolveAppConfigPath } from "../../config/file.ts";
11
+ import { mcpRequest, testProgram } from "../fixtures.ts";
12
12
 
13
13
  /** Tests that bootstrapAppConfig prefers host env over config file. */
14
14
  test("bootstrapAppConfig prefers host env over config file", () => {
@@ -5,15 +5,15 @@ HTTP API integration tests: routes, tool invocation, CORS, OpenAPI, and validati
5
5
  import { describe, expect, test } from "bun:test";
6
6
  import { join } from "node:path";
7
7
  import { $ } from "bun";
8
- import { cliValidateProgram } from "~/core/validate.ts";
9
- import { generateOpenApi } from "~/http/openapi.ts";
10
- import { API_CORS_HEADERS } from "~/http/result.ts";
11
- import { handleApiRequest } from "~/http/server.ts";
12
- import { Cli, CliContext, type CliContext as CliContextType, CliOptionKind, cliErrWithHelp } from "~/index";
13
- import { LogEmitter } from "~/log/emitter.ts";
14
- import { createServerRuntime } from "~/server/context.ts";
15
- import { resolveHttpServeConfig } from "~/server/overrides.ts";
16
- import { nestedMcpFixture, testProgram } from "~/test/fixtures.ts";
8
+ import { cliValidateProgram } from "../../core/validate.ts";
9
+ import { generateOpenApi } from "../../http/openapi.ts";
10
+ import { API_CORS_HEADERS } from "../../http/result.ts";
11
+ import { handleApiRequest } from "../../http/server.ts";
12
+ import { Cli, CliContext, type CliContext as CliContextType, CliOptionKind, cliErrWithHelp } from "../../index.ts";
13
+ import { LogEmitter } from "../../log/emitter.ts";
14
+ import { createServerRuntime } from "../../server/context.ts";
15
+ import { resolveHttpServeConfig } from "../../server/overrides.ts";
16
+ import { nestedMcpFixture, testProgram } from "../fixtures.ts";
17
17
 
18
18
  /** Program with HTTP API enabled and handlers that return values. */
19
19
  function nestedApiFixture() {
@@ -175,7 +175,7 @@ describe("httpServer validation", () => {
175
175
  handler: () => {},
176
176
  },
177
177
  ],
178
- } as unknown as import("~/core/types.ts").CliProgram;
178
+ } as unknown as import("../../core/types.ts").CliProgram;
179
179
  expect(() => cliValidateProgram(root)).toThrow(/httpServer is only supported on the program root/);
180
180
  });
181
181
 
@@ -5,18 +5,18 @@ Domain-specific regression tests (split from index.test.ts).
5
5
  import { expect, test } from "bun:test";
6
6
  import { join } from "node:path";
7
7
  import { $ } from "bun";
8
- import { cliSchemaExport } from "~/core/schema.ts";
9
- import { cliValidateProgram } from "~/core/validate.ts";
10
- import type { CliProgram } from "~/index";
11
- import { buildToolCallSuccessFromResponse } from "~/mcp/result.ts";
8
+ import { cliSchemaExport } from "../../core/schema.ts";
9
+ import { cliValidateProgram } from "../../core/validate.ts";
10
+ import type { CliProgram } from "../../index.ts";
11
+ import { buildToolCallSuccessFromResponse } from "../../mcp/result.ts";
12
12
  import {
13
13
  collectMcpTools,
14
14
  mcpToolCallToArgv,
15
15
  mcpToolDescription,
16
16
  mcpToolName,
17
17
  sanitizeToolSegment,
18
- } from "~/mcp/tools.ts";
19
- import { mcpRequest, nestedMcpFixture, testProgram } from "~/test/fixtures.ts";
18
+ } from "../../mcp/tools.ts";
19
+ import { mcpRequest, nestedMcpFixture, testProgram } from "../fixtures.ts";
20
20
 
21
21
  test("sanitizeToolSegment normalizes dotted app keys", () => {
22
22
  expect(sanitizeToolSegment("minimal.ts")).toBe("minimal_ts");