Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Frozen legacy plugin used by the behavior compatibility suite.
|
||||
|
||||
Keep this callback in its old, narrow form: it intentionally predates additive
|
||||
hook payload fields and does not accept ``**kwargs``.
|
||||
"""
|
||||
|
||||
received_sessions = []
|
||||
|
||||
|
||||
def _on_session_start(*, session_id):
|
||||
received_sessions.append(session_id)
|
||||
return {"legacy_session_id": session_id}
|
||||
|
||||
|
||||
def register(ctx):
|
||||
ctx.register_hook("on_session_start", _on_session_start)
|
||||
@@ -0,0 +1,8 @@
|
||||
name: legacy-contract-fixture
|
||||
version: "0.1.0"
|
||||
description: Frozen plugin fixture for native behavior compatibility
|
||||
provides_hooks:
|
||||
- on_session_start
|
||||
future_manifest_field:
|
||||
schema: 2
|
||||
additive: true
|
||||
Reference in New Issue
Block a user