@cnwenf/occ 2.1.241 → 2.1.242

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 +25 -14
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7787,7 +7787,10 @@ 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",
7792
+ "KAIROS",
7793
+ "UDS_INBOX"
7791
7794
  ]);
7792
7795
  });
7793
7796
 
@@ -95903,7 +95906,7 @@ var init_configs = __esm(() => {
95903
95906
  };
95904
95907
  CLAUDE_3_5_V2_SONNET_CONFIG = {
95905
95908
  firstParty: "claude-3-5-sonnet-20241022",
95906
- bedrock: "anthropic.claude-3-5-sonnet-20241022-v2:0",
95909
+ bedrock: "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
95907
95910
  vertex: "claude-3-5-sonnet-v2@20241022",
95908
95911
  foundry: "claude-3-5-sonnet",
95909
95912
  anthropic_aws: "claude-3-5-sonnet",
@@ -96050,7 +96053,7 @@ var init_configs = __esm(() => {
96050
96053
 
96051
96054
  // src/utils/model/providers.ts
96052
96055
  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";
96056
+ 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
96057
  }
96055
96058
  function getAPIProviderForStatsig() {
96056
96059
  return getAPIProvider();
@@ -611738,16 +611741,19 @@ function resumeHelpMessage(result) {
611738
611741
  }
611739
611742
  }
611740
611743
  function parsePrUrl2(arg) {
611741
- if (!arg || !arg.includes("/pull/"))
611744
+ if (!arg || !PR_URL_MARKERS.some((m5) => arg.includes(m5)))
611742
611745
  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 };
611746
+ for (const pattern of PR_URL_PATTERNS) {
611747
+ const match = pattern.exec(arg);
611748
+ if (!match)
611749
+ continue;
611750
+ const [, owner, repo, numberStr] = match;
611751
+ const number5 = parseInt(numberStr, 10);
611752
+ if (!Number.isInteger(number5) || number5 <= 0)
611753
+ continue;
611754
+ return { repository: `${owner}/${repo}`, number: number5 };
611755
+ }
611756
+ return null;
611751
611757
  }
611752
611758
  function isStaleLargeSession(log3, now2 = Date.now()) {
611753
611759
  const count4 = log3.messageCount ?? 0;
@@ -611999,7 +612005,7 @@ function ResumeCommand({
611999
612005
  function filterResumableSessions(logs2, currentSessionId) {
612000
612006
  return logs2.filter((l4) => !l4.isSidechain && getSessionIdFromLog(l4) !== currentSessionId);
612001
612007
  }
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) => {
612008
+ 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
612009
  const onResume = async (sessionId, log3, entrypoint) => {
612004
612010
  try {
612005
612011
  await context7.resume?.(sessionId, log3, entrypoint);
@@ -612139,7 +612145,12 @@ var init_resume = __esm(() => {
612139
612145
  React90 = __toESM(require_react(), 1);
612140
612146
  jsx_dev_runtime278 = __toESM(require_jsx_dev_runtime(), 1);
612141
612147
  STALE_SESSION_AGE_MS = STALE_SESSION_AGE_DAYS * 24 * 60 * 60 * 1000;
612142
- PR_URL_PATTERN = /\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
612148
+ PR_URL_PATTERNS = [
612149
+ /\/([^/]+)\/([^/]+)\/pull\/(\d+)/,
612150
+ /\/([^/]+)\/([^/]+)\/-\/merge_requests\/(\d+)/,
612151
+ /\/([^/]+)\/([^/]+)\/pull-requests\/(\d+)/
612152
+ ];
612153
+ PR_URL_MARKERS = ["/pull/", "/-/merge_requests/", "/pull-requests/"];
612143
612154
  });
612144
612155
 
612145
612156
  // 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.242",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {