truematch-plugin 0.1.1 → 0.1.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/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -182,7 +182,16 @@ async function cmdObserve() {
|
|
|
182
182
|
console.error("Invalid JSON");
|
|
183
183
|
process.exit(1);
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
try {
|
|
186
|
+
await saveObservation(obs);
|
|
187
|
+
}
|
|
188
|
+
catch (err) {
|
|
189
|
+
console.error(`Failed to save observation — check JSON schema matches ObservationSummary.\n` +
|
|
190
|
+
`Each dimension needs: { confidence, observation_count, behavioral_context_diversity }\n` +
|
|
191
|
+
`Dimensions: attachment, core_values, communication, emotional_regulation, humor, life_velocity, dealbreakers, conflict_resolution, interdependence_model\n` +
|
|
192
|
+
`Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
193
|
+
process.exit(1);
|
|
194
|
+
}
|
|
186
195
|
console.log(`ObservationSummary saved. Eligible: ${isEligible(obs)}`);
|
|
187
196
|
return;
|
|
188
197
|
}
|