@halot/cli 1.0.7 → 1.0.8

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
@@ -310,8 +310,8 @@ Current 0G testnet TeeML chatbot models include:
310
310
 
311
311
  ```json
312
312
  {
313
- "systemPrompt": "You are a Halot verifier for text-generation services. Return only valid JSON.",
314
- "promptTemplate": "Evaluate this Halot text-generation job.\\n\\nJob input:\\n{{input}}\\n\\nProvider result:\\n{{result}}\\n\\nService acceptance criteria:\\n{{acceptanceCriteria}}\\n\\nExpected output schema:\\n{{outputSchema}}\\n\\nInput artifacts:\\n{{inputArtifacts}}\\n\\nResult artifacts:\\n{{resultArtifacts}}\\n\\nArtifact validation issues:\\n{{artifactValidationIssues}}\\n\\nApprove only if the result directly answers the requester input, satisfies the service schema, and meets the acceptance criteria.\\nReject empty, irrelevant, malformed, unsafe, inaccessible, or artifact-mismatched results.\\nUse uncertain only when the available evidence is insufficient.\\nReturn only JSON with fields: decision, confidence, reason, failedCriteria.",
313
+ "systemPrompt": "You are a Halot verifier for paid text-generation services. Be strict, evidence-based, and deterministic. Return only valid JSON.",
314
+ "promptTemplate": "Evaluate this Halot text-generation job.\\n\\nService:\\n- ID: {{serviceId}}\\n- Name: {{serviceName}}\\n- Description: {{serviceDescription}}\\n- Category: {{serviceCategory}}\\n- Trust level: {{trustLevel}}\\n\\nRequester input:\\n{{input}}\\n\\nProvider result:\\n{{result}}\\n\\nService acceptance criteria:\\n{{acceptanceCriteria}}\\n\\nExpected output schema:\\n{{outputSchema}}\\n\\nInput artifacts:\\n{{inputArtifacts}}\\n\\nResult artifacts:\\n{{resultArtifacts}}\\n\\nArtifact validation issues:\\n{{artifactValidationIssues}}\\n\\nDecision rules:\\n- Approve only if the result directly fulfills the requester input, matches the expected output schema, and satisfies the acceptance criteria.\\n- Reject if the result is empty, irrelevant, materially incomplete, malformed, unsafe, inaccessible, or artifact-mismatched.\\n- Reject if required fields are missing, placeholder content is returned, or the answer contradicts the request.\\n- Use uncertain only when the evidence is genuinely insufficient or the result is partially interpretable but not confidently approvable or rejectable.\\n\\nConfidence rules:\\n- 0.90 to 1.00: clear outcome with strong evidence.\\n- 0.70 to 0.89: likely outcome with minor ambiguity.\\n- Below 0.70: use uncertain.\\n\\nReturn only JSON with fields:\\n- decision\\n- confidence\\n- reason\\n- failedCriteria",
315
315
  "outputSchema": {
316
316
  "decision": "approve | reject | uncertain",
317
317
  "confidence": "number between 0 and 1",
@@ -51,11 +51,18 @@ async function runVerifierInitCommand(options = {}) {
51
51
  timeout: 60,
52
52
  });
53
53
  workspace.writeInferenceTemplate({
54
- systemPrompt: 'You are a Halot verifier for text-generation services. Return only valid JSON.',
54
+ systemPrompt: 'You are a Halot verifier for paid text-generation services. Be strict, evidence-based, and deterministic. Return only valid JSON.',
55
55
  promptTemplate: [
56
56
  'Evaluate this Halot text-generation job.',
57
57
  '',
58
- 'Job input:',
58
+ 'Service:',
59
+ '- ID: {{serviceId}}',
60
+ '- Name: {{serviceName}}',
61
+ '- Description: {{serviceDescription}}',
62
+ '- Category: {{serviceCategory}}',
63
+ '- Trust level: {{trustLevel}}',
64
+ '',
65
+ 'Requester input:',
59
66
  '{{input}}',
60
67
  '',
61
68
  'Provider result:',
@@ -76,10 +83,22 @@ async function runVerifierInitCommand(options = {}) {
76
83
  'Artifact validation issues:',
77
84
  '{{artifactValidationIssues}}',
78
85
  '',
79
- 'Approve only if the result directly answers the requester input, satisfies the service schema, and meets the acceptance criteria.',
80
- 'Reject empty, irrelevant, malformed, unsafe, inaccessible, or artifact-mismatched results.',
81
- 'Use uncertain only when the available evidence is insufficient.',
82
- 'Return only JSON with fields: decision, confidence, reason, failedCriteria.',
86
+ 'Decision rules:',
87
+ '- Approve only if the result directly fulfills the requester input, matches the expected output schema, and satisfies the acceptance criteria.',
88
+ '- Reject if the result is empty, irrelevant, materially incomplete, malformed, unsafe, inaccessible, or artifact-mismatched.',
89
+ '- Reject if required fields are missing, placeholder content is returned, or the answer contradicts the request.',
90
+ '- Use uncertain only when the evidence is genuinely insufficient or the result is partially interpretable but not confidently approvable or rejectable.',
91
+ '',
92
+ 'Confidence rules:',
93
+ '- 0.90 to 1.00: clear outcome with strong evidence.',
94
+ '- 0.70 to 0.89: likely outcome with minor ambiguity.',
95
+ '- Below 0.70: use uncertain.',
96
+ '',
97
+ 'Return only JSON with fields:',
98
+ '- decision',
99
+ '- confidence',
100
+ '- reason',
101
+ '- failedCriteria',
83
102
  ].join('\n'),
84
103
  outputSchema: {
85
104
  decision: 'approve | reject | uncertain',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halot/cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Halot protocol CLI",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "./*": "./dist/*.js"
31
31
  },
32
32
  "dependencies": {
33
- "@halot/sdk": "^1.0.4",
33
+ "@halot/sdk": "^1.0.5",
34
34
  "@stellar/stellar-sdk": "^15.0.1",
35
35
  "@web3-name-sdk/core": "^0.1.18",
36
36
  "commander": "^14.0.3",