halfcycle 0.3.8 → 0.3.9
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/.claude-plugin/plugin.json +37 -10
- package/README.md +2 -0
- package/bin/bin.bundle.mjs +20 -3
- package/dist/bin.js +579 -505
- package/dist/bin.js.map +3 -3
- package/dist/control-origin.d.ts +25 -7
- package/dist/control-origin.d.ts.map +1 -1
- package/dist/create-engagement.d.ts.map +1 -1
- package/dist/index.js +191 -126
- package/dist/index.js.map +3 -3
- package/dist/install.d.ts +1 -0
- package/dist/install.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halfcycle",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Halfcycle Method bundle — resolution-stub slash commands, remote method-delivery registration, and governance-hook wiring for a Halfcycle engagement repo. It ships NO worker role files: a project's roles are authored from that project's own recorded decisions at orchestration kickoff (FX-2, W3-F-27).",
|
|
5
5
|
"commands": [
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
6
|
+
{
|
|
7
|
+
"name": "halfcycle-setup",
|
|
8
|
+
"path": "../commands/halfcycle-setup.md"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "halfcycle-design",
|
|
12
|
+
"path": "../commands/halfcycle-design.md"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "write-spec",
|
|
16
|
+
"path": "../commands/write-spec.md"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "consistency-check",
|
|
20
|
+
"path": "../commands/consistency-check.md"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "task-graph",
|
|
24
|
+
"path": "../commands/task-graph.md"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "context-update",
|
|
28
|
+
"path": "../commands/context-update.md"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "agent-teams-orchestration",
|
|
32
|
+
"path": "../commands/agent-teams-orchestration.md"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "task-execution",
|
|
36
|
+
"path": "../commands/task-execution.md"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "stack-assembly-worker",
|
|
40
|
+
"path": "../commands/stack-assembly-worker.md"
|
|
41
|
+
}
|
|
15
42
|
]
|
|
16
43
|
}
|
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ npx halfcycle
|
|
|
8
8
|
|
|
9
9
|
That is the whole install. One command, in the repo you want to work in.
|
|
10
10
|
|
|
11
|
+
**Where it connects.** That command talks to Halfcycle at `https://control.halfcycle.ai`, to sign you in through your browser and to create the engagement your work is recorded against. It is the same address for everybody and it ships in the CLI, so there is nothing to configure, nothing to look up, and no value anyone has to give you first; the addresses for your board and for the checks come back from there too. If it cannot be reached, the install stops and writes nothing rather than setting your repository up without cover.
|
|
12
|
+
|
|
11
13
|
---
|
|
12
14
|
|
|
13
15
|
## What it is
|
package/bin/bin.bundle.mjs
CHANGED
|
@@ -16027,6 +16027,15 @@ function emitInfraWarning(message) {
|
|
|
16027
16027
|
process.stdout.write(`[Halfcycle] WARNING: Guard service unavailable \u2014 ${message}. Session continues (fail-open).
|
|
16028
16028
|
`);
|
|
16029
16029
|
}
|
|
16030
|
+
function emitLocalFault(message) {
|
|
16031
|
+
process.stdout.write(`[Halfcycle] WARNING: Local fault \u2014 ${message}. The guard service was not contacted. Session continues (fail-open).
|
|
16032
|
+
`);
|
|
16033
|
+
}
|
|
16034
|
+
function emitContractFault(message) {
|
|
16035
|
+
process.stdout.write(`[Halfcycle] WARNING: Guard response could not be understood \u2014 ${message}
|
|
16036
|
+
This is not a service outage: the guard service answered. The suspect is this repository's own installed halfcycle runner, which is out of date with what the service now sends. Update it: run "npx halfcycle" in this repository, then retry. Session continues (fail-open).
|
|
16037
|
+
`);
|
|
16038
|
+
}
|
|
16030
16039
|
var UNCONFIGURED_EXIT_TOOL_USE = 2;
|
|
16031
16040
|
var UNCONFIGURED_EXIT_STOP_FAMILY = 1;
|
|
16032
16041
|
function emitNeverConfigured(missing, exitCode) {
|
|
@@ -16238,7 +16247,7 @@ async function runPostToolUse() {
|
|
|
16238
16247
|
return;
|
|
16239
16248
|
const repoRootResult = getRepoRoot(process.cwd());
|
|
16240
16249
|
if (!repoRootResult.ok) {
|
|
16241
|
-
|
|
16250
|
+
emitLocalFault(`Could not find git repo root: ${repoRootResult.message}`);
|
|
16242
16251
|
return;
|
|
16243
16252
|
}
|
|
16244
16253
|
const repoRoot = repoRootResult.value;
|
|
@@ -16274,6 +16283,10 @@ async function runPostToolUse() {
|
|
|
16274
16283
|
emitCredentialRejected(failure.statusCode, failure.message, CREDENTIAL_REJECTED_EXIT_TOOL_USE);
|
|
16275
16284
|
return;
|
|
16276
16285
|
}
|
|
16286
|
+
if (failure.kind === "contract") {
|
|
16287
|
+
emitContractFault(failure.message);
|
|
16288
|
+
return;
|
|
16289
|
+
}
|
|
16277
16290
|
emitInfraWarning(failure.reason);
|
|
16278
16291
|
return;
|
|
16279
16292
|
}
|
|
@@ -16477,7 +16490,7 @@ function collectDiff(repoRoot, base) {
|
|
|
16477
16490
|
async function runSessionDiff(input, kind) {
|
|
16478
16491
|
const repoRootResult = getRepoRoot(process.cwd());
|
|
16479
16492
|
if (!repoRootResult.ok) {
|
|
16480
|
-
|
|
16493
|
+
emitLocalFault(`Could not find git repo root: ${repoRootResult.message}`);
|
|
16481
16494
|
return;
|
|
16482
16495
|
}
|
|
16483
16496
|
const repoRoot = repoRootResult.value;
|
|
@@ -16487,7 +16500,7 @@ async function runSessionDiff(input, kind) {
|
|
|
16487
16500
|
const diffBase = base.kind;
|
|
16488
16501
|
const collected = collectDiff(repoRoot, base);
|
|
16489
16502
|
if (!collected.ok) {
|
|
16490
|
-
|
|
16503
|
+
emitLocalFault(`Could not get session diff: ${collected.message}`);
|
|
16491
16504
|
return;
|
|
16492
16505
|
}
|
|
16493
16506
|
const { files: changedFiles, getDiff } = collected;
|
|
@@ -16531,6 +16544,10 @@ async function runSessionDiff(input, kind) {
|
|
|
16531
16544
|
emitCredentialRejected(failure.statusCode, failure.message, CREDENTIAL_REJECTED_EXIT_STOP_FAMILY);
|
|
16532
16545
|
return;
|
|
16533
16546
|
}
|
|
16547
|
+
if (failure.kind === "contract") {
|
|
16548
|
+
emitContractFault(failure.message);
|
|
16549
|
+
return;
|
|
16550
|
+
}
|
|
16534
16551
|
emitInfraWarning(failure.reason);
|
|
16535
16552
|
return;
|
|
16536
16553
|
}
|