apexrest 0.5.0 → 1.0.0
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/NOTICE +0 -6
- package/README.md +13 -36
- package/README.uk.md +13 -36
- package/dist/codex-compat/plugins/apexrest-apex/.codex-plugin/plugin.json +4 -4
- package/dist/codex-compat/plugins/apexrest-apex/NOTICE +0 -6
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/index.html +4 -11
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/panel.css +4 -182
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/panel.js +61 -383
- package/dist/codex-compat/plugins/apexrest-apex/resources/playwright/package.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/operations.schema.json +0 -327
- package/dist/codex-compat/plugins/apexrest-apex/runtime/apexrest.mjs +12 -43
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-QDAKHEPF.mjs → chunk-3XRCAA5S.mjs} +4 -4
- package/dist/{runtime/chunk-HYOURJBW.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-4GIV3RLJ.mjs} +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-RF4XQO6I.mjs → chunk-CJC3ESO4.mjs} +2 -2
- package/dist/{runtime/chunk-XKBZJ36H.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-DLUIX7FA.mjs} +20 -62
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-JWX4UQAZ.mjs → chunk-EG2NPDAF.mjs} +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-EMRXOSVH.mjs +14 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-FPOEB42H.mjs → chunk-JN3KZCDI.mjs} +1 -1
- package/dist/{runtime/chunk-QLRGI23I.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-K5BV3TBZ.mjs} +9 -108
- package/dist/{runtime/chunk-QWQVXUVG.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-MNYOWIHJ.mjs} +24 -77
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-TTVGX5LP.mjs → chunk-NHYXXMBY.mjs} +21 -213
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-2SZCZZ3J.mjs → chunk-R6MER5QH.mjs} +0 -1
- package/dist/{runtime/chunk-XEK2R5AU.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-SVB7G3KQ.mjs} +5 -7
- package/dist/{runtime/chunk-L7BXN3LU.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-SWW7SKB4.mjs} +19 -42
- package/dist/{runtime/chunk-KJOSAKHX.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-XZNIV6UL.mjs} +5 -6
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-DNJL7OYO.mjs → chunk-YXHLPFQX.mjs} +15 -13
- package/dist/codex-compat/plugins/apexrest-apex/runtime/mcp.mjs +7 -8
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/SKILL.md +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-database/SKILL.md +0 -2
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-debug/SKILL.md +0 -2
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-menu/SKILL.md +13 -14
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-menu/references/cli-catalog.md +14 -15
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-panel/SKILL.md +4 -10
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-panel/agents/openai.yaml +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-project/SKILL.md +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/SKILL.md +5 -8
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/agents/openai.yaml +3 -3
- package/dist/resources/panel/index.html +4 -11
- package/dist/resources/panel/panel.css +4 -182
- package/dist/resources/panel/panel.js +61 -383
- package/dist/resources/playwright/package.json +1 -1
- package/dist/resources/schemas/operations.schema.json +0 -327
- package/dist/runtime/apexrest.mjs +12 -43
- package/dist/runtime/{chunk-QDAKHEPF.mjs → chunk-3XRCAA5S.mjs} +4 -4
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-HYOURJBW.mjs → runtime/chunk-4GIV3RLJ.mjs} +2 -2
- package/dist/runtime/{chunk-RF4XQO6I.mjs → chunk-CJC3ESO4.mjs} +2 -2
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-XKBZJ36H.mjs → runtime/chunk-DLUIX7FA.mjs} +20 -62
- package/dist/runtime/{chunk-JWX4UQAZ.mjs → chunk-EG2NPDAF.mjs} +1 -1
- package/dist/runtime/chunk-EMRXOSVH.mjs +14 -0
- package/dist/runtime/{chunk-FPOEB42H.mjs → chunk-JN3KZCDI.mjs} +1 -1
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-QLRGI23I.mjs → runtime/chunk-K5BV3TBZ.mjs} +9 -108
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-QWQVXUVG.mjs → runtime/chunk-MNYOWIHJ.mjs} +24 -77
- package/dist/runtime/{chunk-TTVGX5LP.mjs → chunk-NHYXXMBY.mjs} +21 -213
- package/dist/runtime/{chunk-2SZCZZ3J.mjs → chunk-R6MER5QH.mjs} +0 -1
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-XEK2R5AU.mjs → runtime/chunk-SVB7G3KQ.mjs} +5 -7
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-L7BXN3LU.mjs → runtime/chunk-SWW7SKB4.mjs} +19 -42
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-KJOSAKHX.mjs → runtime/chunk-XZNIV6UL.mjs} +5 -6
- package/dist/runtime/{chunk-DNJL7OYO.mjs → chunk-YXHLPFQX.mjs} +15 -13
- package/dist/runtime/mcp.mjs +7 -8
- package/package.json +1 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/LICENCE.txt +0 -118
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/bulbasaur.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/charmander.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/mewtwo.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/pikachu.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/sources.json +0 -36
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/squirtle.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-ED2YPDPS.mjs +0 -1123
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-GFRSRK3K.mjs +0 -16
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-N5G4ADI7.mjs +0 -15
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-VPCUV5QA.mjs +0 -237
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-team/SKILL.md +0 -24
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-team/agents/openai.yaml +0 -4
- package/dist/resources/panel/assets/LICENCE.txt +0 -118
- package/dist/resources/panel/assets/bulbasaur.png +0 -0
- package/dist/resources/panel/assets/charmander.png +0 -0
- package/dist/resources/panel/assets/mewtwo.png +0 -0
- package/dist/resources/panel/assets/pikachu.png +0 -0
- package/dist/resources/panel/assets/sources.json +0 -36
- package/dist/resources/panel/assets/squirtle.png +0 -0
- package/dist/runtime/chunk-ED2YPDPS.mjs +0 -1123
- package/dist/runtime/chunk-GFRSRK3K.mjs +0 -16
- package/dist/runtime/chunk-N5G4ADI7.mjs +0 -15
- package/dist/runtime/chunk-VPCUV5QA.mjs +0 -237
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// packages/core/src/team-identity.ts
|
|
4
|
-
var teamIdentities = {
|
|
5
|
-
manager: { name: "Mewtwo", pokemon: 150, label: "Project manager" },
|
|
6
|
-
"developer-1": { name: "Pikachu", pokemon: 25, label: "Developer 1" },
|
|
7
|
-
"developer-2": { name: "Charmander", pokemon: 4, label: "Developer 2" },
|
|
8
|
-
"developer-3": { name: "Bulbasaur", pokemon: 1, label: "Developer 3" },
|
|
9
|
-
qa: { name: "Squirtle", pokemon: 7, label: "Independent QA" }
|
|
10
|
-
};
|
|
11
|
-
var teamLabel = (role) => role === "user" ? "You" : teamIdentities[role].name + " \xB7 " + teamIdentities[role].label;
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
teamIdentities,
|
|
15
|
-
teamLabel
|
|
16
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
startMcp
|
|
4
|
-
} from "./chunk-L7BXN3LU.mjs";
|
|
5
|
-
import "./chunk-TTVGX5LP.mjs";
|
|
6
|
-
import "./chunk-DNJL7OYO.mjs";
|
|
7
|
-
import "./chunk-XKBZJ36H.mjs";
|
|
8
|
-
import "./chunk-VPCUV5QA.mjs";
|
|
9
|
-
import "./chunk-QLRGI23I.mjs";
|
|
10
|
-
import "./chunk-QDAKHEPF.mjs";
|
|
11
|
-
import "./chunk-2SZCZZ3J.mjs";
|
|
12
|
-
import "./chunk-IPU64TJI.mjs";
|
|
13
|
-
export {
|
|
14
|
-
startMcp
|
|
15
|
-
};
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
recordedExecutionMode,
|
|
4
|
-
resolveWorkRequest,
|
|
5
|
-
teamMessageSchema,
|
|
6
|
-
teamStartSchema
|
|
7
|
-
} from "./chunk-QLRGI23I.mjs";
|
|
8
|
-
import {
|
|
9
|
-
external_exports,
|
|
10
|
-
parse,
|
|
11
|
-
requireTrust
|
|
12
|
-
} from "./chunk-2SZCZZ3J.mjs";
|
|
13
|
-
import {
|
|
14
|
-
Fault,
|
|
15
|
-
canonical,
|
|
16
|
-
contained,
|
|
17
|
-
exists,
|
|
18
|
-
hash,
|
|
19
|
-
hashFile,
|
|
20
|
-
readJson,
|
|
21
|
-
withLock,
|
|
22
|
-
writeJson
|
|
23
|
-
} from "./chunk-IPU64TJI.mjs";
|
|
24
|
-
|
|
25
|
-
// packages/core/src/team-source.ts
|
|
26
|
-
import path from "node:path";
|
|
27
|
-
import { readdir, readlink } from "node:fs/promises";
|
|
28
|
-
async function teamSourceDigest(root) {
|
|
29
|
-
const files = {};
|
|
30
|
-
let count = 0;
|
|
31
|
-
const walk = async (relative) => {
|
|
32
|
-
for (const entry of await readdir(path.join(root, relative), { withFileTypes: true })) {
|
|
33
|
-
if ([".git", ".apexrest", "node_modules", ".DS_Store"].includes(entry.name)) continue;
|
|
34
|
-
const name = path.join(relative, entry.name), file = path.join(root, name);
|
|
35
|
-
if (++count > 2e4)
|
|
36
|
-
throw new Fault("TEAM_SOURCE_LIMIT", "The team source inventory exceeds 20000 entries.", 2);
|
|
37
|
-
if (entry.isDirectory()) await walk(name);
|
|
38
|
-
else if (entry.isSymbolicLink()) files[name] = "link:" + await readlink(file);
|
|
39
|
-
else if (entry.isFile()) files[name] = await hashFile(file);
|
|
40
|
-
else throw new Fault("TEAM_SOURCE_TYPE", "The team workspace contains an unsupported special file.", 2);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
await walk("");
|
|
44
|
-
return hash(canonical(files));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// packages/core/src/team.ts
|
|
48
|
-
import path2 from "node:path";
|
|
49
|
-
import { fileURLToPath } from "node:url";
|
|
50
|
-
import { spawn } from "node:child_process";
|
|
51
|
-
import { randomUUID } from "node:crypto";
|
|
52
|
-
import { readdir as readdir2 } from "node:fs/promises";
|
|
53
|
-
var teamActive = /* @__PURE__ */ new Set(["queued", "running", "cancelling"]);
|
|
54
|
-
var teamRuntime = () => path2.join(path2.dirname(fileURLToPath(import.meta.url)), "apexrest.mjs");
|
|
55
|
-
function currentSessionHandoff(state) {
|
|
56
|
-
return {
|
|
57
|
-
teamId: state.id,
|
|
58
|
-
executionMode: "single",
|
|
59
|
-
executionHost: "current_session",
|
|
60
|
-
browserMode: state.browserMode ?? "codex",
|
|
61
|
-
status: state.status,
|
|
62
|
-
nextAction: state.status !== "current_session" ? "This request has ended. Inspect its recorded status; do not resume it automatically." : "Implement and verify directly in this Codex chat using its context/model. No new agents, App Server, team polling or automatic panel. " + (state.sandbox === "read-only" ? "This request is read-only; do not edit files. " : "") + "Keep host permissions and deployment safeguards. This receipt is not completion; report results and handle steering here."
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
var TeamService = class {
|
|
66
|
-
constructor(ctx) {
|
|
67
|
-
this.ctx = ctx;
|
|
68
|
-
}
|
|
69
|
-
ctx;
|
|
70
|
-
async directory(id) {
|
|
71
|
-
parse(external_exports.uuid(), id);
|
|
72
|
-
return contained(this.ctx.root, ".apexrest/teams/" + id);
|
|
73
|
-
}
|
|
74
|
-
async start(input, id = randomUUID()) {
|
|
75
|
-
await requireTrust(this.ctx.root);
|
|
76
|
-
if (process.env.APEXREST_TEAM_WORKER === "1")
|
|
77
|
-
throw new Fault("TEAM_RECURSION", "Team workers cannot create another team.", 2);
|
|
78
|
-
const request = await resolveWorkRequest(this.ctx.root, parse(teamStartSchema, input));
|
|
79
|
-
const root = await this.directory(id);
|
|
80
|
-
if (await exists(path2.join(root, "request.json")))
|
|
81
|
-
throw new Fault(
|
|
82
|
-
"TEAM_ALREADY_STARTED",
|
|
83
|
-
"This team request already exists; inspect its status.",
|
|
84
|
-
5,
|
|
85
|
-
"conflict"
|
|
86
|
-
);
|
|
87
|
-
await writeJson(path2.join(root, "request.json"), {
|
|
88
|
-
...request,
|
|
89
|
-
project: this.ctx.root,
|
|
90
|
-
multiAgentEnabled: request.executionMode === "team"
|
|
91
|
-
});
|
|
92
|
-
const state = {
|
|
93
|
-
id,
|
|
94
|
-
executionMode: request.executionMode,
|
|
95
|
-
executionHost: request.executionMode === "single" ? "current_session" : "worker",
|
|
96
|
-
sandbox: request.sandbox,
|
|
97
|
-
browserMode: request.browserMode,
|
|
98
|
-
status: request.executionMode === "single" ? "current_session" : "queued",
|
|
99
|
-
phase: "queued",
|
|
100
|
-
revision: 0,
|
|
101
|
-
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
102
|
-
members: [],
|
|
103
|
-
messages: [],
|
|
104
|
-
result: "",
|
|
105
|
-
diagnostics: [],
|
|
106
|
-
reviews: [],
|
|
107
|
-
qa: []
|
|
108
|
-
};
|
|
109
|
-
await writeJson(path2.join(root, "state.json"), state);
|
|
110
|
-
if (state.executionHost === "current_session") return currentSessionHandoff(state);
|
|
111
|
-
const worker = spawn(process.execPath, [teamRuntime(), "--team-worker", this.ctx.root, id], {
|
|
112
|
-
cwd: this.ctx.root,
|
|
113
|
-
env: process.env,
|
|
114
|
-
detached: true,
|
|
115
|
-
stdio: "ignore",
|
|
116
|
-
windowsHide: true
|
|
117
|
-
});
|
|
118
|
-
try {
|
|
119
|
-
await new Promise((resolve, reject) => {
|
|
120
|
-
worker.once("spawn", resolve);
|
|
121
|
-
worker.once("error", reject);
|
|
122
|
-
});
|
|
123
|
-
worker.unref();
|
|
124
|
-
} catch {
|
|
125
|
-
const state2 = await this.status(id);
|
|
126
|
-
await writeJson(path2.join(root, "state.json"), {
|
|
127
|
-
...state2,
|
|
128
|
-
status: "blocked",
|
|
129
|
-
diagnostics: ["Team worker could not start."]
|
|
130
|
-
});
|
|
131
|
-
throw new Fault("TEAM_START_FAILED", "Team worker could not start.", 3, "blocked");
|
|
132
|
-
}
|
|
133
|
-
return {
|
|
134
|
-
teamId: id,
|
|
135
|
-
executionHost: "worker",
|
|
136
|
-
executionMode: request.executionMode,
|
|
137
|
-
browserMode: request.browserMode,
|
|
138
|
-
status: "queued",
|
|
139
|
-
nextAction: "Use team status for progress and verification evidence; team message sends task updates; team cancel requests a stop."
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
async status(id) {
|
|
143
|
-
const state = await readJson(path2.join(await this.directory(id), "state.json"));
|
|
144
|
-
state.executionMode = recordedExecutionMode(state);
|
|
145
|
-
if (teamActive.has(state.status) && Date.parse(state.updatedAt) + 6e4 < Date.now())
|
|
146
|
-
return {
|
|
147
|
-
...state,
|
|
148
|
-
status: "outcome_unknown",
|
|
149
|
-
diagnostics: [
|
|
150
|
-
...state.diagnostics,
|
|
151
|
-
"Worker heartbeat expired. Inspect changes before starting another team."
|
|
152
|
-
]
|
|
153
|
-
};
|
|
154
|
-
return state;
|
|
155
|
-
}
|
|
156
|
-
async snapshot(id) {
|
|
157
|
-
const state = await this.status(id);
|
|
158
|
-
const single = state.executionMode === "single";
|
|
159
|
-
if (state.status === "completed" && (single ? state.completedDigest : state.approvedDigest) !== await teamSourceDigest(this.ctx.root)) {
|
|
160
|
-
state.status = single ? "result_stale" : "review_stale";
|
|
161
|
-
state.diagnostics.push(
|
|
162
|
-
single ? "Project files changed after verification. Verify the new source." : "Project files changed after approval. Run the full review cycle for the new source."
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
return {
|
|
166
|
-
...state,
|
|
167
|
-
observations: state.observations?.slice(-8).map((entry) => ({ ...entry, detail: entry.detail.slice(0, 200) })),
|
|
168
|
-
result: state.result.slice(0, 4e3),
|
|
169
|
-
members: state.members.map((m) => ({ ...m, result: m.result.slice(-800) })),
|
|
170
|
-
messages: state.messages.slice(-10).map((m) => ({ ...m, text: m.text.slice(0, 160) })),
|
|
171
|
-
reviews: state.reviews.slice(-6).map((r) => ({
|
|
172
|
-
...r,
|
|
173
|
-
report: {
|
|
174
|
-
...r.report,
|
|
175
|
-
summary: r.report.summary.slice(0, 400),
|
|
176
|
-
findings: r.report.findings.slice(0, 3).map((f) => f.slice(0, 200))
|
|
177
|
-
}
|
|
178
|
-
})),
|
|
179
|
-
qa: state.qa.slice(-3).map((q) => ({
|
|
180
|
-
...q,
|
|
181
|
-
report: {
|
|
182
|
-
...q.report,
|
|
183
|
-
summary: q.report.summary.slice(0, 400),
|
|
184
|
-
checks: q.report.checks.slice(0, 4).map((c) => ({ ...c, name: c.name.slice(0, 100), evidence: c.evidence.slice(0, 200) }))
|
|
185
|
-
}
|
|
186
|
-
})),
|
|
187
|
-
verification: (state.verification ?? []).slice(-3).map((v) => ({
|
|
188
|
-
...v,
|
|
189
|
-
report: {
|
|
190
|
-
...v.report,
|
|
191
|
-
summary: v.report.summary.slice(0, 400),
|
|
192
|
-
checks: v.report.checks.slice(0, 4).map((c) => ({ ...c, name: c.name.slice(0, 100), evidence: c.evidence.slice(0, 200) }))
|
|
193
|
-
}
|
|
194
|
-
})),
|
|
195
|
-
fullReport: ".apexrest/teams/" + id + "/state.json"
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
async message(id, message) {
|
|
199
|
-
await requireTrust(this.ctx.root);
|
|
200
|
-
parse(teamMessageSchema, { id, message });
|
|
201
|
-
const root = await this.directory(id);
|
|
202
|
-
return withLock(path2.join(root, "control.lock"), async () => {
|
|
203
|
-
if (!teamActive.has((await this.status(id)).status))
|
|
204
|
-
throw new Fault("TEAM_FINISHED", "This team has ended; its result remains available.", 5, "conflict");
|
|
205
|
-
const queue = await exists(path2.join(root, "inbox")) ? await readdir2(path2.join(root, "inbox")) : [];
|
|
206
|
-
if (queue.length >= 100)
|
|
207
|
-
throw new Fault("TEAM_MESSAGE_LIMIT", "This team reached its message limit.", 2);
|
|
208
|
-
const messageId = randomUUID();
|
|
209
|
-
await writeJson(await contained(root, "inbox/" + messageId + ".json"), { id: messageId, message });
|
|
210
|
-
return {
|
|
211
|
-
teamId: id,
|
|
212
|
-
messageId,
|
|
213
|
-
status: "queued",
|
|
214
|
-
nextAction: "Team status reports delivery. A task change invalidates earlier approvals."
|
|
215
|
-
};
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
async cancel(id) {
|
|
219
|
-
await requireTrust(this.ctx.root);
|
|
220
|
-
const root = await this.directory(id);
|
|
221
|
-
return withLock(path2.join(root, "control.lock"), async () => {
|
|
222
|
-
if (!teamActive.has((await this.status(id)).status)) return this.snapshot(id);
|
|
223
|
-
await writeJson(path2.join(root, "cancel.json"), {
|
|
224
|
-
requestedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
225
|
-
});
|
|
226
|
-
return { teamId: id, status: "cancellation_requested", rollbackConfirmed: false };
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
export {
|
|
232
|
-
teamSourceDigest,
|
|
233
|
-
teamActive,
|
|
234
|
-
teamRuntime,
|
|
235
|
-
currentSessionHandoff,
|
|
236
|
-
TeamService
|
|
237
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: apexrest-team
|
|
3
|
-
description: Inspect, steer or stop Oracle APEX work, or explicitly start a reviewed team. New implementation requests use apexrest-work.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
For new chat tasks, use [work routing](../apexrest-work/SKILL.md). For explicit orchestration, call `apexrest_team_start` with the absolute configured application `project` and full task, constraints and existing authorization; omit overrides to honor saved preferences.
|
|
7
|
-
|
|
8
|
-
## Execution
|
|
9
|
-
|
|
10
|
-
- Default `single` returns `executionHost: current_session`, a receipt rather than a completed result. Implement and verify in the user's current Codex chat: no spawned agent, automatic panel, polling, manager or independent QA. Report actual self-verification. The panel cannot observe this chat's activity/tokens or inject tasks into it. Historical single-worker records remain readable.
|
|
11
|
-
- `team` requires the user's explicit `multiAgentEnabled` Settings opt-in; launch overrides cannot enable it. Never change that setting without an explicit request or replace an enabled team with model-chosen subagents. Team owns an App Server and separate sessions, not the user's desktop conversation. `developers` selects 1–3 developers with serialized edits; single ignores that count. Use the project write sandbox for implementation, `read-only` for analysis.
|
|
12
|
-
- Team gates: planning → development → manager code review → independent QA → manager QA review. Repairs repeat development and both reviews, at most three revisions. Only `status: completed` with a matching source digest is reviewed success. `review_stale`, `review_failed`, `blocked`, `outcome_unknown` and `cancelled` are not success. The host cannot supply approvals or mark completion. Agent reports do not prove unavailable Oracle/browser checks ran.
|
|
13
|
-
|
|
14
|
-
## Existing worker runs
|
|
15
|
-
|
|
16
|
-
Use `apexrest_team_wait` with the prior cursor and `waitSeconds: 25`; load full `apexrest_team_status` only for needed details. Report changed phases/findings. Forward user corrections with `apexrest_team_message`; distinguish queued/acknowledged messages and invalidate earlier completion decisions. Cancel via `apexrest_team_cancel` when requested; this does not revert changes. Never automatically retry unknown outcomes.
|
|
17
|
-
|
|
18
|
-
Members share project files, scoped roster, peer reports and `team_context`/`team_message`; no private desktop subagent API is assumed. Members cannot spawn more agents. Manager/QA use read-only sandboxes and APEXREST tools plus the verification-browser opener. Workers cannot approve escalations or supply interactive credentials.
|
|
19
|
-
|
|
20
|
-
## Boundaries
|
|
21
|
-
|
|
22
|
-
If `apexrest.json` is missing, [initialize/adopt the requested project](../apexrest-project/SKILL.md). Require valid project trust/Codex login; report blockers without changing trust or copying tokens. This skill grants no downloads, publication, provisioning or database changes. Authorized application imports retain [plan/apply safeguards](../apexrest-deploy/SKILL.md). Administrative/reference tools do not produce reviewed implementations.
|
|
23
|
-
|
|
24
|
-
Open [the panel](../apexrest-panel/SKILL.md) when requested; workers retain activity, tokens, steering and cancellation there. Follow the launch-pinned `browserMode` through [selected-browser verification](../apexrest-test/SKILL.md#in-app-browser-verification). The dashboard stays in Codex.
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
All image contents within are Copyright The Pokémon Company.
|
|
2
|
-
|
|
3
|
-
This repository is distributed under CC0 1.0 Universal
|
|
4
|
-
|
|
5
|
-
Statement of Purpose
|
|
6
|
-
|
|
7
|
-
The laws of most jurisdictions throughout the world automatically confer
|
|
8
|
-
exclusive Copyright and Related Rights (defined below) upon the creator and
|
|
9
|
-
subsequent owner(s) (each and all, an "owner") of an original work of
|
|
10
|
-
authorship and/or a database (each, a "Work").
|
|
11
|
-
|
|
12
|
-
Certain owners wish to permanently relinquish those rights to a Work for the
|
|
13
|
-
purpose of contributing to a commons of creative, cultural and scientific
|
|
14
|
-
works ("Commons") that the public can reliably and without fear of later
|
|
15
|
-
claims of infringement build upon, modify, incorporate in other works, reuse
|
|
16
|
-
and redistribute as freely as possible in any form whatsoever and for any
|
|
17
|
-
purposes, including without limitation commercial purposes. These owners may
|
|
18
|
-
contribute to the Commons to promote the ideal of a free culture and the
|
|
19
|
-
further production of creative, cultural and scientific works, or to gain
|
|
20
|
-
reputation or greater distribution for their Work in part through the use and
|
|
21
|
-
efforts of others.
|
|
22
|
-
|
|
23
|
-
For these and/or other purposes and motivations, and without any expectation
|
|
24
|
-
of additional consideration or compensation, the person associating CC0 with a
|
|
25
|
-
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
|
|
26
|
-
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
|
|
27
|
-
and publicly distribute the Work under its terms, with knowledge of his or her
|
|
28
|
-
Copyright and Related Rights in the Work and the meaning and intended legal
|
|
29
|
-
effect of CC0 on those rights.
|
|
30
|
-
|
|
31
|
-
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
32
|
-
protected by copyright and related or neighboring rights ("Copyright and
|
|
33
|
-
Related Rights"). Copyright and Related Rights include, but are not limited
|
|
34
|
-
to, the following:
|
|
35
|
-
|
|
36
|
-
i. the right to reproduce, adapt, distribute, perform, display, communicate,
|
|
37
|
-
and translate a Work;
|
|
38
|
-
|
|
39
|
-
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
40
|
-
|
|
41
|
-
iii. publicity and privacy rights pertaining to a person's image or likeness
|
|
42
|
-
depicted in a Work;
|
|
43
|
-
|
|
44
|
-
iv. rights protecting against unfair competition in regards to a Work,
|
|
45
|
-
subject to the limitations in paragraph 4(a), below;
|
|
46
|
-
|
|
47
|
-
v. rights protecting the extraction, dissemination, use and reuse of data in
|
|
48
|
-
a Work;
|
|
49
|
-
|
|
50
|
-
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
51
|
-
European Parliament and of the Council of 11 March 1996 on the legal
|
|
52
|
-
protection of databases, and under any national implementation thereof,
|
|
53
|
-
including any amended or successor version of such directive); and
|
|
54
|
-
|
|
55
|
-
vii. other similar, equivalent or corresponding rights throughout the world
|
|
56
|
-
based on applicable law or treaty, and any national implementations thereof.
|
|
57
|
-
|
|
58
|
-
2. Waiver. To the greatest extent permitted by, but not in contravention of,
|
|
59
|
-
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
|
|
60
|
-
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
|
|
61
|
-
and Related Rights and associated claims and causes of action, whether now
|
|
62
|
-
known or unknown (including existing as well as future claims and causes of
|
|
63
|
-
action), in the Work (i) in all territories worldwide, (ii) for the maximum
|
|
64
|
-
duration provided by applicable law or treaty (including future time
|
|
65
|
-
extensions), (iii) in any current or future medium and for any number of
|
|
66
|
-
copies, and (iv) for any purpose whatsoever, including without limitation
|
|
67
|
-
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
|
|
68
|
-
the Waiver for the benefit of each member of the public at large and to the
|
|
69
|
-
detriment of Affirmer's heirs and successors, fully intending that such Waiver
|
|
70
|
-
shall not be subject to revocation, rescission, cancellation, termination, or
|
|
71
|
-
any other legal or equitable action to disrupt the quiet enjoyment of the Work
|
|
72
|
-
by the public as contemplated by Affirmer's express Statement of Purpose.
|
|
73
|
-
|
|
74
|
-
3. Public License Fallback. Should any part of the Waiver for any reason be
|
|
75
|
-
judged legally invalid or ineffective under applicable law, then the Waiver
|
|
76
|
-
shall be preserved to the maximum extent permitted taking into account
|
|
77
|
-
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
|
|
78
|
-
is so judged Affirmer hereby grants to each affected person a royalty-free,
|
|
79
|
-
non transferable, non sublicensable, non exclusive, irrevocable and
|
|
80
|
-
unconditional license to exercise Affirmer's Copyright and Related Rights in
|
|
81
|
-
the Work (i) in all territories worldwide, (ii) for the maximum duration
|
|
82
|
-
provided by applicable law or treaty (including future time extensions), (iii)
|
|
83
|
-
in any current or future medium and for any number of copies, and (iv) for any
|
|
84
|
-
purpose whatsoever, including without limitation commercial, advertising or
|
|
85
|
-
promotional purposes (the "License"). The License shall be deemed effective as
|
|
86
|
-
of the date CC0 was applied by Affirmer to the Work. Should any part of the
|
|
87
|
-
License for any reason be judged legally invalid or ineffective under
|
|
88
|
-
applicable law, such partial invalidity or ineffectiveness shall not
|
|
89
|
-
invalidate the remainder of the License, and in such case Affirmer hereby
|
|
90
|
-
affirms that he or she will not (i) exercise any of his or her remaining
|
|
91
|
-
Copyright and Related Rights in the Work or (ii) assert any associated claims
|
|
92
|
-
and causes of action with respect to the Work, in either case contrary to
|
|
93
|
-
Affirmer's express Statement of Purpose.
|
|
94
|
-
|
|
95
|
-
4. Limitations and Disclaimers.
|
|
96
|
-
|
|
97
|
-
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
98
|
-
surrendered, licensed or otherwise affected by this document.
|
|
99
|
-
|
|
100
|
-
b. Affirmer offers the Work as-is and makes no representations or warranties
|
|
101
|
-
of any kind concerning the Work, express, implied, statutory or otherwise,
|
|
102
|
-
including without limitation warranties of title, merchantability, fitness
|
|
103
|
-
for a particular purpose, non infringement, or the absence of latent or
|
|
104
|
-
other defects, accuracy, or the present or absence of errors, whether or not
|
|
105
|
-
discoverable, all to the greatest extent permissible under applicable law.
|
|
106
|
-
|
|
107
|
-
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
108
|
-
that may apply to the Work or any use thereof, including without limitation
|
|
109
|
-
any person's Copyright and Related Rights in the Work. Further, Affirmer
|
|
110
|
-
disclaims responsibility for obtaining any necessary consents, permissions
|
|
111
|
-
or other rights required for any use of the Work.
|
|
112
|
-
|
|
113
|
-
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
114
|
-
party to this document and has no duty or obligation with respect to this
|
|
115
|
-
CC0 or use of the Work.
|
|
116
|
-
|
|
117
|
-
For more information, please see
|
|
118
|
-
<http://creativecommons.org/publicdomain/zero/1.0/>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"repository": "https://github.com/PokeAPI/sprites",
|
|
3
|
-
"revision": "1dce80ceb372675e9fc7e9f101b71845ef587de2",
|
|
4
|
-
"assets": [
|
|
5
|
-
{
|
|
6
|
-
"name": "mewtwo",
|
|
7
|
-
"id": 150,
|
|
8
|
-
"source": "https://raw.githubusercontent.com/PokeAPI/sprites/1dce80ceb372675e9fc7e9f101b71845ef587de2/sprites/pokemon/150.png",
|
|
9
|
-
"sha256": "31c5aebb134a3711864a92091cb1b5c35158e4e90ca5c88afddf56f0cf4bc129"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "pikachu",
|
|
13
|
-
"id": 25,
|
|
14
|
-
"source": "https://raw.githubusercontent.com/PokeAPI/sprites/1dce80ceb372675e9fc7e9f101b71845ef587de2/sprites/pokemon/25.png",
|
|
15
|
-
"sha256": "80d30eb1b9f2a05eb4a216d53034e2a0bb16f2619ec43d281f36d601e5819c2c"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "charmander",
|
|
19
|
-
"id": 4,
|
|
20
|
-
"source": "https://raw.githubusercontent.com/PokeAPI/sprites/1dce80ceb372675e9fc7e9f101b71845ef587de2/sprites/pokemon/4.png",
|
|
21
|
-
"sha256": "4e943ded73aff00aa8323800481412cf0912649d640f5ad5021e8e1e2b3e77c6"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "bulbasaur",
|
|
25
|
-
"id": 1,
|
|
26
|
-
"source": "https://raw.githubusercontent.com/PokeAPI/sprites/1dce80ceb372675e9fc7e9f101b71845ef587de2/sprites/pokemon/1.png",
|
|
27
|
-
"sha256": "7307265558511ea080add119ab7e86b9f87aaab4cedef76df2a13290ca5ad8c9"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "squirtle",
|
|
31
|
-
"id": 7,
|
|
32
|
-
"source": "https://raw.githubusercontent.com/PokeAPI/sprites/1dce80ceb372675e9fc7e9f101b71845ef587de2/sprites/pokemon/7.png",
|
|
33
|
-
"sha256": "1309dd0971ab7c5cd1699fa6ead8b00c9d8fa7f39e09313e697b3d31527f0517"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
|
Binary file
|