@ai-workbench/connect 0.7.27 → 0.7.28
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/client/index.cjs +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +5 -4
- package/lib/native-workspace.d.ts +1 -0
- package/lib/needs.js +1 -1
- package/lib/profile-runtime.d.ts +1 -1
- package/lib/profile-runtime.js +6 -3
- package/lib/startup.js +2 -2
- package/lib/workspace-locations.js +9 -0
- package/package.json +1 -1
- package/node_modules/argparse/CHANGELOG.md +0 -216
package/client/index.cjs
CHANGED
|
@@ -152,13 +152,13 @@ window.__ModuleLoader__.load({id:'@ai-workbench/connect',factory:(require)=>{
|
|
|
152
152
|
if(value.target==='local'){setPage(null);await pickLocal(at);}else setPage(append&&previous?.target==='host'&&previous.path===value.path?{...value,entries:[...previous.entries,...value.entries.filter(entry=>!previous.entries.some(old=>old.path===entry.path))]}:value);
|
|
153
153
|
}catch{if(current(at))setError(savingRef.current?'工作区添加结果无法确认,请查看工作区列表。':'目录无法读取,请检查连接。');}finally{if(current(at)){locked.current=false;savingRef.current=false;setSaving(false);setBusy(false);}}
|
|
154
154
|
};
|
|
155
|
-
React.useEffect(()=>{savingRef.current=false;setSaving(false);if(open){active.current=true;generation.current++;locked.current=false;setTarget(null);setPage(null);setError('');
|
|
155
|
+
React.useEffect(()=>{savingRef.current=false;setSaving(false);if(open){active.current=true;generation.current++;locked.current=false;setTarget(null);setPage(null);setError('');setBusy(false);}else{setPage(null);setError('');setBusy(false);}},[open]);
|
|
156
156
|
const cancel=()=>{if(!active.current||savingRef.current)return;active.current=false;generation.current++;locked.current=false;setPage(null);setBusy(false);outcome.current.onCancel();};
|
|
157
157
|
const select=async()=>{if(!active.current||locked.current||!page)return;locked.current=true;setBusy(true);setError('');const at=generation.current;try{await commit(page,at);}catch{if(current(at))setError('工作区添加结果无法确认,请查看工作区列表。');}finally{if(current(at)){locked.current=false;savingRef.current=false;setSaving(false);setBusy(false);}}};
|
|
158
158
|
const createFolder=async(name)=>{if(!active.current||locked.current||!page)return false;locked.current=true;savingRef.current=true;setBusy(true);setError('');const at=generation.current;try{const result=await workbench.createWorkspaceDirectory({selectionToken:page.selectionToken,name});if(!current(at))return false;if(!result?.ok){setError(pickerNeedText(result?.error,'文件夹未能创建,请查看当前目录。'));return false;}setPage(result.value);return true;}catch{if(current(at))setError('创建结果无法确认,请查看目录后再试。');return false;}finally{if(current(at)){locked.current=false;savingRef.current=false;setBusy(false);}}};
|
|
159
159
|
if(!open)return null;
|
|
160
160
|
return h('section',{role:'dialog','aria-modal':true,'aria-label':'选择工作区目录',style:{position:'fixed',inset:0,zIndex:100,background:'rgba(0,0,0,.25)',display:'flex',alignItems:'center',justifyContent:'center'}},h('div',{style:{background:'var(--background, Canvas)',color:'var(--foreground, CanvasText)',border:'1px solid var(--border, #ddd)',borderRadius:12,padding:24,width:'min(720px,90vw)',maxHeight:'85vh',overflow:'auto',boxShadow:'0 12px 40px rgba(0,0,0,.2)'}},h('h2',null,'选择工作区目录'),h('div',{'aria-label':'目录所在设备',style:{display:'flex',gap:8}},...['local','host'].map(value=>h('button',{key:value,type:'button',disabled:busy||creating,'aria-pressed':target===value,onClick:()=>browse({target:value})},value==='local'?'本机':'远程主机'))),
|
|
161
|
-
target==='host'?h(RemoteWorkspaceBrowser,{page,busy,error,browse,select,cancel,createFolder,saving,onCreateOpenChange:setCreating}):h(React.Fragment,null,h('p',{role:'status'},busy?saving?'正在添加工作区…':'请在系统窗口选择文件夹。':'本机文件夹使用系统目录选择框。'),error?h('p',{role:'alert'},error):null,h('button',{type:'button',disabled:busy,onClick:()=>browse({target:'local'})},'选择文件夹'),h('button',{type:'button',disabled:saving,onClick:cancel},'取消'))));
|
|
161
|
+
target===null?h(React.Fragment,null,h('p',null,'请选择目录所在设备。'),h('button',{type:'button',onClick:cancel},'取消')):target==='host'?h(RemoteWorkspaceBrowser,{page,busy,error,browse,select,cancel,createFolder,saving,onCreateOpenChange:setCreating}):h(React.Fragment,null,h('p',{role:'status'},busy?saving?'正在添加工作区…':'请在系统窗口选择文件夹。':'本机文件夹使用系统目录选择框。'),error?h('p',{role:'alert'},error):null,h('button',{type:'button',disabled:busy,onClick:()=>browse({target:'local'})},'选择文件夹'),h('button',{type:'button',disabled:saving,onClick:cancel},'取消'))));
|
|
162
162
|
}
|
|
163
163
|
function createWorkspaceDirectoryPickerRegistration(ctx,workbench){
|
|
164
164
|
const pickDirectory=()=>{const desktop=globalThis.__DSH_DIRECTORY_PICKER__;return desktop===undefined?ctx.uiWorkspace.pickDirectory():desktop.pick();};
|
package/lib/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface Config {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export declare const Config: z<Config>;
|
|
41
|
-
export declare function register(ctx: Context, ports: Ports, _inventory?: ComponentInventory, extend?: (api: import('./api.ts').ConnectApi) => void): void;
|
|
41
|
+
export declare function register(ctx: Context, ports: Ports, _inventory?: ComponentInventory, extend?: (api: import('./api.ts').ConnectApi) => void, autoStart?: boolean): void;
|
|
42
42
|
export declare function apply(ctx: Context, config?: Config): void;
|
|
43
43
|
export { createProfileEnrollment } from './profile-enrollment.ts';
|
|
44
44
|
export { profileSettings } from './profile-settings.ts';
|
package/lib/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export { writeNetworkConfig } from "./network.js";
|
|
|
13
13
|
export { createConnect } from "./connect.js";
|
|
14
14
|
export { sshArgs } from "./ssh.js";
|
|
15
15
|
export const name = 'ai-workbench-connect';
|
|
16
|
-
export const inject = ['aiWorkbenchNetwork'];
|
|
16
|
+
export const inject = ['aiWorkbenchNetwork', 'profileContext'];
|
|
17
17
|
const positive = () => z.number().step(1).min(1);
|
|
18
18
|
// Administrator settings are optional in schema so the loaded service can explain missing prerequisites.
|
|
19
19
|
// aiWorkbenchNetwork itself is a required Cordis injection; missing N holds this module from loading.
|
|
@@ -37,12 +37,13 @@ export const Config = z.object({
|
|
|
37
37
|
executable: z.string().description('darwin-arm64默认Electron.app/Contents/MacOS/Electron;其他平台无默认,管理员可改'), loginOutputMaxBytes: positive().default(L_DEFAULTS.loginOutputMaxBytes).description('登录进程输出字节上限;默认1048576,管理员可改'), ipcMaxBytes: positive().default(L_DEFAULTS.ipcMaxBytes).description('私有IPC字节上限;默认1048576,管理员可改'),
|
|
38
38
|
}),
|
|
39
39
|
});
|
|
40
|
-
export function register(ctx, ports, _inventory, extend) {
|
|
40
|
+
export function register(ctx, ports, _inventory, extend, autoStart = true) {
|
|
41
41
|
// 当前独立插件始终检查两品牌;保留旧inventory参数兼容调用,但不以交付清单开关能力。
|
|
42
42
|
const api = createConnect(ports, state => ctx.emit('ai-workbench/connect-state', state), { onConnectionState: state => ctx.emit('ai-workbench/connection-state', state), onPromptState: state => ctx.emit('ai-workbench/login-prompt-state', state), onPromptResult: result => ctx.emit('ai-workbench/login-prompt-result', result) });
|
|
43
43
|
extend?.(api);
|
|
44
44
|
ctx.provide('aiWorkbenchConnect', api);
|
|
45
|
-
ctx.effect(() => {
|
|
45
|
+
ctx.effect(() => { if (autoStart)
|
|
46
|
+
void api.refreshLoginPrompts(); return () => api.dispose(); });
|
|
46
47
|
}
|
|
47
48
|
export function apply(ctx, config = {}) {
|
|
48
49
|
config = profileSettings(config, ctx.get('profileContext')?.dir);
|
|
@@ -50,7 +51,7 @@ export function apply(ctx, config = {}) {
|
|
|
50
51
|
const sources = createComponentSources({ sha256: config.helper?.sha256 });
|
|
51
52
|
ctx.effect(() => () => sources.dispose());
|
|
52
53
|
const ports = configuredPorts(config, network, component, sources);
|
|
53
|
-
register(ctx, ports, config.inventory, api => attachProfileRuntime(ctx, api, ports, config, network));
|
|
54
|
+
register(ctx, ports, config.inventory, api => attachProfileRuntime(ctx, api, ports, config, network, true), false);
|
|
54
55
|
registerComponents(ctx, config.inventory, config.helper?.cacheDir, component, sources, config.helper?.componentObservationIntervalMs, config.enrollmentMetadataMaxBytes ?? L_DEFAULTS.enrollmentMetadataMaxBytes);
|
|
55
56
|
}
|
|
56
57
|
export { createProfileEnrollment } from "./profile-enrollment.js";
|
package/lib/needs.js
CHANGED
|
@@ -41,7 +41,7 @@ const entries = {
|
|
|
41
41
|
POLICY_DENIED: { layer: 'auth', message: '公司的 AI 席位设置不允许此操作,需要 AI 账号管理员开启。', requires: '允许此操作的 AI 席位设置', actor: 'ai-administrator', action: { id: 'contact-ai-administrator', label: '联系 AI 账号管理员', available: false } },
|
|
42
42
|
CONNECTION_LOST: { layer: 'network', message: '连接中断,正在等待网络恢复信号,恢复后将重新连接。', requires: '网络恢复', actor: 'plugin', action: { id: 'await-network', label: '等待网络恢复', available: false } },
|
|
43
43
|
DEPENDENCY_REQUIRED: { layer: 'integration', message: '远程主机连接的连接组件没有装好,请联系管理员。', requires: '提供方契约与适配器', actor: 'administrator', action: { id: 'supply-dependency', label: '提供集成前置条件', available: false } },
|
|
44
|
-
SETTINGS_REQUIRED: { layer: 'settings', message: '
|
|
44
|
+
SETTINGS_REQUIRED: { layer: 'settings', message: '远程主机连接设置暂不可用,请查看技术详情。', requires: '已确认的连接设置', actor: 'administrator', action: { id: 'configure-settings', label: '确认具名设置', available: false } },
|
|
45
45
|
AUTH_STATUS_INVALID: { layer: 'auth', message: '暂时无法确认登录状态,可检查本机网络后重新检查。', requires: '有效的官方 CLI 登录状态', actor: 'administrator', action: { id: 'inspect-auth-status', label: '检查官方 CLI', available: false } },
|
|
46
46
|
LOGIN_FAILED: { layer: 'auth', message: '登录未完成,窗口已关闭或助手失败,可以重新授权。', requires: '完成 AI 授权', actor: 'employee', action: { id: 'open-login', label: '重新授权', available: true } },
|
|
47
47
|
HOST_TRUST_REQUIRED: { layer: 'ssh', message: '远程主机连接还缺少可信的连接信息,请联系管理员。', requires: 'host.knownHosts', actor: 'administrator', action: { id: 'supply-host-trust', label: '提供主机信任材料', available: false } },
|
package/lib/profile-runtime.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import type { ConnectApi } from './api.ts';
|
|
|
3
3
|
import type { Ports } from './ports.ts';
|
|
4
4
|
import type { Config } from './index.ts';
|
|
5
5
|
import type { NetworkProvider } from './provider.ts';
|
|
6
|
-
export declare function attachProfileRuntime(ctx: Context, api: ConnectApi, ports: Ports, config: Config, network?: NetworkProvider): void;
|
|
6
|
+
export declare function attachProfileRuntime(ctx: Context, api: ConnectApi, ports: Ports, config: Config, network?: NetworkProvider, autoStart?: boolean): void;
|
package/lib/profile-runtime.js
CHANGED
|
@@ -8,10 +8,10 @@ import { createHostSessionProjects } from "./host-session-projects.js";
|
|
|
8
8
|
import { createConversationLog } from "./conversation-log.js";
|
|
9
9
|
import { L_DEFAULTS, WORKSPACE_LOCATION_DEFAULTS } from "./defaults.js";
|
|
10
10
|
import { fail } from "./needs.js";
|
|
11
|
-
export function attachProfileRuntime(ctx, api, ports, config, network) {
|
|
12
|
-
ctx.inject(['profileContext'], scope => attachScopedProfileRuntime(scope, api, ports, config, network));
|
|
11
|
+
export function attachProfileRuntime(ctx, api, ports, config, network, autoStart = false) {
|
|
12
|
+
ctx.inject(['profileContext'], scope => attachScopedProfileRuntime(scope, api, ports, config, network, autoStart));
|
|
13
13
|
}
|
|
14
|
-
function attachScopedProfileRuntime(ctx, api, ports, config, network) {
|
|
14
|
+
function attachScopedProfileRuntime(ctx, api, ports, config, network, autoStart = false) {
|
|
15
15
|
const profile = ctx.get('profileContext');
|
|
16
16
|
if (!profile || typeof profile.dir !== 'string')
|
|
17
17
|
return;
|
|
@@ -26,6 +26,7 @@ function attachScopedProfileRuntime(ctx, api, ports, config, network) {
|
|
|
26
26
|
api.importEnrollment = async () => { const result = await manager.importEnrollment(); if (result.ok && result.value.outcome === 'imported')
|
|
27
27
|
await api.refreshLoginPrompts(); return result; };
|
|
28
28
|
ctx.effect(() => () => manager.dispose());
|
|
29
|
+
// 首次连接由真实资料读取器就绪触发;不读取 integration 的未配置占位端口。
|
|
29
30
|
const beforeAppend = api.appendRemoteConversationDetail, beforeRead = api.readConversationLog;
|
|
30
31
|
const log = createConversationLog({ profileDir: profile.dir });
|
|
31
32
|
api.appendRemoteConversationDetail = log.append;
|
|
@@ -86,4 +87,6 @@ function attachScopedProfileRuntime(ctx, api, ports, config, network) {
|
|
|
86
87
|
native.effect(() => { void locations.refreshWorkspaceLocations(); return api.onConnectionState(() => locations.observeConnection()); });
|
|
87
88
|
native.effect(() => () => { api.resolveSessionProject = unavailableHost; delete api.getLocalWorkspaceContext; delete api.getWorkspaceLocationState; delete api.onWorkspaceLocationState; delete api.refreshWorkspaceLocations; delete api.browseWorkspaceHostDirectories; delete api.selectWorkspaceLocation; delete api.getWorkspaceDirectoryPickerSettings; delete api.browseWorkspaceDirectories; delete api.createWorkspaceDirectory; delete api.selectWorkspaceDirectory; host.dispose(); return Promise.all([locations.dispose(), picker?.dispose()]); });
|
|
88
89
|
});
|
|
90
|
+
if (autoStart)
|
|
91
|
+
void api.refreshLoginPrompts();
|
|
89
92
|
}
|
package/lib/startup.js
CHANGED
|
@@ -13,12 +13,12 @@ export function employeeMessage(code, connection) {
|
|
|
13
13
|
if (code === 'ENROLLMENT_REQUIRED' || code === 'ENROLLMENT_INVALID' || code === 'NETWORK_KEY_INVALID')
|
|
14
14
|
return '我需要连接资料,请联系管理员发放。';
|
|
15
15
|
if (code === 'SETTINGS_REQUIRED')
|
|
16
|
-
return
|
|
16
|
+
return need(code).message;
|
|
17
17
|
if (code === 'LOGIN_FAILED')
|
|
18
18
|
return '登录没有完成。你可以再次请求登录,或稍后再试。';
|
|
19
19
|
if (code === 'POLICY_DENIED')
|
|
20
20
|
return '这个账号暂时不能使用,请联系公司账号管理员。';
|
|
21
|
-
return '
|
|
21
|
+
return '远程主机暂时连不上,请查看技术详情。';
|
|
22
22
|
}
|
|
23
23
|
export function createStartup(api, providers, emit = () => { }, result = () => { }, instanceId = randomUUID()) {
|
|
24
24
|
let disposed = false, revision = 0, serial = 0, generation = 0, checkSerial = 0, connectionPhase = 'unavailable', observedConnected = false, observedUnavailable = false;
|
|
@@ -234,6 +234,15 @@ export function createWorkspaceLocations(o) {
|
|
|
234
234
|
const base = { workspaceId: w.id, workspaceName: w.title || w.id, localPath: n.localPath, bindingId: r?.bindingId ?? null };
|
|
235
235
|
if (r) {
|
|
236
236
|
let valid = sameNative(r, n), error;
|
|
237
|
+
// 来源来自本插件的原生路径绑定,离线仍可显示;不改目录或员工自取名称。
|
|
238
|
+
if (valid && w.setTitle) {
|
|
239
|
+
const title = w.title.replace(/(本机)$|(远程主机)$/u, '') + (r.source === 'local' ? '(本机)' : '(远程主机)');
|
|
240
|
+
if (title !== w.title) {
|
|
241
|
+
await w.setTitle(title);
|
|
242
|
+
check(c);
|
|
243
|
+
}
|
|
244
|
+
base.workspaceName = title;
|
|
245
|
+
}
|
|
237
246
|
if (valid && r.source !== 'local') {
|
|
238
247
|
try {
|
|
239
248
|
valid = (await target(c)).identity === r.identity;
|
package/package.json
CHANGED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## [2.0.1] - 2020-08-29
|
|
10
|
-
### Fixed
|
|
11
|
-
- Fix issue with `process.argv` when used with interpreters (`coffee`, `ts-node`, etc.), #150.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [2.0.0] - 2020-08-14
|
|
15
|
-
### Changed
|
|
16
|
-
- Full rewrite. Now port from python 3.9.0 & more precise following.
|
|
17
|
-
See [doc](./doc) for difference and migration info.
|
|
18
|
-
- node.js 10+ required
|
|
19
|
-
- Removed most of local docs in favour of original ones.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [1.0.10] - 2018-02-15
|
|
23
|
-
### Fixed
|
|
24
|
-
- Use .concat instead of + for arrays, #122.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## [1.0.9] - 2016-09-29
|
|
28
|
-
### Changed
|
|
29
|
-
- Rerelease after 1.0.8 - deps cleanup.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## [1.0.8] - 2016-09-29
|
|
33
|
-
### Changed
|
|
34
|
-
- Maintenance (deps bump, fix node 6.5+ tests, coverage report).
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## [1.0.7] - 2016-03-17
|
|
38
|
-
### Changed
|
|
39
|
-
- Teach `addArgument` to accept string arg names. #97, @tomxtobin.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## [1.0.6] - 2016-02-06
|
|
43
|
-
### Changed
|
|
44
|
-
- Maintenance: moved to eslint & updated CS.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## [1.0.5] - 2016-02-05
|
|
48
|
-
### Changed
|
|
49
|
-
- Removed lodash dependency to significantly reduce install size.
|
|
50
|
-
Thanks to @mourner.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## [1.0.4] - 2016-01-17
|
|
54
|
-
### Changed
|
|
55
|
-
- Maintenance: lodash update to 4.0.0.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## [1.0.3] - 2015-10-27
|
|
59
|
-
### Fixed
|
|
60
|
-
- Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
## [1.0.2] - 2015-03-22
|
|
64
|
-
### Changed
|
|
65
|
-
- Relaxed lodash version dependency.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## [1.0.1] - 2015-02-20
|
|
69
|
-
### Changed
|
|
70
|
-
- Changed dependencies to be compatible with ancient nodejs.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## [1.0.0] - 2015-02-19
|
|
74
|
-
### Changed
|
|
75
|
-
- Maintenance release.
|
|
76
|
-
- Replaced `underscore` with `lodash`.
|
|
77
|
-
- Bumped version to 1.0.0 to better reflect semver meaning.
|
|
78
|
-
- HISTORY.md -> CHANGELOG.md
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## [0.1.16] - 2013-12-01
|
|
82
|
-
### Changed
|
|
83
|
-
- Maintenance release. Updated dependencies and docs.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## [0.1.15] - 2013-05-13
|
|
87
|
-
### Fixed
|
|
88
|
-
- Fixed #55, @trebor89
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
## [0.1.14] - 2013-05-12
|
|
92
|
-
### Fixed
|
|
93
|
-
- Fixed #62, @maxtaco
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
## [0.1.13] - 2013-04-08
|
|
97
|
-
### Changed
|
|
98
|
-
- Added `.npmignore` to reduce package size
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## [0.1.12] - 2013-02-10
|
|
102
|
-
### Fixed
|
|
103
|
-
- Fixed conflictHandler (#46), @hpaulj
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## [0.1.11] - 2013-02-07
|
|
107
|
-
### Added
|
|
108
|
-
- Added 70+ tests (ported from python), @hpaulj
|
|
109
|
-
- Added conflictHandler, @applepicke
|
|
110
|
-
- Added fromfilePrefixChar, @hpaulj
|
|
111
|
-
|
|
112
|
-
### Fixed
|
|
113
|
-
- Multiple bugfixes, @hpaulj
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
## [0.1.10] - 2012-12-30
|
|
117
|
-
### Added
|
|
118
|
-
- Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion)
|
|
119
|
-
support, thanks to @hpaulj
|
|
120
|
-
|
|
121
|
-
### Fixed
|
|
122
|
-
- Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
## [0.1.9] - 2012-12-27
|
|
126
|
-
### Fixed
|
|
127
|
-
- Fixed option dest interferens with other options (issue #23), thanks to @hpaulj
|
|
128
|
-
- Fixed default value behavior with `*` positionals, thanks to @hpaulj
|
|
129
|
-
- Improve `getDefault()` behavior, thanks to @hpaulj
|
|
130
|
-
- Improve negative argument parsing, thanks to @hpaulj
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## [0.1.8] - 2012-12-01
|
|
134
|
-
### Fixed
|
|
135
|
-
- Fixed parser parents (issue #19), thanks to @hpaulj
|
|
136
|
-
- Fixed negative argument parse (issue #20), thanks to @hpaulj
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
## [0.1.7] - 2012-10-14
|
|
140
|
-
### Fixed
|
|
141
|
-
- Fixed 'choices' argument parse (issue #16)
|
|
142
|
-
- Fixed stderr output (issue #15)
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
## [0.1.6] - 2012-09-09
|
|
146
|
-
### Fixed
|
|
147
|
-
- Fixed check for conflict of options (thanks to @tomxtobin)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
## [0.1.5] - 2012-09-03
|
|
151
|
-
### Fixed
|
|
152
|
-
- Fix parser #setDefaults method (thanks to @tomxtobin)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
## [0.1.4] - 2012-07-30
|
|
156
|
-
### Fixed
|
|
157
|
-
- Fixed pseudo-argument support (thanks to @CGamesPlay)
|
|
158
|
-
- Fixed addHelp default (should be true), if not set (thanks to @benblank)
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
## [0.1.3] - 2012-06-27
|
|
162
|
-
### Fixed
|
|
163
|
-
- Fixed formatter api name: Formatter -> HelpFormatter
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
## [0.1.2] - 2012-05-29
|
|
167
|
-
### Fixed
|
|
168
|
-
- Removed excess whitespace in help
|
|
169
|
-
- Fixed error reporting, when parcer with subcommands
|
|
170
|
-
called with empty arguments
|
|
171
|
-
|
|
172
|
-
### Added
|
|
173
|
-
- Added basic tests
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
## [0.1.1] - 2012-05-23
|
|
177
|
-
### Fixed
|
|
178
|
-
- Fixed line wrapping in help formatter
|
|
179
|
-
- Added better error reporting on invalid arguments
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
## [0.1.0] - 2012-05-16
|
|
183
|
-
### Added
|
|
184
|
-
- First release.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
[2.0.1]: https://github.com/nodeca/argparse/compare/2.0.0...2.0.1
|
|
188
|
-
[2.0.0]: https://github.com/nodeca/argparse/compare/1.0.10...2.0.0
|
|
189
|
-
[1.0.10]: https://github.com/nodeca/argparse/compare/1.0.9...1.0.10
|
|
190
|
-
[1.0.9]: https://github.com/nodeca/argparse/compare/1.0.8...1.0.9
|
|
191
|
-
[1.0.8]: https://github.com/nodeca/argparse/compare/1.0.7...1.0.8
|
|
192
|
-
[1.0.7]: https://github.com/nodeca/argparse/compare/1.0.6...1.0.7
|
|
193
|
-
[1.0.6]: https://github.com/nodeca/argparse/compare/1.0.5...1.0.6
|
|
194
|
-
[1.0.5]: https://github.com/nodeca/argparse/compare/1.0.4...1.0.5
|
|
195
|
-
[1.0.4]: https://github.com/nodeca/argparse/compare/1.0.3...1.0.4
|
|
196
|
-
[1.0.3]: https://github.com/nodeca/argparse/compare/1.0.2...1.0.3
|
|
197
|
-
[1.0.2]: https://github.com/nodeca/argparse/compare/1.0.1...1.0.2
|
|
198
|
-
[1.0.1]: https://github.com/nodeca/argparse/compare/1.0.0...1.0.1
|
|
199
|
-
[1.0.0]: https://github.com/nodeca/argparse/compare/0.1.16...1.0.0
|
|
200
|
-
[0.1.16]: https://github.com/nodeca/argparse/compare/0.1.15...0.1.16
|
|
201
|
-
[0.1.15]: https://github.com/nodeca/argparse/compare/0.1.14...0.1.15
|
|
202
|
-
[0.1.14]: https://github.com/nodeca/argparse/compare/0.1.13...0.1.14
|
|
203
|
-
[0.1.13]: https://github.com/nodeca/argparse/compare/0.1.12...0.1.13
|
|
204
|
-
[0.1.12]: https://github.com/nodeca/argparse/compare/0.1.11...0.1.12
|
|
205
|
-
[0.1.11]: https://github.com/nodeca/argparse/compare/0.1.10...0.1.11
|
|
206
|
-
[0.1.10]: https://github.com/nodeca/argparse/compare/0.1.9...0.1.10
|
|
207
|
-
[0.1.9]: https://github.com/nodeca/argparse/compare/0.1.8...0.1.9
|
|
208
|
-
[0.1.8]: https://github.com/nodeca/argparse/compare/0.1.7...0.1.8
|
|
209
|
-
[0.1.7]: https://github.com/nodeca/argparse/compare/0.1.6...0.1.7
|
|
210
|
-
[0.1.6]: https://github.com/nodeca/argparse/compare/0.1.5...0.1.6
|
|
211
|
-
[0.1.5]: https://github.com/nodeca/argparse/compare/0.1.4...0.1.5
|
|
212
|
-
[0.1.4]: https://github.com/nodeca/argparse/compare/0.1.3...0.1.4
|
|
213
|
-
[0.1.3]: https://github.com/nodeca/argparse/compare/0.1.2...0.1.3
|
|
214
|
-
[0.1.2]: https://github.com/nodeca/argparse/compare/0.1.1...0.1.2
|
|
215
|
-
[0.1.1]: https://github.com/nodeca/argparse/compare/0.1.0...0.1.1
|
|
216
|
-
[0.1.0]: https://github.com/nodeca/argparse/releases/tag/0.1.0
|