@jigging/jig 0.1.0-alpha.11 → 0.1.0-alpha.12
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 +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -3
- package/dist/project/author.d.ts +6 -6
- package/libexec/agent/claude-agent-acp.js +119 -119
- package/libexec/agent/openai-agent-worker.js +165 -168
- package/libexec/agent/pi-acp.js +69 -69
- package/libexec/agent/pi-agent-launcher.js +2 -15
- package/libexec/evaluator/project-authoring-1.schema.json +3 -14
- package/libexec/evaluator/project-evaluator-sdk.bundle.js +14 -3
- package/libexec/evaluator/project-evaluator-worker.js +61 -56
- package/libexec/installed-cli.js +660 -546
- package/libexec/linux-rootless-supervisor.js +16 -13
- package/libexec/preparation/bun-native-preparation-worker.js +1 -9
- package/package.json +3 -12
package/README.md
CHANGED
|
@@ -7,8 +7,12 @@ has one finite command surface:
|
|
|
7
7
|
jig init --bare <directory>
|
|
8
8
|
jig review [project] [--yes]
|
|
9
9
|
jig run <flow:path|binding:id> [--input JSON] [--timeout DURATION]
|
|
10
|
+
jig --version
|
|
10
11
|
```
|
|
11
12
|
|
|
13
|
+
`jig --version` prints the built package version without opening a project or
|
|
14
|
+
acquiring a sandbox.
|
|
15
|
+
|
|
12
16
|
There is no `jig setup`. `review` and `run` transparently acquire the rootless
|
|
13
17
|
authority they need or fail closed.
|
|
14
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { defineBinding, defineJig, discover, type JigDefinitionInput, type PackageBindingInput, } from
|
|
1
|
+
export { defineBinding, defineJig, discover, type JigDefinitionInput, type PackageBindingInput, } from './project/author.js';
|
package/dist/index.js
CHANGED
|
@@ -1784,10 +1784,16 @@ function defineBinding(input) {
|
|
|
1784
1784
|
return normalizeBinding(input, false);
|
|
1785
1785
|
}
|
|
1786
1786
|
function flowRef(path) {
|
|
1787
|
-
return record({
|
|
1787
|
+
return record({
|
|
1788
|
+
kind: "flow",
|
|
1789
|
+
path: normalizeProjectPath(path, "Flow reference")
|
|
1790
|
+
});
|
|
1788
1791
|
}
|
|
1789
1792
|
function bindingRef(id) {
|
|
1790
|
-
return record({
|
|
1793
|
+
return record({
|
|
1794
|
+
kind: "binding",
|
|
1795
|
+
id: validateLocalName(id, "Binding reference")
|
|
1796
|
+
});
|
|
1791
1797
|
}
|
|
1792
1798
|
function normalizeBinding(input, canonical) {
|
|
1793
1799
|
const captured = snapshotJsonObject(input, "Binding definition");
|
|
@@ -1800,7 +1806,12 @@ function normalizeBinding(input, canonical) {
|
|
|
1800
1806
|
const packagePath = normalizeProjectPath(captured.package, "package");
|
|
1801
1807
|
const settings = Object.hasOwn(captured, "settings") ? expectJsonObject(captured.settings, "settings") : emptyRecord();
|
|
1802
1808
|
const slots = Object.hasOwn(captured, "slots") ? normalizeFlowSlots(captured.slots) : emptyRecord();
|
|
1803
|
-
return record({
|
|
1809
|
+
return record({
|
|
1810
|
+
kind: "package",
|
|
1811
|
+
package: packagePath,
|
|
1812
|
+
settings,
|
|
1813
|
+
slots
|
|
1814
|
+
});
|
|
1804
1815
|
}
|
|
1805
1816
|
function normalizeFlowSlots(value) {
|
|
1806
1817
|
const input = snapshotJsonObject(value, "slots");
|
package/dist/project/author.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { JsonObject } from
|
|
1
|
+
import type { JsonObject } from '../json.js';
|
|
2
2
|
export interface DiscoverySource {
|
|
3
|
-
readonly kind:
|
|
3
|
+
readonly kind: 'discover';
|
|
4
4
|
readonly roots: readonly string[];
|
|
5
5
|
}
|
|
6
6
|
export interface MembersSource {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: 'members';
|
|
8
8
|
readonly paths: readonly string[];
|
|
9
9
|
}
|
|
10
10
|
export type ProjectSource = DiscoverySource | MembersSource;
|
|
@@ -18,16 +18,16 @@ export interface JigDefinitionInput {
|
|
|
18
18
|
readonly bindings?: ProjectSourceInput;
|
|
19
19
|
}
|
|
20
20
|
export interface FlowRef {
|
|
21
|
-
readonly kind:
|
|
21
|
+
readonly kind: 'flow';
|
|
22
22
|
readonly path: string;
|
|
23
23
|
}
|
|
24
24
|
export interface BindingRef {
|
|
25
|
-
readonly kind:
|
|
25
|
+
readonly kind: 'binding';
|
|
26
26
|
readonly id: string;
|
|
27
27
|
}
|
|
28
28
|
export type RunTargetRef = FlowRef | BindingRef;
|
|
29
29
|
export interface PackageBindingDefinition {
|
|
30
|
-
readonly kind:
|
|
30
|
+
readonly kind: 'package';
|
|
31
31
|
readonly package: string;
|
|
32
32
|
readonly settings: JsonObject;
|
|
33
33
|
readonly slots: Readonly<Record<string, string>>;
|