You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 655229c
Browse filesBrowse the repository at this point in the historyBrowse files
feat(rest): the record page composite's approval lock says which approval holds the record (`lockSource`), as the lock doors do
8
+
9
+
Clause-②: yes (widening: the record page composite's published `lock` gains `lockSource`)
10
+
Metadata-protocol: none
11
+
12
+
Widened: `RecordPageApprovalsSchema`'s `lock` (the `approvals` part of `POST /data/:object/:id/page`) gains the optional member `lockSource: 'record' | 'master'`, present on a locked record only; `@object-ui/types`'s `RecordPagePayload.approvals.lock` gains the same optional `lockSource`.
13
+
14
+
The record page's one read now answers its approval lock through the same projection as `GET /approvals/records/:object/:recordId/lock` and `POST /approvals/records/:object/locks`: `locked`, and on a locked record which approval holds it, `record` (its own) or `master` (the master of a master-detail line; it wins when both hold). A locked answer from a service that names no kind is still served `{ locked: true }` alone, and `null` still means the deployment answers no lock or the record is unreadable or missing. Before this, the composite served `{ locked }` only, so a record page could not tell a line held by its own approval, which may be deleted, from a line of a held master, whose delete the server refuses with `RECORD_LOCKED`. The Console's record page now hides Delete on `lockSource: 'master'`, as the grid's row menu does.
feat(service-segmenter): a segmenter service that cuts a Chinese question into real words for the keyword leg
8
+
9
+
Clause-②: yes
10
+
Metadata-protocol: none
11
+
12
+
New package `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `ISegmenterService` under the `segmenter` slot. `keywordTerms(query, { purpose, entries })` answers a question's keyword terms in the shape the knowledge adapters' terms have today (distinct, at most 16). The caller's `word` entries are kept whole wherever the question spells them, in any script. A run of Han characters is cut by `@node-rs/jieba` (HMM off, an optional dependency, one instance per process) with the platform's words (年假, 脱密, 应急采购, 超预算, …) in its dictionary; a word equal to a stop word is dropped, and adjacent single characters are joined into two-character words. The query is NFKC-normalised first, a Thai, Lao, Khmer or Myanmar run is cut by `Intl.Segmenter`, and everything else (English, figures, codes, kana and Hangul runs) is cut exactly as before. Without jieba (not installed, or failed to load: the boot log names which, and `status()` reports it), the service answers by sliding windows with the supplied words still kept whole. The purpose `record_search` is reserved and refused with `NOT_IMPLEMENTED`.
13
+
14
+
Nothing calls the service yet: the knowledge adapters keep their own terms until they read the slot.
15
+
16
+
`@objectstack/spec/contracts` adds `ISegmenterService`, `SEGMENTER_SERVICE` and their types, and `ServiceSlotContracts` gains the `segmenter` slot (not a `CoreServiceName` member). `@objectstack/core` adds `keywordTerms`, `MAX_KEYWORD_TERMS`, `KEYWORD_SEPARATORS` and `UNSEGMENTED_RUN`: the sliding-window rule the two knowledge adapters each hold a copy of, as one shared copy.
if [ "$status" -eq 124 ] || [ "$status" -eq 137 ]; then reason="stopped by the ${ATTEMPT_LIMIT} attempt cap"; fi
333
+
echo "url=${url}" >> "$GITHUB_OUTPUT"
334
+
echo "::error::vercel deploy created the deployment ${url} and then failed (exit ${status} after ${elapsed} s: ${reason}). Its final state (Ready, aliased to production) is unknown: open it in the Vercel dashboard. Not retried, since a retry would publish a second deployment."
335
+
exit 1
336
+
fi
337
+
if [ "$status" -eq 0 ]; then
338
+
echo "::error::vercel deploy exited 0 but printed no deployment URL, so whether it created a deployment is unknown: check the Vercel dashboard. Not retried, since a retry could publish a second deployment."
339
+
exit 1
340
+
fi
341
+
if [ "$status" -eq 124 ] || [ "$status" -eq 137 ]; then
342
+
cause="stopped by the ${ATTEMPT_LIMIT} attempt cap, exit ${status}"
343
+
elif line=$(grep -m1 -E "$transient" <<<"$fatal"); then
echo "::error::vercel deploy failed (exit ${status}) before printing a deployment URL, with an error that is not a connection failure, so it is not retried: ${first:-no stderr}"
348
+
exit 1
349
+
fi
350
+
history="${history} Attempt ${attempt} failed after ${elapsed} s (${cause})."
351
+
echo "Attempt ${attempt} failed after ${elapsed} s: ${cause}."
352
+
if [ "$attempt" -lt "$DEPLOY_ATTEMPTS" ]; then
353
+
wait_s=${retry_waits[$(( attempt - 1 ))]:-60}
354
+
echo "Retrying in ${wait_s} s."
355
+
sleep "$wait_s"
356
+
fi
357
+
done
358
+
echo "::error::The Vercel upload failed on all ${DEPLOY_ATTEMPTS} attempts.${history} No attempt got a deployment URL back (CLI ${VERCEL_CLI_VERSION} prints it the moment a deployment is created), so this run created no deployment that the CLI knows of. A stop about 300 s after the Uploading line is one upload request that got no answer within Node fetch's 300 s timeout; a stop a minute or so in is a dropped connection. Why is not shown: if this repeats, find which file the stalled request carried (see the comment above this step)."
0 commit comments