framework_eng/skills/onescript/winow/SKILL.md
Creates web applications and routes on Winow (a web server on OneScript and Autumn). Use when working with a web server on OneScript, routing, or Winow controllers.
npx skillsauth add steelmorgan/1c-agent-based-dev-framework winowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A minimalist web server on native TCP and Autumn acorns. Pure OneScript, without OneScript.web. Suitable for web applications, microservices, API mocks, serving static files and templates.
Limitations: no HTTPS, not designed for high loads.
opm install winow
Dependency: the Autumn framework. Requires #Использовать autumn and a directory with controller classes.
#Использовать autumn
#Использовать winow
Поделка = Новый Поделка();
Поделка.ЗапуститьПриложение();
By default, the server listens on localhost:3333. Controller classes must be located in a directory connected via #Использовать "путь", so that Autumn loads them.
A controller class is marked with &Контроллер("/base/path"). Handler methods are &ТочкаМаршрута("name"). The route point name becomes part of the URL: /base/path/name.
Minimal example (Hello World):
&Контроллер("/")
Процедура ПриСозданииОбъекта()
КонецПроцедуры
&ТочкаМаршрута("/")
Процедура Приветствие(Ответ) Экспорт
Ответ.УстановитьТипКонтента("html");
Ответ.ТелоТекст = СтрШаблон("<!DOCTYPE html><div>%1</div>", "Привет, мир!");
КонецПроцедуры
URL: http://localhost:3333/
The method signature can include Запрос and Ответ. GET parameters are in Запрос.ПараметрыИменные.
Example: http://localhost:3333/greeter/getparams?name=Nikita&familia=ivanchenko
&Контроллер("/greeter")
Процедура ПриСозданииОбъекта()
КонецПроцедуры
&ТочкаМаршрута("getparams")
Процедура Приветствие(Запрос, Ответ) Экспорт
Ответ.УстановитьТипКонтента("html");
Имя = Запрос.ПараметрыИменные["name"];
Фамилия = Запрос.ПараметрыИменные["familia"];
Ответ.ТелоТекст = СтрШаблон("<!DOCTYPE html><div>Имя: %1</div><div>Фамилия: %2</div>", Имя, Фамилия);
КонецПроцедуры
Named parameters from the query string can be passed by name into the route point method parameters (see the Winow documentation).
Ответ.УстановитьТипКонтента("html") — Content-Type.Ответ.ТелоТекст = "..." — response body (string).Additionally: working with POST body, cookie, sessions, static files, templates (jinja-like syntax), SSE, WebSocket, basic authorization and roles — in Winow documentation.
&Контроллер("/путь").&ТочкаМаршрута("имя"), parameters (Ответ) or (Запрос, Ответ) Экспорт.Documentation: autumn-library.github.io/winow.
development
1C server maintenance webhooks: container restart and external component cache cleanup
development
Interactive DAP debugging of a single BSL procedure
tools
Rules for using RLM tools for project search and navigation in 1C/BSL
development
Writes and structures code in OneScript (BSL without 1C). Use when working with .os files, OneScript projects, packagedef, opm, the