Drop Advanced › Other rules from the agent form, so an agent's gates are the fetch gate's four parts: a stored gate the parts cannot say is named in a note under the fetch gate and sent back unchanged on Save, and the card still says it in words
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
136047023e
commit
1913101061
7 files changed
+193
-125
No files matched your search
+12
-10
@@ -1,7 +1,8 @@
|
||||
/* Where a remote role may be worked from, as the pages say it: the words of
|
||||
* the badge, the picks of the agent's "Remote, open to someone in" chips, and
|
||||
* how an agent's gates share out between the fetch gate's blocks and Other rules. No
|
||||
* DOM in it, so `tests/js/remote.test.mjs` can walk it without a browser.
|
||||
* how an agent's gates share out between the fetch gate's blocks and the rest
|
||||
* the form keeps as stored. No DOM in it, so `tests/js/remote.test.mjs` can
|
||||
* walk it without a browser.
|
||||
*
|
||||
* The area is a place token in three spellings, one per layer: `remote:<place
|
||||
* token>` on the Roles rail and in the address, `<place token>` in a
|
||||
@@ -61,18 +62,19 @@
|
||||
}
|
||||
|
||||
/** Share out an agent's gates between the fetch gate's blocks (region,
|
||||
place, titles to leave out) and Other rules. Each line takes the first
|
||||
gate it can say whole; the rest are rows. A gate has a field, values and
|
||||
a mode (require, any, exclude) and no weight; a gate with a mode the
|
||||
form does not know, such as an old prefer, stays a row.
|
||||
place, titles to leave out) and the rest, which the form cannot edit
|
||||
and keeps as stored. Each line takes the first gate it can say whole.
|
||||
A gate has a field, values and a mode (require, any, exclude) and no
|
||||
weight; a gate with a mode the form does not know, such as an old
|
||||
prefer, is in the rest.
|
||||
|
||||
The scope line is the first plain require gate on country: `europe`
|
||||
when it is exactly Europe and the countries line (`europeWith`),
|
||||
`countries` with its codes as chips otherwise, `everywhere` when there
|
||||
is none. Any other require gate on country is a row. The remote line is
|
||||
`scope` for the one-of on `remote: [remote]` (remote, within the
|
||||
scope), `from` for a one-of on `remote_from`, else `none`; when both
|
||||
are there `remote_from` wins and the plain one stays a row. */
|
||||
is none. Any other require gate on country is in the rest. The remote
|
||||
line is `scope` for the one-of on `remote: [remote]` (remote, within
|
||||
the scope), `from` for a one-of on `remote_from`, else `none`; when
|
||||
both are there `remote_from` wins and the plain one is in the rest. */
|
||||
function distribute(gates) {
|
||||
const where = { scope: null, countries: null, places: null, remote: { mode: "none", values: [] }, titles: null };
|
||||
const rest = [];
|
||||
|
||||
Reference in new issue
Block a user