devin-engine 0.0.1 → 0.0.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/engine.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Ported from devin_proxy/pipeline.py.
9
9
  */
10
- import { OverridePrompt } from "./override";
10
+ import { OverridePrompt } from "./override.js";
11
11
  export interface EngineSettings {
12
12
  backend?: string;
13
13
  guardChars?: number;
package/dist/engine.js CHANGED
@@ -9,14 +9,14 @@
9
9
  */
10
10
  import { randomUUID } from "node:crypto";
11
11
  import { streamChatEvents, CloudChatError, } from "devin-core";
12
- import { FrameRouter, pickKind } from "./frames";
13
- import { RefusalGuard } from "./guard";
14
- import { OverridePrompt } from "./override";
15
- import { sanitizeHistoryArtifacts, sanitizeMessages } from "./sanitize";
16
- import { parseToolText, renderTools, stripProtocolNoise, TOOL_CLOSE, TOOL_OPEN } from "./tools";
17
- import { attach as attachReasoning, remember as rememberReasoning } from "./reasoning";
18
- import { openaiToWire } from "./translate";
19
- import { resolveModel, ALL_TIERS } from "./resolve";
12
+ import { FrameRouter, pickKind } from "./frames.js";
13
+ import { RefusalGuard } from "./guard.js";
14
+ import { OverridePrompt } from "./override.js";
15
+ import { sanitizeHistoryArtifacts, sanitizeMessages } from "./sanitize.js";
16
+ import { parseToolText, renderTools, stripProtocolNoise, TOOL_CLOSE, TOOL_OPEN } from "./tools.js";
17
+ import { attach as attachReasoning, remember as rememberReasoning } from "./reasoning.js";
18
+ import { openaiToWire } from "./translate.js";
19
+ import { resolveModel, ALL_TIERS } from "./resolve.js";
20
20
  const STOP_REASON_FINISH = {
21
21
  3: "length",
22
22
  5: "length",
package/dist/index.d.ts CHANGED
@@ -4,12 +4,12 @@
4
4
  * Embeddable in-process (plugins) or behind a standalone proxy server.
5
5
  * Sits on top of devin-core for wire protocol, auth and catalog.
6
6
  */
7
- export { Engine, type EngineSettings, type AttemptResult } from "./engine";
8
- export { RefusalGuard, REFUSAL_RE } from "./guard";
9
- export { FrameRouter, pickKind, FRAME_POOLS } from "./frames";
10
- export { OverridePrompt, resolveSystemFile, defaultSystemFile, NAMES, BUNDLED } from "./override";
11
- export { sanitizeMessages, sanitizeHistoryArtifacts, MODEL_SWITCH_NOTE_RE, HISTORY_REFUSAL_RE } from "./sanitize";
12
- export { TOOL_OPEN, TOOL_CLOSE, type ToolCall, compactDescription, renderTools, parseNativeToolText, parseToolText, stripProtocolNoise, } from "./tools";
13
- export { attach as attachReasoning, remember as rememberReasoning } from "./reasoning";
14
- export { openaiToWire } from "./translate";
15
- export { resolveModel, SWE2_TIERS, SWE2_FLASH_TIERS, SWE21_TIERS, ALL_TIERS, type ResolveOptions } from "./resolve";
7
+ export { Engine, type EngineSettings, type AttemptResult } from "./engine.js";
8
+ export { RefusalGuard, REFUSAL_RE } from "./guard.js";
9
+ export { FrameRouter, pickKind, FRAME_POOLS } from "./frames.js";
10
+ export { OverridePrompt, resolveSystemFile, defaultSystemFile, NAMES, BUNDLED } from "./override.js";
11
+ export { sanitizeMessages, sanitizeHistoryArtifacts, MODEL_SWITCH_NOTE_RE, HISTORY_REFUSAL_RE } from "./sanitize.js";
12
+ export { TOOL_OPEN, TOOL_CLOSE, type ToolCall, compactDescription, renderTools, parseNativeToolText, parseToolText, stripProtocolNoise, } from "./tools.js";
13
+ export { attach as attachReasoning, remember as rememberReasoning } from "./reasoning.js";
14
+ export { openaiToWire } from "./translate.js";
15
+ export { resolveModel, SWE2_TIERS, SWE2_FLASH_TIERS, SWE21_TIERS, ALL_TIERS, type ResolveOptions } from "./resolve.js";
package/dist/index.js CHANGED
@@ -4,12 +4,12 @@
4
4
  * Embeddable in-process (plugins) or behind a standalone proxy server.
5
5
  * Sits on top of devin-core for wire protocol, auth and catalog.
6
6
  */
7
- export { Engine } from "./engine";
8
- export { RefusalGuard, REFUSAL_RE } from "./guard";
9
- export { FrameRouter, pickKind, FRAME_POOLS } from "./frames";
10
- export { OverridePrompt, resolveSystemFile, defaultSystemFile, NAMES, BUNDLED } from "./override";
11
- export { sanitizeMessages, sanitizeHistoryArtifacts, MODEL_SWITCH_NOTE_RE, HISTORY_REFUSAL_RE } from "./sanitize";
12
- export { TOOL_OPEN, TOOL_CLOSE, compactDescription, renderTools, parseNativeToolText, parseToolText, stripProtocolNoise, } from "./tools";
13
- export { attach as attachReasoning, remember as rememberReasoning } from "./reasoning";
14
- export { openaiToWire } from "./translate";
15
- export { resolveModel, SWE2_TIERS, SWE2_FLASH_TIERS, SWE21_TIERS, ALL_TIERS } from "./resolve";
7
+ export { Engine } from "./engine.js";
8
+ export { RefusalGuard, REFUSAL_RE } from "./guard.js";
9
+ export { FrameRouter, pickKind, FRAME_POOLS } from "./frames.js";
10
+ export { OverridePrompt, resolveSystemFile, defaultSystemFile, NAMES, BUNDLED } from "./override.js";
11
+ export { sanitizeMessages, sanitizeHistoryArtifacts, MODEL_SWITCH_NOTE_RE, HISTORY_REFUSAL_RE } from "./sanitize.js";
12
+ export { TOOL_OPEN, TOOL_CLOSE, compactDescription, renderTools, parseNativeToolText, parseToolText, stripProtocolNoise, } from "./tools.js";
13
+ export { attach as attachReasoning, remember as rememberReasoning } from "./reasoning.js";
14
+ export { openaiToWire } from "./translate.js";
15
+ export { resolveModel, SWE2_TIERS, SWE2_FLASH_TIERS, SWE21_TIERS, ALL_TIERS } from "./resolve.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "devin-engine",
3
- "version": "0.0.1",
4
- "description": "Embeddable compliance engine over devin-core \u00e2\u20ac\u201d guarded-retry pipeline, system-override injection, refusal guard, sanitize, pruning, model resolution. A class, not a server.",
3
+ "version": "0.0.2",
4
+ "description": "Embeddable compliance engine over devin-core — guarded-retry pipeline, system-override injection, refusal guard, sanitize, pruning, model resolution. A class, not a server.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "url": "git+https://github.com/JoShMiQueL/devin-engine.git"
39
39
  },
40
40
  "dependencies": {
41
- "devin-core": "^0.0.1"
41
+ "devin-core": "0.0.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/bun": "^1.4.4",