@llm4ts/flow 2.35.3 → 2.35.4
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.
|
@@ -2,8 +2,9 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
export declare const ContractProfile: Schema.Literals<readonly ["full", "minimal", "off"]>;
|
|
3
3
|
export type ContractProfile = typeof ContractProfile.Type;
|
|
4
4
|
/**
|
|
5
|
-
* The contract for a profile. `full` is the default; `minimal` keeps scope
|
|
6
|
-
* and the no-gaming rule for a model that over-verifies
|
|
5
|
+
* The contract for a profile. `full` is the default; `minimal` keeps scope,
|
|
6
|
+
* the workspace rule and the no-gaming rule for a model that over-verifies
|
|
7
|
+
* under the full text;
|
|
7
8
|
* `off` is the empty string, for a flow that writes its own rules.
|
|
8
9
|
*/
|
|
9
10
|
export declare const autonomyContract: (profile?: ContractProfile) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutonomyContract.d.ts","sourceRoot":"","sources":["../src/AutonomyContract.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,eAAO,MAAM,eAAe,sDAA8C,CAAA;AAC1E,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"AutonomyContract.d.ts","sourceRoot":"","sources":["../src/AutonomyContract.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,eAAO,MAAM,eAAe,sDAA8C,CAAA;AAC1E,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAmCzD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAS,eAAwB,KAAG,MAgBpE,CAAA;AAED,yFAAyF;AACzF,eAAO,MAAM,YAAY,GACvB,QAAQ,MAAM,GAAG,SAAS,EAC1B,UAAS,eAAwB,KAChC,MAKF,CAAA"}
|
package/dist/AutonomyContract.js
CHANGED
|
@@ -7,6 +7,11 @@ const scope = [
|
|
|
7
7
|
"The task you are given is the whole scope of your work: deliver all of it and nothing beyond",
|
|
8
8
|
"it, never narrowing it quietly, widening it, or swapping it for a neighbouring task."
|
|
9
9
|
];
|
|
10
|
+
const workspace = [
|
|
11
|
+
"Your working directory is the whole of your world. The tool that runs you is not part of the",
|
|
12
|
+
"task: do not look for its installation, source code, processes or environment, and read its",
|
|
13
|
+
"files only where your instructions name them. What it expects of you is in your instructions."
|
|
14
|
+
];
|
|
10
15
|
const noGaming = [
|
|
11
16
|
"Never edit, skip, delete or weaken a test to make a gate pass. A test you believe is wrong is a",
|
|
12
17
|
"finding to report, not a line to change; a pre-existing bug outside your task is a finding, not",
|
|
@@ -26,8 +31,9 @@ const evidence = [
|
|
|
26
31
|
"ended. A statement that something works, with no command behind it, is not a result."
|
|
27
32
|
];
|
|
28
33
|
/**
|
|
29
|
-
* The contract for a profile. `full` is the default; `minimal` keeps scope
|
|
30
|
-
* and the no-gaming rule for a model that over-verifies
|
|
34
|
+
* The contract for a profile. `full` is the default; `minimal` keeps scope,
|
|
35
|
+
* the workspace rule and the no-gaming rule for a model that over-verifies
|
|
36
|
+
* under the full text;
|
|
31
37
|
* `off` is the empty string, for a flow that writes its own rules.
|
|
32
38
|
*/
|
|
33
39
|
export const autonomyContract = (profile = "full") => {
|
|
@@ -35,9 +41,16 @@ export const autonomyContract = (profile = "full") => {
|
|
|
35
41
|
case "off":
|
|
36
42
|
return "";
|
|
37
43
|
case "minimal":
|
|
38
|
-
return [...scope, ...noGaming].join("\n");
|
|
44
|
+
return [...scope, ...workspace, ...noGaming].join("\n");
|
|
39
45
|
case "full":
|
|
40
|
-
return [
|
|
46
|
+
return [
|
|
47
|
+
...unattended,
|
|
48
|
+
...scope,
|
|
49
|
+
...workspace,
|
|
50
|
+
...minimalChange,
|
|
51
|
+
...noGaming,
|
|
52
|
+
...evidence
|
|
53
|
+
].join("\n");
|
|
41
54
|
}
|
|
42
55
|
};
|
|
43
56
|
/** The system prompt with the contract in front; unchanged when the profile is `off`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutonomyContract.js","sourceRoot":"","sources":["../src/AutonomyContract.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,0EAA0E;AAC1E,yEAAyE;AACzE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;AAG1E,MAAM,KAAK,GAAG;IACZ,8FAA8F;IAC9F,sFAAsF;CACvF,CAAA;AAED,MAAM,QAAQ,GAAG;IACf,iGAAiG;IACjG,iGAAiG;IACjG,0FAA0F;CAC3F,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,2FAA2F;IAC3F,4FAA4F;IAC5F,oFAAoF;CACrF,CAAA;AAED,MAAM,aAAa,GAAG;IACpB,4FAA4F;IAC5F,oEAAoE;CACrE,CAAA;AAED,MAAM,QAAQ,GAAG;IACf,8FAA8F;IAC9F,sFAAsF;CACvF,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"AutonomyContract.js","sourceRoot":"","sources":["../src/AutonomyContract.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,0EAA0E;AAC1E,yEAAyE;AACzE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;AAG1E,MAAM,KAAK,GAAG;IACZ,8FAA8F;IAC9F,sFAAsF;CACvF,CAAA;AAED,MAAM,SAAS,GAAG;IAChB,8FAA8F;IAC9F,6FAA6F;IAC7F,+FAA+F;CAChG,CAAA;AAED,MAAM,QAAQ,GAAG;IACf,iGAAiG;IACjG,iGAAiG;IACjG,0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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llm4ts/flow",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.4",
|
|
4
4
|
"description": "Effect-native LLM workflow, persistence, review, and repository automation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"typescript"
|
|
123
123
|
],
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@llm4ts/core": "2.35.
|
|
125
|
+
"@llm4ts/core": "2.35.4"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
128
|
"effect": "4.0.0"
|
package/src/AutonomyContract.ts
CHANGED
|
@@ -11,6 +11,12 @@ const scope = [
|
|
|
11
11
|
"it, never narrowing it quietly, widening it, or swapping it for a neighbouring task."
|
|
12
12
|
]
|
|
13
13
|
|
|
14
|
+
const workspace = [
|
|
15
|
+
"Your working directory is the whole of your world. The tool that runs you is not part of the",
|
|
16
|
+
"task: do not look for its installation, source code, processes or environment, and read its",
|
|
17
|
+
"files only where your instructions name them. What it expects of you is in your instructions."
|
|
18
|
+
]
|
|
19
|
+
|
|
14
20
|
const noGaming = [
|
|
15
21
|
"Never edit, skip, delete or weaken a test to make a gate pass. A test you believe is wrong is a",
|
|
16
22
|
"finding to report, not a line to change; a pre-existing bug outside your task is a finding, not",
|
|
@@ -34,8 +40,9 @@ const evidence = [
|
|
|
34
40
|
]
|
|
35
41
|
|
|
36
42
|
/**
|
|
37
|
-
* The contract for a profile. `full` is the default; `minimal` keeps scope
|
|
38
|
-
* and the no-gaming rule for a model that over-verifies
|
|
43
|
+
* The contract for a profile. `full` is the default; `minimal` keeps scope,
|
|
44
|
+
* the workspace rule and the no-gaming rule for a model that over-verifies
|
|
45
|
+
* under the full text;
|
|
39
46
|
* `off` is the empty string, for a flow that writes its own rules.
|
|
40
47
|
*/
|
|
41
48
|
export const autonomyContract = (profile: ContractProfile = "full"): string => {
|
|
@@ -43,9 +50,16 @@ export const autonomyContract = (profile: ContractProfile = "full"): string => {
|
|
|
43
50
|
case "off":
|
|
44
51
|
return ""
|
|
45
52
|
case "minimal":
|
|
46
|
-
return [...scope, ...noGaming].join("\n")
|
|
53
|
+
return [...scope, ...workspace, ...noGaming].join("\n")
|
|
47
54
|
case "full":
|
|
48
|
-
return [
|
|
55
|
+
return [
|
|
56
|
+
...unattended,
|
|
57
|
+
...scope,
|
|
58
|
+
...workspace,
|
|
59
|
+
...minimalChange,
|
|
60
|
+
...noGaming,
|
|
61
|
+
...evidence
|
|
62
|
+
].join("\n")
|
|
49
63
|
}
|
|
50
64
|
}
|
|
51
65
|
|