@semiont/jobs 0.4.16 → 0.4.18

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 CHANGED
@@ -10179,7 +10179,7 @@ Return a JSON array of comments. Each comment must have:
10179
10179
  - "suffix": up to 32 characters of text immediately after the passage
10180
10180
  - "comment": your comment following the instructions above
10181
10181
 
10182
- Return ONLY a valid JSON array, no additional text or explanation.
10182
+ Respond with a valid JSON array.
10183
10183
 
10184
10184
  Example:
10185
10185
  [
@@ -10215,7 +10215,7 @@ Return a JSON array of comments. Each comment should have:
10215
10215
  - "suffix": up to 32 characters of text immediately after the passage
10216
10216
  - "comment": your explanatory comment (1-3 sentences, provide context/background/clarification)
10217
10217
 
10218
- Return ONLY a valid JSON array, no additional text or explanation.
10218
+ Respond with a valid JSON array.
10219
10219
 
10220
10220
  Example format:
10221
10221
  [
@@ -10254,7 +10254,7 @@ Return a JSON array of highlights. Each highlight must have:
10254
10254
  - "prefix": up to 32 characters of text immediately before the passage
10255
10255
  - "suffix": up to 32 characters of text immediately after the passage
10256
10256
 
10257
- Return ONLY a valid JSON array, no additional text or explanation.
10257
+ Respond with a valid JSON array.
10258
10258
 
10259
10259
  Example:
10260
10260
  [
@@ -10287,7 +10287,7 @@ Return a JSON array of highlights. Each highlight should have:
10287
10287
  - "prefix": up to 32 characters of text immediately before the passage
10288
10288
  - "suffix": up to 32 characters of text immediately after the passage
10289
10289
 
10290
- Return ONLY a valid JSON array, no additional text or explanation.
10290
+ Respond with a valid JSON array.
10291
10291
 
10292
10292
  Example format:
10293
10293
  [
@@ -10329,7 +10329,7 @@ Return a JSON array of assessments. Each assessment must have:
10329
10329
  - "suffix": up to 32 characters of text immediately after the passage
10330
10330
  - "assessment": your assessment following the instructions above
10331
10331
 
10332
- Return ONLY a valid JSON array, no additional text or explanation.
10332
+ Respond with a valid JSON array.
10333
10333
 
10334
10334
  Example:
10335
10335
  [
@@ -10365,7 +10365,7 @@ Return a JSON array of assessments. Each assessment should have:
10365
10365
  - "suffix": up to 32 characters of text immediately after the passage
10366
10366
  - "assessment": your analytical assessment (1-3 sentences, evaluate validity/strength/implications)
10367
10367
 
10368
- Return ONLY a valid JSON array, no additional text or explanation.
10368
+ Respond with a valid JSON array.
10369
10369
 
10370
10370
  Example format:
10371
10371
  [
@@ -10419,7 +10419,7 @@ Return a JSON array of tags. Each tag should have:
10419
10419
  - "prefix": up to 32 characters of text immediately before the passage
10420
10420
  - "suffix": up to 32 characters of text immediately after the passage
10421
10421
 
10422
- Return ONLY a valid JSON array, no additional text or explanation.
10422
+ Respond with a valid JSON array.
10423
10423
 
10424
10424
  Example format:
10425
10425
  [
@@ -10900,7 +10900,7 @@ Text to analyze:
10900
10900
  ${exact}
10901
10901
  """
10902
10902
 
10903
- Return ONLY a JSON array of entities found. Each entity should have:
10903
+ Respond with a JSON array of entities found. Each entity should have:
10904
10904
  - exact: the exact text span from the input
10905
10905
  - entityType: one of the provided entity types
10906
10906
  - startOffset: character position where the entity starts (0-indexed)
@@ -10908,8 +10908,7 @@ Return ONLY a JSON array of entities found. Each entity should have:
10908
10908
  - prefix: up to 32 characters of text immediately before the entity (helps identify correct occurrence)
10909
10909
  - suffix: up to 32 characters of text immediately after the entity (helps identify correct occurrence)
10910
10910
 
10911
- Return empty array [] if no entities found.
10912
- Do not include markdown formatting or code fences, just the raw JSON array.
10911
+ If no entities are found, respond with an empty array [].
10913
10912
 
10914
10913
  Example output:
10915
10914
  [{"exact":"Alice","entityType":"Person","startOffset":0,"endOffset":5,"prefix":"","suffix":" went to"},{"exact":"Paris","entityType":"Location","startOffset":20,"endOffset":25,"prefix":"went to ","suffix":" yesterday"}]`;
@@ -11465,7 +11464,7 @@ Requirements:
11465
11464
  - Aim for approximately ${finalMaxTokens} tokens of content, ${structureGuidance}
11466
11465
  - Be factual and informative
11467
11466
  - Use markdown formatting
11468
- - Return ONLY the markdown content, no JSON, no code fences, no additional wrapper`;
11467
+ - Write the response as markdown`;
11469
11468
  const parseResponse = (response2) => {
11470
11469
  let content = response2.trim();
11471
11470
  if (content.startsWith("```markdown") || content.startsWith("```md")) {