longtable 0.1.40 → 0.1.41
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/package.json +1 -1
- package/src/run.mjs +7 -1
package/package.json
CHANGED
package/src/run.mjs
CHANGED
|
@@ -1089,10 +1089,16 @@ async function work(rpc, seat, engines, raw) {
|
|
|
1089
1089
|
// The table's repository, when the owner set one this computer knows, is where the team's code is read from and
|
|
1090
1090
|
// where branches land, for this job and every kind of work below.
|
|
1091
1091
|
const source = seat.source ? sourceFor(seat, job.repo, job.use_repo) : seat.source;
|
|
1092
|
-
|
|
1092
|
+
const trusted = seat.source ? trustedRepo(seat, job.repo, job.use_repo) : null;
|
|
1093
|
+
heardRepo(seat, job.repo, trusted);
|
|
1093
1094
|
if (source !== seat.source) seat = { ...seat, source };
|
|
1094
1095
|
if (job.kind === "sandbox") {
|
|
1095
1096
|
try {
|
|
1097
|
+
// A copy lands where the team's hosting builds it. One that would only land in a folder on this computer (the
|
|
1098
|
+
// table names a repository this person has not said yes to) is refused, saying what to press.
|
|
1099
|
+
if (job.repo && !trusted && /^file:/i.test(String(seat.source || ""))) {
|
|
1100
|
+
throw new Error(`${job.me}'s Claude has not said yes to the table's repository, so this copy would only land on this computer. In ${job.me}'s AI window, press Use it`);
|
|
1101
|
+
}
|
|
1096
1102
|
await workSandbox(rpc, { ...seat, model: await chosenModel(rpc, seat, job) }, engines, job);
|
|
1097
1103
|
} catch (e) {
|
|
1098
1104
|
log(`sandbox job ${job.job_id} failed: ${e.message}`);
|