@algolia/wizard 0.103.0-rc.217.754 → 0.103.0-rc.217.757

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/main.js +15 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1722,6 +1722,7 @@ function estimateModelCost(profileName, usage) {
1722
1722
  var COUNT_METRIC = 1;
1723
1723
  var GAUGE_METRIC = 3;
1724
1724
  var FIRST_ATTEMPT = 1;
1725
+ var NO_CONTINUATION = 0;
1725
1726
  var NO_TOKENS2 = 0;
1726
1727
  var NO_COST = 0;
1727
1728
  var AGENT_TELEMETRY_CONTEXT = {
@@ -1875,6 +1876,12 @@ function agentRunMetrics(event, values, tags) {
1875
1876
  type: COUNT_METRIC,
1876
1877
  tags: runTags
1877
1878
  },
1879
+ {
1880
+ name: "wizard.agent.continuation",
1881
+ value: Number((event.continuation ?? NO_CONTINUATION) > NO_CONTINUATION),
1882
+ type: COUNT_METRIC,
1883
+ tags: runTags
1884
+ },
1878
1885
  ...event.stepCount === void 0 ? [] : [
1879
1886
  {
1880
1887
  name: "wizard.agent.step_count",
@@ -1917,6 +1924,7 @@ function trackAgentRun(event) {
1917
1924
  effort: profile.effort ?? "none",
1918
1925
  thinking: profile.thinking,
1919
1926
  attempt: event.attempt,
1927
+ continuation: event.continuation,
1920
1928
  durationMs: event.durationMs,
1921
1929
  stepCount: event.stepCount,
1922
1930
  hitStepLimit: event.hitStepLimit,
@@ -2459,7 +2467,7 @@ async function ensureApplication(resumeAppId) {
2459
2467
  // package.json
2460
2468
  var package_default = {
2461
2469
  name: "@algolia/wizard",
2462
- version: "0.103.0-rc.217.754",
2470
+ version: "0.103.0-rc.217.757",
2463
2471
  description: "Magically implement Algolia functionality in your codebase",
2464
2472
  type: "module",
2465
2473
  engines: {
@@ -5711,9 +5719,10 @@ async function runAgentAttempt(req, attempt, retryReason, continuation) {
5711
5719
  operation: req.operation,
5712
5720
  profile: profileName,
5713
5721
  attempt: attempt + ATTEMPT_NUMBER_OFFSET,
5722
+ continuation: continuation?.number ?? 0,
5714
5723
  durationMs: end - start,
5715
5724
  usage,
5716
- stepCount,
5725
+ stepCount: totalSteps,
5717
5726
  hitStepLimit,
5718
5727
  finishReason
5719
5728
  });
@@ -5725,7 +5734,7 @@ async function runAgentAttempt(req, attempt, retryReason, continuation) {
5725
5734
  profile: profileName,
5726
5735
  model: profile.model,
5727
5736
  usage,
5728
- stepCount,
5737
+ stepCount: totalSteps,
5729
5738
  maxSteps,
5730
5739
  hitStepLimit,
5731
5740
  finishReason
@@ -5757,7 +5766,8 @@ async function runAgentAttempt(req, attempt, retryReason, continuation) {
5757
5766
  const { messages } = await stream.response;
5758
5767
  throw new EndedTurnError({
5759
5768
  messages: [...prompt, ...messages],
5760
- stepsUsed: totalSteps
5769
+ stepsUsed: totalSteps,
5770
+ number: (continuation?.number ?? 0) + 1
5761
5771
  });
5762
5772
  }
5763
5773
  throw new MissingReportError(
@@ -10126,7 +10136,7 @@ async function resetProjectState() {
10126
10136
  // package.json with { type: 'json' }
10127
10137
  var package_default2 = {
10128
10138
  name: "@algolia/wizard",
10129
- version: "0.103.0-rc.217.754",
10139
+ version: "0.103.0-rc.217.757",
10130
10140
  description: "Magically implement Algolia functionality in your codebase",
10131
10141
  type: "module",
10132
10142
  engines: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/wizard",
3
- "version": "0.103.0-rc.217.754",
3
+ "version": "0.103.0-rc.217.757",
4
4
  "description": "Magically implement Algolia functionality in your codebase",
5
5
  "type": "module",
6
6
  "engines": {