@c4a/context 0.7.29 → 0.7.34
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/docs/guides/lark-resources.md +39 -11
- package/package.json +1 -1
|
@@ -12,7 +12,8 @@ resource checks; it does not fetch that supplied body again. See
|
|
|
12
12
|
|
|
13
13
|
| Resource | Default capture behavior |
|
|
14
14
|
|---|---|
|
|
15
|
-
| Image
|
|
15
|
+
| Image | Download the original; on explicit download permission denial, try a same-identity preview once and mark it as a preview. |
|
|
16
|
+
| Attachment | Download the original file and link it from the Markdown projection. |
|
|
16
17
|
| Sheet | Read the complete selected sheet, render a Markdown table, and retain a CSV snapshot. |
|
|
17
18
|
| Base | Read the selected table/view with pagination, render a Markdown table, and retain a canonical JSON snapshot. |
|
|
18
19
|
| Whiteboard and diagram | Retain a readable preview plus the raw structured export. |
|
|
@@ -28,21 +29,22 @@ preserves an unavailable-resource notice with the reason code
|
|
|
28
29
|
`document.resource.source-missing`, reports a warning, and continues capture;
|
|
29
30
|
it does not pretend that the deleted content was materialized. When the current
|
|
30
31
|
identity can read the document body but the API explicitly returns
|
|
31
|
-
|
|
32
|
+
an explicit permission denial (including HTTP 403) for an embedded resource, Context records
|
|
32
33
|
`document.resource.permission-denied`, keeps the stable resource identity in
|
|
33
34
|
the audit layer, renders the same unavailable-resource notice, and continues
|
|
34
|
-
with a warning.
|
|
35
|
-
|
|
35
|
+
with a warning. Explicit missing-scope and access-denied resource responses are
|
|
36
|
+
likewise recorded without changing identity. Transient network errors, malformed
|
|
37
|
+
payloads, and unclassified failures still block capture. Reference-only
|
|
36
38
|
resources remain explicit in the capture report. Unknown non-empty XML blocks
|
|
37
39
|
stay auditable in the raw XML and receive a warning; the CLI does not infer
|
|
38
40
|
their meaning.
|
|
39
41
|
|
|
40
|
-
Document and resource reads share one access identity.
|
|
41
|
-
user
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
Document and resource reads share one access identity. The configured default is
|
|
43
|
+
user. Bot mode permits one whole-document user fallback for a body authorization
|
|
44
|
+
failure, restarting all pages. After the body is read, resources remain under
|
|
45
|
+
that identity. A resource failure never requests another identity's credentials.
|
|
46
|
+
Legacy explicit auto mode may select Bot when user credentials are unavailable;
|
|
47
|
+
all resources still use the identity that supplied the complete body.
|
|
46
48
|
|
|
47
49
|
## Storage lifecycle
|
|
48
50
|
|
|
@@ -127,8 +129,24 @@ assess the page with its non-text evidence.
|
|
|
127
129
|
|
|
128
130
|
## Image choices for a production task
|
|
129
131
|
|
|
132
|
+
Before capture, the Agent follows the document-capture Route procedure's task-wide
|
|
133
|
+
document threshold and image self-check, without asking for user confirmation.
|
|
134
|
+
Set `DOCUMENT_IMAGE_CAPTURE` in task instructions or workspace guidance to `ON`
|
|
135
|
+
(include images), `OFF` (references only), or a positive integer document threshold.
|
|
136
|
+
Omitting it uses `10`; exactly the threshold remains within normal acquisition.
|
|
137
|
+
Current-conversation instructions override workspace guidance for that task only.
|
|
138
|
+
For example, `DOCUMENT_IMAGE_CAPTURE: 20` skips image downloads when the task
|
|
139
|
+
contains more than 20 distinct documents. This is an Agent instruction, not an
|
|
140
|
+
environment variable, CLI flag or SDK field; no Bot configuration is required.
|
|
141
|
+
Above a numeric threshold, the default is body capture with image references,
|
|
142
|
+
unless the effective setting is overridden to `ON`. This workflow
|
|
143
|
+
choice uses the existing resource fields; it does not change SDK defaults or add
|
|
144
|
+
a CLI hard gate. Apply it before bulk capture or host prefetch, not after images
|
|
145
|
+
have already been downloaded.
|
|
146
|
+
|
|
130
147
|
The work-start report asks once when a task contains more than 30 distinct images
|
|
131
|
-
and has no explicit image policy.
|
|
148
|
+
that will be acquired and has no explicit image handling policy. Reuse the
|
|
149
|
+
current-conversation image instruction when it already settles this choice. The choices are intelligent conversion and
|
|
132
150
|
inclusion (recommended), include all as images with compression, or include none
|
|
133
151
|
with placeholders. Count the whole task, not each capture or writing batch.
|
|
134
152
|
Review reports show the resulting image handling and any fallbacks.
|
|
@@ -162,3 +180,13 @@ limits. The reading meaning of an image is handled in writing and Review.
|
|
|
162
180
|
Source document links can be retained for viewing under the reader's permissions.
|
|
163
181
|
Temporary signed media links are not durable image hosting. Do not embed access
|
|
164
182
|
tokens in generated pages or claim that excluded images have been interpreted.
|
|
183
|
+
|
|
184
|
+
### Capture identity and unavailable media
|
|
185
|
+
|
|
186
|
+
The selected document identity remains fixed for resource reads. In Bot mode,
|
|
187
|
+
only an authorization failure while reading the body can restart the article
|
|
188
|
+
as the current user. Resource failures never trigger that identity fallback.
|
|
189
|
+
Images may use the official same-identity preview endpoint after download
|
|
190
|
+
permission is denied. Previews are marked explicitly; unavailable resources
|
|
191
|
+
retain references and diagnostics. Use available body evidence without inferring
|
|
192
|
+
missing resource contents, and review evidence gaps before approving conclusions.
|