@cnwenf/occ 2.1.241 → 2.1.243

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 (2) hide show
  1. package/dist/cli.js +23 -14
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7787,7 +7787,8 @@ var FEATURE_ALLOWLIST, feature = (name) => FEATURE_ALLOWLIST.has(name);
7787
7787
  var init_featureFlags = __esm(() => {
7788
7788
  FEATURE_ALLOWLIST = new Set([
7789
7789
  "TRANSCRIPT_CLASSIFIER",
7790
- "BASH_CLASSIFIER"
7790
+ "BASH_CLASSIFIER",
7791
+ "MONITOR_TOOL"
7791
7792
  ]);
7792
7793
  });
7793
7794
 
@@ -95903,7 +95904,7 @@ var init_configs = __esm(() => {
95903
95904
  };
95904
95905
  CLAUDE_3_5_V2_SONNET_CONFIG = {
95905
95906
  firstParty: "claude-3-5-sonnet-20241022",
95906
- bedrock: "anthropic.claude-3-5-sonnet-20241022-v2:0",
95907
+ bedrock: "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
95907
95908
  vertex: "claude-3-5-sonnet-v2@20241022",
95908
95909
  foundry: "claude-3-5-sonnet",
95909
95910
  anthropic_aws: "claude-3-5-sonnet",
@@ -96050,7 +96051,7 @@ var init_configs = __esm(() => {
96050
96051
 
96051
96052
  // src/utils/model/providers.ts
96052
96053
  function getAPIProvider() {
96053
- return isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) ? "bedrock" : isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) ? "foundry" : isEnvTruthy(process.env.CLAUDE_CODE_USE_ANTHROPIC_AWS) ? "anthropic_aws" : isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) ? "vertex" : "firstParty";
96054
+ return isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) ? "bedrock" : isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) ? "foundry" : isEnvTruthy(process.env.CLAUDE_CODE_USE_ANTHROPIC_AWS) ? "anthropic_aws" : isEnvTruthy(process.env.CLAUDE_CODE_USE_MANTLE) ? "mantle" : isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) ? "vertex" : "firstParty";
96054
96055
  }
96055
96056
  function getAPIProviderForStatsig() {
96056
96057
  return getAPIProvider();
@@ -611738,16 +611739,19 @@ function resumeHelpMessage(result) {
611738
611739
  }
611739
611740
  }
611740
611741
  function parsePrUrl2(arg) {
611741
- if (!arg || !arg.includes("/pull/"))
611742
+ if (!arg || !PR_URL_MARKERS.some((m5) => arg.includes(m5)))
611742
611743
  return null;
611743
- const match = PR_URL_PATTERN.exec(arg);
611744
- if (!match)
611745
- return null;
611746
- const [, owner, repo, numberStr] = match;
611747
- const number5 = parseInt(numberStr, 10);
611748
- if (!Number.isInteger(number5) || number5 <= 0)
611749
- return null;
611750
- return { repository: `${owner}/${repo}`, number: number5 };
611744
+ for (const pattern of PR_URL_PATTERNS) {
611745
+ const match = pattern.exec(arg);
611746
+ if (!match)
611747
+ continue;
611748
+ const [, owner, repo, numberStr] = match;
611749
+ const number5 = parseInt(numberStr, 10);
611750
+ if (!Number.isInteger(number5) || number5 <= 0)
611751
+ continue;
611752
+ return { repository: `${owner}/${repo}`, number: number5 };
611753
+ }
611754
+ return null;
611751
611755
  }
611752
611756
  function isStaleLargeSession(log3, now2 = Date.now()) {
611753
611757
  const count4 = log3.messageCount ?? 0;
@@ -611999,7 +612003,7 @@ function ResumeCommand({
611999
612003
  function filterResumableSessions(logs2, currentSessionId) {
612000
612004
  return logs2.filter((l4) => !l4.isSidechain && getSessionIdFromLog(l4) !== currentSessionId);
612001
612005
  }
612002
- var import_compiler_runtime214, React90, jsx_dev_runtime278, STALE_SESSION_AGE_DAYS = 7, LARGE_SESSION_MESSAGE_THRESHOLD = 50, STALE_SESSION_AGE_MS, PR_URL_PATTERN, call31 = async (onDone, context7, args) => {
612006
+ var import_compiler_runtime214, React90, jsx_dev_runtime278, STALE_SESSION_AGE_DAYS = 7, LARGE_SESSION_MESSAGE_THRESHOLD = 50, STALE_SESSION_AGE_MS, PR_URL_PATTERNS, PR_URL_MARKERS, call31 = async (onDone, context7, args) => {
612003
612007
  const onResume = async (sessionId, log3, entrypoint) => {
612004
612008
  try {
612005
612009
  await context7.resume?.(sessionId, log3, entrypoint);
@@ -612139,7 +612143,12 @@ var init_resume = __esm(() => {
612139
612143
  React90 = __toESM(require_react(), 1);
612140
612144
  jsx_dev_runtime278 = __toESM(require_jsx_dev_runtime(), 1);
612141
612145
  STALE_SESSION_AGE_MS = STALE_SESSION_AGE_DAYS * 24 * 60 * 60 * 1000;
612142
- PR_URL_PATTERN = /\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
612146
+ PR_URL_PATTERNS = [
612147
+ /\/([^/]+)\/([^/]+)\/pull\/(\d+)/,
612148
+ /\/([^/]+)\/([^/]+)\/-\/merge_requests\/(\d+)/,
612149
+ /\/([^/]+)\/([^/]+)\/pull-requests\/(\d+)/
612150
+ ];
612151
+ PR_URL_MARKERS = ["/pull/", "/-/merge_requests/", "/pull-requests/"];
612143
612152
  });
612144
612153
 
612145
612154
  // src/commands/resume/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnwenf/occ",
3
- "version": "2.1.241",
3
+ "version": "2.1.243",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {