@funnycode/myclaude 0.1.68 → 0.1.70

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/myclaude.js CHANGED
@@ -4,8 +4,8 @@
4
4
  // MACRO - build-time constants (injected by build.ts)
5
5
  // MACRO injected by build script
6
6
  globalThis.MACRO = {
7
- VERSION: "0.1.68",
8
- BUILD_TIME: "2026-07-15T01:33:04.883Z",
7
+ VERSION: "0.1.70",
8
+ BUILD_TIME: "2026-07-15T02:07:16.157Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -37985,6 +37985,11 @@ function getOauthConfig() {
37985
37985
  const oauthBaseUrl = process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;
37986
37986
  if (oauthBaseUrl) {
37987
37987
  const base2 = oauthBaseUrl.replace(/\/$/, "");
37988
+ try {
37989
+ new URL(base2);
37990
+ } catch {
37991
+ throw new Error(`CLAUDE_CODE_CUSTOM_OAUTH_URL is not a valid URL: ${base2}`);
37992
+ }
37988
37993
  if (!ALLOWED_OAUTH_BASE_URLS.includes(base2)) {
37989
37994
  throw new Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");
37990
37995
  }
@@ -66089,14 +66094,14 @@ var require_runtime_features = __commonJS((exports, module) => {
66089
66094
  ...runtimeFeaturesAsNodeModule,
66090
66095
  ...runtimeFeaturesByExportedProperty
66091
66096
  ];
66092
- function detectRuntimeFeature(feature2) {
66093
- if (runtimeFeaturesAsNodeModule.includes(feature2)) {
66094
- return detectRuntimeFeatureByNodeModule(`node:${feature2}`);
66095
- } else if (runtimeFeaturesByExportedProperty.includes(feature2)) {
66096
- const [moduleName, property2] = exportedPropertyLookup[feature2];
66097
+ function detectRuntimeFeature(feature) {
66098
+ if (runtimeFeaturesAsNodeModule.includes(feature)) {
66099
+ return detectRuntimeFeatureByNodeModule(`node:${feature}`);
66100
+ } else if (runtimeFeaturesByExportedProperty.includes(feature)) {
66101
+ const [moduleName, property2] = exportedPropertyLookup[feature];
66097
66102
  return detectRuntimeFeatureByExportedProperty(moduleName, property2);
66098
66103
  }
66099
- throw new TypeError(`unknown feature: ${feature2}`);
66104
+ throw new TypeError(`unknown feature: ${feature}`);
66100
66105
  }
66101
66106
 
66102
66107
  class RuntimeFeatures {
@@ -66104,18 +66109,18 @@ var require_runtime_features = __commonJS((exports, module) => {
66104
66109
  clear() {
66105
66110
  this.#map.clear();
66106
66111
  }
66107
- has(feature2) {
66108
- return this.#map.get(feature2) ?? this.#detectRuntimeFeature(feature2);
66112
+ has(feature) {
66113
+ return this.#map.get(feature) ?? this.#detectRuntimeFeature(feature);
66109
66114
  }
66110
- set(feature2, value) {
66111
- if (features.includes(feature2) === false) {
66112
- throw new TypeError(`unknown feature: ${feature2}`);
66115
+ set(feature, value) {
66116
+ if (features.includes(feature) === false) {
66117
+ throw new TypeError(`unknown feature: ${feature}`);
66113
66118
  }
66114
- this.#map.set(feature2, value);
66119
+ this.#map.set(feature, value);
66115
66120
  }
66116
- #detectRuntimeFeature(feature2) {
66117
- const result = detectRuntimeFeature(feature2);
66118
- this.#map.set(feature2, result);
66121
+ #detectRuntimeFeature(feature) {
66122
+ const result = detectRuntimeFeature(feature);
66123
+ this.#map.set(feature, result);
66119
66124
  return result;
66120
66125
  }
66121
66126
  }
@@ -85728,14 +85733,14 @@ updates please upgrade to a supported Node.js LTS version.
85728
85733
  More information can be found at: https://a.co/c895JFp`);
85729
85734
  }
85730
85735
  };
85731
- function setCredentialFeature(credentials, feature2, value) {
85736
+ function setCredentialFeature(credentials, feature, value) {
85732
85737
  if (!credentials.$source) {
85733
85738
  credentials.$source = {};
85734
85739
  }
85735
- credentials.$source[feature2] = value;
85740
+ credentials.$source[feature] = value;
85736
85741
  return credentials;
85737
85742
  }
85738
- function setFeature(context, feature2, value) {
85743
+ function setFeature(context, feature, value) {
85739
85744
  if (!context.__aws_sdk_context) {
85740
85745
  context.__aws_sdk_context = {
85741
85746
  features: {}
@@ -85743,13 +85748,13 @@ More information can be found at: https://a.co/c895JFp`);
85743
85748
  } else if (!context.__aws_sdk_context.features) {
85744
85749
  context.__aws_sdk_context.features = {};
85745
85750
  }
85746
- context.__aws_sdk_context.features[feature2] = value;
85751
+ context.__aws_sdk_context.features[feature] = value;
85747
85752
  }
85748
- function setTokenFeature(token, feature2, value) {
85753
+ function setTokenFeature(token, feature, value) {
85749
85754
  if (!token.$source) {
85750
85755
  token.$source = {};
85751
85756
  }
85752
- token.$source[feature2] = value;
85757
+ token.$source[feature] = value;
85753
85758
  return token;
85754
85759
  }
85755
85760
  exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
@@ -92048,7 +92053,7 @@ var require_dist_cjs25 = __commonJS((exports) => {
92048
92053
  }
92049
92054
  return cursor;
92050
92055
  };
92051
- function setFeature(context, feature2, value) {
92056
+ function setFeature(context, feature, value) {
92052
92057
  if (!context.__smithy_context) {
92053
92058
  context.__smithy_context = {
92054
92059
  features: {}
@@ -92056,7 +92061,7 @@ var require_dist_cjs25 = __commonJS((exports) => {
92056
92061
  } else if (!context.__smithy_context.features) {
92057
92062
  context.__smithy_context.features = {};
92058
92063
  }
92059
- context.__smithy_context.features[feature2] = value;
92064
+ context.__smithy_context.features[feature] = value;
92060
92065
  }
92061
92066
 
92062
92067
  class DefaultIdentityProviderConfig {
@@ -275134,7 +275139,7 @@ var init_tools = __esm(() => {
275134
275139
  TASK_LIST_TOOL_NAME,
275135
275140
  TASK_UPDATE_TOOL_NAME,
275136
275141
  SEND_MESSAGE_TOOL_NAME,
275137
- ...feature("AGENT_TRIGGERS") ? [CRON_CREATE_TOOL_NAME, CRON_DELETE_TOOL_NAME, CRON_LIST_TOOL_NAME] : []
275142
+ ...getFeatureValue_CACHED_MAY_BE_STALE("AGENT_TRIGGERS", false) ? [CRON_CREATE_TOOL_NAME, CRON_DELETE_TOOL_NAME, CRON_LIST_TOOL_NAME] : []
275138
275143
  ]);
275139
275144
  COORDINATOR_MODE_ALLOWED_TOOLS = new Set([
275140
275145
  AGENT_TOOL_NAME,
package/dist/myclaude.mjs CHANGED
@@ -4,8 +4,8 @@
4
4
  // MACRO - build-time constants (injected by build.ts)
5
5
  // MACRO injected by build script
6
6
  globalThis.MACRO = {
7
- VERSION: "0.1.68",
8
- BUILD_TIME: "2026-07-15T01:33:04.883Z",
7
+ VERSION: "0.1.70",
8
+ BUILD_TIME: "2026-07-15T02:07:16.157Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -37985,6 +37985,11 @@ function getOauthConfig() {
37985
37985
  const oauthBaseUrl = process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;
37986
37986
  if (oauthBaseUrl) {
37987
37987
  const base2 = oauthBaseUrl.replace(/\/$/, "");
37988
+ try {
37989
+ new URL(base2);
37990
+ } catch {
37991
+ throw new Error(`CLAUDE_CODE_CUSTOM_OAUTH_URL is not a valid URL: ${base2}`);
37992
+ }
37988
37993
  if (!ALLOWED_OAUTH_BASE_URLS.includes(base2)) {
37989
37994
  throw new Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");
37990
37995
  }
@@ -66089,14 +66094,14 @@ var require_runtime_features = __commonJS((exports, module) => {
66089
66094
  ...runtimeFeaturesAsNodeModule,
66090
66095
  ...runtimeFeaturesByExportedProperty
66091
66096
  ];
66092
- function detectRuntimeFeature(feature2) {
66093
- if (runtimeFeaturesAsNodeModule.includes(feature2)) {
66094
- return detectRuntimeFeatureByNodeModule(`node:${feature2}`);
66095
- } else if (runtimeFeaturesByExportedProperty.includes(feature2)) {
66096
- const [moduleName, property2] = exportedPropertyLookup[feature2];
66097
+ function detectRuntimeFeature(feature) {
66098
+ if (runtimeFeaturesAsNodeModule.includes(feature)) {
66099
+ return detectRuntimeFeatureByNodeModule(`node:${feature}`);
66100
+ } else if (runtimeFeaturesByExportedProperty.includes(feature)) {
66101
+ const [moduleName, property2] = exportedPropertyLookup[feature];
66097
66102
  return detectRuntimeFeatureByExportedProperty(moduleName, property2);
66098
66103
  }
66099
- throw new TypeError(`unknown feature: ${feature2}`);
66104
+ throw new TypeError(`unknown feature: ${feature}`);
66100
66105
  }
66101
66106
 
66102
66107
  class RuntimeFeatures {
@@ -66104,18 +66109,18 @@ var require_runtime_features = __commonJS((exports, module) => {
66104
66109
  clear() {
66105
66110
  this.#map.clear();
66106
66111
  }
66107
- has(feature2) {
66108
- return this.#map.get(feature2) ?? this.#detectRuntimeFeature(feature2);
66112
+ has(feature) {
66113
+ return this.#map.get(feature) ?? this.#detectRuntimeFeature(feature);
66109
66114
  }
66110
- set(feature2, value) {
66111
- if (features.includes(feature2) === false) {
66112
- throw new TypeError(`unknown feature: ${feature2}`);
66115
+ set(feature, value) {
66116
+ if (features.includes(feature) === false) {
66117
+ throw new TypeError(`unknown feature: ${feature}`);
66113
66118
  }
66114
- this.#map.set(feature2, value);
66119
+ this.#map.set(feature, value);
66115
66120
  }
66116
- #detectRuntimeFeature(feature2) {
66117
- const result = detectRuntimeFeature(feature2);
66118
- this.#map.set(feature2, result);
66121
+ #detectRuntimeFeature(feature) {
66122
+ const result = detectRuntimeFeature(feature);
66123
+ this.#map.set(feature, result);
66119
66124
  return result;
66120
66125
  }
66121
66126
  }
@@ -85728,14 +85733,14 @@ updates please upgrade to a supported Node.js LTS version.
85728
85733
  More information can be found at: https://a.co/c895JFp`);
85729
85734
  }
85730
85735
  };
85731
- function setCredentialFeature(credentials, feature2, value) {
85736
+ function setCredentialFeature(credentials, feature, value) {
85732
85737
  if (!credentials.$source) {
85733
85738
  credentials.$source = {};
85734
85739
  }
85735
- credentials.$source[feature2] = value;
85740
+ credentials.$source[feature] = value;
85736
85741
  return credentials;
85737
85742
  }
85738
- function setFeature(context, feature2, value) {
85743
+ function setFeature(context, feature, value) {
85739
85744
  if (!context.__aws_sdk_context) {
85740
85745
  context.__aws_sdk_context = {
85741
85746
  features: {}
@@ -85743,13 +85748,13 @@ More information can be found at: https://a.co/c895JFp`);
85743
85748
  } else if (!context.__aws_sdk_context.features) {
85744
85749
  context.__aws_sdk_context.features = {};
85745
85750
  }
85746
- context.__aws_sdk_context.features[feature2] = value;
85751
+ context.__aws_sdk_context.features[feature] = value;
85747
85752
  }
85748
- function setTokenFeature(token, feature2, value) {
85753
+ function setTokenFeature(token, feature, value) {
85749
85754
  if (!token.$source) {
85750
85755
  token.$source = {};
85751
85756
  }
85752
- token.$source[feature2] = value;
85757
+ token.$source[feature] = value;
85753
85758
  return token;
85754
85759
  }
85755
85760
  exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
@@ -92048,7 +92053,7 @@ var require_dist_cjs25 = __commonJS((exports) => {
92048
92053
  }
92049
92054
  return cursor;
92050
92055
  };
92051
- function setFeature(context, feature2, value) {
92056
+ function setFeature(context, feature, value) {
92052
92057
  if (!context.__smithy_context) {
92053
92058
  context.__smithy_context = {
92054
92059
  features: {}
@@ -92056,7 +92061,7 @@ var require_dist_cjs25 = __commonJS((exports) => {
92056
92061
  } else if (!context.__smithy_context.features) {
92057
92062
  context.__smithy_context.features = {};
92058
92063
  }
92059
- context.__smithy_context.features[feature2] = value;
92064
+ context.__smithy_context.features[feature] = value;
92060
92065
  }
92061
92066
 
92062
92067
  class DefaultIdentityProviderConfig {
@@ -275134,7 +275139,7 @@ var init_tools = __esm(() => {
275134
275139
  TASK_LIST_TOOL_NAME,
275135
275140
  TASK_UPDATE_TOOL_NAME,
275136
275141
  SEND_MESSAGE_TOOL_NAME,
275137
- ...feature("AGENT_TRIGGERS") ? [CRON_CREATE_TOOL_NAME, CRON_DELETE_TOOL_NAME, CRON_LIST_TOOL_NAME] : []
275142
+ ...getFeatureValue_CACHED_MAY_BE_STALE("AGENT_TRIGGERS", false) ? [CRON_CREATE_TOOL_NAME, CRON_DELETE_TOOL_NAME, CRON_LIST_TOOL_NAME] : []
275138
275143
  ]);
275139
275144
  COORDINATOR_MODE_ALLOWED_TOOLS = new Set([
275140
275145
  AGENT_TOOL_NAME,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",