natureco-cli 5.18.1 → 5.18.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.18.1",
3
+ "version": "5.18.2",
4
4
  "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -93,17 +93,19 @@ async function handleApiAction(params) {
93
93
  for (let i = 0; i < 60; i++) {
94
94
  await new Promise(r => setTimeout(r, 2000));
95
95
  const status = await apiRequest('GET', '/sessions/' + sessionId);
96
- if (status.status === 'completed' || status.status === 'finished' || status.data?.status === 'completed') {
96
+ if (status.status === 'completed' || status.status === 'finished' || status.status === 'stopped' || status.data?.status === 'completed') {
97
97
  return {
98
- success: true,
98
+ success: status.isTaskSuccessful !== false,
99
99
  mode: 'api',
100
100
  sessionId,
101
- result: status.result || status.data?.result || status,
102
- summary: status.summary || status.data?.summary || '',
101
+ result: status.output || status.result || status.data?.result || status,
102
+ summary: status.lastStepSummary || status.summary || status.data?.summary || '',
103
103
  steps: status.steps || status.data?.steps || [],
104
+ screenshotUrl: status.screenshotUrl || null,
105
+ liveUrl: status.liveUrl || null,
104
106
  };
105
107
  }
106
- if (status.status === 'failed' || status.status === 'error') {
108
+ if (status.status === 'failed' || status.status === 'error' || status.status === 'cancelled') {
107
109
  return { success: false, error: 'Session failed: ' + JSON.stringify(status.error || status) };
108
110
  }
109
111
  }