@h-rig/contracts 0.0.6-alpha.153 → 0.0.6-alpha.155
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.
|
@@ -44,7 +44,7 @@ export declare const HookResult: Schema.Struct<{
|
|
|
44
44
|
export type HookResult = typeof HookResult.Type;
|
|
45
45
|
/**
|
|
46
46
|
* A typed hook implementation. Registered per hook id via definePlugin's
|
|
47
|
-
*
|
|
47
|
+
* plugin object: `definePlugin(meta, { hooks: { [hookId]: impl } })`.
|
|
48
48
|
* Functions can't be represented by Schema, so this is a plain type — the
|
|
49
49
|
* referential-integrity rules are enforced by @rig/core's definePlugin.
|
|
50
50
|
*/
|
package/dist/src/plugin.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare const HookRegistration: Schema.Struct<{
|
|
|
39
39
|
* `$CLAUDE_PROJECT_DIR` for project-relative paths.
|
|
40
40
|
*
|
|
41
41
|
* Alternative: leave `command` unset and ship a typed implementation via
|
|
42
|
-
* definePlugin
|
|
42
|
+
* definePlugin runtime fields (`{ hooks: { [hookId]: fn } }`) — see
|
|
43
43
|
* `HookContext`/`HookResult`/`HookImplementation` in plugin-hooks.ts. The
|
|
44
44
|
* runtime materializes a shim command for typed hooks automatically. A hook
|
|
45
45
|
* may not have both a `command` and a typed implementation.
|
|
@@ -142,7 +142,7 @@ export declare const PluginContributes: Schema.Struct<{
|
|
|
142
142
|
* `$CLAUDE_PROJECT_DIR` for project-relative paths.
|
|
143
143
|
*
|
|
144
144
|
* Alternative: leave `command` unset and ship a typed implementation via
|
|
145
|
-
* definePlugin
|
|
145
|
+
* definePlugin runtime fields (`{ hooks: { [hookId]: fn } }`) — see
|
|
146
146
|
* `HookContext`/`HookResult`/`HookImplementation` in plugin-hooks.ts. The
|
|
147
147
|
* runtime materializes a shim command for typed hooks automatically. A hook
|
|
148
148
|
* may not have both a `command` and a typed implementation.
|
|
@@ -294,7 +294,7 @@ export declare const RigPlugin: Schema.Struct<{
|
|
|
294
294
|
* `$CLAUDE_PROJECT_DIR` for project-relative paths.
|
|
295
295
|
*
|
|
296
296
|
* Alternative: leave `command` unset and ship a typed implementation via
|
|
297
|
-
* definePlugin
|
|
297
|
+
* definePlugin runtime fields (`{ hooks: { [hookId]: fn } }`) — see
|
|
298
298
|
* `HookContext`/`HookResult`/`HookImplementation` in plugin-hooks.ts. The
|
|
299
299
|
* runtime materializes a shim command for typed hooks automatically. A hook
|
|
300
300
|
* may not have both a `command` and a typed implementation.
|