claude-use 9.7.0 → 9.7.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.
package/dist/cli.cjs CHANGED
@@ -33242,7 +33242,7 @@ var init_package = __esm({
33242
33242
  "package.json"() {
33243
33243
  package_default = {
33244
33244
  name: "claude-use",
33245
- version: "9.7.0",
33245
+ version: "9.7.1",
33246
33246
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
33247
33247
  license: "MIT",
33248
33248
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -122847,6 +122847,7 @@ init_capability();
122847
122847
  var RC_ORPC_PATH_PREFIX = "/__agent-shim/orpc";
122848
122848
  var RC_OPENAPI_DOC_PATH = "/openapi.json";
122849
122849
  var RC_SUBSCRIBER_BUFFER_EVENTS = 100;
122850
+ var READ_ONLY_OPERATION_EXTENSION = "x-agent-shim-read-only";
122850
122851
  function doorApiBearer(headers) {
122851
122852
  const presented = headers.authorization;
122852
122853
  const bearerPrefix = "bearer ".length;
@@ -123644,7 +123645,16 @@ function createLaunchApiRouter(deps) {
123644
123645
  const authed = doorApiAuth(deps.expectedToken);
123645
123646
  return {
123646
123647
  launch: {
123647
- resolve: authed.meta(openapi({ method: "POST", path: "/rest/launch/resolve", summary: "Resolve what a launch from one directory would do, without performing it", tags: [LAUNCH_API_TAG] })).input(LaunchResolveInputSchema).output(LaunchResolveOutputSchema).handler(({ input: input2 }) => {
123648
+ resolve: authed.meta(
123649
+ openapi({
123650
+ method: "POST",
123651
+ path: "/rest/launch/resolve",
123652
+ summary: "Resolve what a launch from one directory would do, without performing it",
123653
+ tags: [LAUNCH_API_TAG],
123654
+ // A POST because the launch's environment and arguments are a body, but the answer changes nothing.
123655
+ spec: (current) => ({ ...current, [READ_ONLY_OPERATION_EXTENSION]: true })
123656
+ })
123657
+ ).input(LaunchResolveInputSchema).output(LaunchResolveOutputSchema).handler(({ input: input2 }) => {
123648
123658
  try {
123649
123659
  const { resolution, warnings } = deps.resolveLaunch({ path: input2.path, argv: input2.argv ?? [], env: input2.env ?? {} });
123650
123660
  return { ...resolution, warnings };
@@ -138365,6 +138375,7 @@ var OperationSchema = external_exports.object({
138365
138375
  summary: external_exports.string().optional(),
138366
138376
  description: external_exports.string().optional(),
138367
138377
  tags: external_exports.array(external_exports.string()).optional(),
138378
+ [READ_ONLY_OPERATION_EXTENSION]: external_exports.boolean().optional(),
138368
138379
  parameters: external_exports.array(external_exports.object({ in: external_exports.string(), name: external_exports.string(), required: external_exports.boolean().optional(), schema: external_exports.unknown().optional(), description: external_exports.string().optional() })).optional(),
138369
138380
  requestBody: external_exports.object({ content: external_exports.record(external_exports.string(), external_exports.object({ schema: JsonSchemaObjectSchema.optional() })) }).optional(),
138370
138381
  responses: external_exports.record(external_exports.string(), external_exports.object({ content: external_exports.record(external_exports.string(), external_exports.unknown()).optional() })).optional()
@@ -138413,7 +138424,7 @@ function toolsFromOpenApiDocument(document, permissions) {
138413
138424
  if (isStream(operation)) {
138414
138425
  continue;
138415
138426
  }
138416
- const readOnly = method === "get";
138427
+ const readOnly = method === "get" || operation[READ_ONLY_OPERATION_EXTENSION] === true;
138417
138428
  const tag = operation.tags?.[0];
138418
138429
  if (!permitted(tag, readOnly, permissions)) {
138419
138430
  continue;
package/dist/index.cjs CHANGED
@@ -2663,7 +2663,7 @@ var init_package = __esm({
2663
2663
  "package.json"() {
2664
2664
  package_default = {
2665
2665
  name: "claude-use",
2666
- version: "9.7.0",
2666
+ version: "9.7.1",
2667
2667
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
2668
2668
  license: "MIT",
2669
2669
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -11088,6 +11088,7 @@ var RcAnswerOutputSchema = import_zod4.z.strictObject({
11088
11088
  var RC_ORPC_PATH_PREFIX = "/__agent-shim/orpc";
11089
11089
  var RC_OPENAPI_DOC_PATH = "/openapi.json";
11090
11090
  var RC_SUBSCRIBER_BUFFER_EVENTS = 100;
11091
+ var READ_ONLY_OPERATION_EXTENSION = "x-agent-shim-read-only";
11091
11092
  function doorApiBearer(headers) {
11092
11093
  const presented = headers.authorization;
11093
11094
  const bearerPrefix = "bearer ".length;
@@ -13904,7 +13905,16 @@ function createLaunchApiRouter(deps) {
13904
13905
  const authed = doorApiAuth(deps.expectedToken);
13905
13906
  return {
13906
13907
  launch: {
13907
- resolve: authed.meta((0, import_openapi6.openapi)({ method: "POST", path: "/rest/launch/resolve", summary: "Resolve what a launch from one directory would do, without performing it", tags: [LAUNCH_API_TAG] })).input(LaunchResolveInputSchema).output(LaunchResolveOutputSchema).handler(({ input }) => {
13908
+ resolve: authed.meta(
13909
+ (0, import_openapi6.openapi)({
13910
+ method: "POST",
13911
+ path: "/rest/launch/resolve",
13912
+ summary: "Resolve what a launch from one directory would do, without performing it",
13913
+ tags: [LAUNCH_API_TAG],
13914
+ // A POST because the launch's environment and arguments are a body, but the answer changes nothing.
13915
+ spec: (current) => ({ ...current, [READ_ONLY_OPERATION_EXTENSION]: true })
13916
+ })
13917
+ ).input(LaunchResolveInputSchema).output(LaunchResolveOutputSchema).handler(({ input }) => {
13908
13918
  try {
13909
13919
  const { resolution, warnings } = deps.resolveLaunch({ path: input.path, argv: input.argv ?? [], env: input.env ?? {} });
13910
13920
  return { ...resolution, warnings };
package/dist/index.mjs CHANGED
@@ -2639,7 +2639,7 @@ var init_package = __esm({
2639
2639
  "package.json"() {
2640
2640
  package_default = {
2641
2641
  name: "claude-use",
2642
- version: "9.7.0",
2642
+ version: "9.7.1",
2643
2643
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
2644
2644
  license: "MIT",
2645
2645
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -10716,6 +10716,7 @@ var RcAnswerOutputSchema = z4.strictObject({
10716
10716
  var RC_ORPC_PATH_PREFIX = "/__agent-shim/orpc";
10717
10717
  var RC_OPENAPI_DOC_PATH = "/openapi.json";
10718
10718
  var RC_SUBSCRIBER_BUFFER_EVENTS = 100;
10719
+ var READ_ONLY_OPERATION_EXTENSION = "x-agent-shim-read-only";
10719
10720
  function doorApiBearer(headers) {
10720
10721
  const presented = headers.authorization;
10721
10722
  const bearerPrefix = "bearer ".length;
@@ -13532,7 +13533,16 @@ function createLaunchApiRouter(deps) {
13532
13533
  const authed = doorApiAuth(deps.expectedToken);
13533
13534
  return {
13534
13535
  launch: {
13535
- resolve: authed.meta(openapi6({ method: "POST", path: "/rest/launch/resolve", summary: "Resolve what a launch from one directory would do, without performing it", tags: [LAUNCH_API_TAG] })).input(LaunchResolveInputSchema).output(LaunchResolveOutputSchema).handler(({ input }) => {
13536
+ resolve: authed.meta(
13537
+ openapi6({
13538
+ method: "POST",
13539
+ path: "/rest/launch/resolve",
13540
+ summary: "Resolve what a launch from one directory would do, without performing it",
13541
+ tags: [LAUNCH_API_TAG],
13542
+ // A POST because the launch's environment and arguments are a body, but the answer changes nothing.
13543
+ spec: (current) => ({ ...current, [READ_ONLY_OPERATION_EXTENSION]: true })
13544
+ })
13545
+ ).input(LaunchResolveInputSchema).output(LaunchResolveOutputSchema).handler(({ input }) => {
13536
13546
  try {
13537
13547
  const { resolution, warnings } = deps.resolveLaunch({ path: input.path, argv: input.argv ?? [], env: input.env ?? {} });
13538
13548
  return { ...resolution, warnings };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "9.7.0",
3
+ "version": "9.7.1",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",