open-azdo 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -37,6 +37,7 @@ Common Azure Pipeline defaults:
37
37
 
38
38
  Optional flags:
39
39
 
40
+ - `--opencode-timeout-ms <milliseconds>` default `300000`
40
41
  - `--workspace <path>`
41
42
  - `--organization <name>`
42
43
  - `--project <name>`
@@ -56,7 +57,7 @@ Exit behavior:
56
57
  ## Azure Pipelines
57
58
 
58
59
  The canonical example is in [examples/azure-pipelines.review.yml](/home/ponbac/dev/open-azdo/examples/azure-pipelines.review.yml).
59
- For first-time rollout or debugging, use [examples/azure-pipelines.review.debug.yml](/home/ponbac/dev/open-azdo/examples/azure-pipelines.review.debug.yml).
60
+ For first-time rollout or debugging, use [examples/azure-pipelines.review.debug.yml](/home/ponbac/dev/open-azdo/examples/azure-pipelines.review.debug.yml). It pins the npm package version, emits explicit phase markers, and keeps the standalone OpenCode smoke test opt-in behind `RunOpenCodeSmokeTest`.
60
61
 
61
62
  Key requirements:
62
63
 
@@ -96,6 +97,7 @@ steps:
96
97
  env:
97
98
  SYSTEM_ACCESSTOKEN: $(System.AccessToken)
98
99
  OPENAI_API_KEY: $(OpenAIApiKey)
100
+ OPEN_AZDO_OPENCODE_TIMEOUT_MS: "300000"
99
101
  ```
100
102
 
101
103
  ## Development
package/dist/open-azdo.js CHANGED
@@ -26790,6 +26790,7 @@ var ReviewConfigValue = Service("open-azdo/ReviewConfigValue");
26790
26790
  var RawReviewConfigSchema = exports_Schema.Struct({
26791
26791
  command: exports_Schema.Literal("review"),
26792
26792
  model: NonEmptyString2,
26793
+ opencodeTimeoutMs: PositiveInt,
26793
26794
  workspace: NonEmptyString2,
26794
26795
  organization: NonEmptyString2,
26795
26796
  project: NonEmptyString2,
@@ -26821,6 +26822,7 @@ var loadReviewConfig = exports_Effect.fn("config.loadReviewConfig")(function* (a
26821
26822
  try: () => exports_Schema.decodeUnknownSync(RawReviewConfigSchema)(compactOptionalKeys({
26822
26823
  command: "review",
26823
26824
  model: readStringFlag(parsedArgs.flags, "model") ?? env.OPEN_AZDO_MODEL,
26825
+ opencodeTimeoutMs: toPositiveInt(readStringFlag(parsedArgs.flags, "opencode-timeout-ms") ?? env.OPEN_AZDO_OPENCODE_TIMEOUT_MS ?? "300000"),
26824
26826
  workspace: readStringFlag(parsedArgs.flags, "workspace") ?? env.OPEN_AZDO_WORKSPACE ?? env.BUILD_SOURCESDIRECTORY,
26825
26827
  organization,
26826
26828
  project: readStringFlag(parsedArgs.flags, "project") ?? env.OPEN_AZDO_PROJECT ?? env.SYSTEM_TEAMPROJECT,
@@ -26902,6 +26904,7 @@ var parseArgs = (argv) => {
26902
26904
  var toReviewConfig = (rawConfig) => ({
26903
26905
  command: rawConfig.command,
26904
26906
  model: rawConfig.model,
26907
+ opencodeTimeoutMs: rawConfig.opencodeTimeoutMs,
26905
26908
  workspace: rawConfig.workspace,
26906
26909
  organization: rawConfig.organization,
26907
26910
  project: rawConfig.project,
@@ -28552,6 +28555,7 @@ class OpenCodeService extends Service()("open-azdo/OpenCodeService") {
28552
28555
  command: "opencode",
28553
28556
  args: ["run", "--format", "json", "--agent", config.agent, "--model", config.model, prompt],
28554
28557
  cwd: config.workspace,
28558
+ timeoutMs: config.opencodeTimeoutMs,
28555
28559
  env: {
28556
28560
  ...runtimeInput.env,
28557
28561
  OPENCODE_CONFIG: configPath,
@@ -28668,6 +28672,7 @@ var writeStdout = exports_Effect.fn("cli.writeStdout")(function* (text) {
28668
28672
  var reviewLogFields = (config) => ({
28669
28673
  command: config.command,
28670
28674
  model: config.model,
28675
+ opencodeTimeoutMs: config.opencodeTimeoutMs,
28671
28676
  workspace: config.workspace,
28672
28677
  organization: config.organization,
28673
28678
  project: config.project,
@@ -29935,4 +29940,4 @@ var main = async (argv, env) => await exports_Effect.runPromise(runCliWithExitHa
29935
29940
  // bin/open-azdo.ts
29936
29941
  process.exitCode = await main(process.argv.slice(2), process.env);
29937
29942
 
29938
- //# debugId=3D47738376EA848764756E2164756E21
29943
+ //# debugId=E8A5D5E7CAA7554564756E2164756E21