@asterism-app/sdk 1.0.1 → 1.0.2
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.
|
@@ -10,6 +10,8 @@ The resource's lifetime follows its presence in the session. A hidden card does
|
|
|
10
10
|
|
|
11
11
|
Creation supplies initial state. Actions change the object through typed application or plugin operations. Views present the resulting state.
|
|
12
12
|
|
|
13
|
+
Implement `inspect` to expose model-facing resource state. The host includes this state in resource listings and individual inspection results; individual inspection also supplies available tool definitions. Link notifications contain identity only. Return the information needed to recognize and use the resource without relying on the host to interpret its saved state.
|
|
14
|
+
|
|
13
15
|
Resource titles belong to session history. Use the session's rename operation with a resource reference to change a title; the host appends the event and reconstructs names along each history path. Tool sessions accept a resource ID within the request's captured links. Existing snapshots keep their captured titles.
|
|
14
16
|
|
|
15
17
|
Declare `links: { receive: true }` in the backend resource implementation when the object can receive directed links. The host supplies this capability to the workbench's connection controls and authorization panel. Renderer resource descriptions supply labels, icons, and card geometry; link reception needs no frontend declaration.
|
package/package.json
CHANGED
package/src/runtime-contracts.ts
CHANGED
|
@@ -119,8 +119,8 @@ export interface ResourceContribution {
|
|
|
119
119
|
/** Omit the source title when saving; generate a title for each template instance, overriding any previously saved title. */
|
|
120
120
|
createTitle?(): string;
|
|
121
121
|
};
|
|
122
|
-
/** Declare that this resource can receive links
|
|
123
|
-
readonly links?: { receive: boolean
|
|
122
|
+
/** Declare that this resource can receive links; independent of Agent domain types. */
|
|
123
|
+
readonly links?: { receive: boolean };
|
|
124
124
|
readonly creation?: CreationContribution;
|
|
125
125
|
readonly actions?: readonly ActionContribution[];
|
|
126
126
|
project(resource: ResourceSnapshot, object: ObjectReader): Presentation;
|