codeply-cli 0.5.4 → 0.5.5
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/lib/cloud.mjs +3 -1
- package/package.json +1 -1
package/lib/cloud.mjs
CHANGED
|
@@ -1209,7 +1209,9 @@ async function runOneTask({ task, env, cwd, api, files, repo, token, serverUrl,
|
|
|
1209
1209
|
await pushProgress(hist.messages.length ? `Continuing the chat (${hist.messages.length / 2} earlier turns).` : 'Working on it.', true);
|
|
1210
1210
|
// Risky actions (deploys...) ask the person unless the repo's Cloud permission is "full".
|
|
1211
1211
|
const ASK_WAIT_MS = 15 * 60 * 1000;
|
|
1212
|
-
|
|
1212
|
+
// Only a repo with the current workflow passes CRAFT_PERMISSIONS (empty when unset): its
|
|
1213
|
+
// Craft and phone can show the question. An older setup keeps the old rule (no) until updated.
|
|
1214
|
+
const rules = ciApprove(cwd, { permission: env.CRAFT_PERMISSIONS, canAsk: env.CRAFT_PERMISSIONS !== undefined });
|
|
1213
1215
|
const approve = async (req) => {
|
|
1214
1216
|
const v = await rules(req);
|
|
1215
1217
|
if (v !== 'ask') return v;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeply-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Codeply from the terminal: an interactive AI coding agent, a local server (codeply serve), and a GitHub agent that runs in your own Actions runner.",
|
|
5
5
|
"main": "bin/codeply.js",
|
|
6
6
|
"bin": {
|